/* =========================================================
   Lucky Duck Insulation: Global Stylesheet
   Brand: Trustworthy + bright. Navy-led + cream; gold as accent.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (pulled from logo) */
  --navy-900: #07194a;
  --navy-800: #0e2b6e;
  --navy-700: #1b3fa0;
  --navy-600: #2a55c4;
  --navy-50:  #eef3ff;

  --gold-600: #e0a312;
  --gold-500: #f7bb1e;
  --gold-400: #ffd42a;
  --gold-300: #ffe27a;
  --gold-100: #fff5d2;

  --sky-200:  #dceaf7;
  --sky-100:  #eaf3fb;

  --cream:    #fff8ea;
  --paper:    #ffffff;

  --ink-900:  #0c1224;
  --ink-700:  #1a1f2e;
  --ink-500:  #4b5563;
  --ink-400:  #6b7280;
  --ink-300:  #9ca3af;
  --ink-200:  #d1d5db;
  --ink-100:  #e5e7eb;
  --ink-50:   #f3f4f6;

  --success:  #047857;
  --danger:   #b91c1c;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-xs:  0.8125rem;   /* 13 */
  --fs-sm:  0.9375rem;   /* 15 */
  --fs-base:1.0625rem;   /* 17 */
  --fs-md:  1.1875rem;   /* 19 */
  --fs-lg:  1.375rem;    /* 22 */
  --fs-xl:  1.75rem;     /* 28 */
  --fs-2xl: 2.25rem;     /* 36 */
  --fs-3xl: 3rem;        /* 48 */
  --fs-4xl: 3.75rem;     /* 60 */
  --fs-5xl: 4.75rem;     /* 76 */

  /* Spacing (8pt-ish) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10:2.5rem;
  --sp-12:3rem;
  --sp-16:4rem;
  --sp-20:5rem;
  --sp-24:6rem;
  --sp-32:8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --container-wide: 1320px;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(7, 25, 74, 0.08);
  --shadow:    0 10px 30px rgba(7, 25, 74, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 25, 74, 0.18);

  --ring: 0 0 0 3px rgba(42, 85, 196, 0.45);

  --ease: cubic-bezier(.2,.7,.1,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--navy-700); text-decoration-color: rgba(27, 63, 160, .25); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); text-decoration-color: rgba(42, 85, 196, 0.55); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin: 0 0 var(--sp-4);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
h1 { font-size: clamp(2.25rem, 5.4vw, var(--fs-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.8vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.375rem, 2.2vw, var(--fs-xl)); line-height: 1.2; }
h4 { font-size: var(--fs-lg); line-height: 1.25; }
p  { margin: 0 0 var(--sp-4); }

ul, ol { padding-left: 1.2em; margin: 0 0 var(--sp-4); }
li + li { margin-top: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--ink-100); margin: var(--sp-12) 0; }

::selection { background: var(--sky-200); color: var(--navy-900); }

/* ---------- Layout helpers ---------- */
.container       { width: 100%; max-width: var(--container);       margin-inline: auto; padding-inline: var(--sp-6); }
.container-narrow{ width: 100%; max-width: var(--container-narrow);margin-inline: auto; padding-inline: var(--sp-6); }
.container-wide  { width: 100%; max-width: var(--container-wide);  margin-inline: auto; padding-inline: var(--sp-6); }

section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }
section.tight { padding-block: clamp(2rem, 5vw, 4rem); }

.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  width: fit-content;
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy-700);
  background: var(--sky-100);
  padding: .35rem .7rem;
  border-radius: var(--radius-pill);
  margin-bottom: .85rem;
}
.text-center .eyebrow,
.section-head .eyebrow {
  margin-inline: auto;
  justify-content: center;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(42, 85, 196, 0.22);
}

