/* ============================================================
   Annzac Care Disability Support Services — Design System v2
   Direction: "Quiet competence" — paper, ink, fern, brass.
   An editorial/stationery register instead of app-template gloss.
   Authored mobile-first: base rules are the phone layout;
   min-width queries layer up complexity for larger screens.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,500&family=Public+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- Palette: five named colours, used with restraint ---- */
  --paper: #F6F1E6;        /* background — warm, like uncoated stock */
  --paper-deep: #EEE6D4;   /* alt-section background */
  --ink: #1E2A20;          /* near-black warm green-black — headings, body */
  --ink-soft: #55584B;     /* muted text, warm grey-olive, not cold grey */
  --fern: #3B6650;         /* brand primary green */
  --fern-deep: #22392C;    /* dark green — headers, footer, CTA bands */
  --fern-tint: #E8EDE6;    /* pale green wash, used sparingly */
  --ochre: #AD7B28;        /* brass/wax-seal accent — used like a seal, not a wash */
  --ochre-deep: #7E5A1D;
  --ochre-tint: #F3E6C8;
  --ochre-on-dark: #CC9A40; /* lighter ochre for text set on --fern-deep — base ochre is only 3.34:1 there */
  --slate: #33495A;        /* secondary — the navy from the Australia map mark */
  --card: #FFFCF4;         /* card surface, slightly lifted off paper */
  --line: #DCD2B8;         /* hairline border */
  --line-strong: #C7B98F;
  --danger: #9A3B24;

  /* Legacy variable aliases kept so existing component markup keeps working */
  --color-primary: var(--fern);
  --color-primary-dark: var(--fern-deep);
  --color-primary-light: var(--fern-tint);
  --color-primary-tint: #F1EEE0;
  --color-accent: var(--ochre);
  --color-accent-dark: var(--ochre-deep);
  --color-accent-light: var(--ochre-tint);
  --color-secondary: var(--slate);
  --color-secondary-light: #E9EDEF;
  --color-bg: var(--paper);
  --color-surface: var(--card);
  --color-surface-alt: var(--paper-deep);
  --color-fg: var(--ink);
  --color-fg-muted: var(--ink-soft);
  --color-border: var(--line);
  --color-border-strong: var(--line-strong);
  --color-destructive: var(--danger);
  --color-focus: var(--fern-deep);

  --font-heading: 'Source Serif 4', 'Iowan Old Style', ui-serif, Georgia, serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 30px;
  --space-7: 44px;
  --space-8: 60px;
  --space-9: 88px;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(30, 26, 14, 0.09);
  --shadow-md: 0 10px 28px rgba(30, 26, 14, 0.12), 0 2px 6px rgba(30, 26, 14, 0.07);
  --shadow-lg: 0 24px 56px rgba(30, 26, 14, 0.18), 0 6px 16px rgba(30, 26, 14, 0.08);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ink: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 340ms;
  --dur-slow: 620ms;

  --container-max: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { display: block; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.14;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }
em, i.serif-em { font-family: var(--font-heading); font-style: italic; font-weight: 400; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

/* ---------- Focus & accessibility ---------- */
a, button, input, textarea, select, [tabindex] { outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--fern-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--fern-deep); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-sm);
  z-index: 1000; transition: top var(--dur-fast) var(--ease-out); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--paper-deep); }
.section--primary { background: var(--fern-deep); color: #fff; }
.section--primary h2, .section--primary h3 { color: #fff; }
@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
  .section { padding-block: var(--space-9); }
  .section--tight { padding-block: var(--space-8); }
}

/* Eyebrow: a plain tracked mono label + rule, not a pill badge */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-deep);
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ochre); flex-shrink: 0; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 500; }
.section-head p { margin-top: var(--space-3); color: var(--ink-soft); font-size: 1.06rem; }
@media (min-width: 768px) {
  .section-head { margin-bottom: var(--space-7); }
  .section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
}

.grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .grid { gap: var(--space-6); } }

