/* H2O Hand Car Wash: unified public + staff portal design system */

:root {
  --h2o-primary: #3c5889;
  --h2o-primary-dark: #2f4669;
  --h2o-primary-darker: #243552;
  --h2o-primary-mid: #4d6a99;
  --h2o-secondary: #d8e6ff;
  --h2o-secondary-muted: #c5d8f7;
  --h2o-on-primary: #ffffff;
  --h2o-blue: var(--h2o-primary);
  --h2o-blue-dark: var(--h2o-primary-dark);
  --h2o-blue-mid: var(--h2o-primary-mid);
  --h2o-blue-light: var(--h2o-secondary);
  --h2o-cyan: #5a8fd4;
  --h2o-gold: #f59e0b;
  --h2o-gold-dark: #d97706;
  --h2o-on-gold: #422006;
  --h2o-red: var(--h2o-gold);
  --h2o-red-dark: var(--h2o-gold-dark);
  --h2o-success: #059669;
  --h2o-success-bg: #ecfdf5;
  --h2o-bg: var(--h2o-secondary);
  --h2o-bg-elevated: #ffffff;
  --h2o-surface: #ffffff;
  --h2o-surface-alt: #ffffff;
  --h2o-text: #1a2740;
  --h2o-muted: #5a6d8a;
  --h2o-border: rgba(60, 88, 137, 0.18);
  --h2o-border-strong: rgba(60, 88, 137, 0.32);
  --h2o-radius-sm: 8px;
  --h2o-radius: 14px;
  --h2o-radius-lg: 20px;
  --h2o-shadow-sm: 0 1px 2px rgba(60, 88, 137, 0.08);
  --h2o-shadow: 0 8px 24px rgba(60, 88, 137, 0.12);
  --h2o-shadow-lg: 0 20px 48px rgba(60, 88, 137, 0.16);
  --h2o-max: 1180px;
  --h2o-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --h2o-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --h2o-header-h: 128px;
  --h2o-logo-bar-img-h: calc(108px - 0.35rem);
  --h2o-utility-h: 2.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.h2o-site {
  margin: 0;
  font-family: var(--h2o-font);
  font-size: 1rem;
  background: var(--h2o-bg);
  color: var(--h2o-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--h2o-blue-mid);
  text-decoration: none;
  transition: color var(--h2o-transition);
}

a:hover {
  color: var(--h2o-red);
}

.wrap {
  width: min(100% - 2.5rem, var(--h2o-max));
  margin-inline: auto;
}

/* Top utility strip */
.h2o-utility {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--h2o-primary-dark);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--h2o-shadow-sm);
}

.h2o-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
}

.h2o-utility a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.h2o-utility a:hover {
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

.h2o-utility__sep {
  opacity: 0.35;
  user-select: none;
}

/* Header / logo bar (scrolls with page; utility bar stays sticky) */
.h2o-header {
  background: var(--h2o-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.h2o-header__inner.wrap {
  width: min(100% - 1rem, var(--h2o-max));
}

.h2o-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  min-height: var(--h2o-header-h);
}

.h2o-header--centered .h2o-header__inner {
  justify-content: center;
}

.h2o-header--centered .h2o-logo {
  justify-content: center;
}

.h2o-header--centered .h2o-logo__img {
  object-position: center;
}

.h2o-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  color: var(--h2o-on-primary);
}

.h2o-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.h2o-logo__img {
  height: var(--h2o-logo-bar-img-h);
  width: auto;
  max-width: min(400px, 54vw);
  object-fit: contain;
  object-position: center left;
  display: block;
}

.h2o-logo__img--footer {
  height: 4.875rem;
  width: auto;
  max-width: 16.5rem;
  object-fit: contain;
  display: block;
}

.h2o-logo__tagline--portal {
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--h2o-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  margin-left: 0.35rem;
}

.h2o-logo__text {
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.h2o-logo__tagline {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--h2o-muted);
  margin-top: 0.1rem;
  letter-spacing: 0;
}

.h2o-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.h2o-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background var(--h2o-transition), color var(--h2o-transition);
}

.h2o-nav a:hover,
.h2o-nav a[aria-current="page"] {
  background: rgba(216, 230, 255, 0.18);
  color: var(--h2o-secondary);
  text-decoration: none;
}