.lede { font-size: var(--fs-md); color: var(--ink-500); max-width: 60ch; }
.muted { color: var(--ink-500); }
.highlight {
  background: linear-gradient(180deg, transparent 62%, var(--sky-200) 62%);
  padding: 0 .18em;
  border-radius: .25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--navy-700);
  font-size: var(--fs-md);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.25rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: 0.01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(14, 43, 110, 0.4);
  color: var(--btn-fg);
}
.btn:not(.btn--ghost):not(.btn--white):hover {
  --btn-bg: var(--navy-700);
  --btn-bd: var(--navy-700);
}
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800); }
.btn--navy    { --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800); }
.btn--navy:hover { box-shadow: 0 10px 26px rgba(14, 43, 110, 0.42); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--navy-800); }
.btn--ghost:hover { --btn-bg: var(--navy-800); --btn-fg: #fff; box-shadow: 0 10px 24px rgba(14,43,110,.25); }
.btn--white   { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn--white:hover {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  box-shadow: 0 10px 24px rgba(14,43,110,.25);
}
.btn--lg { padding: 1.05rem 1.6rem; font-size: var(--fs-base); }
.btn--sm { padding: .55rem .9rem; font-size: var(--fs-xs); border-width: 1.5px; }

.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Top utility bar (sits BELOW the header, hidden on mobile) ---------- */
.topbar {
  background: var(--navy-900);
  color: #fff;
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding-block: .55rem;
  row-gap: var(--sp-2);
}
.topbar__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  min-width: 0;
  flex: 1 1 12rem;
}
.topbar__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.topbar__phone svg { width: 16px; height: 16px; color: var(--sky-200); flex-shrink: 0; }
.topbar__phone:hover { color: #fff; }
.topbar__hours,
.topbar__area {
  display: inline-flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.78); font-size: var(--fs-xs);
  font-weight: 600;
}
.topbar__hours::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5cd084; box-shadow: 0 0 0 3px rgba(92,208,132,.25); }
.topbar__area::before { content: "📍"; font-size: .85em; }
.topbar__rating {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.82);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
}
.topbar__rating svg { width: 16px; height: 16px; color: var(--sky-200); flex-shrink: 0; }
.topbar__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #fff; color: var(--navy-900);
  padding: .45rem 1rem; border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none; font-size: var(--fs-xs);
  border: 2px solid #fff;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s, border-color .15s;
}
.topbar__cta:hover {
  color: var(--navy-900);
  background: var(--sky-100);
  border-color: var(--sky-100);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 43, 110, 0.35);
}

@media (max-width: 1140px) {
  .topbar__area { display: none; }
}
@media (max-width: 720px) {
  /* Sticky bottom CTAs handle phone + Schedule on mobile, so hide the topbar entirely. */
  .topbar { display: none; }
}

/* Sticky shell. Dock tokens only apply ≥1141px (fixed raster; no squish / overlap). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  overflow: visible;
  /* Padding area must not stay transparent; otherwise content shows through while scrolling */
  background: #fff;
  /* Notch only; avoid extra arbitrary gap stacking on desktop */
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .header {
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.site-header .topbar {
  position: relative;
  z-index: 1;
}
/* Logo link: sibling of stripes; only visible ≥1141px (see media blocks below). */
.brand-mark {
  display: none;
  position: absolute;
  /* Default ≤1140: unused (hidden). ≥1141: overridden. Align to .container inner edge, not viewport. */
  left: 0;
  top: 50%;
  transform: translateY(calc(-50% + 12px));
  z-index: 4;
  line-height: 0;
  cursor: pointer;
}
.brand-mark img {
  display: block;
  width: var(--header-dock, 10.25rem);
  height: var(--header-dock, 10.25rem);
  margin: 0;
  image-rendering: auto;
  transition: filter .2s var(--ease);
}

/* ---------- Header / nav ---------- */
.header {
  position: static;
  background: rgba(255,255,255,.985);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(7, 25, 74, .08);
  overflow: visible;
  padding-top: 0;
}
@media (max-width: 1140px) {
  .header { background: #fff; }
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding-block: .42rem;
  overflow: visible;
}
.brand.brand--text,
.brand--text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
  min-width: 0;
  position: relative;
  z-index: 3;
  flex-shrink: 1;
  padding-left: 0;
  justify-content: flex-start;
}
.brand:not(.brand--text) {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
/* Do not transform/scale the lockup: it softens the raster logo on some displays */
.brand:hover { transform: none; }
.brand:hover .brand__name strong { color: var(--navy-800); }
.brand-mark:focus-visible {
  outline: 2px solid var(--sky-200);
  outline-offset: 3px;
  border-radius: 4px;
}
.brand-mark:hover img {
  filter: brightness(1.05);
}
.brand__inline-img {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: auto;
}

.brand__name {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: .45rem;
  line-height: 1;
  min-width: 0;
  transition: color .15s var(--ease);
}
.brand__name strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-size: 2.25rem;
  white-space: nowrap;
}
.brand__name small {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--navy-900);
  font-size: 2.25rem;
  white-space: nowrap;
  margin-top: 0;
}

