/* Public marketing theme — H2O Hand Car Wash brand colors and layout. */
:root {
  --h2o-blue: #0d3d6e;
  --h2o-blue-dark: #082a4d;
  --h2o-blue-light: #e8f1fa;
  --h2o-red: #c41e3a;
  --h2o-red-dark: #9e1830;
  --h2o-gold: #f0b429;
  --h2o-bg: #f3f6fa;
  --h2o-surface: #ffffff;
  --h2o-text: #1a2b3c;
  --h2o-muted: #5a6d7d;
  --h2o-border: #c5d4e3;
  --h2o-radius: 6px;
  --h2o-shadow: 0 8px 28px rgba(13, 61, 110, 0.12);
  --h2o-max: 1140px;
  --h2o-font: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

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

body.h2o-site {
  margin: 0;
  font-family: var(--h2o-font);
  background: var(--h2o-bg);
  color: var(--h2o-text);
  line-height: 1.55;
}

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

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

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

/* Utility bar (top quick links) */
.h2o-utility {
  background: var(--h2o-blue-dark);
  color: #dce8f5;
  font-size: 0.8rem;
}

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

.h2o-utility a {
  color: #dce8f5;
  text-decoration: none;
  font-weight: 600;
}

.h2o-utility a:hover {
  color: #fff;
  text-decoration: underline;
}

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

/* Main header */
.h2o-header {
  background: var(--h2o-surface);
  border-bottom: 3px solid var(--h2o-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.h2o-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.h2o-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--h2o-blue);
}

.h2o-logo:hover {
  text-decoration: none;
  color: var(--h2o-blue-dark);
}

.h2o-logo__img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.h2o-logo__text {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.h2o-nav a {
  color: var(--h2o-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.h2o-nav a:hover,
.h2o-nav a[aria-current="page"] {
  background: var(--h2o-blue-light);
  color: var(--h2o-blue);
  text-decoration: none;
}

.h2o-nav__cta {
  background: var(--h2o-red) !important;
  color: #fff !important;
  margin-left: 0.25rem;
}

.h2o-nav__cta:hover {
  background: var(--h2o-red-dark) !important;
  color: #fff !important;
}

.h2o-main {
  min-height: 50vh;
}

/* Hero carousel */
.h2o-carousel {
  position: relative;
  background: var(--h2o-blue-dark);
  overflow: hidden;
}

.h2o-carousel__track {
  display: flex;
  transition: transform 0.55s ease;
}

.h2o-carousel__slide {
  flex: 0 0 100%;
  min-height: clamp(320px, 48vw, 480px);
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

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

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

.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: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--h2o-blue) 0%, var(--h2o-blue-dark) 100%);
  color: #fff;
}

.h2o-carousel__copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.h2o-carousel__copy p {
  margin: 0 0 1.25rem;
  color: #d4e6f8;
  font-size: 1.05rem;
  max-width: 38ch;
}

.h2o-carousel__copy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: #e8f3ff;
}

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

.h2o-carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.h2o-carousel__dot.is-active {
  background: var(--h2o-gold);
  border-color: var(--h2o-gold);
}

.h2o-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--h2o-blue);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--h2o-shadow);
}

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

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

/* Promo tiles (home page feature blocks) */
.h2o-promo-row {
  display: grid;
  gap: 0;
}

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

.h2o-promo-tile {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

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

.h2o-promo-tile:hover {
  box-shadow: var(--h2o-shadow);
  text-decoration: none;
  color: inherit;
}

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

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

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

.h2o-promo-tile__body h3 {
  margin: 0 0 0.35rem;
  color: var(--h2o-blue);
  font-size: 1.05rem;
}

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

.h2o-promo-tile__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 700;
  color: var(--h2o-red);
  font-size: 0.88rem;
  text-transform: uppercase;
}

/* Page hero (inner pages) */
.h2o-page-hero {
  background: linear-gradient(180deg, var(--h2o-blue) 0%, var(--h2o-blue-dark) 100%);
  color: #fff;
  padding: 2.25rem 0;
  border-bottom: 4px solid var(--h2o-gold);
}

.h2o-page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.h2o-page-hero .h2o-hero__lead {
  color: #d4e6f8;
  margin: 0;
  max-width: 52ch;
}

.h2o-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--h2o-gold);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

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

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

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

.h2o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  border: 2px solid transparent;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}

.h2o-btn:hover {
  text-decoration: none;
}

.h2o-btn--primary {
  background: var(--h2o-red);
  color: #fff;
  border-color: var(--h2o-red);
}

.h2o-btn--primary:hover {
  background: var(--h2o-red-dark);
  border-color: var(--h2o-red-dark);
  color: #fff;
}

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

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

.h2o-section {
  padding: 2.5rem 0 3rem;
}

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

.h2o-section h1,
.h2o-section h2 {
  margin-top: 0;
  color: var(--h2o-blue);
}

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

.h2o-section-title h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

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

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

