/* ================================
   Water Freedom System — Design System
   ================================ */

:root {
  --ink: #0B2A3D;
  --ink-soft: #33495a;
  --water: #1C6E8C;
  --water-dark: #134f65;
  --aqua: #5FB4C4;
  --aqua-light: #E4F2F4;
  --sand: #F6F3EC;
  --sand-deep: #EDE8DB;
  --sun: #E8A33D;
  --sun-dark: #C6821F;
  --white: #FFFFFF;
  --border: #DCD5C4;
  --text: #17242D;
  --text-soft: #4B5A63;
  --success: #2E7D4F;
  --focus: #E8A33D;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 12px 30px rgba(11, 42, 61, 0.08);
  --shadow-deep: 0 24px 60px rgba(11, 42, 61, 0.16);

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-data: ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--water-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-logo img { height: 40px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover { color: var(--water); }

.nav-cta {
  background: var(--sun);
  color: var(--ink) !important;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(230, 163, 61, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.nav-cta:hover {
  background: var(--sun-dark);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 20px rgba(230, 163, 61, 0.55);
  animation-play-state: paused;
}

.nav-cta:active { transform: translateY(0) scale(0.97); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Disclosure bar ---------- */
.disclosure-bar {
  background: var(--ink);
  color: #cfe0e8;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
}

.disclosure-bar a { color: #cfe0e8; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--aqua-light) 0%, var(--sand) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--water-dark);
  background: var(--aqua-light);
  border: 1px solid var(--aqua);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 52ch;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text);
}

.hero-points li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--water);
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn:active { transform: translateY(0) scale(0.96); }

.btn-primary {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(230, 163, 61, 0.45);
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 26px rgba(230, 163, 61, 0.55);
  background: var(--sun-dark);
  animation-play-state: paused;
}

.btn-secondary {
  background: transparent;
  color: var(--water-dark);
  border: 2px solid var(--water);
}

.btn-secondary:hover {
  background: var(--aqua-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(95, 180, 196, 0.35);
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(230, 163, 61, 0.45); }
  50% { box-shadow: 0 6px 24px rgba(230, 163, 61, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-cta { animation: none; transition: none; }
}

.hero-disclosure {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 14px;
}

.hero-media {
  position: relative;
}

.hero-media-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-deep);
  text-align: center;
}

.hero-media-card img { margin: 0 auto; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--aqua-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
}
.rating-badge .stars { color: var(--sun-dark); letter-spacing: 1px; font-size: 1rem; }
.rating-badge .rating-value { font-weight: 700; }
.rating-badge .rating-caption { color: var(--text-soft); font-size: 0.85rem; }
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 20px; }
.bonus-grid figure { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.bonus-grid img { width: 100%; height: auto; display: block; }
.bonus-grid figcaption { padding: 10px 12px; font-size: 0.88rem; color: var(--text-soft); }

.hero-badges {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.hero-badges img { height: 42px; width: auto; }

/* ---------- Dew point signature strip ---------- */
.dew-strip {
  background: var(--ink);
  padding: 40px 0;
}

.dew-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
}

.dew-strip h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.dew-strip p {
  color: #b9cdd6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.dew-gauge {
  background: var(--water-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.dew-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun) 0%, var(--aqua) 55%, var(--water) 100%);
  margin: 22px 0 10px;
}

.dew-marker {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 26px;
  background: var(--white);
}

.dew-marker::after {
  content: attr(data-label);
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #cfe0e8;
  white-space: nowrap;
  font-family: var(--font-data);
}

.dew-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8fa9b4;
  font-family: var(--font-data);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-narrow {
  max-width: 780px;
  margin: 0 auto;
}

.section-alt { background: var(--white); }

.quick-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -32px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.summary-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--water);
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-item dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9cdd6;
  padding: 48px 0 24px;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a { color: #cfe0e8; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-fine {
  border-top: 1px solid #23414f;
  padding-top: 20px;
  color: #7f97a1;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
}

.faq-question:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--water);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.is-open .faq-question::after { content: "\2212"; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  padding: 0 4px 18px;
  color: var(--text-soft);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 60;
  box-shadow: 0 -8px 24px rgba(11,42,61,0.12);
}

.sticky-cta.is-visible { display: flex; }
.sticky-cta.is-dismissed { display: none !important; }

.sticky-cta .btn { flex: 1; text-align: center; padding: 13px 16px; }

.sticky-cta-dismiss {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

@media (min-width: 861px) {
  .sticky-cta { display: none !important; }
}

/* ---------- Product directory cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.product-card img {
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.product-card .category-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--water);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--text-soft); font-size: 0.94rem; flex-grow: 1; }
.product-card .btn { margin-top: 12px; width: 100%; text-align: center; }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .dew-strip-inner { grid-template-columns: 1fr; }
  .quick-summary { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .site-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ---------- Feature icon grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
}

.feature-card img { width: 56px; height: 56px; margin-bottom: 14px; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.feature-card p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }

/* ---------- Related products row (with images) ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.related-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--sand);
  padding: 12px;
}

.related-card .related-body { padding: 14px 16px 18px; }

.related-card h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .quick-summary { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
  .btn { text-align: center; }
}

