/* ==========================================================================
   Hoosier Soft Water Company — shared stylesheet for every page
   1. Tokens          5. Layout primitives
   2. Reset/base      6. Home page sections
   3. Typography      7. Subpage sections
   4. Header/nav      8. Forms, footer, responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
/* Palette sampled from the Hoosier Soft Water logo: deep navy + two blues. */
:root {
  --ink: #0a2444;          /* logo navy — body text, dark panels */
  --ink-deep: #071b33;     /* footer */
  --ink-soft: #3f5f7a;     /* lead paragraphs on light backgrounds */
  --muted: #55697c;        /* secondary text (4.8:1 on white) */
  --paper: #f7faff;
  --white: #fff;
  --brand: #2870b0;        /* logo mid blue — buttons (5.1:1 with white) */
  --brand-dark: #1b5386;   /* hover + text-on-light (7.2:1 on white) */
  --brand-light: #5898c8;  /* logo light blue */
  --brand-tint: #e2efff;
  --accent: #5898c8;       /* decorative rules only — too light for text */
  --line: #d8e5f4;

  --shadow: 0 22px 58px rgba(10, 36, 68, .13);
  --shadow-sm: 0 8px 18px rgba(40, 112, 176, .26);
  --radius: 20px;
  --radius-sm: 10px;

  --nav-h: 76px;
  --ease: cubic-bezier(.22, .8, .28, 1);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Lexend, var(--font-body);

  /* Light-only by design: the logo is built for light backgrounds. Declaring
     this stops browsers auto-darkening form controls into a mismatched theme. */
  color-scheme: light;
}

/* 2. Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Anchors must clear the sticky header. */
:target { scroll-margin-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }

/* Removes the ~300ms tap delay and the grey flash on iOS/Android. */
a, button, summary, label, input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* One visible focus treatment for the whole site. */
:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(2.65rem, 6vw, 5.2rem); max-width: 790px; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); margin-bottom: 18px; }
h3 { font-size: 1.22rem; margin-bottom: 10px; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }

/* 4. Header / navigation --------------------------------------------------- */
.announcement {
  background: var(--ink);
  color: #dbe8f5;
  font-size: .83rem;
  text-align: center;
  padding: 9px 20px;
}
.announcement strong { color: #fff; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 255, .92);
  border-bottom: 1px solid rgba(216, 229, 244, .9);
  backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-heading); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
/* Header shows the emblem plus the name as live text — the stacked lockup's
   wordmark is illegible at nav height. logo-lockup.png is the full version. */
.brand-logo { width: auto; height: 41px; flex: none; }
.footer-brand .brand-logo { height: 38px; }