/* ---------- Buttons: small radius, ink fill-sweep on hover ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 15px 26px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; min-height: 48px;
  overflow: hidden; isolation: isolate;
  transition: color var(--dur-base) var(--ease-ink), border-color var(--dur-base) var(--ease-ink), transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateX(-101%);
  transition: transform var(--dur-base) var(--ease-ink);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ochre-deep); color: var(--paper); border-color: var(--ochre-deep); }
.btn-primary::before { background: var(--fern-deep); }
.btn-primary:hover { color: #fff; border-color: var(--fern-deep); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--paper); }
.btn-outline:hover::before { transform: translateX(0); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover { color: var(--fern-deep); }
.btn-ghost-light:hover::before { transform: translateX(0); }
.btn-sm { padding: 11px 20px; min-height: 40px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
/* The frosted-glass backdrop lives on a ::before, not the header itself —
   backdrop-filter/transform on the header would create a new CSS containing
   block, trapping any position:fixed descendant (the full-screen mobile
   nav) inside the header's own box instead of the viewport. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-4);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand img { height: 38px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; align-items: center; gap: var(--space-6); }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-toplink {
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem; color: var(--ink);
  padding: 10px 1px; display: inline-flex; align-items: center; gap: 5px; position: relative;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 4px; height: 1.5px;
  background: var(--ochre); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-ink);
}
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list > li > a[aria-current="page"] { color: var(--fern-deep); }

.has-dropdown { display: flex; }
.dropdown-caret { width: 10px; height: 10px; transition: transform var(--dur-fast) var(--ease-out); }
.has-dropdown[aria-expanded="true"] .dropdown-caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 310px; background: var(--card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: var(--space-2);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.dropdown a {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.94rem; font-weight: 500; color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.dropdown a:hover { background: var(--fern-tint); padding-left: 19px; }

.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle {
  display: inline-flex; flex-direction: column; background: transparent; border: none; padding: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 210; position: relative;
}
.nav-toggle .bar {
  display: block; flex-shrink: 0; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 1px;
  transition: transform var(--dur-base) var(--ease-ink), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav: full-screen editorial overlay, large serif links — not a shrunk list.
   Scoped to max-width so none of these can leak into the desktop layout —
   they previously weren't, which is what broke the desktop Services
   dropdown (display/background/shadow/opacity all got clobbered by the
   "mobile default" rules with nothing at 960px+ resetting them back). */
@media (max-width: 959px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 200;
    background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: center;
    padding: calc(var(--header-h) + var(--space-6)) var(--space-6) var(--space-6);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-slow) var(--ease-ink), transform var(--dur-slow) var(--ease-ink), visibility var(--dur-slow);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a {
    font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.9rem, 9vw, 2.6rem);
    padding: 16px 2px; width: 100%; justify-content: space-between;
  }
  .nav-list > li > a::after { display: none; }
  .dropdown {
    position: static; transform: none; box-shadow: none; border: none; background: transparent;
    opacity: 1; visibility: visible; display: none; min-width: 0; padding: 0 0 12px;
  }
  .dropdown a { font-family: var(--font-body); font-size: 1.05rem; padding: 10px 4px; }
  .nav-item-services[data-open="true"] .dropdown { display: block; }
  .main-nav .header-cta { margin-top: var(--space-6); }
  .main-nav .header-cta .btn-primary { width: 100%; }
  body.nav-is-open { overflow: hidden; }
}

@media (min-width: 960px) {
  .header-cta .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static; inset: auto; z-index: auto; background: transparent;
    flex-direction: row; align-items: center; justify-content: flex-start;
    padding: 0; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: var(--space-6); }
  .nav-list > li { border-bottom: none; }
  .nav-list > li > a { font-family: var(--font-body); font-weight: 600; font-size: 0.97rem; padding: 10px 1px; width: auto; }
  .nav-list > li > a::after { display: block; }
  .dropdown { position: absolute; }
  .nav-item-services:hover .dropdown, .nav-item-services:focus-within .dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
  .dropdown a { font-family: var(--font-body); font-size: 0.94rem; padding: 11px 14px; }
  .main-nav .header-cta { margin-top: 0; }
  .main-nav .header-cta .btn-primary { width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--space-7) var(--space-8); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; }
