/* ==========================================================================
   Advantage Care Group LLC — component styles
   Tailwind (CDN) handles layout utilities; this file holds the bespoke
   components: header, hero, glass surfaces, tilt cards, form, toasts.
   ========================================================================== */

:root {
  --forest: #166534;
  --emerald: #15803d;
  --sage: #dcfce7;
  --mist: #f0fdf4;
  --white: #ffffff;
  --ink: #0f172a;
  --forest-deep: #06301a;
  --forest-night: #03200f;
  --mint: #86efac;
  /* Logo blue + gold: blue is co-primary with green, gold is an occasional accent */
  --royal: #1c3f94;
  --royal-deep: #0f2a66;
  --royal-night: #0a1d48;
  --blue: #2a5bd7;
  --sky: #e8effc;
  --sky-mist: #f3f7fe;
  --gold: #f2b418;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 20px 50px -24px rgba(6, 48, 26, 0.28);

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --mainbar-h: 76px;
  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Base ---------- */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body { background: var(--white); overflow-x: clip; }
::selection { background: #cfdcf8; color: var(--royal-deep); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.section--light :focus-visible, .site-header :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--forest-deep); padding: 0.7rem 1rem; border-radius: 10px; font-weight: 700;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }

.font-display { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-optical-sizing: auto; }
.link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--royal); }

/* ---------- Type scale (modular ~1.25) ---------- */
.h-section {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 650; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
  color: var(--royal-deep); text-wrap: balance;
}
.h-card { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 620; letter-spacing: -0.015em; line-height: 1.15; font-size: 1.4rem; color: var(--royal-deep); }
.lede { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); line-height: 1.65; color: #334155; max-width: 62ch; }
.prose-acg p { line-height: 1.75; color: #334155; max-width: 68ch; }
.prose-acg p + p { margin-top: 1.1em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--emerald);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; line-height: 1.1; white-space: nowrap;
  transition: transform 0.45s var(--spring), box-shadow 0.3s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.95); transition-duration: 0.12s; }
