/* =====================================================================
   Gracia Support — Design System & Styles
   A static, accessible NDIS disability-support website.
   Organised: tokens → base → layout → components → sections → utilities
   → accessibility modes → responsive.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Brand palette — espresso, bronze and gold, drawn from the Gracia logo */
  --brand-050: #f5eee1;
  --brand-100: #ead9bd;
  --brand-200: #d9c39a;
  --brand-400: #b9976a;
  --brand: #8a6c46;
  --brand-600: #6f5533;
  --brand-700: #5a4526;
  --brand-800: #33291c;

  --accent: #c9a876;
  --accent-600: #8a6534;
  --accent-050: #f8f1e3;

  --plum: #8a6c46;
  --plum-050: #f5eee1;

  /* Ink & neutrals */
  --ink: #2c241c;
  --ink-soft: #4f4437;
  --muted: #635541;
  --line: #e8dfd0;
  --line-strong: #d5c8b2;

  /* Dark-surface foregrounds */
  --cream: #f6efe3;
  --cream-soft: #cfc4b2;

  /* Surfaces — warm parchment canvas, deeper cream sections, gold cards */
  --bg: #f6f0e3;
  --surface: #ede4d2;
  --surface-2: #e5d9c1;
  --card: #fffdf8;
  --card-gold: linear-gradient(150deg, var(--brand-100), #e2cfa5);
  --surface-brand: #33291c;

  /* Typography */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Shadows — warm-tinted so they sit naturally on cream */
  --shadow-sm: 0 1px 2px rgba(51, 41, 28, 0.05), 0 1px 3px rgba(51, 41, 28, 0.07);
  --shadow: 0 8px 24px rgba(51, 41, 28, 0.09), 0 2px 6px rgba(51, 41, 28, 0.05);
  --shadow-lg: 0 24px 60px rgba(51, 41, 28, 0.16), 0 8px 18px rgba(51, 41, 28, 0.08);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.45s;

  color-scheme: light;
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  font-size: 100%;             /* scaled by the accessibility widget */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }

ul, ol { padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

/* Visible focus for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Keep the focus ring visible on the dark brand surfaces */
.section--brand a:focus-visible,
.a11y__toggle:focus-visible {
  outline-color: #ffffff;
}

::selection { background: var(--brand-100); color: var(--brand-800); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--brand-700);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Screen-reader only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }
.section--mint { background: var(--surface-2); }
.section--brand { background: var(--surface-brand); color: var(--cream); }
.section--brand h2,
.section--brand h3 { color: var(--cream); }
.section--brand p { color: var(--cream-soft); }

.stack > * + * { margin-top: 1rem; }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.9rem;
}
.eyebrow::after {
  content: "";
  width: 74px; height: 16px;
  flex: none;
  background: url("../img/gracia-flourish.png?v=2") center / contain no-repeat;
}
.section--brand .eyebrow { color: var(--accent); }
.section-head--center .eyebrow { display: inline-flex; }

.lead { font-size: 1.15rem; color: var(--muted); }
.section--brand .lead { color: var(--cream-soft); }

/* ---------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-800);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn .btn__icon { width: 1.15em; height: 1.15em; }

.btn--primary { --btn-bg: var(--brand-800); --btn-fg: var(--cream); }
.btn--primary:hover { --btn-bg: var(--brand-700); --btn-fg: #ffffff; }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--brand-800); }
.btn--accent:hover { --btn-bg: var(--brand-200); --btn-fg: var(--brand-800); }

.btn--ghost {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-200); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand-050); color: var(--ink); }

.btn--outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); box-shadow: none;
}
.btn--outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* Inline text link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   5. Header & navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 240, 227, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(246, 240, 227, 0.98); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
}
.brand--image { flex: none; }
.brand__logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.28rem; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-700);
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.primary-nav__list a:hover { color: var(--brand-700); background: var(--brand-050); }
/* Current page: gold pill plus an underline bar, so it reads as "you are here"
   rather than as a hover state. */
