/* ==========================================================================
   Valiant Behavioral Health — main stylesheet (no build step).
   1. Tokens   2. Base   3. Layout & type   4. Buttons & links
   5. Header & nav   6. Footer   7. Sections   8. Forms   9. Blog   10. Utilities
   Breakpoints: 640px (small tablet), 900px (two columns), 1140px (desktop nav).
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand blues (logo) */
  --navy: #0b2540;
  --navy-2: #12355a;
  --blue: #045387;          /* logo blue */
  --blue-2: #0a6aa8;
  --sky: #afccdc;           /* emblem light blue */
  --mist: #eef5f9;          /* soft blue background */

  /* Calm teal / green */
  --teal: #2b7a72;          /* primary actions (AA on white) */
  --teal-2: #22645d;        /* hover */
  --teal-3: #5fae9f;        /* accents on dark */
  --sage: #e7f2ee;          /* soft green background */
  --sage-2: #cfe5dd;

  /* Neutrals */
  --sand: #f7f4ee;
  --ink: #17293a;
  --text: #3a4c5c;
  --muted: #627485;
  --line: #dbe5ea;
  --white: #fff;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(11, 37, 64, .04), 0 12px 32px -12px rgba(11, 37, 64, .16);
  --shadow-lg: 0 2px 4px rgba(11, 37, 64, .04), 0 30px 60px -20px rgba(11, 37, 64, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 20px;
  --section: 72px;
  --header-h: 76px;
  --mobile-bar-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 900px) { :root { --section: 104px; --header-h: 88px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--mobile-bar-h);
}
@media (min-width: 1140px) { body { padding-bottom: 0; } }
body.nav-open { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal-3); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
small { font-size: .85em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout & type --------------------------------------------------------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--mid { max-width: 1064px; }
.wrap--narrow { max-width: 820px; }

.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
/* Two sections on the same background share one gap. */
.section:not([class*="bg-"]) + .section:not([class*="bg-"]),
.bg-mist + .section.bg-mist, .bg-sage + .section.bg-sage, .bg-sand + .section.bg-sand { padding-top: 0; }
.bg-mist { background: var(--mist); }
.bg-sage { background: var(--sage); }
.bg-sand { background: var(--sand); }
.section__foot { margin-top: 44px; text-align: center; }

.display, .h1, .h2, .h3 { font-family: var(--font-serif); font-optical-sizing: auto; letter-spacing: -.015em; }
.display { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.3rem); line-height: 1.04; font-weight: 400; }
.h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.08; font-weight: 400; }
.h2 { font-size: clamp(1.85rem, 1.45rem + 1.5vw, 2.75rem); line-height: 1.12; font-weight: 400; }
.h3 { font-size: 1.5rem; }
.accent { font-style: italic; color: var(--teal); }
.ln { display: block; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); }
@media (min-width: 900px) { .lead { font-size: 1.22rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font: 600 .78rem/1.2 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--sage-2); }

.shead { max-width: 760px; margin: 0 auto 48px; }
.shead--center { text-align: center; }
.shead--center .eyebrow { justify-content: center; }
.shead--left { margin-left: 0; }
.shead .lead { margin-top: 18px; }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
/* Card grids centre an incomplete last row. */
@media (min-width: 640px) {
  .grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
  .grid--center > * { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (min-width: 1024px) {
  .grid--center { gap: 28px; }
  .grid--center > * { flex-basis: calc((100% - (var(--cols) - 1) * 28px) / var(--cols)); }
}

/* Rich text (WYSIWYG fields, blog posts, plain pages) */
.rich > * + * { margin-top: 1.1em; }
.rich h2, .rich h3, .rich h4 { font-family: var(--font-serif); margin-top: 1.8em; }
.rich h2 { font-size: 1.85rem; }
.rich h3 { font-size: 1.45rem; }
.rich h4 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; }
.rich ul { list-style: none; display: grid; gap: 10px; }
.rich ul li { position: relative; padding-left: 32px; }
.rich ul li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b7a72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rich ol { padding-left: 1.3em; display: grid; gap: 8px; }
.rich ol li::marker { color: var(--teal); font-weight: 700; }
.rich strong { color: var(--ink); font-weight: 600; }
.rich blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--teal-3); font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.rich img, .rich figure { border-radius: var(--radius-sm); margin: 1.6em 0; }
.rich a { font-weight: 500; }
.rich .lead-in { font-size: 1.15rem; color: var(--ink); }