.btn.is-bounce { animation: bubble 0.55s var(--spring); }
@keyframes bubble { 0% { transform: scale(0.94); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, #1a9a4b 0%, var(--emerald) 45%, var(--forest) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 26px -10px rgba(21, 128, 61, 0.75);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 16px 34px -12px rgba(21, 128, 61, 0.9), 0 0 0 6px rgba(134, 239, 172, 0.18); }
.btn--light { background: var(--white); color: var(--royal-deep); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.45); }
.btn--light:hover { box-shadow: 0 0 0 6px rgba(134, 239, 172, 0.22), 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.btn--ghost { color: var(--royal); border: 1.5px solid rgba(28, 63, 148, 0.28); background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 5px rgba(42, 91, 215, 0.1); }
.btn--ghost-dark { color: var(--white); border: 1.5px solid rgba(220, 252, 231, 0.35); background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost-dark:hover { border-color: rgba(220, 252, 231, 0.8); background: rgba(255, 255, 255, 0.14); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn .icon { transition: transform 0.45s var(--spring); }
.btn:hover .icon-shift { transform: translateX(4px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform 0.5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }

/* main bar */
.mainbar {
  height: var(--mainbar-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(15, 42, 102, 0.07);
  transition: box-shadow 0.4s, background-color 0.4s;
}
.site-header.is-condensed .mainbar { background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 30px -22px rgba(15, 42, 102, 0.45); }
.site-header__inner {
  max-width: 82rem; height: 100%; margin: 0 auto; padding: 0 clamp(1.25rem, 2.6vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--ink);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 1px rgba(15, 42, 102, 0.08), 0 6px 16px -8px rgba(15, 42, 102, 0.4); }
.brand__text { display: flex; flex-direction: column; gap: 0.2rem; line-height: 1; min-width: 0; }
.brand__name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; white-space: nowrap; color: var(--royal-deep); }
.brand__tag { font-size: 0.76rem; color: #5a6782; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--footer .brand__logo { width: 52px; height: 52px; }
.brand--footer { color: var(--white); }
.brand--footer .brand__name { color: #fff; display: block; }

/* nav with a sliding indicator */
.nav { position: relative; display: none; align-items: center; gap: 0.2rem; height: 100%; }
.nav a {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 0.85rem;
  font-size: 0.96rem; font-weight: 700; color: #3c4a66; transition: color 0.2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--royal-deep); }
.nav a[aria-current="page"] { color: var(--royal-deep); }
.nav__indicator {
  position: absolute; left: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; pointer-events: none;
  width: var(--w, 0px); transform: translateX(var(--x, 0px));
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  opacity: var(--o, 0);
  transition: transform 0.5s var(--spring), width 0.5s var(--spring), opacity 0.25s;
}

.header-cta { display: flex; align-items: center; gap: 0.9rem; }
.header-call { display: none; align-items: center; gap: 0.6rem; padding: 0.3rem 0.4rem 0.3rem 0.3rem; border-radius: 999px; transition: background-color 0.25s; }
.header-call:hover { background: var(--sky-mist); }
.header-call__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); background: var(--sky); flex: none; transition: transform 0.45s var(--spring); }
.header-call:hover .header-call__icon { transform: rotate(-12deg) scale(1.06); }
.header-call__text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 0.95rem; color: var(--royal-deep); white-space: nowrap; }
.header-call__text small { font-size: 0.74rem; font-weight: 400; color: #5a6782; }
.header-book { display: none; }

.menu-toggle { width: 46px; height: 46px; border-radius: 14px; display: grid; place-content: center; gap: 6px; color: var(--royal-deep); background: var(--sky-mist); border: 1px solid rgba(15, 42, 102, 0.08); transition: background-color 0.25s; }
.menu-toggle:hover { background: var(--sky); }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--spring); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 640px) { .header-book { display: inline-flex; } }
@media (min-width: 1140px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1360px) { .header-call { display: inline-flex; } }
@media (max-width: 1240px) { .brand__tag { display: none; } }
@media (max-width: 767px) {
  :root { --mainbar-h: 66px; --header-h: 66px; }
  .brand__logo { width: 42px; height: 42px; }
  .brand__name { font-size: 1rem; }
}
@media (max-width: 380px) { .brand__name { font-size: 0.9rem; } }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 45; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(3, 32, 15, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; left: 12px; right: 12px; top: calc(var(--mainbar-h) + 10px);
  padding: 1rem; border-radius: 24px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 60px -30px rgba(3, 32, 15, 0.6);
  transform: translateY(-14px) scale(0.97); opacity: 0; transform-origin: top center;
  transition: transform 0.5s var(--spring), opacity 0.25s;
}
.drawer.is-open .drawer__panel { transform: none; opacity: 1; }
.drawer__nav { display: grid; }
.drawer__nav a { padding: 0.95rem 1rem; border-radius: 14px; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--royal-deep); }
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: var(--sky-mist); }
.drawer__nav a[aria-current="page"] { color: var(--blue); }
.drawer__foot { display: grid; gap: 0.6rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid rgba(15, 23, 42, 0.08); }
.drawer__foot .btn--ghost-dark { color: var(--royal); border-color: rgba(28, 63, 148, 0.25); background: transparent; }

/* ---------- Hero (DNA canvas) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 85% 40%, rgba(21, 128, 61, 0.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(22, 101, 52, 0.55) 0%, transparent 60%),
    linear-gradient(160deg, #052a16 0%, var(--forest-night) 55%, #021a0c 100%);
}
.hero--page { min-height: clamp(420px, 64svh, 620px); align-items: flex-end; }
.dna-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 32, 15, 0.72) 0%, rgba(3, 32, 15, 0.25) 48%, transparent 70%),
              linear-gradient(0deg, rgba(3, 32, 15, 0.7) 0%, transparent 30%); }
@media (max-width: 767px) {
  /* Portrait: the helix runs behind the copy, so deepen the veil for legibility */
  .hero__veil { background: linear-gradient(90deg, rgba(3, 32, 15, 0.82) 0%, rgba(3, 32, 15, 0.45) 75%, rgba(3, 32, 15, 0.2) 100%), linear-gradient(0deg, rgba(3, 32, 15, 0.75) 0%, transparent 35%); }
}
.hero__content { position: relative; width: 100%; max-width: 76rem; margin: 0 auto; padding: calc(var(--header-h) + 3rem) 1.25rem 6rem; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero--page .hero__content { padding-bottom: 3.5rem; }
@media (min-width: 640px) { .hero__content { padding-left: 2rem; padding-right: 2rem; } }

.hero__title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.93;
  font-size: clamp(2.9rem, 1.4rem + 5.8vw, 6.6rem);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .soft { color: var(--sage); font-weight: 400; font-style: normal; }
.hero__sub { margin-top: 1.8rem; max-width: 54ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.65; color: rgba(240, 253, 244, 0.86); }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

.page-title { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5.2rem); max-width: 16ch; text-wrap: balance; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: rgba(220, 252, 231, 0.75); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.breadcrumb a:hover { text-decoration-color: var(--mint); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ---------- Light "ink in water" hero ---------- */
.hero--light {
  color: var(--ink);
  background:
    radial-gradient(70% 60% at 70% 35%, #f6fbf7 0%, transparent 70%),
    linear-gradient(170deg, #eef6f0 0%, #e5f1e9 55%, #dfeee4 100%);
}
.hero--light .hero__veil {
  background:
    linear-gradient(90deg, rgba(236, 245, 239, 0.94) 0%, rgba(236, 245, 239, 0.78) 30%, rgba(236, 245, 239, 0) 58%),
    linear-gradient(0deg, rgba(229, 241, 233, 0.9) 0%, rgba(229, 241, 233, 0) 26%);
}
.hero--light :focus-visible { outline-color: var(--blue); }
.hero--light .hero__title { color: var(--royal-deep); font-weight: 520; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(2.8rem, 1.5rem + 5vw, 6rem); }
.hero--light .hero__sub { color: #3c4f45; max-width: 50ch; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); }
.hero--light .page-title { color: var(--royal-deep); font-weight: 560; }
.hero--light .breadcrumb { color: #5b6f63; }
.hero--light .breadcrumb a { color: var(--blue); text-decoration-color: rgba(42, 91, 215, 0.35); }

.hero__content--split { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding-bottom: 2.2rem; }
.hero__main { margin-top: clamp(2rem, 8vh, 7rem); }
@media (max-width: 767px) {
  .hero--light .hero__veil { background: linear-gradient(90deg, rgba(236, 245, 239, 0.9) 0%, rgba(236, 245, 239, 0.62) 70%, rgba(236, 245, 239, 0.35) 100%); }
}

/* ---------- Hero CTA (sits under the copy, inside the soft veil) ---------- */
.hero__cta { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.hero__cta .hero__actions { margin-top: 0; }
.hero__trust { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 700; color: var(--royal); }
/* gold status dot: one of the few yellow touches */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Services ticker: no panel, just a hairline and type ---------- */
.ticker {
  display: flex; align-items: center; gap: 1.4rem;
  padding-top: 1.1rem; border-top: 1px solid rgba(15, 42, 102, 0.12);
}
.ticker__label { flex: none; font-size: 0.86rem; font-weight: 700; color: var(--emerald); }
.ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker__track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__list { display: flex; align-items: center; }
.ticker__list li { display: flex; align-items: center; }
/* small alternating green / blue diamonds between items */
.ticker__list li::after { content: ""; width: 6px; height: 6px; margin: 0 1.3rem; transform: rotate(45deg); border-radius: 1px; background: var(--blue); opacity: 0.55; }
.ticker__list li:nth-child(even)::after { background: var(--emerald); }
.ticker__item {
  position: relative; padding: 0.35rem 0; white-space: nowrap;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em;
  color: rgba(15, 42, 102, 0.78); transition: color 0.25s;
}
.ticker__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.ticker__item:hover, .ticker__item:focus-visible { color: var(--royal-deep); }
.ticker__item:hover::after, .ticker__item:focus-visible::after { transform: scaleX(1); }
@media (max-width: 640px) {
  .ticker { gap: 0.9rem; }
  .ticker__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; }
  .ticker__list[aria-hidden="true"] { display: none; }
}

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(220, 252, 231, 0.45); display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mint); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 768px) and (min-height: 700px) { .scroll-cue { display: block; } }

/* Hero load sequence: one orchestrated moment */
[data-load] { opacity: 0; transform: translateY(24px); }
.hero__title [data-load] { transform: translateY(105%); opacity: 1; }
.is-loaded [data-load] { opacity: 1; transform: none; transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.no-js [data-load] { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
/* overflow-x: clip keeps the decorative orbs from creating a horizontal
   scroll area (clip, unlike hidden, doesn't break position: sticky). */
.section { position: relative; padding: clamp(4.5rem, 3rem + 6vw, 8.5rem) 0; overflow-x: clip; }
.section--mist { background: var(--mist); }
.section--sage { background: linear-gradient(180deg, var(--mist) 0%, var(--sage) 100%); }
.container-acg { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container-acg { padding: 0 2rem; } }

/* Soft parallax orbs that sit behind content */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(50px); opacity: 0.55; z-index: 0; will-change: transform; }
.orb--sage { background: radial-gradient(circle, #bbf7d0 0%, transparent 70%); }
.orb--mint { background: radial-gradient(circle, rgba(134, 239, 172, 0.6) 0%, transparent 70%); }
.orb--gold { background: radial-gradient(circle, rgba(232, 178, 31, 0.22) 0%, transparent 70%); }
.section > .container-acg { position: relative; z-index: 1; }

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--glass-shadow);
  border-radius: 28px;
}
.glass-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 252, 231, 0.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
}

/* ---------- 3D tilt ---------- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden; z-index: 3;
  opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.55), transparent 45%);
  mix-blend-mode: soft-light;
}
[data-tilt]:hover .tilt-glare { opacity: 1; }
.tilt-pop { transform: translateZ(34px); }
.tilt-pop-sm { transform: translateZ(18px); }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } .svc-card--feature { grid-column: span 2; } }

.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: 1.8rem; min-height: 250px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -30px rgba(6, 48, 26, 0.35);
  transition: box-shadow 0.4s var(--ease-out);
}
.svc-card:hover { box-shadow: 0 1px 0 #fff inset, 0 34px 60px -30px rgba(6, 48, 26, 0.45); }
.svc-card__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  color: var(--blue); background: linear-gradient(145deg, #fff, var(--sky));
  box-shadow: 0 0 0 1px rgba(42, 91, 215, 0.12), 0 10px 22px -12px rgba(42, 91, 215, 0.5);
}
.svc-card__icon .icon { width: 28px; height: 28px; }
.svc-card p { color: #475569; line-height: 1.65; }
.svc-card--feature {
  color: var(--white); border-color: rgba(134, 239, 172, 0.25);
  background: radial-gradient(120% 120% at 100% 0%, rgba(34, 197, 94, 0.35) 0%, transparent 50%), linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%);
  box-shadow: 0 30px 60px -30px rgba(6, 48, 26, 0.75);
}
.svc-card--feature .h-card { color: var(--white); font-size: 1.85rem; }
.svc-card--feature p { color: rgba(220, 252, 231, 0.85); max-width: 46ch; }
.svc-card--feature .svc-card__icon { background: rgba(255, 255, 255, 0.1); color: var(--mint); box-shadow: 0 0 0 1px rgba(220, 252, 231, 0.2); }
.svc-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--blue); }
.svc-card--feature .svc-card__more { color: var(--mint); }
.svc-card__more .icon { transition: transform 0.45s var(--spring); }
.svc-card:hover .svc-card__more .icon { transform: translateX(5px); }

/* Additional-services chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(42, 91, 215, 0.14); font-weight: 700; font-size: 0.93rem; color: var(--royal-deep); }
.chip .icon { color: var(--blue); }

/* ---------- Why choose us ---------- */
.why-item { position: relative; padding: 1.6rem 0 1.6rem 1.6rem; border-left: 2px solid rgba(42, 91, 215, 0.15); }
.why-item::before { content: ""; position: absolute; left: -7px; top: 2.05rem; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--blue)); box-shadow: 0 0 0 5px var(--mist), 0 0 16px rgba(42, 91, 215, 0.45); }

/* ---------- Steps timeline ---------- */
.steps { position: relative; display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
.steps__track { display: none; }
@media (min-width: 900px) {
  .steps__track { display: block; position: absolute; left: 2.2rem; right: 2.2rem; top: 2.2rem; height: 2px; background: rgba(21, 128, 61, 0.15); border-radius: 2px; }
  .steps__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--emerald), var(--blue)); box-shadow: 0 0 14px rgba(42, 91, 215, 0.45); border-radius: 2px; }
}
.step { position: relative; padding: 1.6rem; border-radius: 24px; }
.step__num {
  position: relative; z-index: 1; width: 4.4rem; height: 4.4rem; margin: -1.6rem 0 1.2rem -1.6rem; display: grid; place-items: center;
  font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--royal-deep);
  background: var(--white); border-radius: 50%; border: 2px solid rgba(42, 91, 215, 0.18);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step.is-active .step__num { background: linear-gradient(135deg, var(--blue), var(--royal)); color: var(--white); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(42, 91, 215, 0.15), 0 0 24px rgba(42, 91, 215, 0.4); }
.step p { color: #475569; line-height: 1.6; margin-top: 0.5rem; }

/* ---------- Family support panel ---------- */
.support-panel {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  border-radius: 36px; padding: clamp(2.2rem, 1.5rem + 3vw, 4.5rem);
  background: radial-gradient(90% 120% at 100% 100%, rgba(34, 197, 94, 0.4) 0%, transparent 55%), linear-gradient(140deg, var(--forest) 0%, var(--forest-deep) 70%);
}
.support-panel .dna-canvas { opacity: 0.9; }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; padding: clamp(1.8rem, 1.2rem + 2vw, 3rem); border-radius: 30px; }
.quote-card__mark { width: 44px; height: 44px; color: var(--gold); }
.quote-card blockquote p { font-family: "Bricolage Grotesque", sans-serif; font-weight: 450; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); line-height: 1.38; letter-spacing: -0.012em; color: var(--royal-deep); margin-top: 1.2rem; }
.quote-card figcaption { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.85rem; font-weight: 700; color: var(--royal); }
.quote-card figcaption .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--royal); font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
.quote-card figcaption small { display: block; font-weight: 400; color: #64748b; font-size: 0.88rem; }

/* ---------- Form ---------- */
.form-shell {
  position: relative; isolation: isolate;
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  border-radius: 30px; background: #fff;
  border: 1px solid rgba(15, 42, 102, 0.07);
  box-shadow: 0 1px 0 #fff inset, 0 40px 80px -48px rgba(15, 42, 102, 0.45), 0 12px 24px -18px rgba(15, 42, 102, 0.18);
}
/* brand accent along the top edge */
.form-shell::before {
  content: ""; position: absolute; left: 2rem; right: 2rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--emerald), var(--blue) 70%, var(--gold));
}