.h2o-nav__cta {
  background: var(--h2o-gold) !important;
  color: var(--h2o-on-gold) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.h2o-nav__cta:hover {
  background: var(--h2o-gold-dark) !important;
  color: var(--h2o-on-gold) !important;
  transform: translateY(-1px);
}

.h2o-main {
  display: block;
}

/* Hero carousel */
.h2o-carousel {
  position: relative;
  background: var(--h2o-secondary);
  overflow: hidden;
  border-radius: 0;
}

.h2o-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.h2o-carousel__slide {
  flex: 0 0 100%;
  min-height: clamp(340px, 50vw, 520px);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .h2o-carousel__slide {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.h2o-carousel__media {
  position: relative;
  min-height: 240px;
}

.h2o-carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h2o-carousel__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--h2o-secondary);
  color: var(--h2o-primary);
}

.h2o-carousel__copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--h2o-primary);
}

.h2o-carousel__copy p {
  margin: 0 0 1.25rem;
  color: var(--h2o-primary-dark);
  font-size: 1.0625rem;
  max-width: 40ch;
}

.h2o-carousel__copy ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--h2o-primary-dark);
}

.h2o-carousel__controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.h2o-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(60, 88, 137, 0.28);
  cursor: pointer;
  padding: 0;
  transition: transform var(--h2o-transition), background var(--h2o-transition);
}

.h2o-carousel__dot.is-active {
  background: var(--h2o-gold);
  transform: scale(1.2);
}

.h2o-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: var(--h2o-surface);
  color: var(--h2o-primary-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--h2o-shadow);
  transition: transform var(--h2o-transition), box-shadow var(--h2o-transition);
}

.h2o-carousel__arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--h2o-shadow-lg);
}

.h2o-carousel__arrow--prev {
  left: 1rem;
}

.h2o-carousel__arrow--next {
  right: 1rem;
}

/* Home promo row: full-width band, constrained card grid */
.h2o-promo-band {
  width: 100%;
}

.h2o-promo-row {
  display: grid;
  gap: 1rem;
  padding: 2rem 1.25rem;
  width: min(100% - 2.5rem, var(--h2o-max));
  max-width: var(--h2o-max);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .h2o-promo-row {
    grid-template-columns: repeat(3, 1fr);
    padding: 2.5rem 1.25rem;
  }
}

.h2o-promo-tile {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--h2o-shadow-sm);
}

@media (min-width: 600px) {
  .h2o-promo-tile {
    grid-template-columns: 130px 1fr;
  }
}

.h2o-promo-tile__img {
  min-height: 130px;
  overflow: hidden;
}

.h2o-promo-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h2o-promo-tile__body {
  padding: 1.25rem 1.35rem;
}

.h2o-promo-tile__body h3 {
  margin: 0 0 0.4rem;
  color: var(--h2o-blue-dark);
  font-size: 1.0625rem;
  font-weight: 700;
}

.h2o-promo-tile__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--h2o-muted);
  line-height: 1.5;
}

.h2o-promo-tile__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--h2o-red);
  font-size: 0.8125rem;
}

/* Page heroes */
.h2o-page-hero {
  background: var(--h2o-primary);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.h2o-page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.h2o-page-hero .h2o-hero__lead {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
}

.h2o-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.h2o-hero__lead {
  color: var(--h2o-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin: 0 0 1.25rem;
}

.h2o-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.h2o-actions--spaced {
  margin-top: 1rem;
}

.h2o-section .h2o-portal-links {
  margin-top: 1rem;
}

.h2o-cta-row {
  margin-top: 1.5rem;
  text-align: center;
}

.h2o-section-title--left {
  text-align: left;
}

.h2o-section--flush {
  padding-top: 0;
}

/* Buttons */
.h2o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--h2o-transition), box-shadow var(--h2o-transition), background var(--h2o-transition), color var(--h2o-transition), border-color var(--h2o-transition);
}