/* 4. Buttons & links ------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: #fff; --btn-bd: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn svg:first-child:not(.btn__arrow) { flex: none; }
.btn--primary:hover { --btn-bg: var(--teal-2); --btn-bd: var(--teal-2); box-shadow: 0 10px 24px -10px rgba(43, 122, 114, .7); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--blue); --btn-bd: rgba(4, 83, 135, .35); }
.btn--secondary:hover { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--white:hover { --btn-fg: var(--teal-2); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 14px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .btn__arrow:only-child { display: none; }
.btn small { font-weight: 500; opacity: .8; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.btn-row__group { display: contents; }
.btn-row--center { justify-content: center; margin-top: 48px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); text-decoration: none; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg, .is-link:hover .link-arrow svg { transform: translateX(4px); }
.link-arrow--back svg { transform: rotate(180deg); }
.link-arrow--back:hover svg { transform: rotate(180deg) translateX(4px); }

.phone-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.phone-link svg { color: var(--teal); }
.phone-link small { font-weight: 500; color: var(--muted); font-size: .9rem; }
.phone-link--lg { font-size: 1.1rem; }
.phone-link:hover { color: var(--teal); }

.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--sage); color: var(--teal-2); font-size: .8rem; font-weight: 600; }

.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--sage); color: var(--teal); }

/* 5. Header & nav ---------------------------------------------------------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: .84rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { color: var(--teal-3); flex: none; }
.topbar__end { display: flex; align-items: center; gap: 24px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.topbar__phone:hover { color: var(--sage-2); }
.topbar__hours { display: none !important; }
@media (min-width: 900px) { .topbar__hours { display: inline-flex !important; } }
@media (max-width: 639px) { .topbar__trust { display: none !important; } .topbar__in { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(11, 37, 64, .3); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { flex: none; margin-right: auto; }
.logo img { width: 158px; }
@media (min-width: 900px) { .logo img { width: 184px; } }

.nav { display: none; }
@media (min-width: 1140px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
  .logo { margin-right: 12px; }
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap; }
.nav__item .nav__link { padding-right: 2px; }
.nav__link:hover, .nav__link.is-active { color: var(--teal); }
.nav__toggle { display: grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.nav-chev { transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .nav-chev, .nav__item:hover .nav-chev { transform: rotate(180deg); }
.nav__menu {
  position: absolute; left: -8px; top: 100%; min-width: 260px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__toggle[aria-expanded="true"] + .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__sub { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .96rem; }
.nav__sub:hover, .nav__sub.is-active { background: var(--sage); color: var(--teal-2); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: none; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.header-phone small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.header-phone__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: var(--teal); }
.header-phone:hover { color: var(--teal); }
@media (min-width: 1500px) { .header-phone { display: inline-flex; } }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.burger { display: grid; gap: 5px; width: 46px; height: 46px; place-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
@media (min-width: 1140px) { .burger { display: none; } }

.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11, 37, 64, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(400px, 92vw);
  display: flex; flex-direction: column; background: #fff; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
}
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head img { width: 140px; }
.drawer__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; }
.drawer__links { padding: 8px var(--gutter); }
.drawer__link, .drawer__group summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.12rem; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group[open] summary .nav-chev { transform: rotate(180deg); }
.drawer__group[open] { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.drawer__group[open] summary { border-bottom: 0; }
.drawer__sub { display: block; padding: 9px 14px; color: var(--text); text-decoration: none; border-left: 2px solid var(--sage-2); }
.drawer__sub--parent { font-weight: 600; color: var(--teal-2); }
.drawer__cta { display: grid; gap: 12px; margin-top: auto; padding: 20px var(--gutter) 28px; background: var(--mist); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(11, 37, 64, .35);
}
.mobile-bar__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; min-height: 48px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; }
.mobile-bar__call:hover { color: #fff; }
.mobile-bar__cta { min-height: 48px; padding: 8px 16px; }
@media (min-width: 1140px) { .mobile-bar { display: none; } }

/* Breadcrumbs */
.crumbs { margin-bottom: 28px; font-size: .88rem; }
.crumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); }
.crumbs__list li + li::before { content: "/"; margin: 0 10px; color: var(--sky); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: .96rem; }
.site-footer a:not(.btn) { color: #fff; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--sage-2); }
.footer-cta { background: linear-gradient(var(--white) 50%, var(--navy) 50%); }
.footer-cta__card {
  position: relative; overflow: hidden;
  display: grid; gap: 28px; padding: 44px 28px;
  border-radius: var(--radius-lg); color: rgba(255, 255, 255, .9);
  background: linear-gradient(125deg, var(--teal) 0%, #25696f 45%, var(--blue) 100%);
}
.footer-cta__card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 320px; background: url("../images/valiant-emblem.png") center / contain no-repeat; opacity: .12; pointer-events: none; }
.footer-cta__card .h2 { color: #fff; margin-bottom: 14px; }
.footer-cta__card .accent { color: var(--sage-2); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.footer-cta__card a.btn--light:hover { color: var(--navy); }
@media (min-width: 900px) {
  .footer-cta__card { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 64px; }
  .footer-cta__actions { justify-content: flex-end; }
}
@media (max-width: 639px) { .footer-cta__actions .btn { width: 100%; } }

.footer-main { padding: 64px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.35fr 1.15fr repeat(var(--footer-cols, 2), 1fr); gap: 48px; } }
.footer-logo { width: 190px; margin-bottom: 20px; }
.footer-blurb { max-width: 360px; }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.footer-badges { flex-wrap: nowrap; gap: 20px; }
.footer-badge img { height: 52px; width: auto; max-width: 130px; object-fit: contain; }
.footer-title { margin-bottom: 18px; font: 600 .8rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-3); }
.footer-contact__list { list-style: none; display: grid; gap: 16px; }
.footer-contact__list li { display: flex; gap: 12px; line-height: 1.5; }
.footer-contact__list svg { flex: none; margin-top: 2px; color: var(--teal-3); }
.footer-contact__list b { color: #fff; font-weight: 600; }
.footer-directions { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--sage-2) !important; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .78); }
.footer-crisis { display: flex; gap: 12px; align-items: flex-start; margin: 48px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); font-size: .92rem; }
.footer-crisis svg { flex: none; margin-top: 3px; color: var(--teal-3); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-legal p { margin: 0; }
.footer-legal__links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-legal a { color: rgba(255, 255, 255, .8); }

/* 7. Sections -------------------------------------------------------------- */

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; background: linear-gradient(180deg, var(--mist) 0%, #f6fafb 60%, #fff 100%); }
.hero__glow { position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(95, 174, 159, .22), transparent); pointer-events: none; }
.hero__in { position: relative; display: grid; gap: 56px; align-items: center; }
.hero .display { margin-bottom: 24px; }
.hero .lead { max-width: 560px; }
.hero__media { position: relative; padding: 0 0 36px 0; }
.hero__photo { overflow: hidden; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo2 { position: absolute; left: -12px; bottom: 0; width: 42%; aspect-ratio: 1; overflow: hidden; border: 6px solid #fff; border-radius: 50%; box-shadow: var(--shadow); }
.hero__photo2 img { width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; right: -6px; top: 18%; display: flex; gap: 12px; align-items: center; max-width: 250px; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); font-size: .88rem; line-height: 1.35; color: var(--muted); }
.hero__card b { display: block; color: var(--ink); font-size: .98rem; }
.hero__card-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--teal); }
.hero__emblem { position: absolute; right: 8%; bottom: -6px; width: 84px; opacity: .9; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 112px; }
  .hero__in { grid-template-columns: 1.08fr .92fr; gap: 64px; }
  .hero__media { padding: 0 0 0 40px; }
  .hero__photo2 { left: -20px; bottom: -36px; width: 40%; }
  .hero__card { right: -24px; }
}
@media (max-width: 639px) { .hero__card { right: 8px; top: auto; bottom: 46%; max-width: 210px; } .hero__emblem { display: none; } }