.appt-form__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid rgba(15, 42, 102, 0.08); }
.appt-form__title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 650; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--royal-deep); }
.appt-form__hint { margin-top: 0.3rem; display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: #5a6782; }
.appt-form__hint .icon { color: var(--blue); }
.progress { display: grid; gap: 0.45rem; min-width: 11rem; }
.progress__text { font-size: 0.82rem; font-weight: 700; color: #5a6782; text-align: right; }
.progress__bar { position: relative; height: 6px; border-radius: 6px; background: #edf1f9; overflow: hidden; }
.progress__fill { position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--emerald), var(--blue)); transition: transform 0.6s var(--spring); }
.appt-form.is-complete .progress__text { color: var(--emerald); }

.appt-form__fields { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .appt-form__fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }

.field { position: relative; }
.field__input {
  width: 100%; min-height: 62px; padding: 1.6rem 1rem 0.55rem; border-radius: 16px;
  font: inherit; font-size: 1rem; color: var(--ink); text-align: left;
  background: #f4f7fc; border: 1.5px solid transparent;
  transition: border-color 0.25s, box-shadow 0.3s, background-color 0.25s;
  -webkit-appearance: none; appearance: none;
}
.field--icon .field__input { padding-left: 3.1rem; }
.field__input--area { resize: vertical; min-height: 150px; padding-top: 1.9rem; padding-bottom: 1.8rem; line-height: 1.55; }
.field__input:hover { background: #eef3fb; }
.field__input:focus, .field__input:focus-visible, .dropdown__trigger[aria-expanded="true"] {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 5px rgba(42, 91, 215, 0.12);
}
.field__icon { position: absolute; left: 1.05rem; top: 1.3rem; width: 20px; height: 20px; color: #8a97b3; pointer-events: none; transition: color 0.25s; z-index: 1; }
.field__icon--top { top: 1.35rem; }
.field:focus-within .field__icon, .field.is-open .field__icon { color: var(--blue); }
.field.is-valid .field__icon { color: var(--emerald); }

.field__label {
  position: absolute; left: 1rem; top: 1.2rem; pointer-events: none; z-index: 1;
  color: #64748b; font-size: 1rem; transform-origin: left top; max-width: calc(100% - 4.5rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.35s var(--spring), color 0.25s;
}
.field--icon .field__label { left: 3.1rem; }
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label,
.field--select .field__label { transform: translateY(-0.62rem) scale(0.78); color: var(--royal); font-weight: 700; }

/* green tick once a field is valid */
.field__ok { position: absolute; right: 1rem; top: 1.35rem; width: 18px; height: 18px; color: var(--emerald); opacity: 0; transform: scale(0.4); transition: opacity 0.25s, transform 0.45s var(--spring); pointer-events: none; }
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field.is-valid:not(:focus-within) .field__input { background: #f3faf5; }

.field__count { position: absolute; right: 1rem; bottom: 0.7rem; font-size: 0.78rem; color: #8a97b3; pointer-events: none; }

.field.is-invalid .field__input { border-color: #dc2626; background: #fff; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
.field.is-invalid .field__label, .field.is-invalid .field__icon { color: #b91c1c; }
.field__error { display: flex; gap: 0.35rem; align-items: center; min-height: 0; max-height: 0; overflow: hidden; color: #b91c1c; font-size: 0.86rem; font-weight: 700; transition: max-height 0.35s var(--ease-out), margin 0.35s; }
.field.is-invalid .field__error { max-height: 3rem; margin-top: 0.45rem; }
.field.is-shake { animation: shake 0.45s var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.appt-form__foot { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(15, 42, 102, 0.08); display: flex; flex-direction: column; gap: 1.2rem; align-items: stretch; }
.appt-form__note { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: #5a6782; }
.appt-form__note .icon { flex: none; margin-top: 0.15rem; color: var(--emerald); }
.appt-form__submit { width: 100%; }
@media (min-width: 900px) {
  .appt-form__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .appt-form__note { max-width: 40ch; }
  .appt-form__submit { width: auto; flex: none; }
}
.appt-form.is-complete .appt-form__submit { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 16px 34px -12px rgba(21, 128, 61, 0.9), 0 0 0 6px rgba(134, 239, 172, 0.22); }
.btn.is-loading .icon-shift { display: none; }

[id] { scroll-margin-top: 100px; }

/* ---------- Custom dropdown ---------- */
.dropdown__trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; }
.dropdown__trigger.is-bounce { animation: softBubble 0.5s var(--spring); }
@keyframes softBubble { 0% { transform: scale(0.985); } 50% { transform: scale(1.012); } 100% { transform: scale(1); } }
.dropdown__value { display: flex; align-items: center; gap: 0.55rem; min-width: 0; font-weight: 700; color: var(--royal-deep); }
.dropdown__value > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown__value:empty::before { content: attr(data-placeholder); color: #94a3b8; font-weight: 400; }
.dropdown__value .opt__icon { width: 24px; height: 24px; border-radius: 8px; }
.dropdown__value .opt__icon .icon { width: 14px; height: 14px; }
/* once a service is chosen its own icon shows in the value, so hide the generic one */
.field--select.has-value .field__icon { opacity: 0; }
.field--select.has-value .dropdown__trigger { padding-left: 1rem; }
.field--select.has-value .field__label { left: 1rem; }
.dropdown__chev { flex: none; color: var(--blue); transition: transform 0.45s var(--spring); }
.dropdown__trigger[aria-expanded="true"] .dropdown__chev { transform: rotate(180deg); }

.dropdown__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30;
  display: grid; gap: 2px; padding: 0.45rem;
  background: #fff;                                   /* solid: nothing bleeds through */
  border: 1px solid rgba(15, 42, 102, 0.08); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(15, 42, 102, 0.35), 0 10px 20px -12px rgba(15, 42, 102, 0.2);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97); transform-origin: top center;
  transition: opacity 0.18s, transform 0.45s var(--spring), visibility 0s 0.45s;
}
.field--select.is-open { z-index: 40; }
.field--select.is-open .dropdown__list { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.45s var(--spring), visibility 0s; }
@media (min-width: 680px) { .dropdown__list { left: auto; width: max(100%, 25rem); } }

.dropdown__list [role="option"] {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.7rem; border-radius: 14px; cursor: pointer;
  transition: background-color 0.15s;
}
.dropdown__list [role="option"].opt--other { margin-top: 0.3rem; border-top: 1px solid rgba(15, 42, 102, 0.07); border-radius: 0 0 14px 14px; padding-top: 0.8rem; }
.opt__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--blue); background: var(--sky); transition: background-color 0.2s, color 0.2s; }
.opt__icon .icon { width: 18px; height: 18px; }
.dropdown__list [role="option"]:nth-child(even) .opt__icon { color: var(--emerald); background: #e6f6ea; }
.opt__text { display: grid; gap: 0.1rem; min-width: 0; }
.opt__title { font-weight: 700; color: var(--royal-deep); line-height: 1.25; }
.opt__desc { font-size: 0.84rem; color: #64748b; line-height: 1.35; }
.opt__check { width: 18px; height: 18px; color: var(--blue); opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.4s var(--spring); }
.dropdown__list [role="option"].is-active { background: #f2f6fd; }
.dropdown__list [role="option"].is-active .opt__icon { background: var(--blue); color: #fff; }
.dropdown__list [role="option"]:nth-child(even).is-active .opt__icon { background: var(--emerald); color: #fff; }
.dropdown__list [role="option"][aria-selected="true"] .opt__check { opacity: 1; transform: none; }
.dropdown__list [role="option"][aria-selected="true"] .opt__title { color: var(--blue); }

/* Success state */
.appt-success { text-align: center; padding: 2.5rem 1rem; }
.appt-success:not([hidden]) { animation: successIn 0.7s var(--spring); }
.appt-success__badge { width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--blue)); box-shadow: 0 0 0 10px rgba(42, 91, 215, 0.12), 0 18px 40px -14px rgba(15, 42, 102, 0.6); }
.appt-success__badge .icon { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes successIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; z-index: 80; right: 16px; bottom: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 0.75rem; width: min(400px, 100%);
  padding: 0.95rem 1rem; border-radius: 18px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 50px -24px rgba(6, 48, 26, 0.5);
  transform: translateY(16px) scale(0.96); opacity: 0;
  transition: transform 0.5s var(--spring), opacity 0.25s;
}
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateX(30px); opacity: 0; }
.toast__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--emerald); }
.toast--error .toast__icon { background: #dc2626; }
.toast__icon .icon { width: 17px; height: 17px; }
.toast__title { font-weight: 700; color: var(--ink); }
.toast__msg { font-size: 0.92rem; color: #475569; margin-top: 2px; line-height: 1.45; }
.toast__close { margin-left: auto; color: #94a3b8; padding: 2px; border-radius: 8px; }
.toast__close:hover { color: var(--ink); }

/* ---------- Content cards (blog, jobs, values) ---------- */
.card {
  position: relative; border-radius: 26px; padding: 1.8rem;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 #fff inset, 0 22px 44px -30px rgba(6, 48, 26, 0.35);
}
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%); }
.post-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card__body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.post-card__body p { color: #475569; line-height: 1.65; }
.post-card__meta { font-size: 0.88rem; color: var(--emerald); font-weight: 700; }

.role-card { display: grid; gap: 1rem; }
@media (min-width: 768px) { .role-card { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.6rem; } }

.value-num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--sky); -webkit-text-stroke: 1.5px var(--blue); }

.stat-big { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; font-size: clamp(4rem, 3rem + 4vw, 6.6rem); color: var(--emerald);
  background: linear-gradient(120deg, var(--emerald) 10%, var(--blue) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums; }

/* Leader portrait placeholder (monogram until a real photo is supplied) */
.monogram { aspect-ratio: 4 / 5; border-radius: 30px; display: grid; place-items: center; position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(90% 70% at 70% 20%, rgba(134, 239, 172, 0.35), transparent 60%), linear-gradient(160deg, var(--forest) 0%, var(--forest-night) 100%); }
.monogram span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(5rem, 4rem + 5vw, 9rem); letter-spacing: -0.06em; opacity: 0.95; }

/* Contact info list */
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid rgba(21, 128, 61, 0.12); }
.info-row:last-child { border-bottom: 0; }
.info-row__icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; color: var(--blue); background: var(--white); box-shadow: 0 0 0 1px rgba(42, 91, 215, 0.12); }
.info-row__icon .icon { width: 22px; height: 22px; }

/* Map */
.map-frame { border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 22px 44px -30px rgba(6, 48, 26, 0.4); min-height: 320px; background: var(--sage); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: saturate(0.85) hue-rotate(-8deg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; color: rgba(219, 230, 252, 0.82); background: linear-gradient(180deg, var(--royal-deep) 0%, var(--royal-night) 100%); }
.site-footer__glow { position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent 65%); pointer-events: none; }
.site-footer__glow--blue { right: auto; left: -260px; top: auto; bottom: -380px; background: radial-gradient(circle, rgba(42, 91, 215, 0.35), transparent 65%); }
.footer-heading { font-family: "Bricolage Grotesque", sans-serif; color: var(--white); font-size: 1.05rem; font-weight: 650; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: 0.65rem; }
.footer-links a, .footer-contact a { transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover, .footer-links a[aria-current="page"] { color: var(--mint); }
.footer-contact { display: grid; gap: 0.95rem; font-size: 0.96rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--mint); margin-top: 0.15rem; }
.footer-contact a { word-break: break-word; }
.footer-bottom { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.6rem 0 2rem; border-top: 1px solid rgba(219, 230, 252, 0.14); font-size: 0.88rem; color: rgba(219, 230, 252, 0.6); }
.footer-bottom a:hover { color: var(--mint); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-load], .hero__title [data-load] { opacity: 1; transform: none; }
}


/* ==========================================================================
   Photography + parallax
   ========================================================================== */
/* Frame that clips an oversized image; parallax.js slides the image inside it */
.px-frame { position: relative; overflow: hidden; border-radius: 30px; background: var(--sky); isolation: isolate; }
.px-frame > img { position: absolute; left: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.px-frame--tall { aspect-ratio: 4 / 5; }
.px-frame--wide { aspect-ratio: 16 / 10; }
.px-frame--ring::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); pointer-events: none; }

/* Welcome: photo with the stat card floating over it on a different scroll speed */
.welcome-media { position: relative; padding-bottom: 4.5rem; }
.welcome-media .px-frame { aspect-ratio: 5 / 4.4; box-shadow: 0 40px 80px -50px rgba(15, 42, 102, 0.55); }
.welcome-media__card { position: absolute; left: -1.25rem; bottom: 0; width: min(84%, 22rem); z-index: 2; }
.welcome-media__card .glass { padding: 1.6rem 1.7rem; background: rgba(255, 255, 255, 0.78); }
.welcome-media__tag {
  position: absolute; right: 1.1rem; top: 1.1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; color: var(--royal-deep);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 1024px) { .welcome-media__card { left: -3rem; } }

/* Full-bleed parallax band */
.px-band { position: relative; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; isolation: isolate; }
.px-band__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.px-band__media > img { position: absolute; left: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.px-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 29, 72, 0.88) 0%, rgba(10, 29, 72, 0.45) 45%, rgba(10, 29, 72, 0.05) 75%),
              linear-gradient(90deg, rgba(15, 42, 102, 0.55) 0%, transparent 60%); }
