/* =========================================================================
   Kleanville Cleaning Services — main stylesheet
   Brand colours sampled directly from the client's logo (cyan-to-indigo
   blue gradient wordmark + solid indigo tagline). Two blue families:
   the green- custom properties are kept as the variable-name alias for
   the bright cyan-blue "primary accent" role, and the blue- and navy-
   properties are the deeper indigo family for headings and dark UI.
   Mobile-first, hand-rolled, no framework.
   ========================================================================= */

:root {
  /* Brand */
  --navy-950: #12173a;
  --navy-900: #1e2660;
  --navy-800: #2b3574;
  --blue-800: #333d8f;
  --blue-700: #2a4fa0;
  --blue-600: #3e63c7;
  --blue-100: #e7ecfb;
  --green-700: #145e9e;
  --green-600: #1d74c4;
  --green-500: #4fb6e8;
  --green-100: #e3f5fc;
  --amber-500: #ef9f2e;
  --amber-100: #fdf1dd;

  /* Neutrals */
  --ink-900: #16202b;
  --ink-700: #34434f;
  --ink-600: #51626f;
  --ink-400: #7c8b96;
  --border: #e0e6ec;
  --bg: #f5f7fa;
  --surface: #ffffff;

  /* Type */
  --font-heading: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 66, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 42, 66, 0.12);
  --shadow-lg: 0 20px 45px rgba(15, 42, 66, 0.18);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
html { overflow-x: hidden; } /* safety net: nothing should be able to force horizontal scroll */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy-900); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Visible, generous focus ring everywhere — required for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(3rem, 2.4rem + 3vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 1.7rem + 1.5vw, 3.5rem) 0; }
.section-alt { background: var(--bg); }
.section-navy { background: linear-gradient(155deg, var(--navy-950), var(--navy-800)); color: #cfe0e9; }
.section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600);
  background: var(--green-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow svg { flex-shrink: 0; }
.eyebrow > span { min-width: 0; overflow-wrap: break-word; }
.section-navy .eyebrow { background: rgba(91, 154, 106, 0.18); color: #9fd6ac; }
.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--ink-600); font-size: 1.08rem; }
.section-navy .section-head p { color: #b9cddb; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--navy-900); color: #fff;
  padding: 12px 18px; border-radius: 8px; z-index: 3000; transition: top 0.2s ease;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  min-height: 48px; line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--blue-800); border-color: var(--blue-800); }