.hero .kicker {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fern-deep); display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-4);
}
.hero .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); flex-shrink: 0; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); color: var(--ink); font-weight: 500; }
.hero h1 em { color: var(--fern); }
.hero .lede { margin-top: var(--space-4); font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.hero-media {
  position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 5/4;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1100ms var(--ease-ink); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: right center; filter: saturate(0.92) sepia(0.06); }
.hero-badge {
  position: absolute; bottom: var(--space-4); left: var(--space-4); right: var(--space-4);
  background: var(--card); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: var(--space-3);
  border-left: 3px solid var(--ochre);
}
.hero-badge strong { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.hero-badge span { font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: 0.01em; }
@media (min-width: 900px) {
  .hero { padding-block: var(--space-9) var(--space-8); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); }
  .hero-badge { right: auto; max-width: calc(100% - 48px); }
}

.icon-circle {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--fern-tint); color: var(--fern-deep);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-circle svg { width: 19px; height: 19px; }
.icon-circle--accent { background: var(--ochre-tint); color: var(--ochre-deep); }
.icon-circle--lg { width: 50px; height: 50px; }
.icon-circle--lg svg { width: 23px; height: 23px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--paper-deep); padding-block: var(--space-7) var(--space-7); position: relative; overflow: hidden; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-soft); margin-bottom: var(--space-4); flex-wrap: wrap; letter-spacing: 0.01em;
}
.breadcrumb a { color: var(--fern-deep); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2rem, 8vw, 2.7rem); max-width: 780px; font-weight: 500; }
.page-hero .lede { margin-top: var(--space-4); font-size: 1.1rem; color: var(--ink-soft); max-width: 660px; }
.page-hero-media {
  margin-top: var(--space-7); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 12/5;
}
@media (max-width: 640px) { .page-hero-media { aspect-ratio: 4/3; } }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) sepia(0.05); }
@media (min-width: 768px) { .page-hero { padding-block: var(--space-8) var(--space-8); } }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-5); box-shadow: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.14rem; margin-top: var(--space-4); font-weight: 600; }
.card p { color: var(--ink-soft); margin-top: var(--space-2); }
.card .card-link {
  margin-top: var(--space-4); display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--fern-deep); font-family: var(--font-body); font-size: 0.94rem;
}
.card .card-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }
.service-card { display: flex; flex-direction: column; }

/* ---------- Directory list (services index — replaces uniform card grid) ---------- */
.directory { border-top: 1px solid var(--line); }
.directory-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: var(--space-4); padding: var(--space-5) 2px; border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.directory-row-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; display: block; }
.directory-row h3 {
  font-size: clamp(1.25rem, 4.5vw, 1.6rem); font-weight: 500;
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-ink);
}
.directory-row p { color: var(--ink-soft); margin-top: 6px; max-width: 46ch; font-size: 0.98rem; }
.directory-row .arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-ink);
}
.directory-row .arrow svg { width: 17px; height: 17px; color: var(--ink); transition: color var(--dur-base) var(--ease-out); }
.directory-row .thumb {
  position: absolute; top: 50%; right: 64px; width: 112px; height: 82px; border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-md); pointer-events: none; z-index: 2;
  transform: translateY(-50%) translateX(16px) rotate(3deg); opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-ink);
  display: none;
}
.directory-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.directory-row a.directory-link { position: absolute; inset: 0; z-index: 3; }
.directory-row:hover h3, .directory-row:focus-within h3 { color: var(--fern-deep); transform: translateX(4px); }
.directory-row:hover .arrow, .directory-row:focus-within .arrow { background: var(--ink); border-color: var(--ink); transform: rotate(45deg); }
.directory-row:hover .arrow svg, .directory-row:focus-within .arrow svg { color: var(--paper); }
@media (min-width: 720px) {
  .directory-row .thumb { display: block; }
  .directory-row:hover .thumb, .directory-row:focus-within .thumb { opacity: 1; transform: translateY(-50%) translateX(0) rotate(-2deg); }
}

/* value / feature cards */
.value-card { text-align: left; }

/* image + text feature — editorial framed treatment */
.feature-media-card {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); aspect-ratio: 4/3;
}
.feature-media-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94) sepia(0.04); transition: transform var(--dur-slow) var(--ease-ink); }
.feature-media-card:hover img { transform: scale(1.045); }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 5/4;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.93) sepia(0.05); transition: filter var(--dur-slow) var(--ease-out); }
.split-media:hover img { filter: saturate(1.05) sepia(0); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
  .split.reverse .split-media { order: 0; }
}

.check-list li { display: flex; gap: var(--space-3); padding-block: var(--space-2); align-items: flex-start; color: var(--ink); }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--fern); width: 19px; height: 19px; }

