/* ============================================================
   InHome Partners - Design System
   Brand: #003353 navy, #21A8F2 bright blue, white
   Premium, friendly, community-forward, owner-operated feel.
   No em dashes anywhere. Built for speed and accessibility.
   ============================================================ */

:root {
  /* Brand */
  --navy: #003353;
  --navy-700: #013f68;
  --navy-900: #00263e;
  --blue: #21A8F2;
  --blue-600: #0e93dd;
  --blue-100: #d9f0fe;
  --blue-050: #eef8ff;
  --white: #ffffff;

  /* Neutrals */
  --ink: #0c1d2a;
  --slate: #41576a;
  --mist: #6b8197;
  --line: #e2ebf2;
  --cloud: #f4f8fc;
  --cloud-2: #eaf2f9;

  /* Accents (used sparingly) */
  --gold: #f4b740;
  --mint: #38c5a0;

  /* Typography. Fluid scale via clamp so headings never wrap awkwardly. */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.84rem, 0.80rem + 0.20vw, 0.95rem);
  --step-0:  clamp(1.00rem, 0.94rem + 0.30vw, 1.15rem);
  --step-1:  clamp(1.20rem, 1.08rem + 0.55vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.24rem + 1.00vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.45rem + 1.70vw, 2.70rem);
  --step-4:  clamp(2.20rem, 1.65rem + 2.70vw, 3.70rem);
  --step-5:  clamp(2.70rem, 1.80rem + 4.40vw, 5.20rem);

  /* Spacing */
  --gap: clamp(1rem, 0.7rem + 1.4vw, 1.6rem);
  --section-y: clamp(3.5rem, 2.4rem + 5vw, 7rem);
  --shell: min(92vw, 1200px);
  --shell-narrow: min(92vw, 820px);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 51, 83, 0.06), 0 2px 8px rgba(0, 51, 83, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 51, 83, 0.10), 0 2px 6px rgba(0, 51, 83, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 51, 83, 0.18);

  --ring: 0 0 0 3px rgba(33, 168, 242, 0.45);

  --header-h: 74px;
  --speed: 0.45s;
}

/* ---------- Accessibility widget states ---------- */
html[data-contrast="high"] {
  --navy: #001a2c;
  --slate: #0c1d2a;
  --mist: #1c3142;
  --line: #8aa3b6;
  --cloud: #ffffff;
  --cloud-2: #f0f5fa;
}
html[data-contrast="high"] body { background: #fff; }
html[data-underline="on"] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-links="hl"] a:not(.btn) { background: #fff3b0 !important; color: #3a2c00 !important; box-shadow: 0 0 0 2px #fff3b0; border-radius: 3px; }
html[data-font="dyslexic"] body,
html[data-font="dyslexic"] h1,
html[data-font="dyslexic"] h2,
html[data-font="dyslexic"] h3,
html[data-font="dyslexic"] button,
html[data-font="dyslexic"] input,
html[data-font="dyslexic"] select {
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif !important;
  letter-spacing: 0.02em;
}
html[data-cursor="big"], html[data-cursor="big"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 2l28 14-12 3-5 13z' fill='%23003353' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto;
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
  text-wrap: balance;
  width: 100%;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--slate); line-height: 1.6; }
strong { color: var(--navy); font-weight: 600; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  display: inline-block;
}

/* ---------- Layout ---------- */
.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-narrow); margin-inline: auto; }
section { position: relative; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2rem, 1.4rem + 3vw, 4rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm); z-index: 2000; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-0);
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--speed) cubic-bezier(.2,.8,.2,1), box-shadow var(--speed), background .3s, color .3s;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--blue); color: #02283f; box-shadow: 0 10px 24px rgba(33,168,242,0.35); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px rgba(33,168,242,0.45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-lg { font-size: var(--step-1); padding: 1em 1.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav {
  display: flex; align-items: center; gap: 1.4rem;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--blue-600); }
.brand-logo { height: 54px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 44px; } }

