/* ==========================================================================
   24/7 General Solutions — styles.css
   Order: tokens → reset → base → utilities → header → sections → footer →
          fixed UI (rail, CTA bar, lightbox) → motion
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #10242E;          /* Basin Ink — headings, footer */
  --mainline: #0C5F8A;     /* Mainline Blue — primary actions, links */
  --mainline-deep: #0A5178;
  --spray: #7FC8E8;        /* Spray Blue — decorative only */
  --turf: #1F7A38;         /* Turf Green — checks, active states */
  --clay: #B4551F;         /* Sandstone Clay — call actions, accents */
  --clay-deep: #9C4413;
  --frost: #EFF5F8;        /* cool page tint */
  --body-text: #3D5866;
  --muted: #6B8494;
  --line: #DCE6EC;
  --line-strong: #C2D2DB;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --section-pad: clamp(4rem, 9vw, 7rem);
  --container: 1140px;
  --shadow-card: 0 1px 2px rgba(16, 36, 46, 0.05), 0 10px 28px rgba(16, 36, 46, 0.08);
}

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background: #FFFFFF;
}

img, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }

ul[class], ol[class] { list-style: none; padding: 0; }

/* Author display rules must never resurrect [hidden] elements */
[hidden] { display: none !important; }

a { color: var(--mainline); }

/* ---------- 3. Base type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.25rem; font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--mainline);
  outline-offset: 2px;
  border-radius: 2px;
}

section[id] { scroll-margin-top: 5.5rem; }

/* ---------- 4. Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  background: var(--mainline);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

.btn-primary {
  background: var(--mainline);
  color: #fff;
}
.btn-primary:hover { background: var(--mainline-deep); }

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mainline);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 1.1em; height: 1.1em; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #CBE4F2;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.chip .icon { width: 1em; height: 1em; }
.star { color: var(--clay); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.status-chip .dot { background: var(--turf); }

/* Zone heads */
.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 1px solid rgba(127, 200, 232, 0.65);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--mainline);
}

.zone-tag-dark {
  background: transparent;
  border-color: rgba(127, 200, 232, 0.35);
  color: var(--spray);
}

.zone-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.zone-head h2 { margin-top: 1rem; }
.zone-intro { margin-top: 0.75rem; max-width: 56ch; color: var(--muted); font-size: 1.05rem; }

/* Section bands */
.section { padding-block: var(--section-pad); }
.section-frost { background: var(--frost); }
.section-frost .zone-tag { background: #fff; }

.section-ink { background: var(--ink); }
.section-ink h2 { color: #fff; }
.section-ink .zone-intro { color: #A9C4D4; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .header-inner { padding-block: 0.5rem; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(16, 36, 46, 0.08); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Keep brand and menu button painted above the fixed mobile-nav overlay */
.brand, .header-actions { position: relative; z-index: 2; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--mainline);
  color: #fff;
}
.brand-mark .icon { width: 20px; height: 20px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--mainline);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.header-phone .icon { color: var(--mainline); }
.header-phone:hover { color: var(--mainline); }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-shut { display: none; }

body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-shut { display: block; }

/* Mobile nav = controller readout */
@media (max-width: 1023.98px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--ink);
    padding: 110px 24px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    overflow-y: auto;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open .site-header {
    background: var(--ink);
    border-color: transparent;
    /* backdrop-filter creates a containing block that would trap the
       fixed-position nav overlay inside the header's box */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.nav-open .brand-name { color: #fff; }
  body.nav-open .brand-sub { color: var(--spray); }
  body.nav-open .nav-toggle {
    background: transparent;
    border-color: rgba(127, 200, 232, 0.4);
    color: #fff;
  }
  body.nav-open .header-phone { color: #fff; }

  .nav-list { display: flex; flex-direction: column; }

  .nav-link,
  .nav-list .nav-estimate {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.25rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(127, 200, 232, 0.16);
  }

  .nav-list .nav-estimate {
    background: none;
    border-radius: 0;
    min-height: 0;
    justify-content: flex-start;
    color: var(--spray);
  }

  .nav-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--spray);
    min-width: 2ch;
  }
}

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .header-phone { display: inline-flex; }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 2px;
  }
  .nav-link:hover { color: var(--mainline); }
  .nav-link.is-active { color: var(--mainline); font-weight: 600; }

  .nav-num { display: none; }

  .nav-estimate {
    padding: 10px 18px;
    min-height: 44px;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .header-phone { display: inline-flex; }
}

/* ---------- 6. Hero ---------- */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--frost) 100%);
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }

.hero-eyebrow { color: var(--mainline); margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.125rem;
  max-width: 54ch;
  margin-block: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.hero .status-chip { margin-bottom: 1.5rem; }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.9fr; }
}

