/* ==========================================================================
   Mooirivier Makelaars — site styles
   Brand green from the logo (#105A3D), antique gold, river-mist background.
   Display: Marcellus (echoes the wordmark). Text: Figtree.
   ========================================================================== */

:root {
  --green-900: #082e20;
  --green-800: #0b3d2a;
  --green-700: #105a3d;
  --green-600: #1f6e4c;
  --green-100: #e2ebe4;
  --gold-500: #c6a15b;
  --gold-400: #dcc084;
  --gold-700: #7a5c22;
  --gold-100: #f4ecda;
  --mist: #f5f4ee;
  --paper: #ffffff;
  --ink: #17261f;
  --ink-soft: #4a5951;
  --line: #d9dbd0;
  --danger: #a3261c;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  --step-5: clamp(2.6rem, 1.6rem + 4vw, 4.25rem);
  --step-6: clamp(3rem, 1.4rem + 6.4vw, 6.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 84px;
  --shadow: 0 1px 2px rgb(8 46 32 / 0.06), 0 8px 24px -12px rgb(8 46 32 / 0.18);
}

/* ---------- Language toggle: hide the inactive language ---------- */
html[data-lang="af"] body [lang="en"],
html[data-lang="en"] body [lang="af"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--green-800);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
ul, ol { padding-left: 1.25em; }
::selection { background: var(--gold-400); color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold-500); color: var(--green-900); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section-dark { background: var(--green-800); color: #e8efe9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-paper { background: var(--paper); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; }
.section-dark .lede { color: #c9d8cd; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }
.section-dark .section-head p { color: #c9d8cd; }

/* Placeholder content the client still needs to confirm */
.todo {
  background: repeating-linear-gradient(-45deg, #fff3c9 0 6px, #fdeaa8 6px 12px);
  color: #5b4300; padding: 0 0.3em; border-radius: 3px; font-style: normal;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700); --btn-fg: #fff; --btn-bd: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.5em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; font: 600 1rem/1.2 var(--font-text); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { --btn-bg: var(--green-600); --btn-bd: var(--green-600); color: var(--btn-fg); }
.btn-gold { --btn-bg: var(--gold-500); --btn-fg: var(--green-900); --btn-bd: var(--gold-500); }
.btn-gold:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: currentColor; }
.btn-outline:hover { --btn-bg: var(--green-700); --btn-fg: #fff; --btn-bd: var(--green-700); }
.btn-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.6); }
.btn-light:hover { --btn-bg: #fff; --btn-fg: var(--green-800); --btn-bd: #fff; }
.btn-sm { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.9375rem; }
.btn .icon { width: 1.1em; height: 1.1em; }
.link-arrowless { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--green-800);
  color: #fff;
  transition: background-color 0.35s, box-shadow 0.35s, height 0.35s;
}
.site-header.is-over-hero:not(.is-scrolled) { background: transparent; }
.site-header.is-over-hero:not(.is-scrolled)::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(8 46 32 / 0.55), rgb(8 46 32 / 0));
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgb(0 0 0 / 0.5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #f1f4ef; text-decoration: none; font-weight: 500; font-size: 0.975rem;
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--gold-400); }
.nav a[aria-current="page"] { color: var(--gold-400); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.35);
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent; color: #e7ede8; cursor: pointer;
  font: 600 0.8125rem/1 var(--font-text); letter-spacing: 0.04em;
  min-width: 38px; min-height: 30px; border-radius: 999px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--gold-500); color: var(--green-900); }

.menu-button {
  display: none; appearance: none; background: transparent; color: #fff; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.menu-button .icon { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { height: 42px; }
  .menu-button { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-800); padding: 8px var(--gutter) 24px;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.6);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 16px; border-bottom: 0; }
  .header-tools { margin-left: auto; }
}
@media (min-width: 1021px) { .nav .nav-cta { display: none; } }