/* ≤1140px: same compact lockup as phone (inline raster + wrap); no absolute duck. */
@media (max-width: 1140px) {
  .header__inner {
    gap: var(--sp-2);
    padding-block: 0.48rem;
  }
  .nav-toggle {
    flex-shrink: 0;
  }
  .brand.brand--text,
  .brand--text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand__name {
    flex-wrap: wrap;
    column-gap: 0.35rem;
    row-gap: 0.08rem;
    line-height: 1.08;
    min-width: 0;
    justify-content: flex-start;
  }
  .brand__name strong,
  .brand__name small {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  .header__inner {
    padding-block: 0.5rem;
  }
  .brand__name strong,
  .brand__name small {
    font-size: 1.55rem;
  }
}

/* ≥1141px: fixed dock + rail; hide inline raster (big duck only). */
@media (min-width: 1141px) {
  .site-header {
    /*
     * Full square bbox + same horizontal nudge as .brand-mark + gap. Rail must be ≥
     * nudge + dock or the wordmark (padding-left on .brand) tucks behind the raster.
     */
    --header-dock: 10.25rem;
    --brand-mark-nudge: clamp(10px, 1vw, 18px);
    --dock-rail: calc(
      var(--header-dock) + var(--brand-mark-nudge) + var(--sp-5)
    );
  }
  /* Line up duck with header .container content column, not viewport-left + 18px. */
  .brand-mark {
    display: block;
    left: calc(
      (100vw - min(var(--container), 100vw - 2 * var(--sp-6))) / 2
      + max(env(safe-area-inset-left, 0px), var(--sp-6))
      + var(--brand-mark-nudge)
    );
    transform: translateY(calc(-50% + 10px));
    /* Decorative dock: pointer passes through to nav/menus below (wordmark is the main home link). */
    pointer-events: none;
  }
  .brand__inline-img {
    display: none !important;
  }
  .brand.brand--text,
  .brand--text {
    padding-left: var(--dock-rail);
    gap: 0;
  }
  .brand__name {
    flex-wrap: nowrap;
  }
  .brand__name strong,
  .brand__name small {
    font-size: 2.25rem;
    white-space: nowrap;
  }
  .site-header .topbar > .container.topbar__inner {
    padding-inline-start: calc(env(safe-area-inset-left, 0px) + var(--sp-6) + var(--dock-rail));
  }
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--ink-700); text-decoration: none; font-weight: 600;
  padding: .55rem .85rem; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); position: relative;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy-900); background: var(--sky-100); }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 8px; height: 8px; margin-left: .35rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.has-sub__menu {
  /* top: 100% + padding bridges the old gap so the pointer never crosses "dead" air */
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-inline: 0.5rem;
  padding-bottom: 0.5rem;
  min-width: 260px;
  display: none;
  z-index: 60;
}
@media (min-width: 1141px) {
  .has-sub:hover .has-sub__menu,
  .has-sub:focus-within .has-sub__menu { display: block; }
  /* Nav + dropdowns above .brand (z-index: 3) so wide menus stay interactive */
  .header__inner > .nav {
    position: relative;
    z-index: 5;
  }
}
.has-sub__menu a {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  color: var(--ink-700); font-weight: 600;
}
.has-sub__menu a:hover { background: var(--sky-100); color: var(--navy-900); }