/* ---------- Stats ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); text-align: left; }
.stat { border-left: 2px solid var(--ochre); padding-left: var(--space-4); }
.stat .num { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--ochre-on-dark); font-variant-numeric: tabular-nums; }
.stat .label { margin-top: 4px; color: rgba(255,255,255,0.82); font-size: 0.92rem; font-family: var(--font-mono); letter-spacing: 0.01em; }
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); text-align: left; } }

/* ---------- Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  text-align: left; padding: var(--space-5) 0; font-family: var(--font-heading); font-weight: 500;
  font-size: 1.08rem; color: var(--ink);
}
.accordion-trigger .plus {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-ink), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(135deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-ink); }
.accordion-panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-panel p { color: var(--ink-soft); padding-bottom: var(--space-5); max-width: 720px; }

/* ---------- Signature element: the honesty note-card ---------- */
.note-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 2px; padding: var(--space-7) var(--space-6); max-width: 640px; margin-inline: auto;
  box-shadow: 0 1px 0 var(--card), 0 6px 0 -2px var(--paper-deep), 0 6px 1px -1px var(--line), var(--shadow-md);
  transform: rotate(-0.6deg);
}
.note-card::before {
  content: "A NOTE, PLAINLY";
  position: absolute; top: -11px; left: 28px; background: var(--ochre); color: #26190A;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; font-weight: 600;
  padding: 4px 10px; transform: rotate(-2deg); box-shadow: var(--shadow-sm);
}
.note-card h3 { font-size: 1.3rem; font-weight: 500; }
.note-card p { margin-top: var(--space-3); color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.note-card p:first-of-type { margin-top: var(--space-4); }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; margin-bottom: var(--space-4); border: 1px solid var(--line); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.93) sepia(0.04); transition: transform var(--dur-slow) var(--ease-ink), filter var(--dur-base) var(--ease-out); }
.blog-card:hover .thumb img { transform: scale(1.06); filter: saturate(1.02) sepia(0); }
.blog-card .tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--ochre-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card h3 { margin-top: var(--space-2); font-size: 1.14rem; font-weight: 600; }
.blog-card p { color: var(--ink-soft); margin-top: var(--space-2); font-size: 0.97rem; }

.article-body { max-width: 720px; margin-inline: auto; }
.article-body h2 { font-size: 1.5rem; font-weight: 500; margin-top: var(--space-7); margin-bottom: var(--space-3); }
.article-body h3 { font-size: 1.18rem; font-weight: 600; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.article-body p { margin-top: var(--space-4); color: var(--ink); font-size: 1.09rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin-top: var(--space-4); padding-left: 1.3em; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: var(--space-2); line-height: 1.75; color: var(--ink); }
.article-body a { color: var(--fern-deep); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 3px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body img { max-width: 100%; height: auto; display: block; margin: var(--space-6) auto; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.article-meta { display: flex; gap: var(--space-4); align-items: center; color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: var(--space-3); flex-wrap: wrap; }
.article-hero-img { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); margin-top: var(--space-6); aspect-ratio: 16/9; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.93) sepia(0.04); }
@media (min-width: 768px) { .article-hero-img { aspect-ratio: 16/8; } }
blockquote.pull {
  border-left: 3px solid var(--ochre); padding-left: var(--space-5); margin: var(--space-6) 0;
  font-family: var(--font-heading); font-size: 1.28rem; font-weight: 400; font-style: italic; color: var(--fern-deep);
}
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--ochre); width: 0%; z-index: 150;
  transition: width 80ms linear;
}