/* ---------- Hero (home) ----------
   The video (1920x1080, 10 s loop) shows the Mooirivier logo on a glass card
   from about 5.5 s, filling roughly 24–78% of the frame height and 25–75% of
   its width. The headline sits above the card and the buttons + phone numbers
   run in one row just above the wave, so the logo stays the centrepiece. */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  color: #fff; background: var(--green-800);
  overflow-x: clip; overflow-y: visible; text-align: center;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(8 46 32 / 0.8) 0%, rgb(8 46 32 / 0.5) 18%, rgb(8 46 32 / 0) 30%),
    linear-gradient(0deg, rgb(8 46 32 / 0.8) 0%, rgb(8 46 32 / 0.4) 16%, rgb(8 46 32 / 0) 28%);
}
.hero-top { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 1vh); }
.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: calc(clamp(48px, 7vw, 100px) + 10px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px;
}
.hero h1 {
  font-size: clamp(2.3rem, 0.5rem + 2.4vw + 1.8vh, 4.2rem); color: #fff; line-height: 1.05;
  margin: 0 auto 0.25em; text-shadow: 0 2px 24px rgb(8 46 32 / 0.45);
}
.hero-lede {
  font-size: 1.0625rem; max-width: none; margin: 0 auto;
  color: #eef3ee; text-shadow: 0 1px 12px rgb(8 46 32 / 0.55);
}
@media (min-width: 1600px) and (min-height: 860px) { .hero-lede { font-size: 1.2rem; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-offices {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  font-size: 0.975rem; color: #dfe8e1; text-shadow: 0 1px 10px rgb(8 46 32 / 0.6);
}
.hero-offices a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.hero-offices a:hover { color: var(--gold-400); }
.hero-offices .icon { color: var(--gold-400); }
.hero-offices strong { font-weight: 600; }
.hero-pause {
  position: absolute; right: var(--gutter); bottom: clamp(72px, 9vw, 120px); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgb(8 46 32 / 0.45); color: #fff; border: 1px solid rgb(255 255 255 / 0.4); cursor: pointer;
}
.hero-pause:hover { background: rgb(8 46 32 / 0.7); }
.hero-pause .icon { width: 18px; height: 18px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: clamp(48px, 7vw, 100px); }

/* Portrait screens would crop the logo out of the video: play it as a
   full-width 16:9 strip under a solid header, with the copy below it. */
@media (max-width: 860px), (max-aspect-ratio: 5/4) {
  .site-header.is-over-hero:not(.is-scrolled) { background: var(--green-800); }
  .site-header.is-over-hero:not(.is-scrolled)::before { display: none; }
  .hero { min-height: 0; padding: var(--header-h) 0 clamp(64px, 11vw, 110px); }
  .hero-video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; z-index: 0; }
  .hero-scrim { display: none; }
  .hero-top, .hero-bottom { position: static; }
  .hero-top { padding-top: 32px; }
  .hero-bottom { padding-top: 24px; flex-direction: column; gap: 0; }
  .hero-offices { margin-top: 1.25rem; text-shadow: none; }
  .hero h1, .hero-lede { text-shadow: none; }
  .hero-pause { top: calc(var(--header-h) + 56.25vw - 56px); bottom: auto; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow-x: clip; overflow-y: visible;
  background: var(--green-800); color: #fff;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(88px, 10vw, 140px);
}
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lede { color: #d3e0d6; }
.page-hero-art-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero-art {
  position: absolute; right: -4%; top: 50%; width: min(46vw, 560px);
  transform: translateY(-46%); opacity: 0.09;
}
.page-hero .hero-wave { height: clamp(40px, 6vw, 90px); }
.breadcrumb { font-size: var(--step--1); color: #b9cbbd; margin-bottom: 1rem; }
.breadcrumb a { color: #e3ebe5; }

/* ---------- Intro (home) ---------- */
.intro-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.intro-statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.3; color: var(--green-800); margin-bottom: 1.25rem; }
.intro-copy { color: var(--ink-soft); max-width: 36rem; }
.intro-figure { margin: 0; }
.intro-figure img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 20% 50%; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Cover (dekking) ---------- */
.cover-group { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); }
.cover-group + .cover-group { margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.cover-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.cover-aside h3 { font-size: var(--step-3); }
.cover-aside p { color: var(--ink-soft); }
.cover-aside img { border-radius: var(--radius-lg); margin-top: 1.5rem; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; max-width: 340px; }
.cover-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 40px; }
.cover-item { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; align-content: start; }
.cover-icon {
  grid-row: span 3; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-100); color: var(--green-700); border: 1px solid #e6d6b0;
}
.cover-icon .icon { width: 26px; height: 26px; }
.cover-item h4, .cover-item h5 { margin: 0.2em 0 0.3em; color: var(--green-800); font-size: 1.375rem; font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
.cover-aside .btn { margin-top: 0.5rem; }

/* Business: the sections a commercial policy is built from */
.biz-block + .biz-block { margin-top: clamp(36px, 5vw, 56px); }
.biz-block > h4 { font-size: var(--step-2); color: var(--green-800); margin-bottom: 0.6em; }
.section-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.section-list li { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.section-list strong { display: block; font-weight: 650; color: var(--ink); margin-bottom: 2px; overflow-wrap: anywhere; hyphens: auto; }
.section-desc { display: block; color: var(--ink-soft); font-size: 0.975rem; line-height: 1.5; }
@media (max-width: 620px) { .section-list { grid-template-columns: 1fr; } }
.biz-note { color: var(--ink-soft); margin: -4px 0 20px; }
.specialist-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.specialist-card { display: flex; flex-direction: column; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 20px; }
.specialist-logo {
  height: 96px; display: grid; place-items: center; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px;
}
.specialist-logo img { max-height: 76px; width: auto; }
.specialist-card h5 { font: 650 1.05rem/1.3 var(--font-text); color: var(--ink); margin: 0 0 6px; letter-spacing: 0; }
.specialist-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0 0 14px; }
.specialist-card a { margin-top: auto; font-weight: 600; font-size: 0.9375rem; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
.cover-item p { color: var(--ink-soft); margin: 0 0 0.6em; font-size: 1rem; }
.cover-item a { font-size: 0.9375rem; font-weight: 600; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .cover-group { grid-template-columns: 1fr; }
  .cover-aside { position: static; }
  .cover-aside img { display: none; }
}
@media (max-width: 620px) { .cover-list { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Steps (how it works) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid rgb(220 192 132 / 0.45); padding-top: 24px; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--gold-500);
  margin-bottom: 16px;
}
.steps h3 { font-size: var(--step-2); }
.steps p { color: #c9d8cd; margin: 0; }
.steps-cta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--paper); }
.why-media { position: relative; }
.why-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.why-body { padding: var(--section) var(--gutter); padding-left: clamp(32px, 6vw, 96px); max-width: 680px; }
.why-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 26px; }
.why-points li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.why-points .icon { width: 24px; height: 24px; color: var(--gold-700); margin-top: 4px; }
.why-points h3 { font-family: var(--font-text); font-weight: 650; font-size: 1.125rem; margin: 0 0 0.25em; color: var(--ink); letter-spacing: 0; }
.why-points p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why-media { aspect-ratio: 4 / 3; }
  .why-body { padding-left: var(--gutter); }
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.rating-block { position: sticky; top: calc(var(--header-h) + 24px); }
.rating-number { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: 1; color: var(--green-800); margin: 0 0 0.15em; }
.stars { display: inline-flex; gap: 3px; color: var(--gold-500); }
.stars .icon { width: 22px; height: 22px; }
.rating-meta { color: var(--ink-soft); margin: 0.6rem 0 1.5rem; font-size: 0.975rem; }
.award {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius); background: var(--green-800); color: #fff; margin-top: 1.75rem;
}
.award-seal {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--green-900); font-family: var(--font-display); font-size: 1.5rem;
  box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 5px var(--green-900), inset 0 0 0 6px var(--gold-500);
}
.award strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: #fff; line-height: 1.2; }
.award span { font-size: 0.9rem; color: #c9d8cd; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.review {
  margin: 0; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
}
.review blockquote { margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.4; color: var(--green-800); }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.review figcaption strong { color: var(--ink); font-weight: 600; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--green-100); color: var(--green-700); font-weight: 700;
}
.review .stars .icon { width: 16px; height: 16px; }
.review-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.4rem; }
.reviews-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .rating-block { position: static; }
}