.btn-secondary:hover { background: var(--blue-100); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-text { display: none; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-block; padding: 10px 14px; text-decoration: none; font-weight: 600;
  color: var(--ink-700); border-radius: 8px; font-size: 0.96rem; transition: color 0.15s, background-color 0.15s;
}
.main-nav a:hover { color: var(--green-700); background: var(--green-100); }
.main-nav a.active { color: var(--green-700); }
.main-nav a.active::after { content: ''; display: block; height: 3px; border-radius: 2px; background: var(--green-600); margin-top: 4px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); text-decoration: none; font-family: var(--font-heading); }
.header-call svg { color: var(--green-600); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 999;
  overflow-y: auto; padding: 10px 20px 30px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 16px 6px; font-size: 1.15rem; font-weight: 600; color: var(--navy-900); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-nav a.active { color: var(--green-700); }
.mobile-nav .btn { margin-top: 20px; }
.mobile-nav .mobile-call { display: flex; align-items: center; gap: 10px; padding: 16px 6px; font-weight: 700; color: var(--navy-900); text-decoration: none; }

@media (min-width: 960px) {
  .brand-text { display: block; }
  .main-nav { display: block; }
  .header-call { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-actions .btn-primary { display: inline-flex; }
}
@media (max-width: 959.98px) {
  .header-actions .btn.desktop-quote { display: none; }
}

/* Trust strip under header on some pages */
.trust-strip { background: var(--navy-950); color: #dbe7ee; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding-top: 10px; padding-bottom: 10px; font-size: 0.86rem; }
.trust-strip li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.trust-strip svg { color: var(--green-500); flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero h1, .page-hero h1, .hero h2, .page-hero h2 { color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(7,27,44,0.94) 0%, rgba(7,27,44,0.82) 42%, rgba(15,42,66,0.55) 78%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(3.2rem, 2.4rem + 4vw, 7rem) 0 clamp(3rem, 2.2rem + 3vw, 5.5rem); }
.hero-content { max-width: 680px; }
.hero p.lead { font-size: 1.18rem; color: #d8e6ee; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2.2rem; font-size: 0.88rem; color: #cfe0e9; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero-badges svg { color: var(--green-500); }

.page-hero { position: relative; color: #fff; }
.page-hero .hero-inner { padding: clamp(2.6rem, 2.1rem + 2.5vw, 4.2rem) 0; }
.page-hero .lead { max-width: 640px; color: #d8e6ee; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: #b9cddb; margin-bottom: 1rem; }
.breadcrumb a { color: #d8e6ee; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon-badge { margin-bottom: 14px; }
.card h3 { margin-bottom: 0.5em; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--green-700); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--green-100); color: var(--green-700); flex-shrink: 0;
}
.icon-badge.blue { background: var(--blue-100); color: var(--blue-800); }
.icon-badge.amber { background: var(--amber-100); color: var(--amber-500); }

/* Split content/image sections */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; } .split.reverse .split-media { order: 2; } }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split-media { position: relative; }
.split-eyebrow { margin-bottom: 10px; }
.check-list li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.check-list svg { color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.check-list.check-list-blue li { font-weight: 600; color: var(--blue-800); }
.check-list.check-list-blue svg { color: var(--blue-800); }

/* Placeholder tile for content the client hasn't supplied yet (e.g. before/after
   photos) — a clearly-marked empty state instead of a stand-in stock photo. */
.placeholder-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 4/3; border: 2px dashed var(--border); border-radius: var(--radius-md);
  color: var(--ink-400); font-size: 0.88rem; font-weight: 600; padding: 20px; background: var(--bg);
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.steps-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy-900); color: #fff; font-family: var(--font-heading);
  font-weight: 700; margin-bottom: 14px;
}

/* ---------- Service tiers / pricing ---------- */
.tier-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.tier.featured { border-color: var(--green-600); box-shadow: var(--shadow-md); position: relative; transform: translateY(-6px); }
.tier-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green-600); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.tier-price { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; color: var(--navy-900); margin: 10px 0 4px; }
.tier-price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-600); }
.tier-desc { color: var(--ink-600); font-size: 0.92rem; margin-bottom: 18px; }
.tier ul { margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 0.94rem; align-items: flex-start; }
.tier li svg { color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.tier-note { font-size: 0.8rem; color: var(--ink-400); margin-top: 10px; text-align: center; }

/* ---------- Checklist card (deep cleaning inclusions) ---------- */
.checklist-card { background: var(--bg); border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--border); }
.checklist-card h3 { display: flex; align-items: center; gap: 10px; }
.checklist-card ul { display: grid; gap: 10px; }
@media (min-width: 640px) { .checklist-card ul { grid-template-columns: 1fr 1fr; } }
.checklist-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.checklist-card li svg { color: var(--green-600); margin-top: 3px; flex-shrink: 0; }

/* ---------- Before / after slider ---------- */
.ba-slider {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); touch-action: pan-y; user-select: none; max-width: 640px; margin: 0 auto;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before-wrap { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
.ba-slider .ba-before-wrap img { width: var(--ba-img-w, 100%); max-width: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; cursor: ew-resize;
}
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.ba-handle-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; color: var(--navy-900); border: 3px solid var(--green-600);
}
.ba-tag { position: absolute; top: 14px; z-index: 4; font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(7,27,44,0.75); color: #fff; }
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; }
.ba-caption { text-align: center; color: var(--ink-600); font-size: 0.85rem; margin-top: 14px; }