.h2o-card {
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  border-radius: var(--h2o-radius);
  padding: 0;
  box-shadow: var(--h2o-shadow);
  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.15rem 1.25rem;
}

.h2o-card h3 {
  margin: 0 0 0.35rem;
  color: var(--h2o-blue);
}

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

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

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

.h2o-about__photo {
  border-radius: var(--h2o-radius);
  overflow: hidden;
  border: 3px solid var(--h2o-border);
}

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

/* Footer */
.h2o-footer {
  background: var(--h2o-blue-dark);
  color: #c8daf0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.h2o-footer a {
  color: #e8f3ff;
}

.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: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

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

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

.h2o-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.h2o-promo-banner {
  background: var(--h2o-red);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.h2o-promo-banner a {
  color: #fff;
  text-decoration: underline;
}

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

.h2o-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--h2o-red);
  margin: 0 0 0.5rem;
}

.h2o-contact-card {
  max-width: 40rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
}

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

.h2o-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--h2o-blue);
  font-size: 0.9rem;
}

.h2o-field input,
.h2o-field textarea,
.h2o-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--h2o-border);
  background: #fff;
  color: var(--h2o-text);
  font: inherit;
}

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

.h2o-contact-thanks {
  color: var(--h2o-blue);
  font-weight: 700;
}

.h2o-portal-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--h2o-radius);
  background: var(--h2o-blue-light);
  border: 1px solid var(--h2o-border);
  color: var(--h2o-muted);
  font-size: 0.92rem;
}

.h2o-locations-map {
  width: 100%;
  height: min(420px, 55vh);
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--h2o-radius);
  border: 2px solid var(--h2o-border);
  z-index: 1;
}

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

/* —— Staff portal (matches public marketing theme) —— */
body.h2o-portal .h2o-portal__main {
  min-height: 50vh;
  padding: 0 0 3rem;
}

.h2o-portal-bar {
  background: var(--h2o-blue-light);
  border-bottom: 2px solid var(--h2o-blue);
}

.h2o-portal-card {
  max-width: 40rem;
  margin: 2rem auto 0;
  background: var(--h2o-surface);
  border: 1px solid var(--h2o-border);
  border-radius: var(--h2o-radius);
  padding: 1.75rem;
  box-shadow: var(--h2o-shadow);
}

body.h2o-portal.page-portal-login .h2o-portal-card,
body.h2o-portal.page-kiosk-login .h2o-portal-card,
body.h2o-portal.page-signup .h2o-portal-card,
body.h2o-portal.page-signup-error .h2o-portal-card {
  margin-top: 0;
}

body.h2o-portal .h2o-portal-card h1,
body.h2o-portal .h2o-portal-toolbar h1,
body.h2o-portal .h2o-detail-section h2 {
  color: var(--h2o-blue);
}

body.h2o-portal .h2o-grid .h2o-card {
  padding: 1.15rem 1.25rem;
}

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

.h2o-portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

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

.h2o-portal-error {
  color: var(--h2o-red-dark);
  font-weight: 600;
}

.h2o-btn--lg {
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  width: 100%;
}

.h2o-qr-card {
  max-width: 20rem;
  margin: 1.5rem 0;
  text-align: center;
}

.h2o-qr-image {
  display: block;
  margin: 1rem auto 0;
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
}

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

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

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

.h2o-portal-nav a {
  color: var(--h2o-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

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

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

.h2o-search-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--h2o-border);
  background: #fff;
  color: var(--h2o-text);
  font: inherit;
}

.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: 0.85rem 1rem;
  border-radius: var(--h2o-radius);
  border: 1px solid var(--h2o-border);
  text-decoration: none;
  color: var(--h2o-text);
  background: var(--h2o-surface);
}

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

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

.h2o-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.h2o-breadcrumb a {
  color: var(--h2o-muted);
}

.h2o-reward-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--h2o-radius);
  background: #e8f5ee;
  border: 1px solid #3d9e6a;
  color: #1e6b42;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.h2o-detail-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--h2o-border);
}

.h2o-detail-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

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

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

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

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

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

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

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

.h2o-stat {
  padding: 0.85rem 1rem;
  border-radius: var(--h2o-radius);
  border: 1px solid var(--h2o-border);
  background: var(--h2o-surface);
  text-align: center;
  box-shadow: var(--h2o-shadow);
}

.h2o-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--h2o-red);
}

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

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

.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.5rem 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);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  text-decoration: underline;
}

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

.h2o-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.h2o-settings-tabs button {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--h2o-border);
  background: var(--h2o-surface);
  color: var(--h2o-muted);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

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

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

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

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

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

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

body.h2o-portal.page-marketing .h2o-portal-card {
  max-width: 920px;
}

.h2o-page-hero--portal {
  padding: 1.75rem 0;
}

.h2o-page-hero--portal .h2o-hero__lead {
  color: #d4e6f8;
}

.h2o-marketing-filters {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

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

@media (max-width: 720px) {
  .h2o-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .h2o-nav {
    justify-content: center;
  }

  .h2o-carousel__arrow {
    display: none;
  }
}