.nav-primary { display: none; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav-actions { display: none; align-items: center; gap: 0.7rem; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; color: var(--navy);
  padding: 0.6rem 0.7rem; border-radius: var(--r-sm); position: relative;
  display: inline-flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--blue-600); background: var(--blue-050); }
.nav-link svg { width: 0.7em; height: 0.7em; transition: transform .3s; }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }

/* Mega menu */
.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(760px, 90vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem;
}
/* Invisible bridge across the gap so moving from the link to the panel does not close it */
.mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.mega-card { display: flex; gap: 0.8rem; padding: 0.8rem; border-radius: var(--r-md); transition: background .2s, transform .2s; }
.mega-card:hover { background: var(--cloud); transform: translateY(-2px); }
.mega-card .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue-050); display: grid; place-items: center; color: var(--blue-600); }
.mega-card .ic svg { width: 22px; height: 22px; }
.mega-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.mega-card p { font-size: 0.82rem; color: var(--mist); line-height: 1.45; margin: 0; }
.mega-feature {
  background: linear-gradient(160deg, var(--navy), var(--navy-700));
  color: #fff; border-radius: var(--r-md); padding: 1.3rem; display: flex; flex-direction: column; justify-content: space-between;
}
.mega-feature h4 { color: #fff; font-size: 1.15rem; }
.mega-feature p { color: rgba(255,255,255,0.82); font-size: 0.85rem; margin: 0.5rem 0 1rem; }
.mega-feature .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }

/* Google Translate toggle */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.5rem 0.85rem; font-family: var(--font-head); font-weight: 500; font-size: 0.85rem; color: var(--navy); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--blue); }
.lang-toggle svg { width: 18px; height: 18px; color: var(--blue-600); }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 0.6rem; width: 220px; z-index: 950;
  display: none;
}
.lang-panel.open { display: block; }
.lang-panel .hint { font-size: 0.72rem; color: var(--mist); padding: 0.3rem 0.4rem 0.5rem; }
#google_translate_element select { width: 100%; padding: 0.5rem; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* Hamburger */
.hamburger {
  margin-left: auto; width: 46px; height: 46px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: .3s; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy); transition: .3s; }
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
  background: #fff; z-index: 1100; transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  padding: calc(var(--header-h) + 1rem) 1.4rem 2rem; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
body.menu-open .drawer { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,38,62,0.45); opacity: 0; visibility: hidden; transition: .3s; z-index: 1050; }
body.menu-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer a.d-link { display: block; padding: 0.85rem 0.4rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.drawer details summary { padding: 0.85rem 0.4rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.1rem; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer details[open] summary { color: var(--blue-600); }
.drawer details .sub a { display: block; padding: 0.6rem 0.4rem 0.6rem 1rem; color: var(--slate); font-size: 0.98rem; }

/* Hero headline: forced to three lines via <br>, sized to fit its column
   without overflow at any width. */
.hero-title { font-size: clamp(1.75rem, 8vw, 3rem); line-height: 1.04; letter-spacing: -0.02em; }
@media (min-width: 920px) { .hero-title { font-size: clamp(2rem, 4.4vw, 3.6rem); } }

/* Headline line control: keep titles to two lines (three only when genuinely
   long). The previous JS fit-to-width is removed; CSS clamp sizes everything. */
.fit-headline { text-wrap: balance; }
h1.fit-headline { font-size: clamp(2rem, 1.4rem + 3vw, 3.7rem); }
.cta-band .fit-headline { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); max-width: 22ch; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(1.2rem, 0.8rem + 1.6vw, 2.2rem); padding-bottom: clamp(1.8rem, 1.2rem + 2.5vw, 3rem); overflow: hidden; }
.hero .stack-lg > * + * { margin-top: clamp(0.8rem, 0.5rem + 1vw, 1.3rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--blue-050), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #eef6fd, transparent 55%);
}
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
.hero-blob { position: absolute; z-index: -1; filter: blur(0.5px); opacity: 0.9; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 500; color: var(--slate); box-shadow: var(--shadow-sm);
}
.pill .stars { color: var(--gold); letter-spacing: 1px; }
.pill svg { width: 15px; height: 15px; color: var(--blue-600); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.4rem;
}

/* ---------- Imagery ---------- */
.hero-media { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; max-height: min(58vh, 540px); object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); border-radius: var(--r-pill); padding: 0.55rem 0.95rem; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--navy); box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-badge .stars { color: var(--gold); letter-spacing: 1px; }
.hero-chip { position: absolute; bottom: 18px; left: 16px; background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 0.8rem 1.1rem; box-shadow: var(--shadow-lg); }
.hero-chip strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.hero-chip span { font-size: 0.78rem; color: rgba(255,255,255,0.78); }