.px-band__content { position: relative; width: 100%; padding-top: 4rem; padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.px-band__title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); max-width: 14ch; text-wrap: balance; }
.px-band__text { margin-top: 1.2rem; max-width: 46ch; font-size: 1.1rem; line-height: 1.6; color: rgba(232, 239, 252, 0.88); }

/* Support panel with a photo column */
.support-panel--split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 1024px) { .support-panel--split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.support-panel--split .px-frame { aspect-ratio: 4 / 3.2; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.support-panel--blue {
  background: radial-gradient(90% 120% at 100% 100%, rgba(42, 91, 215, 0.55) 0%, transparent 55%), linear-gradient(140deg, var(--royal) 0%, var(--royal-deep) 70%);
}

/* Blue surfaces */
.section--sky { background: linear-gradient(180deg, var(--sky-mist) 0%, var(--sky) 100%); }

/* Blog card photos */
.post-card__art.px-frame { border-radius: 0; aspect-ratio: 16 / 10; }

/* ==========================================================================
   Services: scroll-linked assemble / scatter (driven by assemble.js)
   ========================================================================== */
.is-piece { will-change: translate, rotate, scale, opacity; transform-origin: 50% 60%; }

/* ==========================================================================
   Testimonials: scroll-pinned card stack (driven by testimonials.js)
   ========================================================================== */
.testimonials {
  position: relative; overflow: clip;              /* clip (not hidden) keeps sticky working */
  height: calc(var(--count, 3) * 80svh + 30svh);   /* scroll distance that drives the stack */
}
.testimonials__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: clip; }
/* oversized faint quote glyph behind the stack */
.testimonials__pin::before {
  content: "\201C"; position: absolute; right: 4%; top: -0.1em; z-index: 0; pointer-events: none;
  font-family: "Bricolage Grotesque", serif; font-weight: 700; font-size: clamp(16rem, 30vw, 34rem); line-height: 1;
  color: rgba(42, 91, 215, 0.06);
}
.testimonials__grid { position: relative; z-index: 1; width: 100%; display: grid; gap: 2.5rem; align-items: center; padding-top: var(--header-h); }
@media (min-width: 1024px) { .testimonials__grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; padding-top: 2rem; } }
.testimonials__hint { margin-top: 1.4rem; font-size: 0.86rem; color: #64748b; display: flex; align-items: center; gap: 0.5rem; }
.testimonials__hint::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.deck-controls { margin-top: 2.4rem; display: flex; align-items: center; gap: 0.7rem; }
.deck-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--royal); background: #fff; border: 1px solid rgba(15, 42, 102, 0.1);
  box-shadow: 0 10px 24px -16px rgba(15, 42, 102, 0.5);
  transition: transform 0.45s var(--spring), background-color 0.25s, color 0.25s, box-shadow 0.3s;
}
.deck-btn:hover { background: var(--royal); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(15, 42, 102, 0.7); }
.deck-btn:active { transform: scale(0.92); }
.deck-meta { margin-left: 0.8rem; display: grid; gap: 0.45rem; min-width: 7rem; }
.deck-count { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--royal-deep); font-variant-numeric: tabular-nums; }
.deck-timer { position: relative; height: 3px; border-radius: 3px; background: rgba(15, 42, 102, 0.1); overflow: hidden; }
.deck-timer > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--emerald), var(--blue)); border-radius: inherit; }