.h2o-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.h2o-btn--primary {
  background: var(--h2o-gold);
  color: var(--h2o-on-gold);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.h2o-btn--primary:hover {
  background: var(--h2o-gold-dark);
  color: var(--h2o-on-gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.h2o-btn--ghost {
  border-color: var(--h2o-border-strong);
  color: var(--h2o-blue-dark);
  background: var(--h2o-surface);
}

.h2o-btn--ghost:hover {
  background: var(--h2o-blue-light);
  border-color: var(--h2o-blue);
  color: var(--h2o-blue);
}

.h2o-btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  width: 100%;
}

/* Sections */
.h2o-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

#wash-menu {
  scroll-margin-top: var(--h2o-utility-h);
}

.h2o-section--alt {
  background: var(--h2o-surface-alt);
  border-block: 1px solid var(--h2o-border);
}

.h2o-band--surface {
  background: var(--h2o-surface);
}

.h2o-band--tint {
  background: var(--h2o-bg);
}

.h2o-main > .h2o-section:last-of-type {
  padding-bottom: 2rem;
}

.h2o-main > .h2o-section:last-of-type .h2o-section-title {
  margin-bottom: 1.25rem;
}

.h2o-section h1,
.h2o-section h2 {
  margin-top: 0;
  color: var(--h2o-blue-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h2o-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.h2o-section-title h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin: 0 0 0.5rem;
}

.h2o-section-title p {
  margin: 0;
  color: var(--h2o-muted);
  font-size: 1.05rem;
}

.h2o-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.h2o-card {
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  border-radius: 0;
  padding: 0;
  box-shadow: var(--h2o-shadow-sm);
  overflow: hidden;
}

.h2o-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.h2o-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h2o-card__body {
  padding: 1.35rem 1.5rem;
}

.h2o-card:not(:has(.h2o-card__img)) {
  padding: 1.35rem 1.5rem;
}

.h2o-card h3 {
  margin: 0 0 0.4rem;
  color: var(--h2o-blue-dark);
  font-size: 1.125rem;
  font-weight: 700;
}

.h2o-card p {
  margin: 0;
  color: var(--h2o-muted);
  font-size: 0.9375rem;
}

.h2o-card--highlight {
  border-color: var(--h2o-gold);
  box-shadow: 0 0 0 1px var(--h2o-gold), var(--h2o-shadow);
}

.h2o-card--highlight::before {
  content: "Popular";
  display: block;
  padding: 0.35rem 1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--h2o-gold);
  color: var(--h2o-on-gold);
}

.h2o-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--h2o-red);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.h2o-about__tagline {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--h2o-gold);
  letter-spacing: 0.02em;
}

.h2o-about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .h2o-about {
    grid-template-columns: 1fr 300px;
  }
}

.h2o-about__photo {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--h2o-shadow);
}

.h2o-about__photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Promo banner */
.h2o-promo-banner {
  background: var(--h2o-gold);
  color: var(--h2o-on-gold);
  text-align: center;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.h2o-promo-banner a {
  color: var(--h2o-on-gold);
  text-decoration: underline;
  font-weight: 700;
}

/* Footer */
.h2o-footer {
  background: var(--h2o-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.75rem;
  margin-top: 0;
}

.h2o-footer a {
  color: rgba(255, 255, 255, 0.95);
}

.h2o-footer a:hover {
  color: var(--h2o-gold);
}

.h2o-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.h2o-footer__grid h3 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.h2o-footer__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.h2o-footer__grid li {
  margin-bottom: 0.5rem;
}

.h2o-footer__grid p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.h2o-footer__logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.h2o-footer__logo:hover {
  opacity: 0.9;
}

.h2o-footer__tagline {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--h2o-gold);
  font-size: 1rem;
}

.h2o-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Forms */
.h2o-contact-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  border-radius: 0;
  box-shadow: var(--h2o-shadow-sm);
}

.h2o-contact-form {
  display: grid;
  gap: 1.15rem;
}

.h2o-field {
  display: flex;
  flex-direction: column;
}

.h2o-field label,
.h2o-field > span:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--h2o-text);
  font-size: 0.875rem;
}

.h2o-field input,
.h2o-field textarea,
.h2o-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--h2o-radius-sm);
  border: 1px solid var(--h2o-border);
  background: var(--h2o-surface);
  color: var(--h2o-text);
  font: inherit;
  transition: border-color var(--h2o-transition), box-shadow var(--h2o-transition);
}

.h2o-field input:focus,
.h2o-field textarea:focus,
.h2o-field select:focus {
  outline: none;
  border-color: var(--h2o-blue-mid);
  box-shadow: 0 0 0 3px rgba(60, 88, 137, 0.2);
}