/* Faded hero background photo */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; z-index: -1; pointer-events: none; }

/* Faded section background photo (used on inner-page intro sections) */
.sect-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; z-index: -1; pointer-events: none; }
/* A band that holds a faded photo behind several stacked sections */
.bg-band { position: relative; }

/* Fixed-height faded photo banner pinned to the top of the page, fading to white */
#main { position: relative; }
.page-photo { position: absolute; top: 0; left: 0; width: 100%; height: clamp(460px, 56vh, 640px); object-fit: cover; opacity: 0.3; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
/* Keep prose/section headings tight (1-2 lines), not stretched tall */
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); }

/* Calculator embedded in the hero */
.hero-calc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1rem, 0.8rem + 0.7vw, 1.4rem); }
.hc-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: var(--step-1); margin-bottom: 0.7rem; }
.hero-calc .calc { display: block; }
.hero-calc .field { margin-bottom: 0.75rem; }
.hero-calc .field > label { font-size: 0.86rem; margin-bottom: 0.35rem; }
.hero-calc .seg .opt label { padding: 0.5rem 0.4rem; }
.hc-out { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; border-radius: var(--r-md); padding: 0.9rem 1.1rem; margin-top: 0.9rem; }
.hc-out .total { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); line-height: 1; letter-spacing: -0.02em; }
.hc-out .total small { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.hc-out #out-lines { display: none; }
.hc-out .line { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px dashed rgba(255,255,255,0.16); font-size: 0.84rem; color: rgba(255,255,255,0.85); }
.hc-out .line strong { color: #fff; }
.hc-out .save { color: var(--mint); }
.hc-out .btn { margin-top: 0.9rem; }
.hc-out .placeholder-note { color: #ffe6b0; margin-top: 0.7rem; }

/* Place cards with photo (service areas) */
.place-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; height: 100%; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s; }
.place-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); color: inherit; }
.place-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.place-card .pc-body { padding: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem); }
.place-card h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.place-card p { color: var(--slate); font-size: 0.92rem; }

/* Image band */
.img-frame { width: 100%; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; }