/* ---------- Forms ---------- */
.form-card { background: var(--card); border-radius: var(--radius-md); border: 1px solid var(--line); padding: var(--space-6); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
/* Vertical rhythm is scoped to the form's own direct children (each a .field
   or a .form-row), not to .field wherever it appears — so a field's
   position no longer depends on whether it happens to share a row. */
.form-card form > * { margin-top: var(--space-5); }
.form-card form > *:first-child { margin-top: 0; }
.form-row .field { margin-top: 0; }
.field label { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--space-2); }
.field .required { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--ink); min-height: 48px; font-family: var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fern); box-shadow: 0 0 0 3px var(--fern-tint); outline: none; }
.field .hint { margin-top: var(--space-1); font-size: 0.85rem; color: var(--ink-soft); }
.field-error { margin-top: var(--space-1); font-size: 0.85rem; color: var(--danger); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.form-note { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--fern-tint); border-radius: var(--radius-sm); padding: var(--space-4); margin-top: var(--space-6); font-size: 0.9rem; color: var(--ink-soft); }
.form-note svg { flex-shrink: 0; color: var(--fern-deep); width: 19px; height: 19px; margin-top: 2px; }
.form-success, .form-error { display: none; text-align: center; padding: var(--space-7) var(--space-3); }
.form-success.is-visible, .form-error.is-visible { display: block; }
.form-success .icon-circle, .form-error .icon-circle { margin-inline: auto; margin-bottom: var(--space-4); width: 60px; height: 60px; border-radius: 50%; }
.form-success .icon-circle svg, .form-error .icon-circle svg { width: 28px; height: 28px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact info ---------- */
.contact-info-card { display: flex; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); }
.contact-info-card .card-label { font-size: 1rem; font-weight: 700; font-family: var(--font-body); color: var(--ink); margin: 0; }
.contact-info-card p, .contact-info-card a { color: var(--ink-soft); margin-top: 4px; display: block; }
.contact-info-card a:hover { color: var(--fern-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--fern-deep); border-radius: var(--radius-md); padding: var(--space-7) var(--space-5);
  color: #fff; position: relative; overflow: hidden; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 500; }
.cta-band p { color: rgba(255,255,255,0.82); margin-top: var(--space-3); font-size: 1.08rem; max-width: 520px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
@media (min-width: 768px) { .cta-band { padding: var(--space-8); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--fern-deep); color: rgba(255,255,255,0.82); padding-block: var(--space-8) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.footer-brand .logo-stamp {
  display: inline-flex; align-items: center; background: var(--paper); border-radius: var(--radius-sm);
  padding: 8px 12px; box-shadow: var(--shadow-sm);
}
.footer-brand img { height: 30px; display: block; }
.footer-brand p { margin-top: var(--space-4); color: rgba(255,255,255,0.6); font-size: 0.94rem; max-width: 320px; line-height: 1.7; }
.footer-badges-row { margin-bottom: var(--space-7); }
.footer-badge { height: 72px; width: auto; display: block; border-radius: var(--radius-sm); background: var(--paper); padding: 8px 14px; box-shadow: var(--shadow-sm); }
@media (min-width: 560px) { .footer-badge { height: 88px; } }
.footer-col-title { color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--ochre-on-dark); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--ochre); border-color: var(--ochre); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--space-7); padding-top: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-mono);
  font-size: 0.78rem; color: rgba(255,255,255,0.62);
}
.footer-bottom-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.acknowledgement { font-size: 0.85rem; color: rgba(255,255,255,0.62); font-style: italic; font-family: var(--font-heading); max-width: 900px; margin-top: var(--space-6); line-height: 1.75; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 560px) and (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Back to top ---------- */
.whatsapp-float {
  position: fixed; right: var(--space-4); bottom: var(--space-4); width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 90; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }

.back-to-top {
  position: fixed; left: var(--space-4); bottom: var(--space-4); width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base), background var(--dur-fast);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ochre); color: #26190A; }

/* ---------- Motion: intentional, not omnipresent ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-ink), transform var(--dur-slow) var(--ease-ink); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* Curtain-wipe reveal for framed imagery — the one motion signature reused everywhere a photo appears */
.img-reveal { position: relative; }
.img-reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--fern-deep); z-index: 4;
  transform-origin: right; transform: scaleX(0);
}
.img-reveal.is-revealing::after { animation: curtain-out var(--dur-slow) var(--ease-ink) forwards; }
.img-reveal img { transform: scale(1.08); transition: transform 900ms var(--ease-ink); }
.img-reveal.is-revealing img { transform: scale(1); }
@keyframes curtain-out {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  50.1% { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .img-reveal::after { display: none; }
  .img-reveal img { transform: none; }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--card);
  border-top: 1px solid var(--line); padding: var(--space-3) var(--space-4); display: none;
  box-shadow: 0 -4px 16px rgba(30,26,14,0.08);
}
@media (max-width: 640px) { .mobile-sticky-cta { display: flex; gap: var(--space-3); } body { padding-bottom: 76px; } }

/* ---------- Misc pages ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; font-weight: 500; margin-top: var(--space-7); }
.prose p, .prose li { color: var(--ink-soft); margin-top: var(--space-3); line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-top: var(--space-3); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.color-accent { color: var(--ochre-deep); }
.services-index-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 720px) { .services-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-index-grid { grid-template-columns: repeat(3, 1fr); } }

.region-chip-list { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.region-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--line); font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 500; color: var(--fern-deep);
}

.step-list { counter-reset: step; }
.step-item { display: flex; gap: var(--space-5); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: step; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--fern-tint); color: var(--fern-deep); font-family: var(--font-heading); font-weight: 600;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step-num::before { content: counter(step); }
.step-content h3 { font-size: 1.1rem; font-weight: 600; }
.step-content p { color: var(--ink-soft); margin-top: var(--space-2); }