.primary-nav__list a[aria-current="page"] {
  color: var(--brand-800);
  background: var(--brand-200);
  font-weight: 700;
}
.primary-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: -0.4rem;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-600);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(201, 168, 118, 0.28), transparent 62%),
    radial-gradient(55% 60% at 4% 94%, rgba(217, 195, 154, 0.3), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__title { margin-bottom: 1.1rem; }
.hero__title .accentual { color: var(--brand); font-style: italic; }
.hero__text { font-size: 1.18rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.8rem; }
.hero__cta { margin-bottom: 1.8rem; }

.hero__trust { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__trust-avatars { display: flex; }
.hero__trust-avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--surface);
  margin-left: -12px;
  background: var(--brand-200);
  display: grid; place-items: center;
  font-weight: 700; color: var(--brand-800); font-size: 0.85rem;
}
.hero__trust-avatars span:first-child { margin-left: 0; }
.hero__trust-text { font-size: 0.92rem; color: var(--muted); }
.hero__trust-text strong { color: var(--ink); }
.stars { color: var(--accent-600); letter-spacing: 2px; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__art {
  position: relative;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  background:
    linear-gradient(160deg, var(--brand-200), var(--brand-400));
}
.hero__art svg { width: 100%; height: 100%; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__art picture,
.media-frame picture { display: block; width: 100%; height: 100%; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.float-chip svg { width: 1.4rem; height: 1.4rem; }
.float-chip__icon {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--brand-050); color: var(--brand-600);
}
.float-chip__icon svg { width: 1.15rem; height: 1.15rem; }
.float-chip--tl { top: 8%; left: -6%; }
.float-chip--br { bottom: 9%; right: -5%; }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

/* Page banner (inner pages) — same warm treatment as the home hero */
.page-hero {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(201, 168, 118, 0.28), transparent 62%),
    radial-gradient(55% 60% at 4% 94%, rgba(217, 195, 154, 0.3), transparent 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero__inner { position: relative; padding-block: clamp(3rem, 6vw, 5rem); max-width: 760px; }
.page-hero .container { padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { color: var(--ink); margin-bottom: 1rem; max-width: 20ch; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 58ch; }
.page-hero .eyebrow { color: var(--brand-600); }
.page-hero--compact .container { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.about-page .page-hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }

.breadcrumb { margin-bottom: 1.2rem; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 0.5rem; color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------
   7. Stat strip
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}
.section--brand .stat__num { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
.section--brand .stat__label { color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   8. Cards / grids
   --------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-gold);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-400); }
.card--narrow { max-width: 620px; margin-inline: auto; text-align: center; padding: clamp(2rem, 4vw, 2.75rem); }
.card--narrow p { color: var(--ink-soft); }

/* Service card */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__icon {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--brand-600);
}
.service-card__icon svg { width: 32px; height: 32px; }
.service-card:nth-child(3n+2) .service-card__icon { color: var(--accent-600); }
.service-card:nth-child(3n) .service-card__icon { color: var(--plum); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.1rem; }
.service-card .text-link { margin-top: auto; }

/* Feature / value item */
.feature { display: flex; gap: 1rem; }
.feature__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand-600);
  display: grid; place-items: center;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1.5rem; list-style: none; padding-left: 0; margin: 0; }