/* ---------- 7. Services (Zone 01) ---------- */
.card-grid { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.service-card.is-lead { border-top: 4px solid var(--clay); }

.card-flag {
  color: var(--clay-deep);
  font-weight: 600;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #E7F2F8;
  color: var(--mainline);
}
.service-icon .icon { width: 24px; height: 24px; }

.service-card h3 { margin-top: 0.4rem; }
.service-card p { flex-grow: 1; }

/* ---------- 8. Seasonal (Zone 02) ---------- */
.season-track { display: grid; gap: 1.25rem; counter-reset: season; }

@media (min-width: 900px) {
  .season-track { grid-template-columns: repeat(3, 1fr); }
}

.season-card {
  position: relative;
  background: #FBFDFE;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  padding-top: 1.75rem;
}

.season-card.is-active {
  border-color: var(--turf);
  box-shadow: 0 0 0 3px rgba(31, 122, 56, 0.12);
}

.season-chip {
  position: absolute;
  top: 1.4rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--turf);
  color: #fff;
  font-weight: 600;
}
.season-chip .dot { width: 6px; height: 6px; background: #fff; }
.season-chip.is-next { background: var(--mainline); }

.season-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #E7F2F8;
  color: var(--mainline);
}
.season-icon .icon { width: 22px; height: 22px; }

.season-card[data-season="spring"] .season-icon { background: #E2F2E6; color: var(--turf); }
.season-card[data-season="summer"] .season-icon { background: #F7EADF; color: var(--clay); }

.season-window { color: var(--muted); margin-top: 0.9rem; }
.season-card h3 { margin-block: 0.2rem 0.4rem; }

/* ---------- 9. Why Us (Zone 03) ---------- */
.why-grid { display: grid; gap: 2rem; }

@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

.why-story p { margin-bottom: 1rem; font-size: 1.05rem; }
.why-story strong { color: var(--ink); }

.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.cred-list li:first-child { padding-top: 0; }
.cred-list .icon {
  width: 22px; height: 22px;
  color: var(--turf);
  margin-top: 3px;
}
.cred-list strong { color: var(--ink); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (min-width: 768px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.2rem;
  background: #fff;
  padding: 1.4rem 1rem;
}

.stat dd {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stat dt { color: var(--muted); font-size: 0.65rem; }

/* ---------- 10. Gallery (Zone 04) ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 12px 18px;
  min-height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--body-text);
  font-weight: 600;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  background: var(--mainline);
  border-color: var(--mainline);
  color: #fff;
}

.gallery-grid { display: grid; gap: 1.25rem; }

@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Before/after slider tile */
.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top-left-radius: var(--r-md);
  border-top-right-radius: var(--r-md);
  background: #10242E;
  touch-action: pan-y;
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-before-img { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 36, 46, 0.25);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--mainline);
  box-shadow: 0 2px 10px rgba(16, 36, 46, 0.4);
  pointer-events: none;
}
.ba-handle .icon { width: 22px; height: 22px; }

.ba-badge {
  position: absolute;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 36, 46, 0.72);
  color: #fff;
  font-size: 0.6rem;
  pointer-events: none;
}
.ba-badge-before { left: 10px; }
.ba-badge-after { right: 10px; }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  touch-action: pan-y;
}
.ba-range:focus-visible { outline: none; }
.ba-slider:focus-within .ba-handle {
  outline: 3px solid var(--mainline);
  outline-offset: 2px;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 240px;
  background: transparent;
}
.ba-range::-moz-range-thumb {
  width: 44px;
  height: 240px;
  border: 0;
  background: transparent;
}

.gallery-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.gallery-tag {
  font-size: 0.62rem;
  color: var(--mainline);
  border: 1px solid #CBE4F2;
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* ---------- 11. Reviews (Zone 05) ---------- */
.platform-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-decoration: none;
  color: var(--ink);
}

.platform-card:hover { border-color: var(--mainline); box-shadow: var(--shadow-card); }

.platform-name { color: var(--muted); }

.platform-rating { display: flex; align-items: center; gap: 12px; }

.rating-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.stars { display: inline-flex; gap: 2px; }
.stars .icon { width: 20px; height: 20px; }

.platform-count { color: var(--body-text); }
.platform-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.quote-grid { display: grid; gap: 1.25rem; }

@media (min-width: 768px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-decoration: none;
}

.quote-card:hover { border-color: var(--mainline); box-shadow: var(--shadow-card); }

.quote-card .stars .icon { width: 16px; height: 16px; }

.quote-card blockquote {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  flex-grow: 1;
}

.quote-card footer { font-size: 0.9rem; color: var(--muted); }
.quote-card footer strong { color: var(--ink); }

/* ---------- 12. Area & FAQ (Zone 06) ---------- */
.area-grid { display: grid; gap: 2.5rem; }

@media (min-width: 1024px) { .area-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; } }

.area-map img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.area-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
}

.area-list li:first-child {
  background: #fff;
  border-color: var(--mainline);
  color: var(--ink);
  font-weight: 600;
}
.area-list .icon { width: 1em; height: 1em; color: var(--clay); }
.area-list .mono-label { font-size: 0.6rem; color: var(--muted); }

