/* ==========================================================================
   Willow & Well Homecare — site styles
   Tokens follow 02_brand_guidelines/design-tokens.css
   ========================================================================== */

:root {
  /* Brand palette */
  --forest: #2E4D3A;
  --deep: #203629;
  --sage: #8CA88C;
  --leaf: #D9E3D1;
  --sand: #EADCC8;
  --mist: #F8F8F5;
  --white: #FFFFFF;
  --ink: #24342B;
  --muted: #526455;

  /* Semantic roles */
  --bg: var(--mist);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--muted);
  --heading: var(--forest);
  --primary: var(--forest);
  --primary-hover: var(--deep);
  --on-primary: var(--white);
  --line: #DCE3D8;
  --tint: #EEF2EA;
  --warm: #F4ECE0;
  --error: #9B2C2C;
  --focus: #2E4D3A;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Montserrat, "Segoe UI", Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(32, 54, 41, .06);
  --shadow: 0 14px 45px rgba(32, 54, 41, .10);
  --shadow-lg: 0 24px 70px rgba(32, 54, 41, .16);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t: 260ms;
  --t-slow: 700ms;

  --text-scale: 1;
}

/* Accessibility preferences (set by main.js / head script) */
html[data-text="1"] { --text-scale: 1.12; }
html[data-text="2"] { --text-scale: 1.25; }
html[data-text="3"] { --text-scale: 1.4; }

html[data-contrast="high"] {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #0F1A13;
  --text-soft: #1B2A20;
  --heading: #0F2418;
  --primary: #14261B;
  --primary-hover: #000000;
  --line: #203629;
  --tint: #FFFFFF;
  --warm: #FFFFFF;
  --leaf: #FFFFFF;
  --sand: #FFFFFF;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;
}
html[data-contrast="high"] .card,
html[data-contrast="high"] .service-card,
html[data-contrast="high"] .step,
html[data-contrast="high"] .panel-card,
html[data-contrast="high"] .faq-item,
html[data-contrast="high"] .choice span { border: 2px solid var(--line) !important; }
html[data-contrast="high"] img { filter: contrast(1.05); }
html[data-links="underline"] a:not(.btn):not(.brand):not(.nav-link):not(.service-card) { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--text-scale)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--leaf); color: var(--deep); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.02em; line-height: 1.06; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--text-soft); }
em.accent, .accent { font-style: italic; color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: var(--section); position: relative; }
.section.tight { padding-block: clamp(48px, 7vw, 80px); }
.bg-white { background: var(--surface); }
.bg-tint { background: var(--tint); }
.bg-warm { background: var(--warm); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sage); border-radius: 2px; }
.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--sage); border-radius: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--primary); color: var(--on-primary); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: var(--radius-pill); border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; line-height: 1.2;
  transition: background var(--t) var(--ease-out), color var(--t) var(--ease-out), border-color var(--t), transform var(--t-fast) var(--ease-out), box-shadow var(--t);
  touch-action: manipulation;
}
.btn:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); box-shadow: 0 10px 24px rgba(32,54,41,.18); }
.btn:active { transform: scale(.98); }
.btn .icon { transition: transform var(--t) var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-ghost:hover { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--deep); --btn-bd: var(--white); }
.btn-light:hover { --btn-bg: var(--leaf); --btn-bd: var(--leaf); --btn-fg: var(--deep); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.45); }
.btn-outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--deep); --btn-bd: var(--white); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { transition: transform var(--t) var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(32,54,41,.05); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); flex: none; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.01em; }
.brand-text small { font-size: .62rem; font-weight: 700; letter-spacing: .32em; margin-top: 6px; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--tint); color: var(--forest); }
.nav-link[aria-current="page"] { color: var(--forest); font-weight: 600; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--sage); }