.steps--row { grid-template-columns: repeat(4, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 0.5rem; }
.step__num {
  counter-increment: step;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px var(--brand-050);
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Centred form panel (contact page) */
.form-panel { max-width: 760px; margin-inline: auto; }
.form-panel .card { padding: clamp(1.75rem, 4vw, 3rem); }

/* Split media + content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
  position: relative;
  background: linear-gradient(160deg, var(--brand-100), var(--brand-400));
}
.media-frame svg { width: 100%; height: 100%; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Check list */
.check-list { list-style: none; display: grid; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5533' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Feedback page: keep the QR in the open space beside the contact options. */
.feedback-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.feedback-qr {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  margin-top: -11rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feedback-qr img { width: 100%; aspect-ratio: 1; }

/* Testimonials */
.quote-card {
  background: var(--card-gold);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; height: 100%;
}
.quote-card__stars { color: var(--accent-600); letter-spacing: 2px; margin-bottom: 0.8rem; }
.quote-card blockquote { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.6; }
.quote-card__person { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; }
.quote-card__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-800);
  display: grid; place-items: center; font-weight: 700;
}
.quote-card__name { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.quote-card__role { color: var(--muted); font-size: 0.85rem; }

/* Team */
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 1rem;
  background: linear-gradient(160deg, var(--brand-200), var(--brand-600));
  display: grid; place-items: center;
}
.team-card__photo svg { width: 56%; }
.team-card h3 { font-size: 1.15rem; }
.team-card__role { color: var(--brand-600); font-weight: 600; font-size: 0.92rem; }
.team-card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

/* Commitments trust bar */
.commitments-section {
  background: var(--bg);
  border-block: 1px solid var(--line-strong);
}
.commitments__intro {
  max-width: 760px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.commitments__intro h2 { margin-bottom: 0.75rem; }
.commitments__intro > p:last-child { color: var(--muted); }
.commitments {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  row-gap: 0.55rem;
  column-gap: clamp(1.5rem, 3.2vw, 3rem);
}
/* Each item spans the three shared rows so icons, headings and body copy
   line up across all four columns regardless of how the text wraps. */
.commitment {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(1.25rem, 2.4vw, 1.75rem);
}
.commitment__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-050);
  color: var(--brand);
  margin-bottom: 0.45rem;
}
.commitment__icon svg { width: 1.25rem; height: 1.25rem; }
.commitment h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: 0;
  align-self: start;
}
.commitment p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
@supports not (grid-template-rows: subgrid) {
  .commitment { display: flex; flex-direction: column; gap: 0.55rem; }
  .commitment h3 { min-height: 2.7em; }
}

/* Logo / badge cloud */
.badge-row {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-weight: 600; color: var(--ink-soft); font-size: 0.92rem;
}
.badge-pill svg { width: 1.3rem; height: 1.3rem; color: var(--brand-600); }

/* ---------------------------------------------------------------------
   9. CTA band
   --------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand-100), var(--brand-200));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 80% at 90% 10%, rgba(255, 253, 248, 0.55), transparent 55%),
    radial-gradient(40% 80% at 5% 100%, rgba(201, 168, 118, 0.3), transparent 55%);
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: var(--brand-600); }
.cta-band h2 { color: var(--ink); margin-bottom: 0.8rem; }
.cta-band p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band a:not(.btn) { color: var(--brand-700); font-weight: 600; }
.cta-band a:not(.btn):hover { color: var(--brand-800); }
.cta-band .btn--accent { --btn-bg: var(--brand-800); --btn-fg: var(--cream); }
.cta-band .btn--accent:hover { --btn-bg: var(--brand-700); --btn-fg: #ffffff; }

/* ---------------------------------------------------------------------
   10. FAQ (native details/summary)
   --------------------------------------------------------------------- */
.faq { display: grid; gap: 0.9rem; max-width: 820px; }
.faq__item {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card-gold);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5533' stroke-width='2.4' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .faq__body { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   11. Forms
   --------------------------------------------------------------------- */
.form-card {
  background: var(--card-gold);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field .req { color: var(--accent-600); }
.field .hint { font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-050);
}
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-color: #c0392b;
}
.field__error { color: #b3261e; font-size: 0.85rem; min-height: 1em; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #c0392b; }

.form-note { font-size: 0.85rem; color: var(--muted); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }

.form-success {
  display: none;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
}
.form-success.is-visible { display: flex; }
.form-success svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--brand-600); }

