/* ============================================================
   Well Water Fix — Design System
   Forest Green + Amber | Syne + DM Sans + Space Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/* ---- Tokens ---- */
:root {
  --green:        #1a3d2b;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --amber:        #d97706;
  --amber-hover:  #b45309;
  --amber-light:  #fef3c7;
  --white:        #ffffff;
  --bg:           #f8faf9;
  --bg-alt:       #f0f7f2;
  --border:       #d4e6da;
  --text:         #1a2e22;
  --text-muted:   #4a6358;
  --text-light:   #7a9688;
  --red:          #dc2626;
  --red-light:    #fef2f2;
  --shadow:       0 4px 16px rgba(26,61,43,.10);
  --shadow-sm:    0 2px 8px rgba(26,61,43,.07);
  --radius:       8px;
  --radius-lg:    14px;
  --transition:   .18s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.75; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { color: var(--text-muted); line-height: 1.7; margin-bottom: .3rem; }

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

/* ---- Disclosure Bar ---- */
.disclosure-bar {
  background: var(--green);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  text-align: center;
  padding: 7px 16px;
}
.disclosure-bar a { color: var(--green-light); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--green); }
.nav-cta {
  background: var(--amber) !important;
  color: white !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--amber-hover) !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  padding-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---- Review Hero ---- */
.review-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 48px 0 0;
  color: white;
}
.review-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.review-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.review-title-row h1 { color: white; margin-bottom: 12px; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.review-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.review-overall {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  text-align: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.review-overall-num {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.review-overall-stars { font-size: 1.2rem; color: var(--amber); margin: 4px 0; }
.review-overall-label { font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Review Body ---- */
.review-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.review-content { min-width: 0; }
.review-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
  color: var(--green);
}
.review-content ul { margin: 0 0 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.review-content li { font-size: 15px; color: var(--text-muted); list-style: disc; line-height: 1.65; }
.review-content p { font-size: 15px; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-green  { background: var(--green-pale); color: var(--green); }
.badge-amber  { background: var(--amber-light); color: var(--amber-hover); }
.badge-navy   { background: var(--green); color: white; }

/* ---- Verdict Box ---- */
.verdict-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
}
.verdict-box-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-mid);
  margin-bottom: 8px;
}
.verdict-box h2 {
  font-size: 1.2rem !important;
  margin: 0 0 10px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  color: var(--text) !important;
}
.verdict-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.verdict-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.verdict-col h4 { font-family: 'Syne',sans-serif; font-size: .85rem; margin-bottom: 8px; }
.verdict-col li { font-size: 14px; color: var(--text-muted); padding-left: 16px; position: relative; line-height: 1.5; }
.verdict-col li::before { content: '•'; position: absolute; left: 0; }
.verdict-pros li::before { color: #16a34a; }
.verdict-cons li::before { color: var(--red); }

/* ---- Spec Table ---- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
}
.spec-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table td:first-child {
  font-weight: 600;
  width: 42%;
  background: var(--bg-alt);
  color: var(--text);
}
.spec-table td:last-child { color: var(--text-muted); }
.spec-table tr:last-child td { border-bottom: none; }

/* ---- Rating Bars ---- */
.rating-breakdown { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.rating-row { display: flex; align-items: center; gap: 12px; }
.rating-label { font-size: 14px; font-weight: 500; width: 160px; flex-shrink: 0; }
.rating-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-bar { height: 100%; background: linear-gradient(90deg, var(--green-mid), var(--green-light)); border-radius: 4px; transition: width .6s ease; }
.rating-score { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; width: 28px; text-align: right; color: var(--green); }

/* ---- Stage Grid ---- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.stage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stage-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.stage-card h4 { font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.stage-card p { font-size: 13px; margin: 0; color: var(--text-muted); line-height: 1.55; }
.stage-life { font-size: 11px; color: var(--green-mid); font-weight: 600; margin-top: 6px; }

/* ---- Buy Box ---- */
.buy-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.buy-box-left h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.buy-box-price {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.buy-box-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--green-mid); color: white; }
.btn-primary:hover { background: var(--green); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: var(--amber-hover); color: white; transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--green); }
.btn-amazon {
  background: #FF9900;
  color: #111 !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  white-space: nowrap;
  width: auto;
  max-width: fit-content;
  transition: all var(--transition);
  text-decoration: none !important;
  border: none;
  flex-shrink: 0;
}
.btn-amazon:hover { background: #e68800; transform: translateY(-1px); box-shadow: var(--shadow); color: #111 !important; }
.review-content a.btn-amazon { color: #111 !important; text-decoration: none !important; align-self: flex-start; }

/* ---- Who it's for grid ---- */
.for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.for-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.for-card.good { border-left: 3px solid #16a34a; }
.for-card.bad  { border-left: 3px solid var(--red); }
.for-card h4 { font-size: .9rem; margin-bottom: 10px; }
.for-card ul { margin: 0 0 0 16px; display: flex; flex-direction: column; gap: 5px; }
.for-card li { font-size: 13px; color: var(--text-muted); list-style: disc; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin: 20px 0; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon { font-size: 20px; font-weight: 400; color: var(--green-mid); flex-shrink: 0; transition: transform var(--transition); }
.faq-icon.open { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 16px; font-size: 15px; color: var(--text-muted); line-height: 1.75; }
.faq-answer.open { display: block; }

/* ---- Sidebar ---- */
.review-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.toc-list a:hover { background: var(--bg-alt); color: var(--green); }
.stars { color: var(--amber); }

/* ---- Homepage Hero ---- */
.home-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 60%, #3a8f60 100%);
  padding: 80px 0 60px;
  color: white;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-inner { position: relative; max-width: 800px; margin: 0 auto; text-align: center; padding: 0 24px; }
.home-hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; }
.home-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Problem Cards ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
}
.problem-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green-light); }
.problem-icon { font-size: 2rem; margin-bottom: 10px; }
.problem-card h3 { font-size: 1rem; color: var(--green); margin-bottom: 6px; }
.problem-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,.7);
  padding: 48px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; margin-top: 12px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }
.footer-disclaimer {
  background: rgba(0,0,0,.15);
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  padding: 12px 24px;
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .review-body { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .verdict-pros-cons { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .for-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .review-title-row { flex-direction: column; }
  .review-overall { align-self: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stage-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