.h2o-field--hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.h2o-field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.h2o-field--check input {
  width: auto;
}

.h2o-field textarea {
  min-height: 5rem;
  resize: vertical;
}

.h2o-contact-thanks {
  color: var(--h2o-success);
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: var(--h2o-success-bg);
  border-radius: var(--h2o-radius-sm);
}

.h2o-portal-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--h2o-radius-sm);
  background: var(--h2o-blue-light);
  border: 1px solid var(--h2o-border);
  color: var(--h2o-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.h2o-portal-error {
  color: var(--h2o-on-gold);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  background: #fef3c7;
  border-radius: var(--h2o-radius-sm);
  border: 1px solid #fcd34d;
}

.h2o-locations-map {
  width: 100%;
  height: min(440px, 55vh);
  margin: 1.5rem 0 2rem;
  border-radius: var(--h2o-radius);
  border: 1px solid var(--h2o-border);
  box-shadow: var(--h2o-shadow-sm);
  z-index: 1;
}

.h2o-locations-grid {
  margin-top: 0.5rem;
}

/* Staff portal (shared design system) */
body.h2o-portal {
  background: var(--h2o-bg);
}

body.h2o-portal .h2o-portal__main {
  min-height: 50vh;
  padding: 0 0 3.5rem;
}

body.h2o-portal .h2o-portal-page {
  margin-top: 2rem;
}

body.h2o-portal .h2o-section.h2o-band + .h2o-portal-page,
body.h2o-portal .h2o-page-hero + .h2o-section .h2o-portal-page {
  margin-top: 0;
}

.h2o-portal-bar {
  background: var(--h2o-surface);
  border-bottom: 1px solid var(--h2o-border);
  box-shadow: var(--h2o-shadow-sm);
  position: sticky;
  top: var(--h2o-utility-h);
  z-index: 90;
}

.h2o-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: none;
  margin: 0;
  padding: 0.75rem 0;
}

.h2o-portal-nav a {
  color: var(--h2o-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--h2o-transition), color var(--h2o-transition), border-color var(--h2o-transition);
}

.h2o-portal-nav a.is-active,
.h2o-portal-nav a:hover {
  color: var(--h2o-blue-dark);
  background: var(--h2o-blue-light);
  border-color: var(--h2o-border);
  text-decoration: none;
}

.h2o-portal-nav a.is-active {
  background: var(--h2o-primary);
  color: var(--h2o-on-primary);
  border-color: var(--h2o-primary);
}

/* Staff portal tab pages (Dashboard, Customers, VIP QR, Settings, Marketing) */
.h2o-portal-page {
  margin: 2rem auto 0;
}

.h2o-portal-page__card,
.h2o-portal-card {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  border-radius: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--h2o-shadow);
}

.h2o-portal-page__header,
.h2o-portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--h2o-border);
}

.h2o-portal-page__intro {
  flex: 1 1 16rem;
  min-width: 0;
}

.h2o-portal-page__header h1,
body.h2o-portal .h2o-portal-card h1,
body.h2o-portal .h2o-portal-toolbar h1,
body.h2o-portal .h2o-detail-section h2 {
  margin: 0 0 0.35rem;
  color: var(--h2o-blue-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h2o-portal-page__lead {
  margin: 0;
  color: var(--h2o-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
}

.h2o-portal-page__crumb {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.h2o-portal-page__crumb a {
  color: var(--h2o-muted);
  font-weight: 600;
}

.h2o-portal-page__card--narrow {
  max-width: 30rem;
}

.h2o-portal-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.h2o-portal-page__body > .h2o-portal-block + .h2o-portal-block,
.h2o-portal-page__body > .h2o-portal-block,
.h2o-portal-page__body > .h2o-detail-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--h2o-border);
}

.h2o-portal-page__body > :first-child.h2o-portal-block,
.h2o-portal-page__body > :first-child.h2o-detail-section,
.h2o-portal-page__body > .h2o-dash-stats:first-child,
.h2o-portal-page__body > .h2o-search-row:first-child,
.h2o-portal-page__body > .h2o-settings-tabs:first-child,
.h2o-portal-page__body > .h2o-grid:first-child,
.h2o-portal-page__body > .h2o-reward-banner:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.h2o-portal-page__body > .h2o-grid + .h2o-portal-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--h2o-border);
}