/* Contact info list */
.contact-list { list-style: none; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-050); color: var(--brand-600);
  display: grid; place-items: center;
}
.contact-list__icon svg { width: 24px; height: 24px; }
.contact-list dt { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.contact-list dd { color: var(--muted); }
.contact-list a { color: var(--brand-700); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   12. Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--surface-2); color: var(--ink-soft); border-top: 1px solid var(--line-strong); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand-700); text-decoration: underline; }
.site-footer .brand--image { width: fit-content; }
.site-footer .brand__logo {
  width: 104px;
  height: 134px;
}

/* Business-card footer layout: logo | divider | brand + contact rows */
.site-footer__card {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.site-footer__card .brand__logo {
  width: clamp(220px, 28vw, 320px);
  height: auto;
}
.site-footer__contact {
  position: relative;
  padding-left: clamp(2.5rem, 6vw, 5.5rem);
}
/* Card-style divider: fine gold line broken by a botanical sprig */
.site-footer__contact::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom,
    var(--brand-400) 0%, var(--brand-400) 36%,
    transparent 36%, transparent 64%,
    var(--brand-400) 64%, var(--brand-400) 100%);
}
.site-footer__contact::after {
  content: "";
  position: absolute;
  left: 1px; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 96px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 96' fill='none' stroke='%23b9976a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 8 V88'/%3E%3Cpath d='M22 6 C25 12 25 18 22 24 C19 18 19 12 22 6 Z'/%3E%3Cpath d='M22 44 C14 42 8 36 6 28 C14 30 20 35 22 44 Z'/%3E%3Cpath d='M22 44 C30 42 36 36 38 28 C30 30 24 35 22 44 Z'/%3E%3Cpath d='M22 68 C14 66 8 60 6 52 C14 54 20 59 22 68 Z'/%3E%3Cpath d='M22 68 C30 66 36 60 38 52 C30 54 24 59 22 68 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-footer__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.site-footer__tag {
  font-style: italic;
  color: var(--brand);
  font-size: 1.08rem;
  margin: 0.35rem 0 1.5rem;
}
.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.95rem;
}
.footer-contact a,
.footer-contact__row {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 1.05rem;
}
.footer-contact a { font-weight: 600; }
.footer-contact a:hover { color: var(--brand-700); text-decoration: none; }
.footer-contact a:hover .fc-icon { background: var(--brand-800); color: var(--cream); }
.fc-icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-200);
  color: var(--brand-800);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.fc-icon svg { width: 1.2rem; height: 1.2rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.site-footer__brand .brand__name { color: var(--brand-700); }
.site-footer__brand .brand__sub { color: var(--ink-soft); }
.site-footer__blurb {
  margin: 1.1rem 0 1.2rem;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 30ch;
}
.ndis-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  background: var(--card);
}
.ndis-badge svg { width: 1.1rem; height: 1.1rem; color: var(--brand-600); }
.site-footer__heading {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.site-footer__col ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer__col address { font-style: normal; display: grid; gap: 0.75rem; color: var(--ink-soft); }
.site-footer__col address a,
.site-footer__col address span {
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.site-footer__col address a { font-weight: 600; }
.site-footer__col address a::before,
.site-footer__col address span::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.site-footer__col address a[href^="tel"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5533' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}
.site-footer__col address a[href^="mailto"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5533' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}
.site-footer__col address .footer-facebook::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236f5533'%3E%3Cpath d='M22 12a10 10 0 1 0-11.6 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.2c-1.2 0-1.6.8-1.6 1.6V12h2.7l-.4 2.9h-2.3v7A10 10 0 0 0 22 12Z'/%3E%3C/svg%3E");
}
.site-footer__col address span:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5533' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.site-footer__col address span:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5533' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
.social { display: flex; gap: 0.7rem; margin-top: 1.3rem; list-style: none; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--brand-700);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.social a:hover { background: var(--brand-800); border-color: var(--brand-800); color: var(--cream); transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; }

.site-footer__ack {
  border-top: 1px solid var(--line-strong);
  padding-block: 1.5rem;
}
.site-footer__ack p { color: var(--ink-soft); font-size: 0.88rem; max-width: 90ch; }
.site-footer__ack strong { color: var(--ink); }

.site-footer__bottom { border-top: 1px solid var(--line-strong); }
.site-footer__bottom-inner {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.3rem;
  font-size: 0.85rem; color: var(--ink-soft);
}
.site-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; }
.site-footer__bottom-inner nav { display: flex; flex-wrap: wrap; gap: 0.6rem clamp(1.5rem, 3vw, 2.5rem); }

/* ---------------------------------------------------------------------
   13. Accessibility widget
   --------------------------------------------------------------------- */
.a11y { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 200; }
.a11y__toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--brand-800);
  color: var(--cream);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.a11y__toggle:hover { transform: scale(1.06); background: var(--brand-700); }
.a11y__toggle svg { width: 28px; height: 28px; }
.a11y__panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: 290px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
}
.a11y__panel[hidden] { display: none; }
.a11y__panel h2 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.a11y__panel .a11y__intro { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.a11y__group { margin-bottom: 1rem; }
.a11y__group > .a11y__label {
  display: block; font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 0.5rem;
}
.a11y__btns { display: flex; gap: 0.4rem; }
.a11y__btns button {
  flex: 1;
  padding: 0.5rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.15s var(--ease);
}
.a11y__btns button:hover { border-color: var(--brand-200); background: var(--brand-050); }
.a11y__btns button[aria-pressed="true"] {
  background: var(--brand-600); color: #fff; border-color: var(--brand-600);
}
.a11y__btns button .t1 { font-size: 0.8rem; }
.a11y__btns button .t2 { font-size: 1rem; }
.a11y__btns button .t3 { font-size: 1.2rem; }

.a11y__switch {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 600; color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.a11y__switch:hover { border-color: var(--brand-200); }
.a11y__switch-track {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--line-strong); position: relative; flex: none;
  transition: background-color 0.2s var(--ease);
}
.a11y__switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform 0.2s var(--ease);
}
.a11y__switch[aria-pressed="true"] .a11y__switch-track { background: var(--brand-600); }
.a11y__switch[aria-pressed="true"] .a11y__switch-track::after { transform: translateX(18px); }
.a11y__reset {
  width: 100%; margin-top: 0.4rem; padding: 0.55rem;
  background: none; border: none; color: var(--brand-700);
  font-weight: 600; text-decoration: underline;
}