.stack { position: relative; display: grid; padding-top: 2.4rem; }
.quote {
  grid-area: 1 / 1; position: relative; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  padding: clamp(1.6rem, 1.1rem + 2.2vw, 3rem); border-radius: 32px;
  background: linear-gradient(160deg, #fff 0%, #fbfcff 100%);
  border: 1px solid rgba(15, 42, 102, 0.07);
  box-shadow: 0 40px 80px -40px rgba(15, 42, 102, 0.45), 0 10px 20px -14px rgba(15, 42, 102, 0.2);
  transform-origin: 50% 0%; will-change: transform, opacity;
}
/* cards that have been read dim a little as they step back */
.quote::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: #e8effc; opacity: calc(var(--dim, 0) * 0.55); }
.quote__mark { width: 56px; height: 56px; color: var(--gold); }
.quote blockquote p {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 450; letter-spacing: -0.02em;
  font-size: clamp(1.3rem, 0.9rem + 1.2vw + 0.6vh, 2.05rem); line-height: 1.28; color: var(--royal-deep); text-wrap: pretty;
}
.quote__by { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.3rem; border-top: 1px solid rgba(15, 42, 102, 0.08); }
.quote__by strong { display: block; color: var(--royal-deep); font-size: 1.02rem; }
.quote__by small { display: block; color: #64748b; font-size: 0.9rem; }
.quote__avatar {
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--royal); background: var(--sky);
}
.quote__avatar::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* phones: tighter stack, drop the secondary copy so heading + card fit the pinned screen */
@media (max-width: 1023px) {
  .testimonials__lede, .testimonials__hint, .deck-btn { display: none; }
  .deck-controls { margin-top: 1rem; }
  .deck-meta { margin-left: 0; }
  .testimonials__grid { gap: 1rem; }
  .stack { padding-top: 1.6rem; }
  .quote { border-radius: 24px; gap: 1.1rem; }
  .quote__mark { width: 40px; height: 40px; }
}
@media (max-height: 700px) and (min-width: 1024px) { .quote blockquote p { font-size: 1.35rem; } }

/* reduced motion (or no JS pinning): a plain column of cards */
.testimonials.is-static { height: auto; padding: clamp(4.5rem, 3rem + 6vw, 8.5rem) 0; }
.testimonials.is-static .testimonials__pin { position: static; height: auto; }
.testimonials.is-static .stack { gap: 1.2rem; }
.testimonials.is-static .quote { grid-area: auto; }
.testimonials.is-static .deck-controls, .testimonials.is-static .testimonials__hint { display: none; }

/* Mobile: let the form shrink inside grid columns (grid items default to min-width: auto,
   so the one-line submit button was forcing the column wider than the screen) */
.form-shell, .appt-form, .appt-form__fields > * { min-width: 0; }
.appt-form__submit { white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 420px) {
  .form-shell { padding: 1.25rem 1rem; border-radius: 24px; }
  .form-shell::before { left: 1.25rem; right: 1.25rem; }
  .appt-form__submit { padding-left: 1.2rem; padding-right: 1.2rem; }
  .progress { min-width: 0; width: 100%; }
  .progress__text { text-align: left; }
}
a[href^="tel:"] { white-space: nowrap; }

/* Desktop deck layout for testimonials: back cards fan out to the lower right */
.testimonials.is-deck .stack { padding: 0 3.2rem 3.4rem 0; }
.testimonials.is-deck .quote { transform-origin: 50% 100%; }
/* card content fades with --dim, so cards behind show only their shape */
.quote > * { opacity: calc(1 - var(--dim, 0)); }

/* ==========================================================================
   Sticky WhatsApp quick-reach button
   ========================================================================== */
.wa-fab {
  position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 44;
  display: flex; align-items: center; gap: 0.7rem;
  animation: waIn 0.7s 1.4s var(--spring) both;
}
.wa-fab__btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; background: linear-gradient(145deg, #2fe07a, #1ebe5b);
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.45s var(--spring), box-shadow 0.3s;
}
/* gentle pulse ring to draw the eye */
.wa-fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.6s var(--ease-out) infinite; }
.wa-fab__label {
  padding: 0.6rem 0.95rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700; white-space: nowrap; color: var(--royal-deep);
  background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(15, 42, 102, 0.08);
  box-shadow: 0 14px 30px -18px rgba(15, 42, 102, 0.5);
  opacity: 0; transform: translateX(10px) scale(0.96); transform-origin: right center; pointer-events: none;
  transition: opacity 0.25s, transform 0.45s var(--spring);
}
.wa-fab:hover .wa-fab__btn, .wa-fab:focus-visible .wa-fab__btn { transform: translateY(-3px) scale(1.06); box-shadow: 0 18px 36px -10px rgba(18, 140, 70, 0.85); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { opacity: 1; transform: none; }
.wa-fab:active .wa-fab__btn { transform: scale(0.94); }
.wa-fab:focus-visible { outline: none; }
.wa-fab:focus-visible .wa-fab__btn { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--blue); }
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
/* hide while the mobile menu is open; keep toasts above the button */
body:has(.drawer.is-open) .wa-fab { opacity: 0; pointer-events: none; }
.toast-stack { bottom: 92px; }
@media (max-width: 640px) { .wa-fab__btn { width: 56px; height: 56px; } .wa-fab__label { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-fab, .wa-fab__btn::before { animation: none; } }

/* About: ACG logo in the leadership panel (no personal portrait) */
.monogram__logo { width: 62%; height: auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14), 0 30px 60px -24px rgba(0, 0, 0, 0.55); }
