/* ========================================================================
   Bright Home Solutions — Design System
   Brand: #1b62ae (primary blue) · #faaf3b (accent amber)
   Style: Modern, tech-forward, generous whitespace, accessible AA+
   ======================================================================== */

:root {
  /* Brand */
  --primary: #1b62ae;
  --primary-dark: #144a85;
  --primary-light: #2a7dd0;
  --accent: #faaf3b;
  --accent-dark: #e09820;
  --accent-light: #ffc56a;
  /* AA-compliant amber for text on light backgrounds (4.5:1 on white) */
  --accent-text: #a86807;

  /* Neutrals */
  --ink: #0a1628;
  --ink-soft: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tinted: #f6f9fd;

  /* Semantic */
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;

  /* Effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px -8px rgba(15, 23, 42, .12), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .18);
  --ring: 0 0 0 3px rgba(27, 98, 174, .25);

  /* Layout */
  --container: 1200px;
  --gap: 24px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Aliases used by some widgets */
  --border: var(--line);
  --soft: var(--bg-soft);
}

/* ============ Dark mode ============ */
html.dark {
  --ink: #f1f5f9;
  --ink-soft: #e2e8f0;
  /* On dark surfaces the bright accent has ample contrast */
  --accent-text: var(--accent);
  --muted: #94a3b8;
  --muted-soft: #cbd5e1;
  --line: #1f2a3a;
  --line-soft: #18212f;
  --bg: #0a1424;
  --bg-soft: #0f1d33;
  --bg-tinted: #11233f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 6px 24px -8px rgba(0, 0, 0, .55), 0 2px 6px -2px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, .65);
}
html.dark body { background: var(--bg); color: var(--ink); }
html.dark .site-header { background: rgba(10, 20, 36, .85); border-bottom-color: var(--line); }
html.dark .section-soft, html.dark section.section-soft { background: var(--bg-soft); }
html.dark img:not(.no-invert) { filter: brightness(.92); }
/* Surfaces: map raw white/light backgrounds onto our dark palette */
html.dark .form-card,
html.dark .calc-card,
html.dark .quiz,
html.dark .placer,
html.dark .roi-card,
html.dark .appt-card,
html.dark .checklist-card,
html.dark .neighbor-card,
html.dark .utility-compare,
html.dark .heatmap-card,
html.dark .panel-compare,
html.dark .wa-quickreplies,
html.dark .portal-dash,
html.dark .ref-card,
html.dark .urgency-card,
html.dark .indep-card,
html.dark .maint-card,
html.dark .vidtest-card,
html.dark .contact-details,
html.dark .project-card,
html.dark .solution-card,
html.dark .option-card,
html.dark .exit-modal,
html.dark .lightbox,
html.dark .cookie-banner,
html.dark .cookie-modal-card,
html.dark .calc-cell,
html.dark .ready-result,
html.dark .nb-row > div,
html.dark .roi-stat,
html.dark .portal-card,
html.dark .award,
html.dark .cc-card,
html.dark .btu-tool,
html.dark .season-card,
html.dark .warr-card,
html.dark .vs-table,
html.dark .zoner,
html.dark .booking-card,
html.dark .ev-card,
html.dark .bill-card,
html.dark .rooftop-tool,
html.dark .brand-card,
html.dark .ready-quiz,
html.dark .quiz-opts button,
html.dark .ready-opt,
html.dark .zip-card,
html.dark .hptype-card,
html.dark .reviews-summary,
html.dark .portal-prod-stats > div { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html.dark input,
html.dark select,
html.dark textarea {
  background: var(--bg-tinted); color: var(--ink);
  border-color: var(--line);
}
html.dark input::placeholder, html.dark textarea::placeholder { color: var(--muted); }
html.dark .btn-outline { color: var(--ink); border-color: var(--line); }
html.dark .btn-outline:hover { background: var(--bg-soft); color: var(--ink); }
html.dark .btn-ghost { color: var(--ink); }
html.dark .chip { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html.dark .chip.active { background: var(--primary); border-color: var(--primary); color: white; }
html.dark .appt-day, html.dark .appt-slot { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html.dark .appt-day.active, html.dark .appt-slot.active { background: var(--primary); color: white; border-color: var(--primary); }
html.dark .footer, html.dark footer { background: #060e1c; color: var(--ink); border-top-color: var(--line); }
html.dark .footer a, html.dark footer a { color: var(--ink-soft); }
html.dark .page-hero { background:
  radial-gradient(46% 90% at 88% 8%, rgba(250, 175, 59, .12), transparent 60%),
  linear-gradient(180deg, var(--bg-soft), var(--bg)); }
html.dark .page-hero::before { background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); }
html.dark .hero { background: linear-gradient(135deg, #06111f 0%, #0e2543 100%); }
html.dark .cta-band { background:
  linear-gradient(135deg, rgba(21, 76, 135, .92), rgba(10, 34, 63, .94)),
  url("cta-crew.jpg") center 30% / cover no-repeat; color: white; }
html.dark .cta-band p, html.dark .cta-band h2 { color: inherit; }
html.dark .cta-band .btn-outline { color: white; border-color: rgba(255,255,255,.4); }
html.dark .review-card, html.dark .rev-card { background: var(--bg-soft); }
html.dark .stats-band { background: var(--bg-soft); }
html.dark .form-card label { color: var(--muted-soft); }
html.dark .bento-card { background: var(--bg-soft); border-color: var(--line); }
html.dark hr, html.dark .divider { border-color: var(--line); }
html.dark .badge, html.dark .pill { background: var(--bg-tinted); color: var(--ink); }
/* Critical surfaces missed first pass */
html.dark .btn-primary { background: var(--primary); color: white; }
html.dark .btn-primary:hover { background: var(--primary-light); }
html.dark .btn-accent { background: var(--accent); color: #0a1424; }
html.dark .btn-accent:hover { background: var(--accent-light); color: #0a1424; }
html.dark .quote-card { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html.dark .quote-card input, html.dark .quote-card select { background: var(--bg-tinted); color: var(--ink); }
html.dark .trust-strip, html.dark .trust-mini { background: transparent; color: var(--ink); }
html.dark .incentives { background: linear-gradient(135deg, #0e2543, var(--primary)); color: white; }
html.dark .stat, html.dark .stat-num { color: var(--ink); }
html.dark .stat { background: var(--bg-soft); }
html.dark .testimonial { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html.dark .faq-item, html.dark .faq-q, html.dark .faq-a { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
html.dark .faq-q:hover { background: var(--bg-tinted); }
html.dark .nav-links.open { background: var(--bg); border-color: var(--line); }
html.dark .site-footer, html.dark footer.site-footer { background: #060e1c; color: var(--ink); border-top-color: var(--line); }
html.dark .site-footer a { color: var(--ink-soft); }
html.dark .mega-panel { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
html.dark .mega-card { background: var(--bg); border-color: var(--line); color: var(--ink); }
html.dark .mega-card:hover { background: var(--bg-tinted); }
html.dark .cmdk, html.dark .cmdk-row, html.dark .cmdk-input-wrap input { color: var(--ink); }
html.dark .nav-search-btn { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }
html.dark .nav-search-btn:hover { color: var(--ink); }
html.dark .nav-search-btn kbd { background: var(--bg-tinted); color: var(--muted); }

/* Theme toggle button */
.theme-toggle {
  background: transparent; border: 1.5px solid var(--line);
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  transition: all .15s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
html.dark .theme-toggle .icon-sun { display: inline-block; }
html.dark .theme-toggle .icon-moon { display: none; }

* { box-sizing: border-box; }
/* Form controls must shrink inside flex/grid rows (default min-width:auto causes mobile overflow) */
input, select, textarea { min-width: 0; }
/* iOS Safari: without touch-action:manipulation, tapping a control triggers double-tap
   zoom AND swallows/delays the click — the menu button "did nothing" and the page zoomed.
   This keeps pinch-zoom (a11y) but kills the tap-zoom + 300ms delay on interactive elements. */
a, button, label, summary, .btn, [role="button"], [onclick],
.mobile-toggle, .theme-toggle, .nav-search-btn,
input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"], input[type="range"] {
  touch-action: manipulation;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Typography */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
h1, h2, h3 { text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary); padding: .35em .8em;
  background: rgba(27, 98, 174, .08);
  border-radius: 999px;
  margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================================
   Header / Navigation
   ======================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
/* Header condenses once the page scrolls (Stripe/Linear pattern) */
html.scrolled .site-header {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(12, 24, 44, .06);
}
html.dark.scrolled .site-header { background: rgba(10, 20, 36, .92); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
  transition: height .25s;
}
html.scrolled .nav-wrap { height: 60px; }
/* Reading-progress bar — fills as you scroll the page */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 80; pointer-events: none; /* above promo sticky-bar (z70), below modals */
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width .08s linear;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-size: 1.05rem; line-height: 1; }
.brand-name small { display: block; font-size: .7rem; color: var(--muted-soft); font-weight: 500; letter-spacing: 0; }
/* Real BHS logo — combo (wide screens) / monogram-only (small screens), each theme-aware.
   NB: class is .site-logo (NOT .brand-logo — that's the manufacturer badge in tools.css) */
.site-logo { height: 38px; width: auto; display: none; transition: height .25s; }
.site-logo.is-combo.is-light { display: block; }
html.dark .site-logo.is-combo.is-light { display: none; }
html.dark .site-logo.is-combo.is-dark { display: block; }
html.scrolled .site-logo { height: 32px; }
/* Very small screens: monogram only (combo wordmark gets too small) */
@media (max-width: 480px) {
  .site-logo.is-combo.is-light, html.dark .site-logo.is-combo.is-dark { display: none; }
  .site-logo.is-mark.is-light { display: block; }
  html.dark .site-logo.is-mark.is-light { display: none; }
  html.dark .site-logo.is-mark.is-dark { display: block; }
  .site-logo { height: 34px; }
}
.footer-logo { height: 42px; width: auto; display: block; margin-bottom: 16px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-soft); padding: 8px 14px; font-weight: 500; font-size: .95rem;
  border-radius: var(--radius-sm); transition: all .15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--primary); }
.nav-links a.active { color: var(--primary); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.mobile-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.mobile-toggle svg { width: 26px; height: 26px; color: var(--ink); }

@media (max-width: 980px) {
  /* CRITICAL: .site-header has backdrop-filter, which makes it the CONTAINING BLOCK for
     position:fixed descendants. So the fixed mobile menu was positioned relative to the
     ~72px header (not the viewport) and collapsed to a sliver. Drop the blur on mobile +
     use an opaque background so the fixed menu fills the screen. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  html.dark .site-header { background: #0a1424; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    /* Start at the REAL header bottom (JS sets --nav-menu-top), not a hardcoded 72px —
       the announcement bar pushes the sticky header down, so a fixed 72px landed behind
       it and hid the first links. Explicit top/right/bottom/left (no `inset` shorthand)
       for max Safari compat; z-index below the header so the X/logo stay tappable. */
    position: fixed; top: var(--nav-menu-top, 72px); right: 0; bottom: 0; left: 0;
    z-index: 45; background: white;
    padding: 16px; border-top: 1px solid var(--line); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open a { padding: 14px; border-radius: var(--radius-sm); }
}

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
  white-space: nowrap; line-height: 1;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: black; color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
/* On phones, let large CTA buttons wrap their label instead of forcing horizontal
   overflow (e.g. generated city CTAs like "Get my solar quote in Lawrence"). */
@media (max-width: 480px) { .btn-lg { white-space: normal; text-align: center; } }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.985); }

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% -10%, rgba(250, 175, 59, .22), transparent 60%),
    radial-gradient(80% 100% at -10% 110%, rgba(27, 98, 174, .18), transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #0e2543 100%);
  color: white;
  padding: clamp(60px, 9vw, 130px) 0;
}
/* Living "aurora" — the existing glows drift slowly for a premium feel */
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: heroAurora 22s ease-in-out infinite alternate; }
}
@keyframes heroAurora {
  from { background-position: 0% 0%, 0% 0%, 0 0; }
  to   { background-position: 7% 5%, -6% -4%, 0 0; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  color: white;
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  letter-spacing: -.035em; line-height: 1.05;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede { color: rgba(255, 255, 255, .82); font-size: 1.18rem; max-width: 540px; margin-bottom: 32px; line-height: 1.6; }
.hero .eyebrow { background: rgba(250, 175, 59, .15); color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero .trust-mini {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
  font-size: .85rem; color: rgba(255, 255, 255, .65);
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero .trust-mini strong { color: white; }

/* Hero card (quote start) */
.quote-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .05);
  position: relative;
}
.quote-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg);
  padding: 1px; background: linear-gradient(135deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(white, white) content-box, linear-gradient(white, white);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.quote-card h3 { font-size: 1.22rem; margin-bottom: 4px; letter-spacing: -.015em; }
.quote-card .step-dots { display: flex; gap: 4px; margin-bottom: 16px; }
.quote-card .step-dots span { width: 24px; height: 4px; background: var(--line); border-radius: 999px; }
.quote-card .step-dots span.active { background: var(--accent); }
.quote-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.quote-card input, .quote-card select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: white;
}
.quote-card input:focus, .quote-card select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.quote-card .row { margin-bottom: 14px; }
.quote-card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-card .hint { font-size: .75rem; color: var(--muted-soft); margin-top: 8px; }

/* ========================================================================
   Trust strip
   ======================================================================== */
.trust-strip {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: white;
}
.trust-strip .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.trust-label { font-size: .8rem; color: var(--muted-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.trust-logos .logo-chip {
  font-weight: 700; color: var(--muted); font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-logos .logo-chip svg { width: 22px; height: 22px; color: var(--primary); }

/* ========================================================================
   Solutions grid
   ======================================================================== */
.solution-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.solution-card::after {
  content: ""; position: absolute; inset: -50% -10% auto auto; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(250, 175, 59, .12), transparent 70%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.solution-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.solution-card:hover::after { opacity: 1; }
.solution-card .icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-tinted), white);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--primary);
}
.solution-card .icon svg { width: 28px; height: 28px; }
.solution-card h3 { margin-bottom: 8px; }
.solution-card p { color: var(--muted); margin-bottom: 20px; font-size: .95rem; }
.solution-card .card-link { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.solution-card .card-link:hover { color: var(--primary); }
.solution-card .card-link svg { width: 14px; height: 14px; transition: transform .2s; }
.solution-card:hover .card-link svg { transform: translateX(3px); }

/* ========================================================================
   How it works (timeline)
   ======================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 28px; left: 5%; right: 5%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 0; opacity: .25;
}
.step {
  position: relative; z-index: 1; text-align: center; padding: 0 8px;
}
.step .num {
  width: 56px; height: 56px; border-radius: 50%;
  background: white; border: 2px solid var(--primary); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; font-family: var(--font-mono);
  margin: 0 auto 16px;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .85rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
  .step .num { margin: 0; }
}

/* ========================================================================
   Incentives band
   ======================================================================== */
.incentives {
  background: linear-gradient(135deg, var(--ink) 0%, #0e2543 100%);
  color: white; border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  overflow: hidden; position: relative;
}
.incentives::before {
  content: ""; position: absolute; top: -50%; right: -10%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(250, 175, 59, .15), transparent 60%);
  pointer-events: none;
}
@media (max-width: 900px) { .incentives { grid-template-columns: 1fr; } }
.incentives h2 { color: white; }
.incentives p { color: rgba(255, 255, 255, .8); }
.incentives .big-num {
  font-size: clamp(5rem, 12vw, 9rem); line-height: 1; font-weight: 800;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.04em; font-family: var(--font-sans);
}
.incentives .big-num sub { font-size: .3em; vertical-align: baseline; color: white; -webkit-text-fill-color: white; }
.incentives .legend { display: grid; gap: 12px; margin-top: 24px; }
.incentives .legend-item { display: flex; gap: 12px; align-items: start; }
.incentives .legend-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ========================================================================
   Stats
   ======================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; text-align: left;
  position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 28px; width: 34px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--accent);
}
.stat .stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; line-height: 1;
}
.stat .stat-num .unit { font-size: .55em; color: var(--primary); margin-left: 4px; font-weight: 700; }
.stat .stat-label { color: var(--muted); margin-top: 8px; font-size: .9rem; }

/* ========================================================================
   Testimonials
   ======================================================================== */
.testimonial {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; height: 100%;
}
.testimonial .stars { color: var(--accent); margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.6; }
.testimonial .person { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.testimonial .person-name { font-weight: 600; color: var(--ink); }
.testimonial .person-meta { color: var(--muted-soft); font-size: .85rem; }

/* ========================================================================
   CTA band (final)
   ======================================================================== */
.cta-band {
  background:
    radial-gradient(70% 100% at 0% 100%, rgba(250, 175, 59, .2), transparent 50%),
    linear-gradient(135deg, rgba(27, 98, 174, .9) 0%, rgba(16, 58, 104, .93) 100%),
    url("cta-crew.jpg") center 30% / cover no-repeat;
  color: white; border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 72px);
  text-align: center;
}
.cta-band h2 { color: white; max-width: 600px; margin: 0 auto .5em; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 540px; margin: 0 auto 32px; }
.cta-band .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-accent { color: var(--ink); }
.cta-band .btn-outline { color: white; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-outline:hover { border-color: white; color: white; background: rgba(255, 255, 255, .08); }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, .65);
  padding: 64px 0 32px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3, .site-footer h4 { color: white; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, .7); display: block; padding: 6px 0; font-size: .92rem; }
.site-footer a:hover { color: white; }
.site-footer .brand-block .brand-name { color: white; }
.site-footer .brand-block p { color: rgba(255, 255, 255, .6); margin-top: 16px; font-size: .9rem; }
.site-footer .licenses {
  margin-top: 16px; font-family: var(--font-mono); font-size: .75rem;
  color: rgba(255, 255, 255, .5); line-height: 1.8;
}
.footer-areas {
  padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-areas .areas-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 32px;
}
.footer-areas .areas-list li {
  display: flex; align-items: baseline; gap: 8px; font-size: .92rem;
}
.footer-areas .area-city { color: white; font-weight: 600; }
.footer-areas .areas-list a { display: inline; padding: 0; }
.footer-areas .sep { color: rgba(255, 255, 255, .3); }
.footer-areas .areas-intro{font-size:.82rem;color:var(--muted);margin:0 0 10px;max-width:340px;line-height:1.5}
.areas-all {
  margin-top: 16px; font-size: .85rem; color: rgba(255, 255, 255, .5);
}
@media (max-width: 560px) {
  .footer-areas .areas-list { flex-direction: column; gap: 10px; }
}
.footer-bottom {
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer-legal {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .72rem; line-height: 1.6; color: rgba(255, 255, 255, .4);
}
.footer-bottom a { display: inline; color: rgba(255, 255, 255, .55); margin: 0 8px; padding: 0; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
}
.social a:hover { background: var(--accent); color: var(--ink); }
.social svg { width: 16px; height: 16px; }

/* ========================================================================
   Generic content pages (about, faq, legal, etc.)
   ======================================================================== */
.page-hero {
  background:
    radial-gradient(46% 90% at 88% 8%, rgba(250, 175, 59, .16), transparent 60%),
    radial-gradient(50% 100% at -6% 110%, rgba(27, 98, 174, .08), transparent 55%),
    linear-gradient(180deg, var(--bg-tinted) 0%, white 100%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
/* dot-grid + orbe solar decorativos en el lado derecho (todas las páginas interiores) */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16, 24, 40, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(40% 90% at 86% 45%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(40% 90% at 86% 45%, black, transparent 72%);
}
.page-hero::after {
  content: ""; position: absolute; right: 5%; top: 50%; transform: translateY(-52%);
  width: 320px; height: 320px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(255, 213, 138, .6), rgba(250, 175, 59, .28) 55%, transparent 74%);
}
@media (max-width: 980px) { .page-hero::after { display: none; } }
/* Foto real (GBP/IG propias) flotando en el hero — reemplaza el orbe cuando existe */
.page-hero-media {
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-52%) rotate(2deg);
  width: min(340px, 25vw); margin: 0; z-index: 0;
  border-radius: 18px; overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 34px 80px -12px rgba(10, 22, 40, .4);
}
.page-hero-media img { display: block; width: 100%; height: auto; }
.page-hero:has(.page-hero-media)::after { display: none; }
@supports not (selector(:has(*))) {
  .page-hero-media { display: none; }
}
@media (min-width: 981px) {
  .page-hero:has(.page-hero-media) .container { padding-right: clamp(340px, 30vw, 460px); }
}
html.dark .page-hero-media { border-color: var(--bg-soft); }
@media (max-width: 980px) { .page-hero-media { display: none; } }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 800px; letter-spacing: -.035em; }
.page-hero p.lede { font-size: 1.15rem; max-width: 680px; color: var(--muted); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 20px; }
.prose li { margin-bottom: .5em; }
.prose .callout {
  background: var(--bg-tinted); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: var(--radius-sm); margin: 24px 0;
  color: var(--ink-soft); font-size: .95rem;
}
.prose .callout strong { color: var(--ink); }

/* FAQ accordion */
.faq-item {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 18px 24px; background: white; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 1rem; font-weight: 600; color: var(--ink); font-family: inherit;
}
.faq-q::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(-135deg) translateY(0); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px; color: var(--muted); font-size: .95rem;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 24px 20px; }

/* Form (contact, careers) */
.form-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: white;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--primary); text-decoration: underline; }
.form-disclaimer { font-size: .75rem; color: var(--muted-soft); margin-top: 16px; line-height: 1.5; }
.form-confirm {
  font-size: .85rem; line-height: 1.5; margin-bottom: 20px;
  padding: 12px 16px; border-radius: 8px;
  background: rgba(22,163,74,.1); color: #15803d;
  border: 1px solid rgba(22,163,74,.3);
}
html.dark .form-confirm { color: #4ade80; background: rgba(22,163,74,.14); border-color: rgba(74,222,128,.3); }

/* Two-column page layout */
.split > * { min-width: 0; } /* grid items shrink to the column instead of forcing overflow on small screens */
.split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Contact details card */
.contact-details {
  background: var(--ink); color: white; border-radius: var(--radius-lg);
  padding: 32px; position: sticky; top: 96px;
}
.contact-details h3 { color: white; }
.contact-details .contact-row {
  display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contact-details .contact-row:last-of-type { border-bottom: 0; }
.contact-details .contact-row svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-details .label { font-size: .75rem; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .1em; }
.contact-details .value { color: white; font-weight: 600; }
.contact-details a { color: white; }

/* Purchase Options comparison */
.compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.option-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; position: relative;
}
.option-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.option-card.featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: var(--ink); padding: 4px 12px;
  border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.option-card h3 { margin-bottom: 4px; }
.option-card .price { font-family: var(--font-mono); color: var(--primary); font-weight: 700; margin-bottom: 18px; }
.option-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.option-card ul li { padding: 6px 0; padding-left: 26px; position: relative; color: var(--muted); font-size: .93rem; }
.option-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.option-card ul li.con::before {
  width: 12px; height: 12px; border: 0; border-radius: 50%;
  background: var(--err); top: 13px; left: 1px; transform: none;
  content: "−"; color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px; line-height: 1;
}
.option-card .disclaimer { font-size: .75rem; color: var(--muted-soft); margin-top: 16px; }

/* Project gallery */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }
.project-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-thumb {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--primary), var(--ink));
  position: relative; overflow: hidden;
}
/* Branded watermark (real BHS monogram), nudged to a corner so the system
   figure reads as the focal point of the placeholder */
.project-thumb::before {
  content: ""; position: absolute; right: 14px; bottom: 12px; width: 40px; height: 40px; z-index: 0;
  background: center / contain no-repeat url("logo-mark-dark.png");
  opacity: .28;
}
.project-thumb .thumb-figure {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: rgba(255, 255, 255, .92);
}
/* Card con FOTO real: la foto llena el thumb; la métrica baja a chip inferior */
.project-thumb .thumb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-thumb.has-photo::after { display: none; }
.project-thumb.has-photo .thumb-figure {
  justify-content: flex-end; align-items: flex-start; padding: 14px;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 14, 28, .62) 100%);
}
.project-thumb.has-photo .thumb-figure svg { display: none; }
.project-thumb.has-photo .thumb-metric {
  font-size: 1.05rem; background: rgba(6, 14, 28, .55);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.project-thumb.has-photo .badge {
  background: rgba(6, 14, 28, .55); border-color: rgba(255, 255, 255, .25);
}
.project-card:hover .thumb-photo { transform: scale(1.03); }
.project-thumb .thumb-photo { transition: transform .35s ease; }
.project-thumb .thumb-figure svg { width: 44px; height: 44px; opacity: .9; }
.project-thumb .thumb-metric {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -.01em; line-height: 1;
}
.project-thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-thumb .badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px);
  color: white; padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; z-index: 1;
  border: 1px solid rgba(255, 255, 255, .2);
}
.project-info { padding: 20px; }
.project-info h3 { margin-bottom: 6px; font-size: 1.1rem; }
.project-info p { font-size: .85rem; margin-bottom: 12px; }
.project-specs {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: .75rem; color: var(--muted);
}

/* City chip links (contextual local-SEO links on product pages) */
.city-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.city-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  background: var(--bg); transition: all .2s;
}
.city-links a:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.city-links a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--ink); color: white; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { top: 0; color: white; }

/* Full-width button modifier */
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Screen-reader only (visually hidden, accessible to AT) */
.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;
}

/* Utility */
.text-center { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.1rem; }
.muted { color: var(--muted); }
.spacer { height: 24px; }
.spacer-lg { height: 48px; }

/* ====== Page transitions (fade) ====== */
body { transition: opacity .18s ease; }
body.page-entering { opacity: 0; }
body.page-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  body, body.page-entering, body.page-leaving { transition: none; opacity: 1; }
}
/* If View Transitions API used, customize */
@supports (view-transition-name: none) {
  ::view-transition-old(root) { animation: 200ms cubic-bezier(.4,0,1,1) both fadeOut; }
  ::view-transition-new(root) { animation: 240ms cubic-bezier(0,0,.2,1) both fadeIn; }
  @keyframes fadeOut { to { opacity: 0; } }
  @keyframes fadeIn { from { opacity: 0; } }
}