.nav__cta { margin-left: .5rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--ink-100);
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px;
  background: var(--navy-900); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .15s;
  position: relative;
}
.nav-toggle span::before { top: -7px; position: absolute; }
.nav-toggle span::after  { top:  7px; position: absolute; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    /* Header stripe + topbar; no overlapping dock (compact ≤1140px) */
    --nav-sheet-top: calc(124px + env(safe-area-inset-top, 0px));
    position: fixed;
    inset: auto 0 auto 0;
    top: var(--nav-sheet-top);
    flex-direction: column; align-items: stretch;
    background: #fff; border-top: 1px solid var(--ink-100);
    padding: 1rem 1.25rem 1.5rem;
    /* Closed state: fully hidden so it never "peeks" under the header */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .18s var(--ease), visibility 0s linear .18s;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-sheet-top));
    overflow-y: auto;
    z-index: 45;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .25s var(--ease), opacity .18s var(--ease), visibility 0s;
  }
  .nav a { padding: .9rem 1rem; font-size: var(--fs-base); border-radius: 12px; }

  /* Mobile dropdown: parent link becomes a toggle, submenu collapsed by default. */
  .has-sub > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .has-sub > a::after {
    margin-left: .5rem;
    transition: transform .25s var(--ease);
  }
  .has-sub[data-open="true"] > a::after {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .has-sub__menu {
    position: static;
    box-shadow: none; border: 0;
    padding: 0 0 .25rem .75rem;
    margin: 0;
    min-width: 0;
    display: none;
    overflow: hidden;
  }
  .has-sub[data-open="true"] .has-sub__menu { display: block; }
  .has-sub__menu a { padding: .6rem .75rem; }
  .nav__cta { margin: .5rem 0 0; text-align: center; }
}
@media (max-width: 720px) {
  /* Top utility bar hidden; only main header stripe */
  /* Short single-row chrome + safe area (~ original ~70-76px) */
  .nav { --nav-sheet-top: calc(72px + env(safe-area-inset-top, 0px)); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 540px at 88% -10%, rgba(27, 63, 160, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 100%, rgba(220,234,247,.7), transparent 60%),
    linear-gradient(180deg, var(--cream), #fff 80%);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  letter-spacing: -0.025em;
}
.hero__title em {
  font-style: normal;
  color: var(--navy-700);
  font-weight: 800;
}
.hero__lede { font-size: var(--fs-lg); color: var(--ink-500); max-width: 60ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--sp-6); }
.hero__signals {
  margin-top: var(--sp-8);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
  max-width: 540px;
}
.hero__signal { font-size: var(--fs-xs); color: var(--ink-500); }
.hero__signal strong {
  display: block;
  font-family: var(--font-display); font-size: 1.7rem; line-height: 1;
  color: var(--navy-900);
}

.hero__media { position: relative; isolation: isolate; max-width: 560px; justify-self: end; width: 100%; }
.hero__card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__card::before {
  content: ""; position: absolute; inset: -2px;
  background: conic-gradient(from 220deg, var(--sky-100), var(--sky-200), var(--navy-50));
  z-index: -1; filter: blur(20px); opacity: .55;
  border-radius: var(--radius-xl);
  pointer-events: none;
}
.hero__card h3 { color: var(--navy-900); margin-bottom: .5rem; }
.hero__card .form-note { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 1rem; }
.hero__card img { max-width: 100%; height: auto; }

.hero__card-cta--full {
  margin-top: var(--sp-4);
}
.hero__card-cta--full .btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* Lead embed in hero: avoid clipping tall iframe */
.hero__card--embed {
  overflow: visible;
}

/* Contact page: form card reads as one white block with the Housecall iframe (desktop) */
@media (min-width: 721px) {
  .hero__card--contact-form {
    background: #fff;
    padding: var(--sp-4);
  }
  .hero__card--contact-form::before {
    display: none;
  }
  .hero__card--contact-form .hcp-booking--in-hero {
    margin-top: 0;
  }
  .hero__card--contact-form .hcp-booking--lead iframe {
    margin-top: 0;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 720px) {
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero__card { padding: var(--sp-5); border-radius: var(--radius-lg); }
  .hero__card::before { display: none; }
  .hero__card h3 { font-size: 1.35rem; }
  /* Only stretch non-logo rasters; .img-logo stays capped (full-width CTA = upscale blur) */
  .hero__card img:not(.img-logo) { max-width: 100% !important; height: auto !important; }
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .45rem .6rem calc(.45rem + env(safe-area-inset-bottom, 0));
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -10px 30px rgba(7,25,74,.1);
}
.sticky-cta__row { display: flex; gap: .4rem; }
.sticky-cta .btn {
  flex: 1;
  padding: .6rem .75rem;
  font-size: var(--fs-sm);
  border-width: 1.5px;
  gap: .35rem;
}
.sticky-cta .btn--ghost { white-space: nowrap; }
.sticky-cta .btn svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .sticky-cta { display: block; } body { padding-bottom: 60px; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  height: 100%;
}
.card:hover { transform: translateY(-3px); border-color: var(--sky-200); box-shadow: var(--shadow); }
.card h3 { color: var(--navy-900); }
.card a.card__link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: var(--sp-4);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
  flex-shrink: 0;
}
.card__icon svg {
  width: 26px; height: 26px;
  stroke-width: 2;
  display: block;
}

/* Contact page tap-cards (phone, email, location) */
.contact-list {
  display: grid; gap: var(--sp-4);
  max-width: 520px;
  margin-top: var(--sp-6);
}
.contact-card {
  display: flex; align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  min-width: 0;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--navy-600); box-shadow: var(--shadow); }