.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--forest);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--tint); }
.icon-btn .icon { width: 22px; height: 22px; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
.nav-link { white-space: nowrap; }
/* Translated labels run longer: fall back to the menu sheet sooner */
@media (max-width: 1320px) {
  .translated-ltr .main-nav, .translated-rtl .main-nav,
  .translated-ltr .header-cta, .translated-rtl .header-cta { display: none; }
  .translated-ltr .header-tools, .translated-rtl .header-tools { margin-left: auto; }
  .translated-ltr .menu-toggle, .translated-rtl .menu-toggle { display: inline-grid; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 72px; gap: 12px; }
  .brand img { width: 48px; height: 48px; }
  .brand-text strong { font-size: 1.15rem; }
  .header-tools .tool-optional { display: none; }
}

/* ---------- Sheets / dialogs ---------- */
dialog.sheet {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); max-width: 100vw;
  border: 0; padding: 0; background: var(--deep); color: var(--white);
  box-shadow: var(--shadow-lg);
}
dialog.sheet::backdrop { background: rgba(16, 28, 20, .45); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: sheet-in var(--t) var(--ease-out); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { display: flex; flex-direction: column; gap: 22px; padding: 22px 24px 32px; min-height: 100%; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head img { width: 52px; height: 52px; object-fit: contain; background: var(--mist); border-radius: 50%; padding: 3px; }
.sheet .icon-btn { color: var(--white); }
.sheet .icon-btn:hover { background: rgba(255,255,255,.1); }
.sheet h2 { color: var(--white); font-size: 1.5rem; margin: 0; }
.sheet p { color: rgba(255,255,255,.82); font-size: .95rem; }
.back-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: var(--white); font-weight: 600; font-size: .9rem;
}
.back-btn:hover { background: rgba(255,255,255,.1); }

.sheet-search { display: flex; gap: 8px; }
.sheet-search input { flex: 1; min-width: 0; min-height: 48px; border-radius: var(--radius-sm); border: 0; padding: 0 16px; background: var(--white); color: var(--ink); }
.sheet-search button { min-width: 48px; border-radius: var(--radius-sm); border: 0; background: var(--sage); color: var(--deep); display: grid; place-items: center; }

.sheet-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.sheet-list li { border-bottom: 1px solid rgba(255,255,255,.14); }
.sheet-list a, .sheet-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 4px; background: none; border: 0; color: var(--white);
  text-decoration: none; font-weight: 500; text-align: left;
}
.sheet-list a:hover, .sheet-list button:hover { color: var(--leaf); }
.sheet-list .lead-icon { display: inline-flex; align-items: center; gap: 12px; }
.sheet .btn-light { width: 100%; }

.pref-group { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.pref-group h3 { color: var(--white); font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pref-row p { margin: 0; font-size: .88rem; }
.stepper { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border-radius: var(--radius-pill); padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--deep); display: grid; place-items: center; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 56px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.switch { position: relative; width: 58px; height: 34px; border-radius: var(--radius-pill); border: 0; background: rgba(255,255,255,.22); flex: none; transition: background var(--t); }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transition: transform var(--t) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--sage); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }

.lang-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-grid button {
  min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.3);
  background: transparent; color: var(--white); font-size: .9rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.lang-grid button:hover { border-color: var(--white); }
.lang-grid button[aria-pressed="true"] { background: var(--white); color: var(--deep); border-color: var(--white); }
.sheet .fine { font-size: .8rem; color: rgba(255,255,255,.65); }

/* Search overlay */
dialog.search-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: min(80dvh, 720px); margin: 10vh auto auto;
  border: 0; border-radius: var(--radius-lg); padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.search-dialog::backdrop { background: rgba(16, 28, 20, .5); backdrop-filter: blur(4px); }
dialog.search-dialog[open] { animation: pop-in var(--t) var(--ease-out); }
@keyframes pop-in { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.search-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-head .icon { color: var(--muted); width: 22px; height: 22px; }
.search-head input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.15rem; min-height: 44px; }
.search-body { padding: 8px 20px 24px; overflow-y: auto; max-height: calc(min(80dvh, 720px) - 84px); }
.search-meta { font-size: .85rem; color: var(--text-soft); padding: 12px 0 4px; }
.search-meta strong { color: var(--forest); }
.results { list-style: none; margin: 0; padding: 0; }
.results li { border-bottom: 1px solid var(--line); }
.results a { display: block; padding: 16px 12px; margin-inline: -12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: background var(--t-fast); }
.results a:hover, .results a:focus-visible { background: var(--tint); }
.results h3 { font-size: 1.2rem; margin: 0 0 4px; }
.results .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--leaf); color: var(--deep); margin-bottom: 6px; }
.results p { margin: 0; font-size: .93rem; color: var(--text-soft); }
.results mark { background: var(--sand); color: var(--deep); border-radius: 3px; padding: 0 2px; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--forest); font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--forest); background: var(--tint); }