/* Page hero */
.page-hero { position: relative; padding: 32px 0 64px; background: linear-gradient(180deg, var(--mist), #fff); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 174, 159, .18), transparent); pointer-events: none; }
.page-hero__in { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.page-hero__text { max-width: 760px; }
.page-hero .h1 { margin-bottom: 20px; }
.page-hero__note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.page-hero__note svg { color: var(--teal); flex: none; }
.page-hero__media { overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 140px; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--compact { padding-bottom: 48px; }
@media (min-width: 900px) {
  .page-hero { padding: 40px 0 88px; }
  .page-hero--image .page-hero__in { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .page-hero--compact { padding-bottom: 56px; }
}

/* Trust bar */
.trust { padding: 36px 0; border-bottom: 1px solid var(--line); }
.trust__in { display: grid; gap: 24px; justify-items: center; text-align: center; }
.trust__label { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 44px; }
.trust__logo img { height: 56px; width: auto; max-width: 170px; object-fit: contain; }
.trust__logo:has(img[src*="insurance"]) img { height: 72px; max-width: 300px; }
.trust__note { margin: 0; max-width: 320px; font-size: .95rem; color: var(--text); }
@media (min-width: 900px) {
  .trust__in { grid-template-columns: minmax(220px, 300px) 1fr; grid-template-areas: "label logos" "note logos"; justify-items: start; text-align: left; column-gap: 56px; row-gap: 0; align-items: center; }
  .trust__label { grid-area: label; align-self: end; }
  .trust__note { grid-area: note; align-self: start; }
  .trust__logos { grid-area: logos; justify-self: end; }
}

/* Cards */
.card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.card.is-link:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.card__title { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin-bottom: 10px; }
.card__text { flex: 1; margin-bottom: 18px; }
.card__text:last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; }
.card--photo { overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 37, 64, .04); }
.card__media { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card.is-link:hover .card__media img { transform: scale(1.04); }
.card__media.is-empty { background: linear-gradient(135deg, var(--mist), var(--sage)) ; }
.card--icon, .card--number, .card--plain { padding: 0; border: 1px solid var(--line); }
.bg-mist .card--icon, .bg-sage .card--icon, .bg-sand .card--icon,
.bg-mist .card--number, .bg-sage .card--number, .bg-sand .card--number,
.bg-mist .card--plain, .bg-sage .card--plain, .bg-sand .card--plain { border-color: transparent; }
.card__icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 28px 28px -8px; border-radius: 18px; background: var(--sage); color: var(--teal); }
.bg-sage .card__icon { background: var(--mist); color: var(--blue); }
.card__num { margin: 28px 28px -10px; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--sky); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.card__meta span { color: var(--teal); }

/* Photo + text */
.media-text__in { display: grid; gap: 44px; align-items: center; }
.media-text__media { position: relative; }
.media-text__media.has-second { padding: 0 0 40px 0; }
.media-text__photo { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.media-text__photo img { width: 100%; height: 100%; object-fit: cover; }
.media-text__photo2 { position: absolute; right: -8px; bottom: 0; width: 44%; aspect-ratio: 4 / 5; overflow: hidden; border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-text__photo2 img { width: 100%; height: 100%; object-fit: cover; }
.media-text__text .h2 { margin-bottom: 22px; }
.media-text__text .btn-row { margin-top: 30px; }
@media (min-width: 900px) {
  .media-text__in { grid-template-columns: 1fr 1fr; gap: 80px; }
  .media-text--right .media-text__media { order: 2; }
  .media-text--left .media-text__photo2 { right: auto; left: -28px; }
  .media-text--right .media-text__photo2 { right: -28px; }
  .media-text__media.has-second { padding-bottom: 56px; }
}
.bg-mist .media-text__photo2, .bg-sage .media-text__photo2 { border-color: var(--mist); }
.bg-sage .media-text__photo2 { border-color: var(--sage); }
.bg-sand .media-text__photo2 { border-color: var(--sand); }

/* Text split */
.text-split__in { display: grid; gap: 24px; }
.text-split__body { max-width: 720px; }
.text-split__body .btn-row { margin-top: 30px; }
@media (min-width: 900px) {
  .text-split__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .text-split__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.section.text-split + .section.text-split:not([class*="bg-"]) .text-split__in { padding-top: var(--section); border-top: 1px solid var(--line); }

/* Checklists */
.checklist__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .checklist__grid--2 { grid-template-columns: 1fr 1fr; } .checklist__grid--3 { grid-template-columns: repeat(3, 1fr); } }
.checklist__panel { padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.section:not([class*="bg-"]) .checklist__panel { box-shadow: none; border: 1px solid var(--line); }
.checklist__title { margin-bottom: 20px; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; }
.checklist__list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 640px) { .checklist__list.is-multi { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1024px) { .checklist__list.is-multi { grid-template-columns: repeat(3, 1fr); } }
.checklist__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; color: var(--ink); }
.checklist__list svg { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--sage); color: var(--teal); }
.checklist__list small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.checklist__note { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: 1.05rem; }

/* Steps */
.steps__list { list-style: none; display: grid; gap: 28px; counter-reset: step; position: relative; }
.steps__item { position: relative; padding: 0 0 0 76px; }
.steps__num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-serif); font-size: 1.5rem; box-shadow: 0 0 0 8px var(--sage); }
.steps__item:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 72px; bottom: -18px; width: 2px; background: var(--sage-2); }
.steps__title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; margin: 12px 0 8px; }
@media (min-width: 900px) {
  .steps__list { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 32px; }
  .steps__item { padding: 0; text-align: center; }
  .steps__num { position: relative; margin: 0 auto 18px; }
  .steps__item:not(:last-child)::after { left: calc(50% + 44px); right: calc(-50% + 28px); top: 28px; bottom: auto; width: auto; height: 2px; }
}
.bg-sage .steps__num { box-shadow: 0 0 0 8px #fff; }

/* FAQ */
.faq__in { display: grid; gap: 36px; }
.faq__head .h2 { margin-bottom: 18px; }
@media (min-width: 900px) {
  .faq__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.faq__list { display: grid; gap: 14px; }
.faq__item { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--sage-2); box-shadow: var(--shadow); }
.faq__item summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sage); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--teal); transition: transform .25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding: 0 24px 22px; }