.contact-card .card__icon { margin-bottom: 0; }
.contact-card__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.contact-card__body strong {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-card__body .muted { font-size: var(--fs-sm); }
.contact-card--static { cursor: default; }
.contact-card--static:hover { transform: none; border-color: var(--ink-100); box-shadow: var(--shadow-sm); }
@media (max-width: 480px) {
  .contact-card { padding: var(--sp-4); gap: var(--sp-3); }
  .contact-card__body strong { font-size: 1.05rem; }
}
.card__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.25rem; line-height: 1;
  color: var(--navy-700);
  display: block; margin-bottom: var(--sp-2);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Section variants ---------- */
.bg-cream { background: var(--cream); }
.bg-sky   { background: linear-gradient(180deg, var(--sky-100), #fff); }
.bg-navy  { background: var(--navy-900); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lede, .bg-navy .muted { color: rgba(255,255,255,.78); }
.bg-navy a { color: var(--sky-200); }
.bg-navy a:hover { color: #fff; }

.bg-paper { background: #fff; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-block: var(--sp-6);
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--sky-200); line-height: 1;
}
.stat span { font-size: var(--fs-xs); color: rgba(255,255,255,.72); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 4rem; }
.steps .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-display); font-size: 1.75rem;
  color: var(--sky-200); font-weight: 800; letter-spacing: -0.02em;
}
.steps .card__icon {
  position: absolute; top: 1.4rem; left: 1.5rem;
  width: 38px; height: 38px; font-size: 1.1rem;
}

/* ---------- Service tile ---------- */
.tile {
  display: block; padding: var(--sp-6); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--ink-100);
  text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.tile::before {
  content: ""; position: absolute; inset: auto -30% -50% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--sky-100), transparent 60%);
  z-index: 0;
}
.tile:hover { transform: translateY(-4px); border-color: var(--navy-600); box-shadow: var(--shadow); }
.tile > * { position: relative; z-index: 1; }
.tile__tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  color: var(--navy-700); background: var(--sky-100);
  padding: .25rem .55rem; border-radius: var(--radius-pill);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--sp-3);
}
.tile h3 { margin-bottom: .35rem; }
.tile__more { font-weight: 700; color: var(--navy-800); margin-top: var(--sp-4); display: inline-flex; align-items: center; gap: .35rem; }
.tile:hover .tile__more { color: var(--navy-900); }

/* ---------- Pillar list (checkmarks) ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
.checks li { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 .55rem; padding: 0; line-height: 1.55; }
.checks li::before {
  content: ""; flex-shrink: 0; margin-top: .35rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-700);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'><path d='M16.7 5.3a1 1 0 0 1 0 1.4l-7 7a1 1 0 0 1-1.4 0l-3-3a1 1 0 0 1 1.4-1.4L9 11.59l6.3-6.29a1 1 0 0 1 1.4 0z'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}

/* Stacked checks: better wrapping for bold lead-in statements (About page) */
.checks--stacked li {
  display: block;
  position: relative;
  padding-left: calc(18px + .75rem);
  margin-bottom: .95rem;
}
.checks--stacked li::before {
  position: absolute;
  left: 0;
  top: .25rem;
  margin-top: 0;
}
.checks--stacked li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: .1rem;
  white-space: normal;
}
@media (max-width: 480px) {
  .checks--stacked li { padding-left: calc(18px + .65rem); }
}

/* ---------- Pricing/value strip ---------- */
.value-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-10); align-items: center;
}
@media (max-width: 880px) { .value-grid { grid-template-columns: 1fr; } }

.energy-loss {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.energy-loss h4 { margin-bottom: .5rem; }

/* Priority cluster: one pill style, font size steps only */
.focus-pills {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.45rem 0.5rem; padding: 1rem 0.5rem; margin: 0;
  border-radius: var(--radius);
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
}
.focus-pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  line-height: 1.25; text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  background: #fff;
  border: 1.5px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  /* Padding tracks type size so every tier feels like the same component */
  padding: 0.4em 0.85em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.focus-pill--1 { font-size: clamp(1.02rem, 2vw, 1.18rem); }
.focus-pill--2 { font-size: clamp(0.92rem, 1.6vw, 1.04rem); }
.focus-pill--3 { font-size: clamp(0.85rem, 1.35vw, 0.95rem); }
.focus-pill--4 { font-size: clamp(0.76rem, 1.1vw, 0.86rem); }
@media (hover: hover) and (pointer: fine) {
  .focus-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
  }
}
@media (max-width: 400px) {
  .focus-pills { justify-content: flex-start; }
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  position: relative;
}
.quote-card::before {
  content: "“"; position: absolute; top: -24px; left: 18px;
  font-family: var(--font-display); font-size: 5rem;
  color: rgba(220, 234, 247, 0.85); line-height: 1;
}
.quote-card .stars { color: var(--navy-600); letter-spacing: .15em; font-size: 1rem; }
.quote-card blockquote { margin: .5rem 0 1rem; font-size: var(--fs-md); color: var(--ink-700); line-height: 1.55; }
.quote-card cite { font-style: normal; color: var(--navy-800); font-weight: 700; }
.quote-card cite span { display: block; color: var(--ink-500); font-weight: 500; font-size: var(--fs-xs); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-6); padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px -28px rgba(7,25,74,.55);
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650;
  color: rgba(255,255,255,.92);
}
.trust-strip__item .pip {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--sky-200);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}
.trust-strip__item .pip svg { width: 18px; height: 18px; display: block; }
.trust-strip__item small {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.72);
  font-weight: 550;
}