.site-nav { display: flex; align-items: center; gap: 24px; color: #40597a; font-size: .9rem; font-weight: 700; }
.site-nav a:hover { color: var(--brand); }
/* Marks the current page for sighted users; aria-current carries it to AT. */
.site-nav a[aria-current="page"] { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Click-to-call. margin-left:auto pushes this and everything after it right,
   so the brand stays left without wrapping the header in another element. */
.nav-phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--brand-dark);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-phone:hover { border-color: var(--brand); background: var(--brand-tint); }
.nav-phone:active { background: #d3e6fa; transform: scale(.97); }
.nav-phone svg { flex: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-toggle:active { background: var(--brand-tint); }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 5. Buttons + layout primitives ------------------------------------------- */
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.nav-cta, .button {
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover, .button:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
/* Touch devices never fire :hover, so pressed feedback has to be its own state.
   Kept short (~80ms) so the response feels immediate under a finger. */
.nav-cta:active, .button:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .08s; }
.button.large { padding: 16px 22px; font-size: 1rem; }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid #b2c9e8; }
.button.secondary:hover { background: #fff; border-color: var(--brand); color: var(--brand-dark); }
.button.secondary:active { background: var(--brand-tint); }
.button.light { background: var(--white); color: var(--brand-dark); }
.button.light:hover { background: var(--brand-tint); }
.button[disabled] { opacity: .6; pointer-events: none; }

section { padding: 100px 0; }
.section-heading { max-width: 680px; margin-bottom: 45px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; max-width: 590px; }

/* 6. Home page ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 94px 0 104px; background: linear-gradient(118deg, #e6f0fc 0%, #f7fbff 58%, #dfeaf8 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 600px; height: 600px; top: -330px; right: -150px; background: rgba(88, 152, 200, .16); }
.hero::after { width: 400px; height: 400px; bottom: -280px; left: -210px; background: rgba(10, 36, 68, .07); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); align-items: center; gap: 78px; }
.hero h1 span { color: var(--brand); }
.hero-copy { max-width: 650px; font-size: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.micro-proof { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: #526980; font-size: .82rem; }
.check { color: var(--brand); font-weight: 900; }
.hero-call { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.hero-call a { color: var(--brand-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.hero-call a:hover { color: var(--brand); }

.price-card { position: relative; background: var(--white); border: 1px solid rgba(40, 112, 176, .3); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.price-card::after { content: ""; position: absolute; inset: 9px -9px -9px 9px; border: 1px solid rgba(88, 152, 200, .34); border-radius: 24px; z-index: -1; }
.price-label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .72rem; }
.price { font-family: var(--font-heading); font-variant-numeric: tabular-nums; color: var(--brand-dark); font-size: clamp(3.15rem, 6vw, 4.5rem); font-weight: 850; line-height: 1; letter-spacing: -.08em; margin: 13px 0 4px; }
.price-note { color: var(--muted); font-size: .86rem; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 18px; }
.price-card .button { width: 100%; }

.price-compare { margin: 21px 0 4px; padding: 15px; background: #f5f8ff; border: 1px solid #dbe7f8; border-radius: 13px; }
.compare-kicker { margin: 0 0 11px; color: var(--brand-dark); font-size: .69rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.compare-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #4c626f; font-size: .76rem; font-weight: 800; }
.compare-row strong { font-variant-numeric: tabular-nums; color: var(--ink); font-size: .98rem; letter-spacing: -.03em; }
.compare-row.ours strong { color: var(--brand-dark); }
.compare-bar { width: 100%; height: 7px; margin: 7px 0 13px; overflow: hidden; border-radius: 999px; background: #e0e9f7; }
/* Animates transform, not width: a width animation forces layout every frame. */
.compare-bar span { display: block; height: 100%; width: var(--bar-width); border-radius: inherit; transform-origin: left center; animation: bar-fill 1s var(--ease) both; }
/* Dealer bar stays a muted slate so the blue "ours" bar reads as the point. */
.compare-row.market + .compare-bar span { background: #9aafc4; }
.compare-row.ours + .compare-bar span { background: var(--brand); animation-delay: .22s; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.included-mini { display: grid; gap: 11px; margin: 0 0 23px; padding: 0; list-style: none; font-size: .9rem; }
.included-mini li { display: flex; align-items: flex-start; gap: 9px; }
.included-mini svg { flex: none; margin-top: 4px; color: var(--brand); }

/* Water texture under a 93%-opaque navy wash: adds depth without moving the
   effective background off navy, so the measured text contrast still holds.
   If webp is unsupported the gradient alone still paints, so text stays safe. */
.trust-bar {
  background:
    linear-gradient(rgba(10, 36, 68, .93), rgba(10, 36, 68, .93)),
    var(--ink) url("img/texture-water-1600.webp") center / cover no-repeat;
  color: #cfe0f0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 21px 24px; border-right: 1px solid rgba(207, 224, 240, .18); font-size: .82rem; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { font-variant-numeric: tabular-nums; display: block; color: #fff; font-size: 1rem; margin-bottom: 3px; }

.difference { background: var(--white); }
.difference-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.difference-card { background: #fff; padding: 29px 26px; }
.number { color: var(--brand-dark); font-size: .8rem; font-weight: 900; letter-spacing: .08em; margin-bottom: 34px; }
.difference-card p { color: var(--muted); font-size: .9rem; margin: 0; }

.system { background: #eef5ff; }
.system-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 80px; align-items: center; }
.system-visual {
  position: relative;
  margin: 0;
  padding: 26px 22px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, #2870b0, #071b33);
  overflow: hidden;
}

/* Flow diagram. Explains the twin-tank advantage — one tank always in service —
   which a photo of two cylinders in a basement cannot show. */
/* Photography. width/height on every <img> reserves the box before the file
   lands, so nothing shifts while loading (CLS). */
.photo-figure { margin: 0; }
.photo-figure picture { display: block; }
.photo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #e8eef6;
  box-shadow: var(--shadow);
}
/* These are AI-generated depictions, not photographs of our own jobs — the
   caption says so rather than letting the image imply otherwise. */
.photo-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}
.page-content .photo-figure { margin-top: 28px; }
.content-grid .photo-figure { grid-column: 1 / -1; }
.system-diagram-row { margin-top: 46px; }

.system-visual { overflow-x: auto; overscroll-behavior-x: contain; }
.system-diagram { display: block; width: 100%; min-width: 600px; height: auto; margin-top: 8px; }
.d-pipe { stroke: #9dc6ec; stroke-width: 7; fill: none; stroke-linecap: round; }
.d-pipe-soft { stroke: #6fe3c8; }
.d-pipe-thin { stroke-width: 3.5; stroke: rgba(190, 218, 245, .55); stroke-dasharray: 7 6; }
.d-pipe-drain { stroke: rgba(190, 218, 245, .42); }
.d-arrow { fill: #9dc6ec; }
.d-arrow-soft { fill: #6fe3c8; }
.d-arrow-drain { fill: rgba(190, 218, 245, .55); }

.d-valve { fill: #0f2f56; stroke: rgba(157, 198, 236, .5); stroke-width: 1.5; }
.d-valve-text { fill: #cfe3f8; font-size: 13px; font-weight: 800; letter-spacing: .14em; }

.d-tank { fill: rgba(255, 255, 255, .07); stroke: rgba(190, 218, 245, .45); stroke-width: 2; }
.d-tank-active { fill: rgba(157, 198, 236, .16); stroke: #9dc6ec; }
.d-resin { fill: #4a8fd0; }
.d-resin-idle { fill: rgba(190, 218, 245, .22); }
.d-tank-name { fill: #b7d2ee; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.d-sub { fill: rgba(183, 210, 238, .75); font-size: 12px; font-weight: 700; letter-spacing: .14em; }

.d-badge-on { fill: #6fe3c8; }
.d-badge-off { fill: rgba(255, 255, 255, .16); stroke: rgba(190, 218, 245, .4); stroke-width: 1; }
.d-badge-text { fill: #06301f; font-size: 12px; font-weight: 900; letter-spacing: .09em; }
.d-badge-text-off { fill: #dbe9f8; }

.d-brine { fill: rgba(255, 255, 255, .07); stroke: rgba(190, 218, 245, .45); stroke-width: 2; }
.d-label { fill: #b7d2ee; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.d-label-soft { fill: #6fe3c8; }
.d-label-drain { fill: rgba(183, 210, 238, .7); font-size: 12px; }

.visual-tag { position: absolute; left: 22px; top: 22px; color: #dcecff; font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0 0; border-top: 1px solid var(--line); }
.spec { padding: 16px 10px 0 0; border-bottom: 1px solid var(--line); min-height: 72px; }
.spec:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 18px; }
.spec:nth-child(even) { padding-left: 18px; }
.spec strong { display: block; font-size: .9rem; }
.spec span { color: var(--muted); font-size: .82rem; }

.process { background: var(--white); }
.process-grid, .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { position: relative; padding-top: 60px; }
.step::before { content: ""; position: absolute; top: 21px; left: 0; width: 100%; height: 1px; background: var(--line); }
.step-number { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 43px; height: 43px; color: #fff; background: var(--brand); border-radius: 50%; font-size: .85rem; font-weight: 850; box-shadow: 0 0 0 8px var(--white); }
.page-content .step-number { box-shadow: 0 0 0 8px var(--paper); }
.page-content.alt .step-number { box-shadow: 0 0 0 8px #eef5ff; }
.step p { color: var(--muted); font-size: .9rem; }

.pricing { background: var(--ink); color: #fff; }
.pricing .eyebrow { color: #9bc9ff; }
.pricing h2 { max-width: 550px; }
.pricing-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.pricing-intro p { color: #c3d5e6; }
.pricing-footnote { color: #a3bcd4; font-size: .78rem; }
.price-big { font-family: var(--font-heading); font-variant-numeric: tabular-nums; color: #82beff; font-size: clamp(4rem, 8vw, 6rem); font-weight: 850; line-height: .95; letter-spacing: -.08em; margin: 30px 0 22px; }
.price-details, .detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-box { border: 1px solid rgba(197, 220, 240, .22); border-radius: 15px; padding: 22px; background: rgba(255, 255, 255, .05); }
.detail-box h3 { color: #fff; font-size: 1rem; }
.detail-box ul { margin: 0; padding-left: 18px; color: #c3d5e6; font-size: .88rem; }
.detail-box li + li { margin-top: 7px; }
.detail-box.out { border-color: rgba(239, 141, 57, .55); }
.detail-box.out h3 { color: #ffc58f; }

.area { background: #f2f7ff; }
.area-grid, .faq-layout, .booking-layout { display: grid; gap: 80px; align-items: start; }
.area-grid { grid-template-columns: .8fr 1.2fr; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.area-pill { padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: #33556f; font-size: .86rem; font-weight: 700; }
.area-note { border-left: 3px solid var(--accent); padding-left: 17px; margin-top: 28px; color: var(--muted); font-size: .88rem; }

/* Service-area coverage: county > city > ZIPs, filtered live by the search box.
   The ZIPs live in the HTML (not JS) so they are crawlable and work without JS. */
.coverage-intro { max-width: 620px; margin-bottom: 22px; }
.coverage-search { position: relative; max-width: 460px; }
.coverage-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.coverage-search input {
  width: 100%;
  padding: 14px 15px 14px 44px;
  border: 1px solid #cadbf2;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.coverage-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40, 112, 176, .18); }
.coverage-search input::-webkit-search-cancel-button { cursor: pointer; }

.coverage-result { margin: 14px 0 0; font-size: .9rem; font-weight: 700; min-height: 1.4em; }
.coverage-result.is-hit { color: #0f5a45; }
.coverage-result.is-miss { color: var(--brand-dark); font-weight: 600; }

.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.coverage-county {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.coverage-county[hidden] { display: none; }
.coverage-county-name {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.coverage-city + .coverage-city { margin-top: 14px; }
.coverage-city[hidden] { display: none; }
.coverage-city h4 { margin: 0 0 3px; font-size: .98rem; letter-spacing: -.02em; }
.coverage-zips { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
/* Highlight applied by script.js when a ZIP matches the query. */
.coverage-zips mark { background: #dcebfa; color: var(--brand-dark); font-weight: 800; border-radius: 3px; padding: 0 2px; }

/* FAQ — native <details> so collapsed answers leave the a11y tree entirely
   and nothing is clipped by a fixed max-height. */
.faq { background: var(--white); }
.faq-layout { grid-template-columns: .7fr 1.3fr; }
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--brand-dark); }
.faq-question:active { color: var(--brand); }
.faq-item:focus-within .faq-question { outline: none; }
.faq-question .sign { flex: none; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s var(--ease); }
.faq-item[open] .faq-question .sign { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 1fr; color: var(--muted); font-size: .92rem; }
.faq-answer > div { min-height: 0; }
.faq-answer p { padding: 0 40px 19px 0; margin: 0; }
.source-note { display: block; padding: 0 40px 19px 0; color: #5c7286; font-size: .72rem; line-height: 1.45; }
.source-note a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

.booking { background: linear-gradient(135deg, #e2efff, #eef4fb); }
.booking-layout { grid-template-columns: .77fr 1.23fr; }
.booking-copy p { color: var(--muted); }
.contact-line { display: flex; align-items: center; gap: 11px; color: var(--brand-dark); font-weight: 800; margin-top: 14px; font-size: .92rem; }
/* Standalone contact links are primary actions, not prose — full tap target. */
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-line a:active { color: var(--brand); }

/* 7. Subpage sections ------------------------------------------------------ */
.page-hero { padding: 88px 0 82px; background: linear-gradient(118deg, #e6f0fc 0%, #f7fbff 62%, #dfeaf8 100%); }
.page-hero p { max-width: 650px; color: var(--ink-soft); font-size: 1.08rem; }
.page-hero .hero-actions { margin-top: 28px; }
.page-content { padding: 84px 0 105px; }
.page-content.alt { background: #eef5ff; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.content-grid.three { grid-template-columns: repeat(3, 1fr); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel p { color: var(--muted); font-size: .93rem; }
.panel .number { font-size: .77rem; margin-bottom: 26px; }
.feature-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.feature-list { display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: #405a70; font-size: .91rem; }
.feature-list li::before { content: "✓"; color: var(--brand); font-weight: 900; }
.plain-list { display: grid; gap: 10px; }
.plain-list li { padding: 12px 15px; background: #f1f6fc; border-radius: var(--radius-sm); color: #405a70; font-size: .9rem; }
.pricing-card { display: grid; grid-template-columns: .75fr 1.25fr; gap: 45px; padding: 34px; background: var(--ink); border-radius: 22px; color: #fff; }
.pricing-card p { color: #c3d5e6; }
.pricing-card .eyebrow { color: #9bc9ff; }
.pricing-card .price-big { margin: 20px 0; }

/* 8. Forms, footer, sticky CTA, responsive --------------------------------- */
.form-card { padding: 30px; background: var(--white); border: 1px solid rgba(40, 112, 176, .2); border-radius: 22px; box-shadow: 0 18px 45px rgba(17, 65, 72, .09); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #345169; font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cadbf2;
  background: #fcfdff;
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(40, 112, 176, .18); }
/* Only flag invalid fields the visitor has actually left. */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(151, 31, 52, .14); }
.field textarea { min-height: 88px; resize: vertical; }
.field-hint { color: var(--muted); font-size: .72rem; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.form-note { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.form-status { display: none; margin-top: 17px; padding: 12px 14px; border-radius: 9px; font-size: .86rem; }
.form-status.show { display: block; }
.form-status.is-ok { color: #0f5a45; background: #e6f6f0; }
.form-status.is-error { color: #7d1a2c; background: #fdecef; }

footer { background: var(--ink-deep); color: #b9cbdd; padding: 31px 0; font-size: .8rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { color: #fff; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Persistent call/book bar on phones, where most local-service traffic lands. */
.sticky-cta { display: none; }

@media (max-width: 900px) {
  .hero-grid, .system-grid, .pricing-layout, .area-grid, .faq-layout, .booking-layout,
  .pricing-card { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding: 74px 0 86px; }
  .difference-grid, .process-grid, .steps, .content-grid.three { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(207, 224, 240, .18); }
  .system-visual { min-height: 350px; }
  .pricing-layout, .area-grid, .faq-layout, .booking-layout, .pricing-card { gap: 30px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  /* Icon-only so the header still fits the brand at 375px. aria-label keeps
     the number available to screen readers. */
  .nav-phone-text { display: none; }
  /* 44px minimum tap target (WCAG 2.5.5) */
  .nav-phone, .nav-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 65, 72, .1);
  }
  .site-nav[hidden] { display: none; }
  .site-nav a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav .nav-cta { margin-top: 10px; padding: 14px 18px; border-bottom: 0; }
  header { position: sticky; }
  .nav { position: relative; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .announcement { font-size: .74rem; padding-inline: 12px; }
  .nav { min-height: 66px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  h2 { font-size: 2.25rem; }
  section { padding: 70px 0; }
  .hero { padding: 58px 0 72px; }
  .hero-copy, .page-hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .page-hero { padding: 60px 0 58px; }
  .page-content { padding: 62px 0 75px; }
  .price-card, .form-card, .pricing-card { padding: 22px; }
  .trust-grid, .difference-grid, .process-grid, .steps,
  .price-details, .detail-columns, .content-grid, .content-grid.three, .form-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(207, 224, 240, .18); }
  .trust-item:last-child { border-bottom: 0; }
  .difference-card { padding: 24px; }
  .number { margin-bottom: 20px; }
  .system-visual { min-height: 315px; }
  .specs { grid-template-columns: 1fr; }
  .spec:nth-child(odd) { border-right: 0; padding-right: 0; }
  .spec:nth-child(even) { padding-left: 0; }
  .step { padding: 60px 0 8px 64px; }
  .step::before { width: 1px; height: 100%; top: 21px; left: 21px; }
  .step:last-child::before { display: none; }
  .field.full { grid-column: auto; }
  .form-footer { display: block; }
  .form-footer .button { width: 100%; margin-bottom: 11px; }
  .faq-answer p, .source-note { padding-right: 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  /* Footer phone/email are real tap targets on a phone — give them room. */
  .footer-links { flex-direction: column; gap: 0; width: 100%; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Sticky call/book bar — body gets clearance so the footer stays reachable. */
  body { padding-bottom: 74px; }
  .sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 250, 255, .97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .sticky-cta .button { width: 100%; padding: 13px 10px; font-size: .92rem; }
  .sticky-cta .button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