/* Google Translate chrome */
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 .accent { display: block; }
.hero .lead { margin-block: 22px 34px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: .92rem; color: var(--text-soft); }
.hero-note .icon { color: var(--forest); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 520px); }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -10% auto auto; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: var(--leaf); z-index: 0;
}
.arch {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--leaf);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero .arch img { object-position: 58% 50%; }
.hero-branch { position: absolute; z-index: 2; width: 46%; left: -18%; bottom: -6%; pointer-events: none; transform: scaleX(-1) rotate(8deg); }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 14px 20px 14px 14px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.35;
}
.float-card strong { display: block; color: var(--forest); font-size: .98rem; }
.float-card span { color: var(--text-soft); }
.float-card .badge-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--leaf); color: var(--forest); display: grid; place-items: center; flex: none; }
.float-card.one { left: -14%; top: 14%; }
.float-card.two { right: -6%; bottom: 10%; }
.hero-leaf { position: absolute; right: -120px; top: -80px; width: 420px; opacity: .35; z-index: -1; pointer-events: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; width: min(100%, 440px); margin-top: 16px; }
  .hero .arch { aspect-ratio: 1 / 1.08; }
  .float-card.one { left: -4px; }
  .float-card.two { right: -4px; }
}
@media (max-width: 480px) {
  .float-card { font-size: .82rem; padding: 10px 14px 10px 10px; }
  .float-card .badge-icon { width: 38px; height: 38px; }
  .float-card.one { top: 6%; }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 18px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.page-hero-grid .arch { aspect-ratio: 5 / 5.2; max-width: 440px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-grid .arch { justify-self: start; max-width: 360px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .85rem; color: var(--text-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--sage); }
.breadcrumb a { color: var(--text-soft); }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.trust-list li { display: flex; align-items: center; gap: 14px; padding: 26px 20px; font-weight: 500; font-size: .95rem; line-height: 1.4; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list .icon { width: 28px; height: 28px; color: var(--forest); stroke-width: 1.5; }
@media (max-width: 900px) { .trust-list { grid-template-columns: repeat(2, 1fr); } .trust-list li:nth-child(3) { border-left: 0; } .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust-list li { padding: 18px 10px; font-size: .88rem; gap: 10px; } }

/* ---------- Statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.35; color: var(--forest); text-align: center; max-width: 30ch; margin: 0 auto; letter-spacing: -.01em; text-wrap: balance; }
.statement .accent { color: var(--muted); }
.statement-sign { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.statement-sign img { width: 150px; opacity: .9; }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > div { max-width: 640px; }
.section-head h2 { margin-bottom: .3em; }
.section-head .lead { margin: 0; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.service-grid.ten { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .service-grid.ten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid.ten { grid-template-columns: 1fr; } }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); min-height: 100%;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .svc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--leaf); color: var(--forest); display: grid; place-items: center; margin-bottom: 8px; transition: background var(--t), color var(--t); }
.service-card:hover .svc-icon { background: var(--forest); color: var(--white); }
.service-card .svc-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.service-card h3 { font-size: 1.28rem; margin: 0; }
.service-card p { font-size: .93rem; color: var(--text-soft); margin: 0; line-height: 1.6; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--forest); margin-top: 8px; }
.service-card .more .icon { transition: transform var(--t) var(--ease-out); }
.service-card:hover .more .icon { transform: translateX(3px); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-frame.wide img { aspect-ratio: 4 / 3; }
.photo-frame::after {
  content: ""; position: absolute; z-index: -1; inset: auto -22px -22px auto; width: 60%; height: 60%;
  border-radius: var(--radius-lg); background: var(--leaf);
}
.photo-frame.warm::after { background: var(--sand); inset: -22px auto auto -22px; }
.photo-caption { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; gap: 12px; align-items: center; background: color-mix(in srgb, var(--surface) 94%, transparent); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: .9rem; line-height: 1.4; }
.photo-caption .icon { color: var(--forest); width: 24px; height: 24px; }

.check-list { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf); color: var(--forest); display: grid; place-items: center; margin-top: 1px; }
.check-list .tick .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.check-list strong { display: block; color: var(--heading); font-weight: 600; }
.check-list span { color: var(--text-soft); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--sage) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 18px; box-shadow: 0 0 0 8px var(--tint); }
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { font-size: .94rem; color: var(--text-soft); margin: 0; line-height: 1.6; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.story .photo-frame img { aspect-ratio: 4 / 5; }
.story blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.4; color: var(--forest); }
.story blockquote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: var(--sage); margin-bottom: 14px; }
.story .by { margin-top: 20px; font-size: .9rem; color: var(--text-soft); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story .photo-frame { max-width: 420px; } }

/* ---------- Dual cards ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .dual { grid-template-columns: 1fr; } }
.panel-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 4.5vw, 52px); display: flex; flex-direction: column; gap: 6px; min-height: 360px; isolation: isolate; }
.panel-card h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.panel-card p { max-width: 42ch; }
.panel-card .btn { margin-top: auto; align-self: flex-start; }
.panel-card.dark { background: var(--forest); color: rgba(255,255,255,.88); }
.panel-card.dark h2, .panel-card.dark .eyebrow { color: var(--white); }
.panel-card.dark .eyebrow::before { background: var(--leaf); }
.panel-card.light { background: var(--leaf); }
.panel-card .deco { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .22; z-index: -1; pointer-events: none; }
.panel-card.light .deco { opacity: .5; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--deep); color: rgba(255,255,255,.86); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; isolation: isolate; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band .eyebrow { color: var(--leaf); }
.cta-band .eyebrow::before { background: var(--leaf); }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .deco { position: absolute; left: -60px; bottom: -80px; width: 360px; opacity: .12; z-index: -1; }
.cta-band .phone-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--white); font-weight: 600; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Services page ---------- */
.jump-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.service-detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.service-detail:first-of-type { border-top: 0; }
.service-detail .svc-head { position: sticky; top: 120px; align-self: start; }
.service-detail .svc-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--leaf); color: var(--forest); display: grid; place-items: center; margin-bottom: 20px; }
.service-detail .svc-icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.service-detail h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.service-detail .who { font-size: .92rem; color: var(--text-soft); }
.service-detail .body > p:first-child { font-size: 1.12rem; }
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; list-style: none; margin: 24px 0 28px; padding: 24px 26px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.includes li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; line-height: 1.5; }
.includes .icon { color: var(--forest); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.2; }
@media (max-width: 860px) { .service-detail { grid-template-columns: 1fr; } .service-detail .svc-head { position: static; } }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .svc-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--leaf); color: var(--forest); display: grid; place-items: center; margin-bottom: 18px; }
.value h3 { font-size: 1.3rem; }
.value p { font-size: .95rem; color: var(--text-soft); margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.prose p { max-width: 64ch; }
.prose p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2rem; line-height: .82; padding: 6px 12px 0 0; color: var(--forest); }
.signoff { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--forest); margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: 120px; display: grid; gap: 4px; }
.faq-nav a { display: block; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.faq-nav a:hover { background: var(--tint); color: var(--forest); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; } .faq-nav a { border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 8px 16px; } }
.faq-group { scroll-margin-top: 110px; margin-bottom: 48px; }
.faq-group h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 18px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow var(--t); }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--heading); min-height: 64px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; color: var(--forest); transition: transform var(--t) var(--ease-out), background var(--t); }
.faq-item[open] summary .chev { transform: rotate(180deg); background: var(--leaf); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-soft); }
.faq-item .answer p:last-child { margin: 0; }