/* Full-width bar variant (used on home) */
.trust-strip--bar {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: var(--sp-6) 0;
}
.trust-strip--bar .trust-strip__item { color: rgba(255,255,255,.92); }
.trust-strip--bar .trust-strip__item .pip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--sky-200);
}

@media (min-width: 981px) {
  .trust-strip--bar .trust-strip__item + .trust-strip__item {
    position: relative;
    padding-left: var(--sp-6);
    margin-left: var(--sp-6);
  }
  .trust-strip--bar .trust-strip__item + .trust-strip__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(255,255,255,.10);
  }
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--sky-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b3fa0'><path d='M12 16a1 1 0 0 1-.7-.3l-5-5a1 1 0 1 1 1.4-1.4L12 13.59l4.3-4.3a1 1 0 0 1 1.4 1.42l-5 5a1 1 0 0 1-.7.29z'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 18px;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); background: var(--sky-200); }
.faq-item__body { padding: 0 1.25rem 1.25rem; color: var(--ink-500); }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ---------- Service area chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .85rem;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-pill);
  font-weight: 600; color: var(--navy-800); font-size: var(--fs-sm);
  text-decoration: none;
  transition: transform .15s var(--ease), border-color .15s, background .15s;
}
.chip:hover { background: var(--sky-100); border-color: var(--navy-600); color: var(--navy-900); transform: translateY(-1px); }
.chip::before { content: "📍"; font-size: .9em; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(74, 136, 226, 0.28), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-8); align-items: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .5rem; }
.cta-banner__lede { color: rgba(255,255,255,.82); font-size: var(--fs-md); }
.cta-banner__ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
@media (max-width: 880px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- Forms (Housecall Pro placeholder) ---------- */
.form-placeholder {
  border: 2px dashed var(--ink-200);
  background: var(--ink-50);
  border-radius: var(--radius);
  overflow: hidden;
  padding: var(--sp-6);
  text-align: center;
  color: var(--ink-500);
}
.form-placeholder strong { color: var(--navy-800); display: block; margin-bottom: .25rem; font-size: var(--fs-md); }
.form-placeholder code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--fs-xs); background: #fff; border: 1px solid var(--ink-100);
  padding: .2rem .4rem; border-radius: 6px; color: var(--ink-700);
  overflow-wrap: anywhere; word-break: break-word;
  max-width: 100%; box-sizing: border-box;
}
/* Housecall Pro online booking (native button + modal script) */
.hcp-booking {
  margin-top: var(--sp-4);
  text-align: center;
}
button.hcp-button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 1.05rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  line-height: 1.2;
  background: var(--navy-800);
  color: #fff;
  border: 2px solid var(--navy-800);
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
button.hcp-button:hover {
  transform: translateY(-1px);
  background: var(--navy-700);
  border-color: var(--navy-700);
  box-shadow: 0 10px 26px rgba(14, 43, 110, 0.4);
}
button.hcp-button:focus-visible {
  outline: 2px solid var(--navy-800);
  outline-offset: 3px;
}

/* Housecall Pro lead capture (embedded iframe) */
.hcp-booking--lead iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  margin-top: var(--sp-4);
  border-radius: var(--radius-md);
  background: #fff;
}

.hcp-booking--in-hero {
  margin-top: var(--sp-3);
  text-align: left;
}

.form-placeholder pre,
.form-placeholder code[style*="white-space"] {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere; word-break: break-word;
}