.area-note { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

.faq-title { margin-bottom: 0.75rem; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding-block: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--mainline);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { padding-bottom: 1.25rem; max-width: 60ch; }

/* ---------- 13. Estimate (Zone 07) ---------- */
.estimate-grid { display: grid; gap: 2rem; }

@media (min-width: 1024px) {
  .estimate-grid { grid-template-columns: 1.45fr 0.9fr; gap: 3rem; align-items: start; }
}

.estimate-form-wrap {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--ink);
}

.req { color: var(--clay); }
.opt { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #FDFEFE;
  color: var(--ink);
  font-size: 1rem; /* 16px — prevents iOS zoom-on-focus */
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--mainline);
  box-shadow: 0 0 0 3px rgba(12, 95, 138, 0.18);
}

.field [aria-invalid="true"] {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(180, 85, 31, 0.14);
}

.field-error {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clay-deep);
}

.field-row { display: grid; gap: 0 1rem; }

@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.btn-submit { width: 100%; margin-top: 0.5rem; }
.btn-submit[disabled] { opacity: 0.65; cursor: wait; }

.form-error-panel {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: #FBEEE5;
  border: 1px solid var(--clay);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.form-error-panel a { color: var(--clay-deep); font-weight: 600; }

.form-success { text-align: center; padding: 2rem 1rem; }

.success-icon {
  width: 56px; height: 56px;
  padding: 14px;
  margin-inline: auto;
  border-radius: 50%;
  background: #E2F2E6;
  color: var(--turf);
  box-sizing: border-box;
}

.form-success h3 { margin-block: 1rem 0.5rem; font-size: 1.5rem; }
.form-success a { font-weight: 600; }

.estimate-aside {
  border: 1px solid rgba(127, 200, 232, 0.25);
  border-radius: var(--r-lg);
  padding: 2rem;
  color: #CFE4F0;
}

.estimate-aside h3 { color: #fff; margin-bottom: 1.25rem; }

.aside-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.aside-phone .icon { color: var(--spray); }
.aside-phone:hover { color: var(--spray); }

.aside-email {
  display: block;
  color: var(--spray);
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}

.aside-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(127, 200, 232, 0.2);
  padding-top: 1.25rem;
}
.aside-note .icon { margin-top: 3px; color: var(--spray); }

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #CFE4F0;
  padding-top: 4rem;
}

.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--spray); }

.footer-nap { margin-top: 1.25rem; font-size: 0.95rem; }
.footer-nap a { color: #CFE4F0; }
.footer-nap a:hover { color: #fff; }

.footer-license {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  color: #7FA8C0;
  line-height: 1.8;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; }

.footer-nav a,
.footer-reviews a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #CFE4F0;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-reviews a:hover { color: #fff; text-decoration: underline; }

.footer-nav .nav-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--spray);
}

.footer-reviews { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.footer-reviews .mono-label { color: #7FA8C0; font-size: 0.68rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: #8FB0C4;
}

/* ---------- 15. Zone rail (desktop) ---------- */
.zone-rail { display: none; }

@media (min-width: 1024px) {
  .zone-rail {
    display: block;
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }

  .zone-rail ul { display: flex; flex-direction: column; gap: 4px; }

  .zone-rail a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px;
    text-decoration: none;
    opacity: 0.45;
  }
  .zone-rail a:hover { opacity: 1; }

  .rail-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 2px solid var(--mainline);
    background: transparent;
  }

  .rail-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--muted);
  }

  .zone-rail a.is-active { opacity: 1; }
  .zone-rail a.is-active .rail-dot { background: var(--turf); border-color: var(--turf); }
  .zone-rail a.is-active .rail-num { color: var(--turf); font-weight: 600; }
}

/* ---------- 16. Mobile CTA bar ---------- */
.cta-bar { display: none; }

@media (max-width: 767.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.3s ease;
  }

  .cta-bar.is-hidden { transform: translateY(110%); }

  .cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
  }

  .cta-call { background: var(--clay); }
  .cta-call:active { background: var(--clay-deep); }
  .cta-estimate { background: var(--mainline); }
  .cta-estimate:active { background: var(--mainline-deep); }
}

/* ---------- 17. Lightbox ---------- */
.lightbox {
  position: fixed;
  border: none;
  border-radius: 14px;
  padding: 0;
  max-width: min(920px, 92vw);
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.lightbox::backdrop { background: rgba(16, 36, 46, 0.72); }

.lightbox img { width: 100%; height: auto; }

.lightbox p {
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 36, 46, 0.55);
  color: #fff;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(16, 36, 46, 0.8); }

/* ---------- 18. Motion (all gated on reduced-motion preference) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .dot-pulse { animation: pulse 2.2s ease-out infinite; }

  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31, 122, 56, 0.45); }
    70%  { box-shadow: 0 0 0 9px rgba(31, 122, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 122, 56, 0); }
  }

  .service-card, .gallery-card, .platform-card, .quote-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .gallery-card:hover,
  .platform-card:hover,
  .quote-card:hover { transform: translateY(-3px); }

  .btn { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
}

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
}