/* ---------- Offices ---------- */
.office-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.office-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.office-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.office-card-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.office-card h3 { margin-bottom: 0.1em; }
.office-card .directors { color: var(--gold-700); font-weight: 600; margin-bottom: 0.9rem; }
.contact-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 8px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.contact-list .icon { width: 20px; height: 20px; color: var(--green-700); margin-top: 3px; }
.contact-list a { color: inherit; }
.office-card .btn-row { margin-top: auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .office-cards { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.post-card-wrap { display: flex; }
.post-card { flex: 1; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
.post-card-media { aspect-ratio: 16 / 10; background: var(--green-100); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media.is-type { display: grid; place-items: center; background: var(--green-800); color: var(--gold-400); }
.post-card-media.is-type .icon { width: 64px; height: 64px; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-kind { font-size: 0.875rem; font-weight: 600; color: var(--gold-700); margin-bottom: 0.4rem; }
.post-card h3 { font-size: 1.4rem; color: var(--green-800); margin-bottom: 0.5rem; }
.post-card p { color: var(--ink-soft); font-size: 0.975rem; margin-bottom: 1rem; }
.post-date { margin-top: auto; font-size: 0.875rem; color: var(--ink-soft); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font: 500 0.9375rem/1.2 var(--font-text); min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.article-body { font-size: 1.125rem; line-height: 1.7; }
.article-body h2 { font-size: var(--step-3); margin-top: 1.6em; }
.article-body h3 { font-size: var(--step-2); margin-top: 1.4em; }
.article-body li { margin-bottom: 0.45em; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { border-radius: var(--radius-lg); }
.article-body figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; }
.callout { background: var(--gold-100); border-left: 3px solid var(--gold-500); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0; }
.callout p:last-child { margin-bottom: 0; }
.source { font-size: 0.9375rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2.5rem; }
.article-meta { color: #c9d8cd; font-size: 0.975rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 2rem; }

/* ---------- About page ---------- */
.office-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.office-feature + .office-feature { margin-top: var(--section); }
.office-feature.is-flipped .office-feature-media { order: 2; }
.office-feature-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.office-feature-media.is-bw img { filter: grayscale(1) contrast(1.05); }
.office-label { font-weight: 600; color: var(--gold-700); margin-bottom: 0.5rem; }
.office-feature h2 { margin-bottom: 0.25em; }
.office-feature .directors { font-family: var(--font-display); font-size: var(--step-1); color: var(--green-700); margin-bottom: 1.25rem; }
.hours { font-size: 0.975rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .office-feature { grid-template-columns: 1fr; }
  .office-feature.is-flipped .office-feature-media { order: 0; }
}
.memberships {
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--green-800); color: #dfe8e1; border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 24px 48px; align-items: center;
}
.memberships h3 { color: #fff; font-size: var(--step-2); margin: 0; }
.membership-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.membership-list li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 0.9rem; color: #c9d8cd; }
.membership-list img { height: 64px; width: auto; object-fit: contain; }
@media (max-width: 860px) { .memberships { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .membership-list { grid-template-columns: 1fr 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.timeline li { position: relative; padding-top: 28px; border-top: 2px solid var(--gold-500); }
.timeline li::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green-700); box-shadow: 0 0 0 4px var(--paper);
}
.timeline-year { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--gold-700); margin-bottom: 12px; }
.timeline p { color: var(--ink-soft); margin: 0; max-width: 28ch; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { border-top: 0; border-left: 2px solid var(--gold-500); padding: 0 0 32px 28px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 4px; left: -8px; }
}
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.values h3 { font-size: var(--step-2); }
.values p { color: #c9d8cd; margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-700); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%);
  background: url("../img/favicon-180.png") center / contain no-repeat; opacity: 0.08; filter: grayscale(1) brightness(3);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(56px, 7vw, 96px); }
.cta-inner h2 { color: #fff; margin: 0 0 0.25em; }
.cta-inner p { color: #d7e4da; margin: 0; max-width: 36rem; }

/* ---------- Partners + footer ---------- */
.partners { background: var(--paper); border-top: 1px solid var(--line); }
.partners-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; padding-block: 48px; }
.partners h2 { font-family: var(--font-text); font-size: 0.975rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-bottom: 20px; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.partner-logos img { height: 64px; width: auto; object-fit: contain; }
.partner-logos img.is-wide { height: 44px; }
.partner-logos img.is-tall { height: 84px; }
.partner { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 250px; }
.nowrap { white-space: nowrap; }
.partner figcaption { font-size: 0.78rem; line-height: 1.45; color: var(--ink-soft); }
.partner-logos:has(.partner) { align-items: flex-start; }
/* keep every logo in an 84px band so the captions line up */
.partner img { margin-block: 10px; }
.partner img.is-wide { margin-block: 20px; }
.partner img.is-tall { margin-block: 0; }
@media (max-width: 760px) { .partners-inner { grid-template-columns: 1fr; } }

.site-footer { background: var(--green-900); color: #c3d2c7; font-size: 0.975rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 22rem; }
.site-footer h2 { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.site-footer a { color: #e6ede8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .contact-list .icon { color: var(--gold-400); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.25); }
.social a:hover { border-color: var(--gold-400); text-decoration: none; }
.social .icon { width: 20px; height: 20px; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 0.1); padding-block: 22px 28px; font-size: 0.875rem; color: #9fb3a6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal p { margin: 0; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote-section { padding-top: clamp(32px, 5vw, 56px); }
.quote-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.aside-card.is-dark { background: var(--green-800); border-color: var(--green-800); color: #dfe8e1; }
.aside-card.is-dark h2 { color: #fff; }
.aside-card.is-dark a { color: #fff; font-weight: 600; }
.aside-card.is-dark .contact-list .icon { color: var(--gold-400); }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.975rem; color: var(--ink-soft); }
.tick-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.tick-list .icon { width: 18px; height: 18px; color: var(--gold-700); margin-top: 3px; }
@media (max-width: 960px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; order: 2; }
}

.quote-form { counter-reset: qstep; }
.q-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  padding: clamp(22px, 3.5vw, 40px); margin: 0 0 20px; min-width: 0;
}
.q-panel:not([hidden]) { counter-increment: qstep; }
.q-panel > legend {
  float: left; width: 100%; padding: 0; margin-bottom: 1.4rem;
  font-family: var(--font-display); font-size: var(--step-2); color: var(--green-800);
  display: flex; align-items: center; gap: 14px;
}
.q-panel > legend + * { clear: both; }
.quote-form .q-title::before {
  content: counter(qstep); flex: none;
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--green-700); color: var(--gold-400); font-size: 1.05rem;
}
.panel-intro { color: var(--ink-soft); margin-top: -0.4rem; }

.grid-2, .grid-3 { display: grid; gap: 18px 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.grid-2 .span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

.field label, .field-legend { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin: 0 0 6px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { font-size: 0.875rem; color: var(--ink-soft); margin: 6px 0 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1.5px solid #c9cdc1; border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23105a3d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8b958e; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a8ae9f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgb(198 161 91 / 0.45);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.9rem; font-weight: 500; margin: 6px 0 0; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.975rem; line-height: 1.4; min-height: 32px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green-700); cursor: pointer; }
.inline-options { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.check > span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; }
.consent { font-size: 0.95rem; color: var(--ink-soft); }

.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  padding: 18px 20px; border: 1.5px solid #c9cdc1; border-radius: var(--radius); background: #fff;
  transition: border-color 0.15s, background-color 0.15s;
}
.choice-card:hover { border-color: var(--green-600); }
.choice-card input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green-700); flex: none; }
.choice-body strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--green-800); line-height: 1.2; }
.choice-body span { font-size: 0.95rem; color: var(--ink-soft); }
.choice-card:has(input:checked) { border-color: var(--green-700); background: var(--gold-100); box-shadow: inset 0 0 0 1px var(--green-700); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--gold-500); outline-offset: 2px; }
@media (max-width: 540px) { .choice-cards { grid-template-columns: 1fr; } }

.cover-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pick {
  display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 60px;
  padding: 12px 16px; border: 1.5px solid #c9cdc1; border-radius: var(--radius); background: #fff;
  font-weight: 500; line-height: 1.3;
}
.pick:hover { border-color: var(--green-600); }
.pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--green-700); flex: none; }
.pick .icon { width: 24px; height: 24px; color: var(--green-700); }
.pick:has(input:checked) { border-color: var(--green-700); background: var(--gold-100); box-shadow: inset 0 0 0 1px var(--green-700); }
.pick:has(input:focus-visible) { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.has-error .choice-card, .has-error .pick { border-color: var(--danger); }

.repeat-item { padding: 22px 0 26px; border-top: 1px dashed #c9cdc1; }
.repeat-item:first-child { padding-top: 0; border-top: 0; }
.repeat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.repeat-title { font-family: var(--font-text); font-weight: 650; font-size: 1.075rem; color: var(--green-700); margin: 0; letter-spacing: 0; }
.remove-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; min-height: 36px;
  font: 500 0.9rem/1 var(--font-text); color: var(--danger);
}
.remove-btn:hover { border-color: currentColor; }
.remove-btn .icon { width: 16px; height: 16px; }
.add-btn {
  appearance: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; cursor: pointer;
  min-height: 52px; margin-top: 8px; padding: 12px 16px;
  background: var(--mist); border: 1.5px dashed var(--green-700); border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-text); color: var(--green-700);
}
.add-btn:hover { background: var(--green-100); }
.add-btn .icon { width: 20px; height: 20px; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.btn-submit { min-height: 54px; padding-inline: 2rem; font-size: 1.0625rem; }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }
.form-status { margin: 0; font-weight: 500; color: var(--ink-soft); }
.form-status.is-error { color: var(--danger); }

.quote-result:focus { outline: none; }
.quote-result h2 { font-size: var(--step-3); }
.result-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: var(--gold-400); margin-bottom: 18px; }
.result-icon .icon { width: 28px; height: 28px; }
.summary-box {
  margin: 20px 0; padding: 18px; max-height: 360px; overflow: auto;
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 0.875rem/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; color: var(--ink);
}
.link-button { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: 600 1rem/1.4 var(--font-text); color: var(--green-700); text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }

/* ---------- Prose pages (privacy) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.5em; }

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

/* Single orchestrated moment: hero copy settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lede, .hero-actions, .hero-offices { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-lede { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.22s; }
  .hero-offices { animation-delay: 0.32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Quote result: "email my policy schedule" follow-up */
.schedule-cta { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--gold-100); border: 1px solid #e6d6b0; }
.schedule-cta h3 { font-size: var(--step-1, 1.35rem); margin: 0 0 0.4em; color: var(--green-800); }
.schedule-cta p:last-child { margin-bottom: 0; }

.schedule-pick { margin-top: 22px; }
.schedule-now { margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--gold-100); border: 1px solid #e6d6b0; }
.schedule-now p { margin: 0 0 12px; font-size: 0.95rem; }

/* Gold accent word in the home-page headline */
.hero-gold { color: var(--gold-400); }

/* ---------- Glass buttons (Apple iOS 26 "clear liquid glass") ----------
   Clear see-through body, a thin bright rim (strongest top and bottom),
   a soft lit band just inside the edge (the "lens"), and a faint brand tint.
   On dark areas (hero video, header, green sections) the glass is almost
   fully clear with white text; on light areas it is lightly frosted with
   green text so it stays readable. Remove this block to go back to the
   flat buttons above. */
:root {
  --rim-dark: linear-gradient(180deg, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.40) 20%, rgb(255 255 255 / 0.10) 50%, rgb(255 255 255 / 0.35) 80%, rgb(255 255 255 / 0.85) 100%);
  --rim-light: linear-gradient(180deg, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / 0.6) 25%, rgb(16 90 61 / 0.14) 55%, rgb(16 90 61 / 0.22) 100%);
  --lens-dark: inset 0 9px 14px -10px rgb(255 255 255 / 0.55), inset 0 -9px 14px -10px rgb(255 255 255 / 0.35),
               inset 12px 0 16px -14px rgb(255 255 255 / 0.30), inset -12px 0 16px -14px rgb(255 255 255 / 0.30);
  --lens-light: inset 0 9px 14px -10px rgb(255 255 255 / 0.95), inset 0 -8px 12px -10px rgb(255 255 255 / 0.7),
                inset 12px 0 16px -14px rgb(255 255 255 / 0.6), inset -12px 0 16px -14px rgb(255 255 255 / 0.6);
  --drop-dark: 0 10px 28px -12px rgb(0 0 0 / 0.40);
  --drop-light: 0 1px 2px rgb(8 46 32 / 0.06), 0 10px 24px -14px rgb(8 46 32 / 0.35);
}

/* shared material + rim */
.btn, .chip, .lang-toggle, .menu-button, .add-btn { position: relative; }
.btn, .chip, .lang-toggle, .menu-button, .hero-pause, .add-btn {
  isolation: isolate;
  -webkit-backdrop-filter: blur(6px) saturate(170%);
  backdrop-filter: blur(6px) saturate(170%);
}
.btn::before, .chip::before, .lang-toggle::before, .menu-button::before, .hero-pause::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--rim, var(--rim-light));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- light areas (default) ---- */
.btn {
  --rim: var(--rim-light);
  --btn-bg: rgb(16 90 61 / 0.14); --btn-fg: var(--green-800); --btn-bd: transparent;
  background: var(--btn-bg); border-color: transparent;
  box-shadow: var(--lens-light), 0 0 0 1px rgb(16 90 61 / 0.14), var(--drop-light);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.3s cubic-bezier(.3,1.5,.5,1);
}
.btn:hover { --btn-bg: rgb(16 90 61 / 0.22); --btn-fg: var(--green-900); --btn-bd: transparent; transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(0.96); }
.btn-gold { --btn-bg: rgb(198 161 91 / 0.30); --btn-fg: var(--green-900); --btn-bd: transparent; }
.btn-gold:hover { --btn-bg: rgb(198 161 91 / 0.42); --btn-bd: transparent; }
.btn-outline { --btn-bg: rgb(255 255 255 / 0.40); --btn-fg: var(--green-700); --btn-bd: transparent; }
.btn-outline:hover { --btn-bg: rgb(255 255 255 / 0.70); --btn-fg: var(--green-800); --btn-bd: transparent; }
.btn-light { --btn-bg: rgb(255 255 255 / 0.40); --btn-fg: var(--green-800); --btn-bd: transparent; }
.btn-light:hover { --btn-bg: rgb(255 255 255 / 0.70); --btn-fg: var(--green-900); --btn-bd: transparent; }

/* ---- dark areas: clear glass, white text ---- */
:is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn {
  --rim: var(--rim-dark);
  --btn-bg: rgb(255 255 255 / 0.07); --btn-fg: #fff;
  box-shadow: var(--lens-dark), var(--drop-dark);
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
  -webkit-backdrop-filter: blur(6px) saturate(170%) brightness(0.88);
  backdrop-filter: blur(6px) saturate(170%) brightness(0.88);
}
:is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn:hover { --btn-bg: rgb(255 255 255 / 0.15); --btn-fg: #fff; }
:is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-gold { --btn-bg: rgb(198 161 91 / 0.28); }
:is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-gold:hover { --btn-bg: rgb(198 161 91 / 0.40); }
:is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-light { --btn-bg: rgb(255 255 255 / 0.04); }

/* header language switch, phone menu, video pause (always on dark) */
.lang-toggle, .menu-button, .hero-pause { --rim: var(--rim-dark); }
.lang-toggle { background: rgb(255 255 255 / 0.05); border-color: transparent; box-shadow: var(--lens-dark); }
.lang-toggle button[aria-pressed="true"] { background: rgb(255 255 255 / 0.22); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -1px 0 rgb(255 255 255 / 0.3), 0 2px 8px rgb(0 0 0 / 0.2); }
.menu-button, .hero-pause { background: rgb(255 255 255 / 0.06); border-color: transparent; box-shadow: var(--lens-dark), var(--drop-dark); }
.menu-button:hover, .hero-pause:hover { background: rgb(255 255 255 / 0.16); }

/* blog filters (light) */
.chip {
  background: rgb(255 255 255 / 0.40); border-color: transparent;
  box-shadow: var(--lens-light), 0 0 0 1px rgb(16 90 61 / 0.14), var(--drop-light);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover { background: rgb(255 255 255 / 0.70); }
.chip[aria-pressed="true"] { background: rgb(16 90 61 / 0.16); color: var(--green-800); font-weight: 600;
  box-shadow: var(--lens-light), 0 0 0 1.5px rgb(16 90 61 / 0.45), var(--drop-light); }

/* quote form add / remove (light) */
.add-btn { background: rgb(255 255 255 / 0.40); border: 1.5px dashed rgb(16 90 61 / 0.45); box-shadow: var(--lens-light), var(--drop-light); }
.add-btn:hover { background: rgb(226 235 228 / 0.60); }
.remove-btn:hover { background: rgb(255 255 255 / 0.5); box-shadow: var(--lens-light), 0 0 0 1px currentColor; }

/* Solid fallbacks: no blur support, "Reduce transparency" or "Increase contrast" */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn, :is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn { --btn-bg: var(--green-700); --btn-fg: #fff; }
  .btn-gold, :is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-gold { --btn-bg: var(--gold-500); --btn-fg: var(--green-900); text-shadow: none; }
  .btn-outline, .btn-light { --btn-bg: #fff; --btn-fg: var(--green-700); }
  :is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-light { --btn-bg: rgb(8 46 32 / 0.6); --btn-fg: #fff; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .btn, :is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn { --btn-bg: var(--green-700); --btn-fg: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-gold, :is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-gold { --btn-bg: var(--gold-500); --btn-fg: var(--green-900); text-shadow: none; }
  .btn-outline, .btn-light { --btn-bg: #fff; --btn-fg: var(--green-700); }
  :is(.hero, .section-dark, .cta-band, .site-header, .site-footer) .btn-light { --btn-bg: rgb(8 46 32 / 0.8); --btn-fg: #fff; }
  .chip { background: #fff; } .chip[aria-pressed="true"] { background: var(--green-700); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }
