/* =========================================================
   High Quality H2O Co. — storefront stylesheet
   Top-nav layout, Inter body + Space Grotesk display,
   teal accent on white, alternating section bands, slim footer.
   Deliberately divergent from the boutique-sidebar Steve canonical.
   ========================================================= */

:root {
  /* Palette */
  --paper: #ffffff;
  --band:  #f7f9fa;
  --ink:   #0F1419;
  --muted: #5b6770;
  --line:  #e6eaee;
  --teal:  #1f7a8c;
  --teal-dark: #155f6d;
  --teal-tint: rgba(31,122,140,0.08);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Sizing */
  --maxw: 1200px;
  --radius: 6px;

  /* Effects */
  --shadow-soft: 0 1px 0 rgba(15,20,25,0.02);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0;
}

/* =========================================================
   TOPBAR — thin announcement strip above the nav
   ========================================================= */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  font-size: 12.5px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}
.topbar .sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--teal);
  font-weight: 600;
}

/* =========================================================
   NAV — horizontal sticky top nav, logo center, links split
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  gap: 24px;
}
.site-nav .nav-left,
.site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-nav .nav-left { justify-content: flex-start; }
.site-nav .nav-right { justify-content: flex-end; }
.site-nav a {
  color: var(--ink);
  transition: color 120ms ease;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover,
.site-nav a.active { color: var(--teal); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
}

/* Center wordmark */
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  position: relative;
  padding-bottom: 4px;
}
.wordmark .dot {
  color: var(--teal);
  margin: 0 4px;
  font-weight: 600;
}
.wordmark .h2o sub {
  font-size: 0.7em;
  vertical-align: baseline;
  letter-spacing: 0;
}
.wordmark::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--teal);
  margin: 4px auto 0;
}

/* Cart icon */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.cart-link svg { display: block; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 880px) {
  .site-nav .inner {
    grid-template-columns: auto 1fr auto;
    height: 64px;
    padding: 0 18px;
  }
  .site-nav .nav-left,
  .site-nav .nav-right {
    display: none;
  }
  .site-nav .nav-left.mobile-open,
  .site-nav .nav-right.mobile-open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 16px;
  }
  .site-nav .nav-left.mobile-open a,
  .site-nav .nav-right.mobile-open a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .menu-btn { display: inline-flex; }
  .wordmark { font-size: 16px; letter-spacing: 0.14em; }
}

/* =========================================================
   CONTAINERS / utilities
   ========================================================= */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) { .container { padding: 0 18px; } }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}

.section { padding: 72px 0; }
.section.band { background: var(--band); }
.section.tight { padding: 48px 0; }

/* =========================================================
   BUTTONS — outline default; filled-teal only for primary CTAs
   ========================================================= */
.btn {
  display: inline-block;
  padding: 11px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  text-align: center;
}
.btn:hover { background: var(--teal); color: #fff; }

.btn.solid {
  background: var(--teal);
  color: #fff;
}
.btn.solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn.wide { width: 100%; padding: 14px 22px; }

/* Outline-on-dark variant for hero */
.btn.on-dark {
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}
.btn.on-dark:hover { background: #fff; color: var(--teal); border-color: #fff; }

/* =========================================================
   HERO — full-bleed image with overlay, centered white text
   ========================================================= */
.hero-fullbleed {
  position: relative;
  min-height: 78vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-fullbleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,25,0.45) 0%, rgba(15,20,25,0.68) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 64px 32px;
}
.hero-inner .eyebrow {
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3em;
}
.hero-inner h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero-inner p {
  font-size: 17px;
  margin: 0 auto 32px;
  max-width: 560px;
  color: rgba(255,255,255,0.92);
}
@media (max-width: 720px) {
  .hero-fullbleed { min-height: 62vh; }
  .hero-inner { padding: 40px 22px; }
}

/* =========================================================
   MAGAZINE MOSAIC — 1 large feature + 3 small, then 4-up row
   ========================================================= */
.mosaic {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 18px;
  margin-bottom: 18px;
}
.mosaic .featured {
  grid-row: span 1;
}
.mosaic .stack {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 18px;
}
.mosaic .stack .product-card .img {
  aspect-ratio: 16 / 9;
}
.mosaic-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .stack { grid-template-rows: none; grid-template-columns: 1fr 1fr 1fr; }
  .mosaic-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mosaic .stack { grid-template-columns: 1fr 1fr; }
  .mosaic-row { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   PRODUCT CARD
   Photo top, badge top-right with category, title medium,
   price bottom-left, Add to cart inline bottom-right.
   Flat 1px border, no shadow. Teal underline-on-hover accent.
   ========================================================= */
.product-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease;
}
.product-card:hover { border-color: var(--teal); }
.product-card .img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #eef2f5;
  position: relative;
}
.product-card.featured .img {
  aspect-ratio: 4 / 3;
}
.product-card .cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--paper);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.product-card .body {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
  flex: 1;
}
.product-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.product-card .price {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
}
.product-card .price .currency { color: var(--muted); font-weight: 500; font-size: 12px; margin-right: 1px; }
.product-card .add {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 140ms ease;
}
.product-card:hover .add { border-bottom-color: var(--teal); }

.product-card.featured .name { font-size: 22px; line-height: 1.2; }
.product-card.featured .body { padding: 24px 24px 22px; }

/* =========================================================
   VALUES THREE-UP STRIP (mid-page)
   ========================================================= */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.value .ico {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 50%;
}
.value h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.value p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   EDITORIAL strip — single image + paragraph
   ========================================================= */
.editorial {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 48px;
  align-items: center;
}
.editorial .pic {
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
  background-color: #eef2f5;
  border-radius: var(--radius);
}
.editorial .copy h2 {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.15;
}
.editorial .copy p {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.7;
}
.editorial .copy .btn { margin-top: 10px; }
@media (max-width: 880px) {
  .editorial { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   SECTION HEADER (centered or left-aligned)
   ========================================================= */
.sec-head {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: 30px;
  margin: 0;
}
.sec-head .lead {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 420px;
}

/* =========================================================
   SHOP page — filter pills + grid
   ========================================================= */
.shop-head {
  text-align: center;
  padding: 56px 0 32px;
}
.shop-head h1 {
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 12px;
}
.shop-head p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 40px;
}
.shop-filters button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
}
.shop-filters button:hover { border-color: var(--teal); color: var(--teal); }
.shop-filters button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 0;
}
.product-detail .img-wrap {
  background: var(--band);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-detail .img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-detail .copy .eyebrow { color: var(--teal); }
.product-detail .copy h1 {
  font-size: 32px;
  font-weight: 500;
  margin: 6px 0 14px;
  letter-spacing: -0.01em;
}
.product-detail .copy .price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 22px;
}
.product-detail .copy p {
  color: var(--ink);
  white-space: pre-line;
}
.product-detail .features {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.product-detail .features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-detail .features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex: 0 0 6px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.qty-stepper button {
  width: 38px;
  height: 44px;
  border: 0;
  background: var(--paper);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  color: var(--ink);
}
.qty-stepper input {
  width: 48px;
  height: 44px;
  border: 0;
  text-align: center;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
}

/* =========================================================
   CART / CHECKOUT / FORMS
   ========================================================= */
.cart-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .img {
  width: 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  background-color: #eef2f5;
  border: 1px solid var(--line);
}
.cart-row .name { font-weight: 500; }
.cart-row .price { font-weight: 600; }
.cart-row .qty { display: flex; align-items: center; gap: 6px; }
.cart-row .qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.cart-totals {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 22px;
}
.cart-totals .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14.5px;
}
.cart-totals .row.total {
  font-size: 18px;
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.cart-totals .row.total .amt { color: var(--teal); }
.cart-totals .free-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--teal-tint);
  border-radius: 4px;
  color: var(--teal-dark);
}

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-row .req { color: var(--teal); margin-left: 2px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: -1px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

/* =========================================================
   PAYMENT METHODS (checkout)
   ========================================================= */
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.paymethod {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--paper);
  transition: border-color 120ms ease, background 120ms ease;
}
.paymethod:hover { border-color: var(--teal); }
.paymethod input[type="radio"] {
  margin: 4px 0 0;
  accent-color: var(--teal);
  flex: 0 0 auto;
}
.paymethod:has(input[type="radio"]:checked) {
  border-color: var(--teal);
  background: var(--teal-tint);
}
.paymethod-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.paymethod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.paymethod-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.paymethod-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.paymethod-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.cardmark {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  line-height: 1;
}
.cardmark.visa   { color: #1A1F71; border-color: #1A1F71; }
.cardmark.mc     { color: #EB001B; border-color: #EB001B; }
.cardmark.amex   { color: #2E77BB; border-color: #2E77BB; }
.cardmark.disc   { color: #FF6000; border-color: #FF6000; }
.cardmark.paypal { color: #003087; border-color: #003087; background: #ffc439; }

/* =========================================================
   PAGE BODY (about / contact / legal)
   ========================================================= */
.page-body {
  max-width: 760px;
  margin: 56px auto;
  padding: 0 32px;
}
.page-body h1 {
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.page-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.page-body p { color: var(--ink); margin: 0 0 14px; line-height: 1.7; font-size: 15.5px; }
.page-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.page-body ul { padding-left: 22px; }
.page-body ul li { margin-bottom: 6px; }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty {
  text-align: center;
  padding: 72px 24px;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 24px;
}

/* =========================================================
   FOOTER — single slim strip, monotone grey
   ========================================================= */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.site-footer .fb {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.site-footer .fb .dot { color: var(--teal); margin: 0 3px; }
.site-footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--teal); }
.site-footer .addr {
  text-align: right;
  font-size: 12.5px;
}
@media (max-width: 720px) {
  .site-footer .inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .site-footer .addr { text-align: center; }
  .site-footer nav { justify-content: center; }
}