/* Accordion gallery (expanding image panels) */
.acc-gallery { display: flex; gap: 12px; height: clamp(380px, 42vw, 520px); }
.acc-panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; transition: flex-grow .55s cubic-bezier(.2,.8,.2,1); }
.acc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.acc-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,38,62,0.15) 25%, rgba(0,38,62,0.9)); }
.acc-panel.active { flex-grow: 5; }
.acc-panel.active .acc-img { transform: scale(1.04); }
.acc-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(1rem, 0.8rem + 1vw, 1.6rem); text-align: center; }
.acc-panel.active .acc-content { justify-content: flex-end; align-items: flex-start; text-align: left; }
.acc-status { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); opacity: 0; transition: opacity .3s; }
.acc-content h3 { color: #fff; font-size: var(--step-2); }
.acc-panel:not(.active) h3 { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; letter-spacing: 0.02em; }
.acc-desc { color: rgba(255,255,255,0.9); font-size: 0.94rem; max-width: 42ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease, margin .4s ease; }
.acc-panel.active .acc-status { opacity: 1; }
.acc-panel.active .acc-desc { max-height: 140px; opacity: 1; margin-top: 0.4rem; }
.acc-go { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* Flip cards (tier section): photo on the FRONT, checklist details on the BACK */
.flip-grid { perspective: 1600px; }
.flip-card { border-radius: var(--r-lg); outline: none; cursor: pointer; }
.flip-card:focus-visible { box-shadow: var(--ring); }
.flip-inner { position: relative; width: 100%; min-height: 460px; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-card .flip-front, .flip-card .flip-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); overflow: hidden; }

/* FRONT = photo with the tier name over it */
.flip-front { background: var(--navy); color: #fff; }
.flip-front .flip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,38,62,0.12) 22%, rgba(0,38,62,0.9)); }
.flip-front-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.3rem, 1rem + 1vw, 2rem); }
.flip-front-content h3 { color: #fff; }
.flip-front-content p { color: rgba(255,255,255,0.9); margin: 0.4rem 0 0; max-width: none; }
.flip-card.is-featured .flip-front { box-shadow: inset 0 0 0 3px var(--blue); }
.flip-badge { position: absolute; top: clamp(1.1rem, 1rem + 0.5vw, 1.5rem); left: clamp(1.1rem, 1rem + 0.5vw, 1.5rem); z-index: 2; background: var(--blue); color: #02283f; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); }
.flip-hint { margin-top: 0.9rem; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--blue); }

/* BACK = white card with the checklist */
.flip-back { transform: rotateY(180deg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: clamp(1.3rem, 1rem + 1vw, 2rem); display: flex; flex-direction: column; }
.flip-card.is-featured .flip-back { border-color: var(--blue); }
.flip-back > * { flex-shrink: 0; }
.flip-back .btn { margin-top: auto; }
@media (max-width: 640px) { .flip-inner { min-height: 470px; } }
@media (max-width: 760px) {
  .acc-gallery { flex-direction: column; height: auto; gap: 10px; }
  .acc-panel { height: 76px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
  .acc-panel.active { height: 280px; }
  .acc-content { justify-content: center; align-items: flex-start; text-align: left; }
  .acc-panel.active .acc-content { justify-content: flex-end; }
  .acc-panel:not(.active) h3 { writing-mode: horizontal-tb; transform: none; }
}

/* Editorial value columns (no card boxes, top accent rule) */
.values { display: grid; gap: clamp(1.6rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value-col { border-top: 3px solid var(--blue); padding-top: 1.2rem; }
.value-col .vn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-050); color: var(--blue-600); margin-bottom: 0.9rem; }
.value-col .vn svg { width: 24px; height: 24px; }
.value-col h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.value-col p { color: var(--slate); margin: 0; }

/* Service-area directory rows (not a card grid) */
.area-rows { border-top: 1px solid var(--line); }
.area-row { display: grid; gap: 0.8rem 2.5rem; grid-template-columns: 1fr; align-items: start; padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem) 0.5rem; border-bottom: 1px solid var(--line); color: inherit; transition: background .25s; }
@media (min-width: 760px) { .area-row { grid-template-columns: 1fr 1.05fr; } }
.area-row:hover { background: var(--cloud); color: inherit; }
.area-row .ar-head { display: flex; gap: 0.9rem; align-items: flex-start; }
.area-row .ar-head .pin { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; }
.area-row .ar-head .pin svg { width: 24px; height: 24px; }
.area-row h2 { font-size: var(--step-2); margin-bottom: 0.15rem; }
.area-row h2 a { color: var(--navy); }
.area-row h2 a:hover { color: var(--blue-600); }
.area-row .ar-status { font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); }
.area-row .ar-desc { color: var(--mist); font-size: 0.92rem; margin-top: 0.3rem; }
.area-row .ar-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: flex-start; }
.area-row .ar-links a { background: #fff; border: 1px solid var(--line); color: var(--blue-600); border-radius: var(--r-pill); padding: 0.4rem 0.95rem; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; transition: .2s; }
.area-row .ar-links a:hover { background: var(--blue); border-color: var(--blue); color: #02283f; }

/* Contact methods as a clean list (not card grid) */
.contact-list { border-top: 1px solid var(--line); }
.contact-row { display: flex; align-items: center; gap: 1.1rem; padding: clamp(1.1rem, 0.9rem + 1vw, 1.7rem) 0.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-row .cr-ic { width: 50px; height: 50px; flex: none; border-radius: 14px; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; }
.contact-row .cr-ic svg { width: 24px; height: 24px; }
.contact-row .cr-body { flex: 1 1 220px; }
.contact-row .cr-body h2 { font-size: var(--step-1); margin: 0; }
.contact-row .cr-body p { color: var(--mist); margin: 0.1rem 0 0; font-size: 0.92rem; }
.contact-row .btn { flex: none; }

/* Contact panel (bold text-first layout) */
.contact-panel { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 1.1rem + 2vw, 2.8rem); box-shadow: var(--shadow-lg); text-align: center; }
.cp-lines { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cp-lines { grid-template-columns: 1fr 1fr; } }
.cp-line { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.3rem; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-md); background: rgba(255,255,255,0.04); color: #fff; transition: transform .25s, background .25s; }
.cp-line:hover { background: var(--blue); color: #02283f; transform: translateY(-3px); }
.cp-region { font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); }
.cp-line:hover .cp-region { color: #02283f; }
.cp-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); line-height: 1.1; }
.cp-sub { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.cp-line:hover .cp-sub { color: #06405f; }
.cp-email { margin-top: 1.4rem; color: rgba(255,255,255,0.82); }
.cp-email a { color: var(--blue); font-weight: 600; }

/* How it works: editorial stepper (not a card grid) */
.howto { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 920px) { .howto { grid-template-columns: 0.85fr 1.15fr; } }
.howto-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-item { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; padding-bottom: 1.7rem; }
.step-item:last-child { padding-bottom: 0; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem); line-height: 0.9; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1.6px var(--blue); text-stroke: 1.6px var(--blue); }
.step-item h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.step-item p { color: var(--slate); margin: 0; max-width: 46ch; }

/* ---------- Generic surfaces ---------- */
.surface-cloud { background: var(--cloud); }
.surface-navy { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; }
.surface-navy h1, .surface-navy h2, .surface-navy h3 { color: #fff; }
.surface-navy p { color: rgba(255,255,255,0.82); }
.surface-blue { background: linear-gradient(150deg, var(--blue), var(--blue-600)); color: #02283f; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.card .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--blue-050); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ic svg { width: 28px; height: 28px; }

/* Card with a faded photo behind the content (tier highlight cards). */
.card.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.card .card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; z-index: 0; pointer-events: none; }
.card.has-photo > :not(.card-photo) { position: relative; z-index: 1; }

/* feature list */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; color: var(--slate); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230e93dd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Tier cards ---------- */
.tier { display: flex; flex-direction: column; position: relative; }
.tier.featured { border-color: var(--blue); box-shadow: 0 20px 50px rgba(33,168,242,0.22); }
.tier .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #02283f; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: var(--r-pill); }
.tier h3 { font-size: var(--step-2); }
.tier .price { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: var(--step-2); margin: 0.2rem 0 0.1rem; }
.tier .price small { font-size: 0.9rem; color: var(--mist); font-weight: 500; }
.tier .desc { color: var(--slate); min-height: 3em; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 1.1rem + 2vw, 2.8rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.3rem; }
.field > label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.field .help { font-size: 0.78rem; color: var(--mist); margin-top: 0.35rem; }
.input, select.input {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--blue); box-shadow: var(--ring); }
input[type="range"] { width: 100%; accent-color: var(--blue); height: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.seg.cols-2 { grid-template-columns: 1fr 1fr; }
.seg .opt { position: relative; }
.seg .opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg .opt label {
  display: block; text-align: center; padding: 0.7rem 0.4rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: .2s; color: var(--slate);
}
.seg .opt small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--mist); }
.seg .opt input:checked + label { border-color: var(--blue); background: var(--blue-050); color: var(--navy); }
.seg .opt input:focus-visible + label { box-shadow: var(--ring); }

.switch { display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 52px; height: 30px; border-radius: var(--r-pill); background: #c4d3df; position: relative; transition: .25s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); box-shadow: 0 1px 3px rgba(0,38,62,0.4); transition: .25s; }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(22px); background: #fff; }

/* Tidy bordered toggle row (label left, switch right) */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 0.9rem 1.1rem; }
.toggle-row strong { display: block; font-family: var(--font-head); color: var(--navy); }
.toggle-row small { color: var(--mist); font-size: 0.8rem; }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

.calc-result { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #fff; border-radius: var(--r-lg); padding: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); position: sticky; top: calc(var(--header-h) + 1rem); }
.calc-result h3 { color: #fff; }
.calc-result .total { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 1.8rem + 3vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; }
.calc-result .total small { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.calc-result .line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed rgba(255,255,255,0.16); font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.calc-result .line strong { color: #fff; }
.calc-result .save { color: var(--mint); }
.placeholder-note {
  background: rgba(244,183,64,0.16); border: 1px dashed var(--gold); color: #6a4d09;
  border-radius: var(--r-sm); padding: 0.7rem 0.9rem; font-size: 0.8rem; margin-top: 1rem;
}
.surface-navy .placeholder-note, .calc-result .placeholder-note { color: #ffe6b0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
table.compare th, table.compare td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
table.compare tbody th { font-weight: 600; color: var(--navy); }
table.compare tbody tr:nth-child(even) { background: var(--cloud); }
table.compare td.yes { color: var(--blue-600); font-weight: 700; }
table.compare td.no { color: var(--mist); }

/* ---------- Callouts ---------- */
.callout { border-left: 4px solid var(--blue); background: var(--blue-050); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1.1rem 1.3rem; }
.callout .label { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); display: block; margin-bottom: 0.3rem; }
.callout.warn { border-color: var(--gold); background: #fff8ea; }
.callout.warn .label { color: #b9810a; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.8rem; background: #fff; overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 24px; height: 24px; flex: none; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--blue-600); border-radius: 2px; transition: .3s; }
.faq summary .plus::before { top: 11px; left: 3px; width: 18px; height: 2px; }
.faq summary .plus::after { left: 11px; top: 3px; width: 2px; height: 18px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq .ans { padding: 0 1.3rem 1.2rem; color: var(--slate); }
.faq .ans p { max-width: none; }

/* ---------- Stat / proof strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1rem; }
.stat .n { font-family: var(--font-head); font-weight: 700; font-size: var(--step-3); color: var(--navy); line-height: 1; }
.surface-navy .stat .n { color: var(--blue); }
.stat .l { font-size: 0.85rem; color: var(--mist); margin-top: 0.3rem; }
.surface-navy .stat .l { color: rgba(255,255,255,0.75); }

/* ---------- Reviews ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.6rem; }
.review p { color: var(--slate); font-style: italic; }
.review .who { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; }
.review .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.review .who b { display: block; color: var(--navy); font-size: 0.92rem; }
.review .who span { font-size: 0.8rem; color: var(--mist); }

/* Reviews carousel (auto-sliding marquee) */
.review-marquee { overflow: hidden; padding: 0.6rem 0; max-width: 100%; }
.review-track { display: flex; width: max-content; animation: review-scroll 55s linear infinite; will-change: transform; }
.review-marquee:hover .review-track { animation-play-state: paused; }
.review-track .review { flex: none; width: min(360px, 80vw); margin-right: var(--gap); height: auto; }
/* Track holds 3 identical copies; sliding one copy (-33.333%) keeps the loop
   seamless with no trailing gap up to ~2x a single copy's width (covers 4K). */
@keyframes review-scroll { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; }
  .review-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Author / E-E-A-T box ---------- */
.author { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.author .photo { width: 76px; height: 76px; border-radius: 50%; flex: none; background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.author h4 { margin-bottom: 0.2rem; }
.author .role { color: var(--blue-600); font-weight: 600; font-size: 0.9rem; }
.author p { font-size: 0.9rem; color: var(--slate); margin-top: 0.5rem; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.8rem; color: var(--mist); padding: 1rem 0 0; }
.crumb a { color: var(--mist); }
.crumb a:hover { color: var(--blue-600); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--r-lg); padding: clamp(2rem, 1.4rem + 3vw, 3.6rem); text-align: center; overflow: hidden; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer a { color: rgba(255,255,255,0.75); display: inline-block; padding: 0.25rem 0; }
.site-footer a:hover { color: var(--blue); }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.foot-bottom a { color: rgba(255,255,255,0.55); }

/* ---------- Floating mobile CTA bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem;
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,51,83,0.08);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; color: var(--navy); padding: 0.35rem; border-radius: var(--r-sm); }
.mobile-bar a svg { width: 20px; height: 20px; color: var(--blue-600); }
.mobile-bar a.primary { background: var(--blue); color: #02283f; }
.mobile-bar a.primary svg { color: #02283f; }

/* ---------- ADA widget ---------- */
.a11y-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 1200;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.a11y-fab:hover { background: var(--blue-600); }
.a11y-fab svg { width: 28px; height: 28px; }
.a11y-panel {
  position: fixed; left: 16px; bottom: 82px; z-index: 1200;
  width: min(340px, calc(100vw - 32px)); background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.2rem;
  transform: translateY(20px) scale(0.96); opacity: 0; visibility: hidden; transform-origin: bottom left;
  transition: .25s cubic-bezier(.2,.8,.2,1);
  max-height: 80vh; overflow-y: auto;
}
.a11y-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.a11y-panel h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.a11y-btn { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-md); padding: 0.8rem 0.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; color: var(--navy); text-align: center; transition: .2s; }
.a11y-btn svg { width: 22px; height: 22px; color: var(--blue-600); }
.a11y-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-050); }
.a11y-reset { margin-top: 0.9rem; width: 100%; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem; font-family: var(--font-head); font-weight: 600; cursor: pointer; color: var(--slate); }
.a11y-text-size { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.9rem; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--r-md); }
.a11y-text-size .ctrl { display: flex; gap: 0.4rem; }
.a11y-text-size button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--navy); }

/* ---------- Reveal animation ----------
   Content is visible by default. Only when JS is active (html.js) do we hide
   then reveal, so a JS failure never leaves the page blank. */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1 !important; transform: none !important; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Ambient motion ---------- */
/* Slow drift on the decorative hero blob. Killed automatically by the
   prefers-reduced-motion / data-motion="off" rules above. */
@keyframes ihp-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0, -18px) rotate(3deg); }
}
.hero-blob { animation: ihp-float 9s ease-in-out infinite; will-change: transform; }
/* JS parallax writes transform on these; hint the compositor. */
.hero-bg, .page-photo { will-change: transform; }
/* Numbers mid count-up should not reflow their row. */
.stat .n { font-variant-numeric: tabular-nums; }

/* ---------- Misc helpers ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.muted { color: var(--mist); }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin-top: 2.4rem; margin-bottom: 0.8rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.prose ul { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--slate); }
.prose li { margin-bottom: 0.4rem; }
.tag-chip { display: inline-block; background: var(--blue-050); color: var(--blue-600); border-radius: var(--r-pill); padding: 0.3rem 0.8rem; font-size: 0.78rem; font-weight: 600; font-family: var(--font-head); margin: 0.2rem 0.2rem 0.2rem 0; }

/* skip translate banner shift */
body { top: 0 !important; }
.goog-te-banner-frame { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .calc { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 920px) {
  .nav-primary, .nav-actions { display: flex; }
  .hamburger { display: none; }
  .mobile-bar { display: none; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .calc { grid-template-columns: 1.4fr 1fr; }
  body { padding-bottom: 0; }
}
@media (max-width: 919px) {
  body { padding-bottom: 70px; } /* room for mobile bar */
}