/* ---------------------------------------------------------------------
   14. Utilities
   --------------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.maxw-prose { max-width: 62ch; }
.hidden { display: none; }

/* ---------------------------------------------------------------------
   14b. Motion — entrance animations, scroll reveals, hover life
   Every rule here is switched off by the reduced-motion block in §15.
   --------------------------------------------------------------------- */

/* Reveal-on-scroll. JS tags the targets, picks a direction variant per
   element type (rv-*) and sets --reveal-delay for stagger. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.rv-left { transform: translateX(-44px); }
.reveal.rv-right { transform: translateX(44px); }
.reveal.rv-zoom { transform: scale(0.92); }
.reveal.rv-pop {
  transform: translateY(30px) scale(0.93);
  transition-timing-function: cubic-bezier(0.34, 1.35, 0.64, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Content already on screen at load animates straight away instead of
   waiting for a scroll that may never come. Same directions as above. */
@keyframes gs-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes gs-rise-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}
@keyframes gs-rise-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes gs-zoom-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
.is-load-in {
  animation: gs-rise 0.75s var(--ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.is-load-in.rv-left { animation-name: gs-rise-left; }
.is-load-in.rv-right { animation-name: gs-rise-right; }
.is-load-in.rv-zoom, .is-load-in.rv-pop { animation-name: gs-zoom-in; }

/* Step numbers spring in just after their step arrives. */
@keyframes gs-pop {
  0% { transform: scale(0.3); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.step.is-in .step__num,
.step.is-load-in .step__num { animation: gs-pop 0.55s var(--ease) 0.2s backwards; }

/* Without JS nothing would ever un-hide, so show everything. */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
  .is-load-in { animation: none; }
}

/* Ambient motion — big soft brand ornaments that drift slowly, so key
   sections are never completely still (hero, page banners, CTA band). */
@keyframes gs-float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
@keyframes gs-drift {
  from { transform: translate(0, 0) rotate(-5deg); }
  to { transform: translate(-16px, 14px) rotate(6deg); }
}
@keyframes gs-drift-2 {
  from { transform: translate(0, 0) rotate(4deg) scale(1); }
  to { transform: translate(12px, -12px) rotate(-5deg) scale(1.06); }
}
.hero__art { animation: gs-float 7s var(--ease) infinite alternate; }

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -50px;
  width: clamp(260px, 30vw, 430px);
  aspect-ratio: 261 / 56;
  background: url("../img/gracia-flourish.png?v=2") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
  animation: gs-drift 13s ease-in-out infinite alternate;
}
.page-hero::after { top: auto; bottom: -8px; right: -30px; opacity: 0.2; }

.cta-band::after {
  content: "";
  position: absolute;
  left: clamp(0.5rem, 3vw, 2.5rem);
  bottom: 0.7rem;
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 261 / 56;
  background: url("../img/gracia-flourish.png?v=2") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  animation: gs-drift-2 11s ease-in-out infinite alternate;
}

/* Hover life ------------------------------------------------------------ */
.service-card__icon,
.commitment__icon,
.fc-icon,
.contact-list__icon,
.step__num {
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.card:hover .service-card__icon,
.commitment:hover .commitment__icon,
.footer-contact a:hover .fc-icon,
.contact-list li:hover .contact-list__icon,
.step:hover .step__num { transform: translateY(-4px) scale(1.08); }

.service-card { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-400); }

.media-frame img { transition: transform 0.7s var(--ease); }
.media-frame:hover img { transform: scale(1.045); }

/* ---------------------------------------------------------------------
   15. Accessibility preference modes (driven by widget)
   --------------------------------------------------------------------- */
:root[data-fontsize="lg"]  { font-size: 112.5%; }   /* 18px */
:root[data-fontsize="xl"]  { font-size: 125%; }     /* 20px */

:root[data-contrast="1"] {
  --ink: #000000;
  --ink-soft: #0a0a0a;
  --muted: #1c1c1c;
  --brand: #3d2f14;
  --brand-600: #3d2f14;
  --brand-700: #2b210e;
  --brand-800: #000000;
  --accent: #ffd899;
  --accent-600: #5a4526;
  --cream: #ffffff;
  --cream-soft: #f2f2f2;
  --line: #5a5a5a;
  --line-strong: #2b2b2b;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --bg: #ffffff;
  --card: #ffffff;
}
:root[data-contrast="1"] body { background: #fff; }
:root[data-contrast="1"] .card,
:root[data-contrast="1"] .quote-card,
:root[data-contrast="1"] .faq__item,
:root[data-contrast="1"] .form-card { border-width: 2px; border-color: #000; }
:root[data-contrast="1"] .btn { border-color: #000; }
:root[data-contrast="1"] a { text-decoration: underline; }
:root[data-contrast="1"] .hero,
:root[data-contrast="1"] .section--surface,
:root[data-contrast="1"] .section--mint { background: #fff; }
:root[data-contrast="1"] .hero::before { display: none; }
/* High-contrast coverage for the dark brand surfaces */
:root[data-contrast="1"] .page-hero,
:root[data-contrast="1"] .section--brand,
:root[data-contrast="1"] .cta-band,
:root[data-contrast="1"] .site-footer { background: #000; }
:root[data-contrast="1"] .page-hero::before,
:root[data-contrast="1"] .cta-band::before { display: none; }
:root[data-contrast="1"] .page-hero,
:root[data-contrast="1"] .page-hero h1,
:root[data-contrast="1"] .page-hero p,
:root[data-contrast="1"] .section--brand,
:root[data-contrast="1"] .section--brand h2,
:root[data-contrast="1"] .section--brand p,
:root[data-contrast="1"] .section--brand .lead,
:root[data-contrast="1"] .section--brand .eyebrow,
:root[data-contrast="1"] .stat__num,
:root[data-contrast="1"] .section--brand .stat__label,
:root[data-contrast="1"] .cta-band,
:root[data-contrast="1"] .cta-band h2,
:root[data-contrast="1"] .cta-band p,
:root[data-contrast="1"] .cta-band .eyebrow,
:root[data-contrast="1"] .breadcrumb a,
:root[data-contrast="1"] .breadcrumb [aria-current="page"],
:root[data-contrast="1"] .site-footer,
:root[data-contrast="1"] .site-footer a,
:root[data-contrast="1"] .site-footer p,
:root[data-contrast="1"] .site-footer__heading,
:root[data-contrast="1"] .site-footer__blurb,
:root[data-contrast="1"] .site-footer__ack p,
:root[data-contrast="1"] .site-footer__ack strong,
:root[data-contrast="1"] .site-footer__bottom-inner,
:root[data-contrast="1"] .site-footer address { color: #fff; }
:root[data-contrast="1"] .breadcrumb li:not(:last-child)::after { color: #fff; }
:root[data-contrast="1"] .ndis-badge { border-color: #fff; }
:root[data-contrast="1"] .social a { background: #222; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .is-load-in, .hero__art { animation: none !important; }
}
:root[data-motion="reduce"] *,
:root[data-motion="reduce"] *::before,
:root[data-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
:root[data-motion="reduce"] .reveal { opacity: 1; transform: none; }
:root[data-motion="reduce"] .is-load-in,
:root[data-motion="reduce"] .hero__art { animation: none !important; }

/* ---------------------------------------------------------------------
   16. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps--row, .steps--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .feedback-section__grid { grid-template-columns: 1fr; }
  .feedback-qr { margin: 1.5rem auto 0; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .primary-nav__list a { padding: 0.85rem 0.9rem; font-size: 1.05rem; }
  /* In the stacked menu the pill alone marks the current page */
  .primary-nav__list a[aria-current="page"]::after { display: none; }
  .primary-nav__cta { margin-top: 0.6rem; width: 100%; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 440px; }
  .hero__text { max-width: none; }
  .float-chip--tl { left: 2%; }
  .float-chip--br { right: 2%; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }

  .commitments { grid-template-columns: 1fr 1fr; row-gap: 0.55rem; }
  .commitment:nth-child(n + 3) { margin-top: clamp(1.5rem, 4vw, 2.25rem); }

  .site-footer__card {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 2rem;
    text-align: center;
  }
  .site-footer__contact {
    border-top: 1px solid var(--line-strong);
    padding-left: 0;
    padding-top: 2rem;
    display: grid;
    justify-items: center;
  }
  .site-footer__contact::before,
  .site-footer__contact::after { display: none; }
  .footer-contact { justify-items: start; text-align: left; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .steps--row, .steps--3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* Stacked list: icon beside the heading keeps the strip compact on phones */
  .commitments { grid-template-columns: 1fr; grid-template-rows: none; }
  .commitment {
    grid-row: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.3rem;
  }
  .commitment__icon { grid-row: span 2; margin-bottom: 0; }
  .commitment:nth-child(n + 2) { margin-top: 1.25rem; }

  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 1.12rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .a11y__panel { width: min(290px, calc(100vw - 2.2rem)); }
  .float-chip { font-size: 0.82rem; padding: 0.55rem 0.75rem; }
  .hero__art { aspect-ratio: 4 / 4; }
}

/* Print niceties */
@media print {
  .site-header, .a11y, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
}