.h2o-portal-page__body > .h2o-dash-stats,
.h2o-portal-page__body > .h2o-search-row {
  margin-bottom: 1.5rem;
}

.h2o-portal-page__body > .h2o-customer-list {
  margin-top: 0.5rem;
}

.h2o-portal-block code {
  font-size: 0.875em;
  background: var(--h2o-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.h2o-portal-block > h2,
.h2o-detail-section > h2 {
  margin: 0 0 1rem;
  color: var(--h2o-blue-dark);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h2o-portal-block > h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--h2o-blue-dark);
  font-size: 1rem;
  font-weight: 700;
}

.h2o-portal-block > p.h2o-portal-page__lead,
.h2o-portal-block > .h2o-hero__lead {
  margin: 0 0 1rem;
}

body.h2o-portal .h2o-grid .h2o-card {
  padding: 1.35rem 1.5rem;
}

.h2o-portal-card--kiosk {
  max-width: 30rem;
}

.h2o-portal-card--wide {
  max-width: 56rem;
}

.h2o-steps {
  margin: 0;
  padding-left: 1.35rem;
  max-width: 52ch;
  color: var(--h2o-text);
  line-height: 1.65;
}

.h2o-steps li {
  margin-bottom: 0.85rem;
}

.h2o-steps li:last-child {
  margin-bottom: 0;
}

.h2o-portal-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--h2o-muted);
  font-size: 0.9rem;
}

.h2o-portal-page .h2o-section--auth {
  padding-top: 0;
}

.h2o-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.h2o-search-input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--h2o-radius-sm);
  border: 1px solid var(--h2o-border);
  background: var(--h2o-surface);
  color: var(--h2o-text);
  font: inherit;
  transition: border-color var(--h2o-transition), box-shadow var(--h2o-transition);
}

.h2o-search-input:focus {
  outline: none;
  border-color: var(--h2o-blue-mid);
  box-shadow: 0 0 0 3px rgba(60, 88, 137, 0.18);
}

.h2o-customer-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.h2o-customer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: 0;
  border: 1px solid var(--h2o-border);
  text-decoration: none;
  color: var(--h2o-text);
  background: var(--h2o-surface);
  transition: border-color var(--h2o-transition), background var(--h2o-transition), transform var(--h2o-transition);
}

.h2o-customer-row:hover {
  border-color: var(--h2o-blue-mid);
  background: var(--h2o-blue-light);
  text-decoration: none;
  transform: translateX(4px);
}

.h2o-customer-row span {
  color: var(--h2o-muted);
  font-size: 0.875rem;
}

.h2o-reward-banner {
  padding: 1rem 1.15rem;
  border-radius: var(--h2o-radius-sm);
  background: var(--h2o-success-bg);
  border: 1px solid #a7f3d0;
  color: var(--h2o-success);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.h2o-purchase-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 32rem;
}

.h2o-purchase-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.h2o-purchase-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--h2o-border);
}

.h2o-purchase-history li:last-child {
  border-bottom: none;
}

.h2o-purchase-history li span {
  color: var(--h2o-muted);
  font-size: 0.8125rem;
}

.h2o-portal-page__body .h2o-card h3 a,
.h2o-portal-card .h2o-card h3 a {
  color: var(--h2o-blue-dark);
  text-decoration: none;
}

.h2o-portal-page__body .h2o-card h3 a:hover,
.h2o-portal-card .h2o-card h3 a:hover {
  color: var(--h2o-red);
}

.h2o-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.h2o-stat {
  padding: 1.15rem 1rem;
  border-radius: 0;
  border: 1px solid var(--h2o-border);
  background: var(--h2o-surface);
  text-align: center;
  box-shadow: var(--h2o-shadow-sm);
  position: relative;
  overflow: hidden;
}

.h2o-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--h2o-primary);
}

.h2o-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--h2o-blue-dark);
  letter-spacing: -0.03em;
  margin-top: 0.25rem;
}

.h2o-stat span {
  color: var(--h2o-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.h2o-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.h2o-form-row .h2o-field {
  flex: 1 1 10rem;
}

.h2o-vehicle-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.h2o-vehicle-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--h2o-border);
}

.h2o-vehicle-form {
  margin-bottom: 1rem;
}