/* ---------- Testimonials ---------- */
.testi-track { display: grid; gap: 22px; }
@media (min-width: 760px) { .testi-track { grid-template-columns: repeat(3, 1fr); } }
.testi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.stars { color: var(--amber-500); display: flex; gap: 3px; margin-bottom: 12px; }
.testi-quote { color: var(--ink-700); font-size: 0.98rem; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; }
.testi-name { font-weight: 700; color: var(--navy-900); font-size: 0.92rem; }
.testi-meta { font-size: 0.8rem; color: var(--ink-400); }
.review-summary { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.review-summary .stars { margin: 0; }
.review-summary strong { font-family: var(--font-heading); font-size: 1.4rem; color: var(--navy-900); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(0deg, rgba(7,27,44,0.85), transparent); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 22px 12px 10px; }

/* ---------- FAQ (native details/summary = accessible, no JS required) ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 50px 18px 22px; font-weight: 700; color: var(--navy-900);
  position: relative; font-family: var(--font-heading); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--green-600); font-weight: 400; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--ink-600); }

/* ---------- Industries served (commercial) ---------- */
.industry-chip { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; color: var(--navy-900); }
.industry-chip svg { color: var(--green-600); flex-shrink: 0; }

/* ---------- Service area ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tag { padding: 8px 16px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-weight: 600; font-size: 0.88rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #e3f1e6; margin: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
/* Two-column form + sidebar layout (Contact Us, Book Site Assessment).
   Stacks to a single column below 900px — do NOT hardcode
   grid-template-columns inline on the wrapping element, that defeats the
   mobile stack. */
.form-layout { display: grid; gap: 26px; align-items: flex-start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1.4fr 1fr; gap: 40px; } }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; font-size: 0.94rem; }
.field .hint { font-weight: 400; color: var(--ink-400); font-size: 0.82rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 1rem; font-family: var(--font-body); background: #fff; color: var(--ink-900);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); }
.field-error { color: #b3261e; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .field-error { display: block; }

.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice-card .choice-body {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px 14px; text-align: center;
  font-weight: 700; color: var(--ink-700); transition: border-color 0.15s, background-color 0.15s;
}
.choice-card .choice-body svg { display: block; margin: 0 auto 8px; color: var(--green-600); }
.choice-card input:checked + .choice-body { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }
.choice-card input:focus-visible + .choice-body { outline: 3px solid var(--amber-500); outline-offset: 2px; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Multi-step quote form */
.quote-progress { display: flex; gap: 6px; margin-bottom: 30px; }
.quote-progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--border); }
.quote-progress span.done { background: var(--green-600); }
.quote-progress span.current { background: var(--amber-500); }
.quote-step { display: none; }
.quote-step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.step-label { font-size: 0.85rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.quote-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quote-summary { background: var(--bg); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 22px; font-size: 0.92rem; }
.quote-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.quote-summary dt { color: var(--ink-400); font-weight: 600; }
.quote-summary dd { margin: 0; font-weight: 700; color: var(--navy-900); }
.form-note { font-size: 0.82rem; color: var(--ink-400); text-align: center; margin-top: 16px; }
.form-success { text-align: center; padding: 20px 0; }
.form-success svg { color: var(--green-600); margin-bottom: 14px; }

/* ---------- Contact info blocks ---------- */
.contact-cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.92rem; color: var(--ink-600); margin: 0; }
.contact-card a { color: var(--green-700); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--navy-900); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.94rem; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-100); color: var(--green-700); }
.alert-error { background: #fbeceb; color: #8f241c; }
.alert svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Team ---------- */
.value-list { display: grid; gap: 20px; }
@media (min-width: 760px) { .value-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #b9cddb; }
.footer-top { padding: 56px 0 30px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; color: #93aabb; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; text-decoration: none; color: #cfe0e9; transition: background-color 0.15s; }
.footer-social a:hover { background: rgba(255,255,255,0.1); }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #b9cddb; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 0.82rem; color: #7f97a9; }
.footer-bottom a { color: #7f97a9; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex;
  background: var(--navy-950); box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta-bar a { flex: 1; text-align: center; }
@media (min-width: 960px) { .mobile-cta-bar { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* Back to top */
.back-to-top {
  position: fixed; right: 18px; bottom: 92px; z-index: 800; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); border: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
@media (min-width: 960px) { .back-to-top { bottom: 24px; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-center { display: flex; align-items: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* .reveal elements are visible by default (no-JS / JS-blocked visitors always
   see content). main.js opts them into the fade by adding .reveal-pending
   *before* observing, so the hidden state only ever exists when JS is
   actually running to remove it again. */
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.reveal-pending.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal.reveal-pending { opacity: 1; transform: none; } }

.badge-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--green-700); background: var(--green-100); padding: 4px 12px; border-radius: 999px; }
.divider { height: 1px; background: var(--border); margin: 3rem 0; border: none; }
