/* ============================================================
   Good Water Co — goodwaterla.com
   Shared design system CSS
   ============================================================ */

:root {
  --teal: #0E7C86;
  --teal-dark: #0B646C;
  --teal-light: #E5F2F1;
  --navy: #10242E;
  --marsh: #7FC4CB;
  --mist: #F5F9F8;
  --amber: #C4622D;
  --amber-light: #FDEDE7;
  --ink-muted: #4B5B63;
  --border: #E7EDEC;
  --border-strong: #DCE4E6;
  --success: #3FA867;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 12px 30px rgba(16,36,46,0.10);
  --shadow-soft: 0 4px 16px rgba(16,36,46,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Header / Nav ---------------- */
header.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 100; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; line-height: 1.05; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo .l2 { color: var(--teal); font-weight: 700; letter-spacing: 0.3px; }

nav.links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
nav.links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.phone-link { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; color: var(--navy); white-space: nowrap; }
.phone-link svg { width: 16px; height: 16px; color: var(--teal); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 30px; font-weight: 700; font-size: 14px; border: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 8px 20px rgba(14,124,134,0.28); }
.btn-outline { background: #fff; border: 1.5px solid var(--border-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-white { background: #fff; color: var(--teal); }
.btn-white:hover { background: var(--mist); }
.btn-block { width: 100%; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  nav.links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .phone-link.desktop-only { display: none; }
}

/* Mobile menu panel */
.mobile-menu { display: none; flex-direction: column; gap: 2px; background: #fff; border-top: 1px solid var(--border); padding: 10px 0 18px 0; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 24px; font-weight: 600; font-size: 15px; border-radius: 8px; }
.mobile-menu a:hover { background: var(--mist); color: var(--teal); }
.mobile-menu .mm-phone { padding: 12px 24px; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.mobile-menu .mm-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { padding: 16px 0; font-size: 12.5px; color: var(--ink-muted); }
.breadcrumbs a { color: var(--ink-muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { margin: 0 6px; color: #C4CDD0; }
.breadcrumbs .current { color: var(--navy); font-weight: 700; }

/* ---------------- Hero ---------------- */
.hero { background: var(--mist); padding: 52px 0 64px 0; }
.hero-grid { display: flex; gap: 50px; align-items: center; }
.hero-left { flex: 1.1; min-width: 0; }
.hero-right { flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border-strong); border-radius: 20px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); margin-bottom: 22px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; }

.hero h1 { font-size: 44px; line-height: 1.14; font-weight: 800; margin: 0 0 18px 0; color: var(--navy); }
.hero p.lead { font-size: 16px; color: var(--ink-muted); max-width: 480px; margin: 0 0 26px 0; line-height: 1.55; }
.cta-row { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.trust-row span::before { content: "✓ "; color: var(--teal); }

.hero-card { background: linear-gradient(160deg, var(--marsh), var(--teal-dark)); border-radius: var(--radius-lg); padding: 30px; min-height: 400px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-card svg.bg-icon { position: absolute; right: -30px; bottom: -30px; width: 260px; height: 260px; opacity: 0.18; }
.steps-card { background: #fff; border-radius: 14px; padding: 20px; max-width: 270px; box-shadow: var(--shadow-card); }
.steps-card .k { font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 10px; }
.step { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; font-weight: 600; }
.step .num { width: 20px; height: 20px; border-radius: 50%; background: var(--mist); color: var(--teal); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Page hero (interior pages) */
.page-hero { background: var(--mist); padding: 40px 0 48px 0; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: 38px; line-height: 1.16; font-weight: 800; margin: 0 0 14px 0; max-width: 720px; }
.page-hero p.lead { font-size: 16px; color: var(--ink-muted); max-width: 640px; margin: 0; line-height: 1.55; }

/* ---------------- Trust strip ---------------- */
.strip { background: #fff; border-bottom: 1px solid var(--border); padding: 20px 0; }
.strip-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; font-weight: 700; color: var(--navy); }
.strip-row div { display: flex; align-items: center; gap: 8px; }

/* ---------------- Sections ---------------- */
section.block { padding: 60px 0; }
.block-tight { padding: 40px 0; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-teal { background: var(--teal); color: #fff; }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
h2.section-title { font-size: 29px; font-weight: 800; margin: 0 0 14px 0; max-width: 620px; line-height: 1.22; }
p.section-lead { font-size: 15px; color: var(--ink-muted); max-width: 600px; line-height: 1.6; margin: 0 0 34px 0; }

/* ---------------- Cards ---------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--mist); border-radius: var(--radius-md); padding: 24px; }
.card h3 { font-size: 16px; margin: 0 0 8px 0; }
.card p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; margin: 0; }

.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sys-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.sys-card:hover { box-shadow: var(--shadow-soft); border-color: var(--border-strong); }
.sys-card h4 { font-size: 15.5px; margin: 0 0 6px 0; }
.sys-card p { font-size: 13px; color: var(--ink-muted); margin: 0 0 14px 0; line-height: 1.55; }
.sys-card .learn { font-size: 12.5px; font-weight: 700; color: var(--teal); }

.icon-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon-badge svg { width: 22px; height: 22px; color: var(--teal); }

/* ---------------- Markets / service area band ---------------- */
.markets-band { background: var(--navy); color: #fff; padding: 56px 0; }
.markets-band .eyebrow { color: var(--marsh); }
.markets-band h2 { color: #fff; }
.markets-band p.section-lead { color: #B7C4C8; }
.market-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.market-pill { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 9px 16px; font-size: 13px; font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.market-pill:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); }

/* Location grid (service-areas hub) */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.location-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: #fff; }
.location-card h4 { font-size: 16px; margin: 0 0 8px 0; }
.location-card p { font-size: 13px; color: var(--ink-muted); margin: 0 0 14px 0; line-height: 1.55; }
.location-card .learn { font-size: 12.5px; font-weight: 700; color: var(--teal); }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--teal); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 27px; margin: 0 0 10px 0; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0 0 24px 0; font-size: 15px; }
.cta-band .btn-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-band .phone-link { color: #fff; font-weight: 700; }
.cta-band .phone-link svg { color: #fff; }

/* ---------------- Steps / process ---------------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-left: 0; }
.process-step .pnum { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.process-step h3 { font-size: 16px; margin: 0 0 8px 0; }
.process-step p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.55; margin: 0; }

/* ---------------- Testimonials ---------------- */
.testimonial-card { background: var(--mist); border-radius: var(--radius-md); padding: 24px; }
.testimonial-card .stars { color: #E5A93A; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 14px; color: var(--navy); line-height: 1.6; margin: 0 0 14px 0; }
.testimonial-card .who { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }

.reviews-empty-note { background: #fff; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 28px; text-align: center; color: var(--ink-muted); font-size: 14px; }

/* ---------------- FAQ (native details/summary, no JS needed) ---------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--teal); flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 0 18px 0; font-size: 14px; color: var(--ink-muted); line-height: 1.6; max-width: 700px; }

/* ---------------- Tables ---------------- */
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 20px 0; }
table.data-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 14px; font-weight: 700; font-size: 12.5px; }
table.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--ink-muted); }
table.data-table tr:nth-child(even) td { background: var(--mist); }
table.data-table td strong { color: var(--navy); }

/* ---------------- Callouts ---------------- */
.callout { border-radius: var(--radius-sm); padding: 16px 20px; margin: 8px 0 24px 0; font-size: 14px; line-height: 1.55; }
.callout.info { background: var(--teal-light); border-left: 4px solid var(--teal); color: #123B3F; }
.callout.warn { background: var(--amber-light); border-left: 4px solid var(--amber); color: #6B2E1E; }
.callout .tag { display: block; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: 11px; margin-bottom: 6px; }

/* ---------------- Forms ---------------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--navy); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,134,0.12); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12px; color: var(--ink-muted); margin-top: 10px; text-align: center; }
.form-note a { color: var(--teal); font-weight: 600; }

/* ---------------- Two-col content ---------------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.side-card { background: var(--mist); border-radius: var(--radius-md); padding: 24px; }
.side-card h4 { font-size: 14px; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px; color: var(--teal); }
.side-card ul { list-style: none; }
.side-card li { padding: 8px 0; border-bottom: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 600; }
.side-card li:last-child { border-bottom: none; }

.prose h2 { font-size: 22px; margin: 32px 0 12px 0; }
.prose h3 { font-size: 17px; margin: 22px 0 10px 0; }
.prose p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.7; margin: 0 0 14px 0; }
.prose ul { margin: 0 0 16px 0; padding-left: 20px; }
.prose li { font-size: 14.5px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 6px; }

/* ---------------- Stat tiles ---------------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 36px 0; }
.stat-tile { background: var(--mist); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat-tile .num { font-size: 26px; font-weight: 800; color: var(--teal); }
.stat-tile .label { font-size: 11.5px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }

/* ---------------- Footer ---------------- */
footer.site-footer { background: var(--navy); color: #C6D2D5; padding: 56px 0 28px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: #fff; margin-bottom: 14px; }
.footer-logo svg { width: 30px; height: 30px; }
.footer-logo .l2 { color: var(--marsh); }
.footer-col h5 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: #fff; margin: 0 0 16px 0; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: #B7C4C8; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 13.5px; color: #94A6AB; line-height: 1.6; max-width: 280px; margin-bottom: 16px; }
.footer-contact { font-size: 13.5px; color: #B7C4C8; line-height: 1.9; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #7F929700; }
.footer-bottom, .footer-bottom a { color: #94A6AB; }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 18px; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden-mobile { display: block; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 36px; }
  .cards-3, .systems-grid, .location-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  h2.section-title { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
  .cards-3, .systems-grid, .location-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .strip-row { justify-content: flex-start; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hidden-mobile { display: none; }
}