.h2o-link-btn {
  background: none;
  border: none;
  color: var(--h2o-blue-mid);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 0.5rem;
  text-decoration: none;
  padding: 0;
}

.h2o-link-btn:hover {
  color: var(--h2o-red);
  text-decoration: underline;
}

.h2o-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  min-height: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  background: var(--h2o-bg);
  border-radius: 0;
}

.h2o-settings-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--h2o-muted);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.875rem;
  transition: background var(--h2o-transition), color var(--h2o-transition);
}

.h2o-settings-tabs button.is-active {
  background: var(--h2o-surface);
  color: var(--h2o-blue-dark);
}

.h2o-settings-panel {
  margin-top: 0.5rem;
}

.h2o-manager-list p {
  margin: 0.35rem 0;
  color: var(--h2o-muted);
}

.h2o-package-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--h2o-border);
  border-radius: 0;
  background: var(--h2o-surface);
  box-shadow: var(--h2o-shadow-sm);
}

.h2o-package-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.h2o-package-table th,
.h2o-package-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--h2o-border);
  text-align: left;
  vertical-align: middle;
}

.h2o-package-table tbody tr:last-child td {
  border-bottom: none;
}

.h2o-package-table th {
  color: var(--h2o-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--h2o-bg);
}

.h2o-package-table tbody tr:hover {
  background: var(--h2o-blue-light);
}

.h2o-package-actions {
  white-space: nowrap;
}

.h2o-card-pay {
  margin: 1rem 0;
  padding: 1.15rem;
  border-radius: 0;
  border: 1px dashed var(--h2o-border-strong);
  background: var(--h2o-bg);
}

.h2o-marketing-filters {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 1.25rem;
  background: var(--h2o-bg);
  border-radius: 0;
  border: 1px solid var(--h2o-border);
}

.h2o-marketing-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.h2o-marketing-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--h2o-border);
}

.h2o-qr-card {
  max-width: 22rem;
  margin: 1.5rem auto;
  text-align: center;
  padding: 1.5rem !important;
}

.h2o-qr-display {
  position: relative;
  min-height: 280px;
}

.h2o-qr-image {
  display: block;
  margin: 1rem auto 0;
  border-radius: 0;
  background: var(--h2o-surface);
  padding: 0.65rem;
  box-shadow: var(--h2o-shadow-sm);
}

.h2o-qr-image[hidden],
.h2o-qr-scanned[hidden] {
  display: none !important;
}

.h2o-qr-scanned__badge {
  width: 280px;
  height: 280px;
  margin: 1rem auto 0;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--h2o-shadow-sm);
}

.h2o-qr-scanned__icon {
  width: 42%;
  height: 42%;
  color: #fff;
}

.h2o-qr-meta {
  color: var(--h2o-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Staff tool pages (isolated, no utility bar or nav) */
body.h2o-tool-page .h2o-utility,
body.h2o-tool-page .h2o-nav,
body.h2o-tool-page .h2o-footer {
  display: none;
}

body.h2o-tool-page .h2o-header--tool {
  border-bottom: 1px solid var(--h2o-border);
}

body.h2o-tool-page .h2o-logo--static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  text-decoration: none;
}

.h2o-tool__main {
  padding: 2.5rem 0 4rem;
}

.h2o-tool-panel {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.h2o-tool-panel__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h2o-tool-panel__lead {
  margin: 0 0 1.75rem;
  color: var(--h2o-muted);
  line-height: 1.55;
}

.h2o-tool-panel .h2o-btn--lg {
  min-width: 14rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --h2o-header-h: 8rem;
    --h2o-logo-bar-img-h: calc(6.75rem - 0.5rem);
    --h2o-utility-h: 3.5rem;
  }

  .h2o-header__inner.wrap {
    width: min(100% - 0.75rem, var(--h2o-max));
  }

  .h2o-header__inner {
    align-items: center;
    min-height: var(--h2o-header-h);
    padding: 0.25rem 0;
  }

  .h2o-header--centered .h2o-header__inner {
    justify-content: center;
  }

  .h2o-logo__img {
    height: var(--h2o-logo-bar-img-h);
    max-width: min(340px, 88vw);
  }

  .h2o-logo__tagline--portal {
    display: none;
  }

  .h2o-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .h2o-carousel__arrow {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