.fund-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .fund-grid { grid-template-columns: 1fr; } }
.fund-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fund-card .svc-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--deep); display: grid; place-items: center; margin-bottom: 16px; }
.fund-card h3 { font-size: 1.25rem; }
.fund-card p { font-size: .95rem; color: var(--text-soft); margin: 0; }
.notice-box { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius); background: var(--warm); border: 1px solid var(--sand); font-size: .94rem; margin-top: 24px; }
.notice-box .icon { color: var(--deep); margin-top: 3px; }

/* ---------- Forms ---------- */
.form-shell { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.form-top { padding: 22px clamp(22px, 4vw, 44px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.progress { flex: 1; min-width: 180px; height: 6px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--forest); border-radius: 6px; transition: width var(--t-slow) var(--ease-out); }
.progress-label { font-size: .85rem; font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.form-body { padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px); }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step legend { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--heading); line-height: 1.2; padding: 0; margin-bottom: 8px; }
.form-step .hint { color: var(--text-soft); margin-bottom: 26px; }
.form-step.enter { animation: step-in var(--t) var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: .96rem; line-height: 1.35;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.choice span .icon { color: var(--forest); width: 22px; height: 22px; }
.choice:hover span { border-color: var(--sage); }
.choice input:checked + span { border-color: var(--forest); background: var(--tint); box-shadow: inset 0 0 0 1px var(--forest); }
.choice input:checked + span::after { content: ""; margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field .label { font-weight: 600; font-size: .95rem; color: var(--heading); }
.field .req { color: var(--error); margin-left: 2px; }
.field .help { font-size: .86rem; color: var(--text-soft); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid #C6D1C3; background: var(--surface); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 35%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.error-msg { display: flex; gap: 8px; align-items: center; color: var(--error); font-size: .88rem; font-weight: 500; margin: 0; }
.error-msg:empty { display: none; }
.error-msg::before { content: "!"; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex: none; }
.group-error { margin-top: 14px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-nav .btn[hidden] { display: none; }
.demo-flag { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--warm); color: var(--deep); border: 1px solid var(--sand); }
.success { text-align: center; padding: clamp(24px, 4vw, 40px) 0; }
.success:focus, .form-step legend:focus { outline: none; }
.success .big-tick { width: 84px; height: 84px; border-radius: 50%; background: var(--leaf); color: var(--forest); display: grid; place-items: center; margin: 0 auto 24px; }
.success .big-tick .icon { width: 40px; height: 40px; stroke-width: 2; }
.summary-list { text-align: left; max-width: 520px; margin: 26px auto; padding: 20px 24px; background: var(--tint); border-radius: var(--radius); display: grid; gap: 8px; font-size: .94rem; }
.summary-list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.summary-list dt { font-weight: 600; color: var(--heading); }
.summary-list dd { margin: 0; color: var(--text-soft); }
@media (max-width: 480px) { .summary-list div { grid-template-columns: 1fr; gap: 0; } }

.side-help { display: grid; gap: 18px; }
.help-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.help-card h3 { font-size: 1.2rem; }
.help-card p { font-size: .94rem; color: var(--text-soft); }
.contact-line { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--forest); text-decoration: none; padding: 6px 0; }
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 48px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; margin-top: 24px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--sage); }

/* ---------- Footer ---------- */
.footer-contact a { overflow-wrap: anywhere; }
.site-footer { background: var(--leaf); color: var(--ink); margin-top: var(--section); position: relative; overflow: hidden; isolation: isolate; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 36px; padding-block: 72px 48px; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { font-size: .94rem; color: var(--muted); max-width: 30ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--ink); text-decoration: none; font-size: .94rem; display: inline-block; padding: 5px 0; }
.site-footer ul a:hover { color: var(--forest); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: center; font-size: .94rem; padding: 5px 0; }
.footer-contact .icon { color: var(--forest); }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--forest) 18%, transparent); padding-block: 22px 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-deco { position: absolute; right: -60px; top: -40px; width: 340px; opacity: .35; z-index: -1; pointer-events: none; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
html[data-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; }

@media print {
  .site-header, .site-footer, dialog, .cta-band { display: none !important; }
}