.form-fields { display: grid; gap: var(--sp-3); }
.form-fields label { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800); letter-spacing: .04em; margin-bottom: .25rem; text-transform: uppercase; }
.form-fields input, .form-fields select, .form-fields textarea {
  width: 100%; padding: .85rem 1rem;
  font: inherit; font-size: var(--fs-sm);
  border: 1.5px solid var(--ink-100); border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-fields input:focus, .form-fields select:focus, .form-fields textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: var(--ring);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 540px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Article / blog typography ---------- */
.article {
  max-width: 740px; margin: 0 auto; padding-block: clamp(2rem, 5vw, 4rem);
}
.article header { margin-bottom: var(--sp-8); }
.article h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); margin-bottom: 1rem; }
.article .meta { font-size: var(--fs-xs); color: var(--ink-500); letter-spacing: .12em; text-transform: uppercase; }
.article p { font-size: var(--fs-md); line-height: 1.75; }
.article h2, .article h3 { margin-top: var(--sp-10); }
.article blockquote {
  margin: var(--sp-6) 0;
  border-left: 4px solid var(--navy-600); padding: .25rem 0 .25rem 1.25rem;
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg);
  color: var(--navy-800);
}
.article ul li, .article ol li { font-size: var(--fs-md); }

/* Blog listing card */
.post-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card a { text-decoration: none; color: inherit; display: contents; }
.post-card__image { display: none; }
.post-card--has-image .post-card__image {
  display: block;
  aspect-ratio: 16/9;
  background:
    radial-gradient(380px 200px at 75% 35%, rgba(27, 63, 160, 0.14), transparent 60%),
    linear-gradient(140deg, var(--sky-200), var(--sky-100));
  position: relative;
}
.post-card__body { padding: var(--sp-6); }
.post-card__tag { font-size: var(--fs-xs); font-weight: 700; color: var(--navy-700); letter-spacing: .12em; text-transform: uppercase; }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--navy-900); margin: .35rem 0 .5rem; }
.post-card__excerpt { color: var(--ink-500); font-size: var(--fs-sm); margin-bottom: .75rem; }
.post-card__meta { color: var(--ink-400); font-size: var(--fs-xs); margin-top: auto; }

/* Large web logos: no width:100% (forces stretch blur); intrinsic + max cap only */
.img-logo, .logo-cta img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: auto;
  max-width: min(280px, 100%);
  width: auto;
  height: auto;
  margin-inline: auto;
  display: block;
}
.img-logo.img-logo--sm { max-width: min(180px, 100%); }
.hero__card .img-logo { max-width: min(340px, 100%); }
/* CTA mark: cap width so 320w PNG is not upscaled in the grid (was max-width:100% on mobile) */
/* ~200 CSS px = ~400 dppx on 2x, minimal stretch vs 320 source */
.cta-banner .logo-cta { display: flex; justify-content: center; align-items: center; }
.cta-banner .img-logo,
.cta-banner .logo-cta img {
  max-width: 200px;
  width: 200px;
  height: auto;
  flex-shrink: 0;
}
@media (min-width: 960px) {
  .cta-banner .img-logo,
  .cta-banner .logo-cta img {
    max-width: 220px;
    width: 220px;
  }
}
@media (max-width: 480px) {
  .cta-banner .img-logo,
  .cta-banner .logo-cta img {
    max-width: min(200px, 70vw);
    width: min(200px, 70vw);
  }
}
.logo-cta { text-align: center; line-height: 0; max-width: 100%; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: var(--fs-xs); color: var(--ink-500);
  letter-spacing: .04em;
}
.breadcrumbs a { color: var(--navy-700); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-900); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 .35rem; color: var(--ink-300); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900); color: rgba(255,255,255,.82);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer__brand { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.footer__brand img {
  width: 56px; height: 56px;
  display: block; flex-shrink: 0; object-fit: contain;
  border-radius: 0;
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.footer__brand strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .35rem 0; }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer a:hover { color: var(--sky-200); }
.footer__bottom {
  margin-top: var(--sp-10); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  font-size: var(--fs-xs); color: rgba(255,255,255,.6);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Mini "trust pills" row ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--ink-100); font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-700);
}
.pill::before { content: "★"; color: var(--navy-600); }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto var(--sp-10); text-align: center; }
.section-head .lede { margin: 0 auto; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.duck-divider {
  display: flex; align-items: center; gap: 1rem; color: var(--ink-200);
  font-size: 1.5rem; padding-block: var(--sp-6);
}
.duck-divider::before, .duck-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-200), transparent);
}