/* Quote band */
.quote-band { position: relative; overflow: hidden; padding: 112px 0; background: var(--navy); color: #fff; text-align: center; isolation: isolate; }
.quote-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, rgba(11, 37, 64, .9), rgba(4, 83, 135, .72) 55%, rgba(43, 122, 114, .7)); }
.quote-band__mark { width: 64px; margin: 0 auto 28px; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--font-serif); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.15; font-weight: 400; letter-spacing: -.015em; }
.quote-band .accent { color: var(--sage-2); }
.quote-band cite { display: block; margin-top: 24px; font-style: normal; font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.testimonial__stars { display: flex; gap: 3px; color: #e3a640; }
.testimonial blockquote { margin: 0; flex: 1; font-size: 1.04rem; color: var(--ink); }
.testimonial figcaption b { display: block; color: var(--ink); }
.testimonial figcaption span { font-size: .88rem; color: var(--muted); }

/* Team */
.team__grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
.person__photo { overflow: hidden; aspect-ratio: 4 / 4.6; margin-bottom: 18px; border-radius: var(--radius) var(--radius) var(--radius) 80px; background: linear-gradient(160deg, var(--mist), var(--sage)); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person__name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; }
.person__role { margin: 4px 0 10px; color: var(--teal); font-weight: 600; font-size: .95rem; }
.person__bio summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; color: var(--blue); font-size: .95rem; }
.person__bio summary::-webkit-details-marker { display: none; }
.person__bio summary svg { transition: transform .2s; }
.person__bio[open] summary svg { transform: rotate(180deg); }
.person__bio .is-open, .person__bio[open] .is-closed { display: none; }
.person__bio[open] .is-open { display: inline; }
.person__bio-text { margin-top: 14px; font-size: .95rem; }
@media (min-width: 1024px) { .team__grid:has(.person__bio[open]) { align-items: start; } }

/* CTA band */
.cta__panel { position: relative; overflow: hidden; display: grid; gap: 28px; padding: 44px 28px; border-radius: var(--radius-lg); }
.cta__panel--teal { background: linear-gradient(125deg, var(--teal), var(--blue)); color: rgba(255, 255, 255, .9); }
.cta__panel--navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.cta__panel--light { background: var(--sage); }
.cta__panel--teal .h2, .cta__panel--navy .h2 { color: #fff; }
.cta__panel--teal .accent, .cta__panel--navy .accent { color: var(--sage-2); }
.cta__panel .h2 { margin-bottom: 14px; }
.cta__actions, .cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .cta__panel { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 56px 64px; }
  .cta__actions { justify-content: flex-end; }
}
@media (max-width: 639px) { .cta__actions .btn { width: 100%; } .cta__buttons { width: 100%; } }

/* Contact */
.contact__in { display: grid; gap: 44px; }
@media (min-width: 900px) { .contact__in { grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; } .contact--single .contact__in { grid-template-columns: 1fr; } }
.contact__info .h2 { margin-bottom: 18px; }
.contact__details { list-style: none; display: grid; gap: 22px; margin-top: 32px; }
.contact__details li { display: flex; gap: 16px; line-height: 1.5; color: var(--ink); }
.contact__details small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__details a { font-weight: 600; text-decoration: none; }
.contact__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--sage); color: var(--teal); }
.contact__form { padding: 32px 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .contact__form { padding: 44px; } }
.contact__map { overflow: hidden; margin-top: 56px; border-radius: var(--radius-lg); aspect-ratio: 16 / 7; min-height: 320px; background: var(--mist); }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
.contact__map--side { margin-top: 0; aspect-ratio: 4 / 3.2; align-self: stretch; }

/* Prose */
.prose .h2 { margin-bottom: 24px; }

/* 8. Forms ----------------------------------------------------------------- */
.form__title { margin-bottom: 24px; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; }
.form__grid { display: grid; gap: 18px; margin-bottom: 24px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__field--wide { grid-column: 1 / -1; } }
.form__field label { display: block; margin-bottom: 7px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.form__field label span { color: var(--teal); }
.form__field label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfd;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(43, 122, 114, .14); }
.form [aria-invalid] { border-color: #c0504d; background: #fff7f6; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.form__status.is-sent { background: var(--sage); color: var(--teal-2); }
.form__status.is-error { background: #fdf0ef; color: #9b3330; }
.form__privacy { display: flex; gap: 10px; margin: 18px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.form__privacy svg { flex: none; margin-top: 2px; color: var(--teal); }

/* 9. Blog ------------------------------------------------------------------ */
.post-hero { padding: 32px 0 48px; background: linear-gradient(180deg, var(--mist), #fff); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .92rem; color: var(--muted); }
.post-title { margin-bottom: 18px; }
.post-frame img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.post-body { padding-top: 56px !important; }
.post-body .rich { font-size: 1.08rem; }
.post-back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* 10. Utilities / motion --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