/* ---------- Photo grid (work showcase) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}
.photo-blob {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  box-shadow: 0 18px 40px -28px rgba(14, 43, 110, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo-blob:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(14, 43, 110, .5);
}
.photo-blob img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.photo-blob--portrait img { aspect-ratio: 4 / 5; }
.photo-blob--tall img { aspect-ratio: 3 / 4; }
.photo-blob--wide img { aspect-ratio: 16 / 10; }

.photo-blob__caption {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(14, 43, 110, .82);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.photo-blob__caption .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky-200);
}

/* Asymmetric layout: large + 3 stacked thumbs */
.photo-grid--feature .photo-blob:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}
.photo-grid--feature .photo-blob:nth-child(1) img { aspect-ratio: 4 / 5; }
.photo-grid--feature .photo-blob:nth-child(2),
.photo-grid--feature .photo-blob:nth-child(3),
.photo-grid--feature .photo-blob:nth-child(4) {
  grid-column: span 5;
}
.photo-grid--feature .photo-blob:nth-child(2) img,
.photo-grid--feature .photo-blob:nth-child(3) img,
.photo-grid--feature .photo-blob:nth-child(4) img {
  aspect-ratio: 16 / 9;
}

/* Even work gallery (e.g. 6 project photos, 3×2) */
.photo-grid--work .photo-blob {
  grid-column: span 4;
  grid-row: auto;
}
.photo-grid--work .photo-blob img {
  aspect-ratio: 3 / 2;
}

/* ---------- Team grid (founders / portraits) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
  align-items: stretch;
}
.team-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px -22px rgba(14, 43, 110, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -24px rgba(14, 43, 110, .35);
}
.team-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream);
}
.team-card__body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 0;
}
.team-card__role {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-600);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
}
.team-card__bio {
  margin: .4rem 0 0;
  color: var(--ink-700);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 720px) {
  .container, .container-narrow, .container-wide {
    padding-inline: var(--sp-5);
  }

  /* Tighten section spacing on small screens */
  section { padding-block: clamp(2.5rem, 8vw, 4rem); }

  /* Slightly smaller hero on small screens for better fit */
  .hero { padding-block: clamp(2.5rem, 8vw, 4rem) clamp(2.5rem, 8vw, 4rem); }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -0.015em; }
  .hero__lede { font-size: var(--fs-md); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__signals { gap: var(--sp-3); }
  .hero__signal strong { font-size: 1.4rem; }

  /* CTA banner buttons full width on mobile */
  .cta-banner__ctas { flex-direction: column; align-items: stretch; }
  .cta-banner__ctas .btn { width: 100%; }

  /* Cards: tighter padding so content has more breathing room */
  .card, .tile, .quote-card, .energy-loss { padding: var(--sp-5); }

  /* Larger tap targets on FAQ summaries */
  .faq-item summary { padding: 1rem 1.05rem; font-size: var(--fs-base); }

  /* Trust strip stacks vertically on small screens */
  .trust-strip { gap: var(--sp-4); padding: var(--sp-4); }

  /* Slightly smaller h1/h2 on tightest breakpoint */
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2.25rem); }

  /* Photo grid collapses to single-column stack on phones */
  .photo-grid,
  .photo-grid--feature,
  .photo-grid--work {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .photo-grid--feature .photo-blob:nth-child(1),
  .photo-grid--feature .photo-blob:nth-child(2),
  .photo-grid--feature .photo-blob:nth-child(3),
  .photo-grid--feature .photo-blob:nth-child(4) {
    grid-column: span 1;
    grid-row: auto;
  }
  .photo-grid--work .photo-blob {
    grid-column: span 1;
  }
  .photo-grid--feature .photo-blob:nth-child(1) img,
  .photo-grid--feature .photo-blob:nth-child(2) img,
  .photo-grid--feature .photo-blob:nth-child(3) img,
  .photo-grid--feature .photo-blob:nth-child(4) img {
    aspect-ratio: 4 / 3;
  }
  .photo-grid--work .photo-blob img {
    aspect-ratio: 4 / 3;
  }

  /* Team grid spaces tighter on small screens */
  .team-grid { gap: var(--sp-4); }
}

@media (max-width: 480px) {
  .container, .container-narrow, .container-wide {
    padding-inline: var(--sp-4);
  }
  /* Sticky CTAs already handle phone+schedule; reserve compact bottom padding. */
  body { padding-bottom: 60px; }
  .sticky-cta .btn { font-size: var(--fs-xs); padding: .55rem .6rem; }
  .sticky-cta .btn svg { width: 14px; height: 14px; }

  /* Contact cards and hero card images stay inside the viewport */
  .hero__card img { max-width: 220px; }
  .form-placeholder { padding: var(--sp-4); }
}
