/* ============================================================
   Enabling Ability — warm editorial NDIS & aged care site
   Palette: ink navy, coral, cream, sage
   ============================================================ */

:root {
  /* brand — logo-driven: neutral canvas, rainbow logo pops */
  --ink: #14233B;
  --ink-soft: #2b3a52;

  /* === EXACT logo palette (source of truth) === */
  --magenta-bright: #C0227E; /* brighter accent */
  --magenta: #900C65;        /* plum primary */
  --magenta-deep: #900C65;
  --coral: #900C65;          /* legacy alias = primary */
  --coral-deep: #7a0a55;     /* legacy alias = primary deep */
  --purple: #900C65;
  --green: #4C8C2A;
  --lime: #A9BC13;
  --sage: #4C8C2A;           /* legacy alias = green */
  --sage-deep: #3f7522;
  --orange: #F37C0D;         /* warm orange CTA */
  --orange-deep: #d96c06;
  --teal: #184B54;           /* deep teal-blue (text-safe) */
  --teal-bright: #2BA8C4;    /* brighter teal accent */
  --blue: #2BA8C4;
  --gold: #F4C779;           /* warm gold/cream highlight */

  --cream: #FDF6EA;
  --cream-warm: #FBEAD3;     /* peach tint — logo ground */
  --peach: #FAD9B8;

  /* rainbow built literally from the logo ribbon's colours */
  --rainbow: linear-gradient(90deg, #C0227E 0%, #900C65 20%, #4C8C2A 44%, #A9BC13 60%, #F37C0D 80%, #2BA8C4 100%);
  --rainbow-soft: linear-gradient(120deg, rgba(192,34,126,.12), rgba(76,140,42,.12) 50%, rgba(243,124,13,.12));
  --rainbow-anim: linear-gradient(90deg, #C0227E, #900C65, #4C8C2A, #A9BC13, #F37C0D, #2BA8C4, #C0227E);

  /* warm ground washes — golden-cream → peach → warm orange (the logo card) */
  --wash-warm: radial-gradient(130% 120% at 78% 8%, #FCEFCE 0%, #FBE3C0 34%, #F8CFA0 64%, #F4B985 100%);
  --wash-soft: linear-gradient(180deg, #FFFCF4 0%, #FCF0DE 100%);

  /* neutrals derived for AA contrast */
  --text: #14233B;
  --text-muted: #4f5d72;
  --white: #ffffff;
  --card: #ffffff;
  --border: #F0E2D0;
  --border-strong: #E3CFB5;

  /* per-service colour identities (text-safe inks + faint tints), from logo set */
  --c-magenta:#900C65; --c-magenta-bg:rgba(192,34,126,.12);
  --c-purple:#7a0a55;  --c-purple-bg:rgba(144,12,101,.12);
  --c-green:#3f7522;   --c-green-bg:rgba(76,140,42,.15);
  --c-orange:#c2610a;  --c-orange-bg:rgba(243,124,13,.16);
  --c-teal:#184B54;    --c-teal-bg:rgba(43,168,196,.16);
  --c-blue:#176b7d;    --c-blue-bg:rgba(43,168,196,.13);
  --c-lime:#6f7d0c;    --c-lime-bg:rgba(169,188,19,.20);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 34px;

  /* warm-tinted layered shadows */
  --shadow-sm: 0 2px 10px rgba(120,60,20,.07);
  --shadow: 0 10px 30px -12px rgba(120,60,30,.18), 0 4px 10px -6px rgba(120,60,30,.10);
  --shadow-lg: 0 30px 60px -22px rgba(110,50,25,.30), 0 10px 24px -14px rgba(110,50,25,.18);
  --shadow-glow: 0 18px 50px -16px rgba(166,34,142,.32);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--wash-soft);
  -webkit-font-smoothing: antialiased;
}
@keyframes rainbow-shift { to { background-position: 200% 0; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.section-tint { background: var(--wash-soft); }
.section-peach { background: linear-gradient(180deg, #FFF7EC 0%, #FBE9D8 100%); }
.section-white { background: #FFFDFA; }

/* decorative ribbon divider echoing the logo motion */
.ribbon { display: block; width: 100%; height: 46px; }
.ribbon path { stroke-width: 4; fill: none; stroke-linecap: round; }

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* focus visibility */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--coral); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff; border: 0;
  background: linear-gradient(90deg, #900C65, #7a0a55 28%, #C0227E 62%, #900C65);
  background-size: 220% 100%; background-position: 0 0;
  box-shadow: 0 12px 28px -10px rgba(166,34,142,.6);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-position .6s var(--ease);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 38px -12px rgba(166,34,142,.7); }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(246,137,45,.55); }
.btn-orange:hover { background: var(--orange-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,241,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { flex: none; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 21px; color: var(--ink); letter-spacing: -.02em; }
.brand-name-accent {
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--magenta);
}
/* logo chip + image with graceful fallback */
.brand-logo { display: inline-flex; align-items: center; }
/* HEADER: rainbow "eai" mark inside a soft cream tile */
.brand-logo-mark img {
  height: 44px; width: auto; display: block;
  background: linear-gradient(160deg, #FDF3DF, #FBE7C9);
  padding: 5px 9px; border-radius: 13px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(244,199,121,.4);
}
/* FOOTER: full square lockup, framed */
.brand-logo-full img {
  width: 132px; height: auto; display: block; border-radius: 20px;
  box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.12);
}
.brand-fallback { display: none; align-items: center; gap: 11px; }
.brand-fallback-full { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-logo.logo-missing .brand-fallback { display: inline-flex; }

.nav-desktop { display: flex; gap: 30px; }
.nav-desktop a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
  padding: 6px 0; position: relative; transition: color .2s var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--coral); transition: width .25s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 0;
  flex-direction: column; gap: 5px; justify-content: center; align-items: center; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 13px 8px; font-size: 17px; font-weight: 500; border-radius: 10px; }
.nav-mobile a:hover { background: var(--cream-warm); }
.nav-mobile .btn { margin-top: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 10vw, 120px);
  background: var(--wash-warm);
}
.hero::after { /* bottom fade into next section */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--wash-soft)); z-index: 0; pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob { position: absolute; opacity: .5; filter: blur(36px); border-radius: 50%; will-change: transform; }
.hero-blob svg { display: none; }
.hero-blob-1 { width: 360px; height: 360px; top: -100px; right: -40px; background: radial-gradient(circle, rgba(192,34,126,.5), transparent 68%); }
.hero-blob-2 { width: 320px; height: 320px; bottom: -120px; left: -60px; background: radial-gradient(circle, rgba(76,140,42,.42), transparent 68%); opacity: .45; }
.hero-blob-3 { width: 280px; height: 280px; top: 32%; left: 42%; background: radial-gradient(circle, rgba(243,124,13,.38), transparent 68%); opacity: .4; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--sage-deep);
  background: rgba(76,140,42,.14); padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: italic;
  background: linear-gradient(100deg, #C0227E 0%, #900C65 26%, #F37C0D 80%, #d96c06 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .05em;
}
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-muted); max-width: 36ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.trust-strip li { font-size: 14.5px; color: var(--text-muted); }
.trust-strip strong { display: block; color: var(--ink); font-size: 17px; font-family: "Fraunces", serif; }

/* hero visual */
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-logo { display: block; width: min(100%, 360px); height: auto; border-radius: 26px; box-shadow: 0 30px 60px -25px rgba(20, 35, 59, .45); }
.hero-photo {
  position: relative; width: 100%; aspect-ratio: 4/5; max-height: 520px;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 5px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo::after { /* warm gradient overlay for depth + text safety */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(166,34,142,.10) 0%, transparent 35%, rgba(20,35,59,.30) 100%);
}
.hero-photo-fallback {
  position: absolute; inset: 0; display: none;
  background: linear-gradient(150deg, #C0227E, #900C65 30%, #4C8C2A 62%, #F37C0D 100%);
}
.hero-photo.img-missing .hero-photo-fallback { display: block; }
.hero-card {
  position: absolute; background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7); z-index: 2;
}
.hero-card-main {
  top: 26px; left: -26px; padding: 18px 22px; max-width: 280px;
  display: flex; gap: 14px; align-items: center;
}
.hc-avatar {
  width: 60px; height: 60px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, #C0227E, #4C8C2A 55%, #F37C0D);
}
.hc-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 19px; color: var(--ink); margin: 0 0 3px; }
.hc-meta { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.hero-card-stat {
  bottom: 26px; left: -26px; padding: 20px 24px; width: 210px;
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.hero-card-stat::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 4px; border-radius: 4px; background: var(--rainbow); }
.hc-num { font-family: "Fraunces", serif; font-weight: 600; font-size: 44px; line-height: 1; margin: 0 0 4px; color: #fff; }
.hc-label { font-size: 13.5px; color: rgba(251,247,241,.78); margin: 0; }

.hero-card-badge {
  bottom: 80px; right: -20px; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--sage-deep);
  border-radius: 999px;
}
.hero-card-badge svg { color: var(--sage); }

.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 8s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- stats ---------- */
.stats { background: var(--ink); padding-block: clamp(44px, 6vw, 72px); position: relative; }
.stats::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--rainbow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(40px, 5vw, 60px);
  line-height: 1; margin: 0 0 8px; font-variant-numeric: tabular-nums;
  background: var(--rainbow); background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #ff7ad6;
}
.stat:nth-child(1) .stat-num { background-position: 0% 0; }
.stat:nth-child(2) .stat-num { background-position: 35% 0; }
.stat:nth-child(3) .stat-num { background-position: 70% 0; }
.stat:nth-child(4) .stat-num { background-position: 100% 0; }
.stat-label { color: rgba(251,247,241,.86); font-size: 15px; margin: 0; }

/* ---------- section heads ---------- */
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta-deep); margin: 0 0 16px; }
.section-eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--rainbow); }
.section-eyebrow.on-dark { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); }
.section-sub { font-size: 18px; color: var(--text-muted); margin: 0; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 22px; }
.about-copy p { color: var(--text-muted); font-size: 17.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--coral-deep); margin-top: 6px; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.values li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-size: 14px; color: var(--text-muted);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.values li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.values strong { display: block; font-family: "Fraunces", serif; font-size: 18px; color: var(--ink); margin: 8px 0 4px; }
.value-ico { font-size: 18px; }
.values li:nth-child(1) .value-ico { color: var(--c-magenta); }
.values li:nth-child(2) .value-ico { color: var(--c-purple); }
.values li:nth-child(3) .value-ico { color: var(--c-green); }
.values li:nth-child(4) .value-ico { color: var(--c-orange); }
.values li:nth-child(5) .value-ico { color: var(--c-teal); }
.values li:nth-child(6) .value-ico { color: var(--c-blue); }

/* ---------- director's message ---------- */
.director {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: linear-gradient(135deg, var(--cream-warm), var(--peach));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.director-aside { text-align: center; }
.director-portrait {
  width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--rainbow); display: grid; place-items: center; padding: 6px;
  box-shadow: var(--shadow);
}
.director-portrait svg { width: 100%; height: 100%; }
.director-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; color: var(--ink); margin: 0 0 2px; }
.director-role { font-size: 14px; color: var(--text-muted); margin: 0; }
.director-body h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.director-body p { color: var(--text-muted); font-size: 17px; }
.director-quote {
  margin: 22px 0 0; padding: 4px 0 4px 24px; border-left: 5px solid transparent;
  border-image: var(--rainbow) 1;
}
.director-quote p {
  font-family: "Fraunces", serif; font-style: italic; font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4; color: var(--ink); margin: 0;
}

/* ---------- services bento ---------- */
.services { background: linear-gradient(180deg, #FFF7EC 0%, #FCEBDA 60%, #FBE3D0 100%); overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; }
.card {
  --tone: var(--c-magenta); --tone-bg: var(--c-magenta-bg);
  position: relative; isolation: isolate;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
/* coloured top-accent bar */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tone); transform: scaleX(.4); transform-origin: left;
  opacity: .85; transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tone) 35%, var(--border)); }
.card:hover::before { transform: scaleX(1); opacity: 1; }
.card h3 { font-size: 20px; margin: 0 0 8px; }
.card p { font-size: 15px; color: var(--text-muted); margin: 0; }
.card-ico {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--tone-bg); color: var(--tone);
  transition: transform .28s var(--ease);
}
.card:hover .card-ico { transform: scale(1.08) rotate(-3deg); }
.card-ico svg { width: 27px; height: 27px; }

/* per-service colour identities */
.t-magenta { --tone: var(--c-magenta); --tone-bg: var(--c-magenta-bg); }
.t-purple  { --tone: var(--c-purple);  --tone-bg: var(--c-purple-bg); }
.t-green   { --tone: var(--c-green);   --tone-bg: var(--c-green-bg); }
.t-orange  { --tone: var(--c-orange);  --tone-bg: var(--c-orange-bg); }
.t-teal    { --tone: var(--c-teal);    --tone-bg: var(--c-teal-bg); }
.t-blue    { --tone: var(--c-blue);    --tone-bg: var(--c-blue-bg); }

/* spanning cards for bento rhythm */
.card-feature {
  grid-column: span 2; grid-row: span 1;
  background: linear-gradient(145deg, #fff 0%, #FCEBF5 55%, #FBE0EE 100%);
}
.card-feature h3 { font-size: 27px; }
.card-feature p { font-size: 16.5px; }
.card-feature .card-ico { background: rgba(166,34,142,.16); }
/* sage/green statement card */
.card-accent { background: linear-gradient(150deg, #5aa330, #4C8C2A 70%); border-color: var(--sage-deep); }
.card-accent::before { background: #fff; opacity: .55; }
.card-accent h3 { color: #fff; }
.card-accent p { color: rgba(255,255,255,.92); }
.card-accent .card-ico { background: rgba(255,255,255,.22); color: #fff; }
/* clinical = ink with rainbow accent */
.card-clinical { grid-column: span 2; background: radial-gradient(120% 140% at 100% 0%, #1d3357 0%, #14233B 60%); border-color: var(--ink); }
.card-clinical::before { background: var(--rainbow); transform: scaleX(1); opacity: .9; }
.card-clinical h3 { color: #fff; }
.card-clinical p { color: rgba(251,247,241,.84); }
.card-clinical .card-ico { background: rgba(166,34,142,.30); color: #ff7ad6; }
/* lifestyle extras = warm orange tint */
.card-extras { background: linear-gradient(150deg, #fff 50%, #FDEEDD 100%); }
.card-extras .card-ico { background: rgba(246,137,45,.18); color: var(--c-orange); }

/* ---------- who we support ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  background: rgba(255,255,255,.7); border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 12px 22px; font-size: 16px; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chips li:hover { color: #fff; transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow); border-color: transparent; }
/* cycle colours through the chips */
.chips li:nth-child(6n+1):hover { background: var(--c-magenta); }
.chips li:nth-child(6n+2):hover { background: var(--c-purple); }
.chips li:nth-child(6n+3):hover { background: var(--c-green); }
.chips li:nth-child(6n+4):hover { background: var(--c-orange); }
.chips li:nth-child(6n+5):hover { background: var(--c-teal); }
.chips li:nth-child(6n+6):hover { background: var(--c-blue); }

/* ---------- how it works ---------- */
.how { background: linear-gradient(180deg, #FBE9D8 0%, #FFF7EC 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before { content: ""; position: absolute; top: 30px; left: 56px; right: -20px; height: 2px; background: var(--border-strong); }
.step:last-child::before { display: none; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--coral); color: #fff; font-family: "Fraunces", serif; font-weight: 600; font-size: 22px;
  position: relative; z-index: 1; margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--text-muted); margin: 0; }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; margin: 0; display: flex; flex-direction: column; gap: 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testi:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testi { position: relative; overflow: hidden; }
.testi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rainbow); opacity: .9; }
.testi blockquote {
  margin: 0; font-family: "Fraunces", serif; font-size: 20px; line-height: 1.4; color: var(--ink);
}
.testi blockquote::before { content: "\201C"; font-size: 46px; line-height: 0; color: var(--magenta-bright); vertical-align: -14px; margin-right: 2px; }
.testi figcaption { display: flex; align-items: center; gap: 13px; font-size: 14.5px; color: var(--text-muted); margin-top: auto; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep)); color: #fff; font-weight: 700; font-size: 18px;
}
.testi figcaption strong { color: var(--ink); }

/* ---------- careers ---------- */
.careers { background: var(--ink); }
.careers-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.careers h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); max-width: 18ch; }
.careers p { color: rgba(251,247,241,.82); max-width: 52ch; margin: 0; font-size: 17.5px; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(120deg, #C0227E 0%, #900C65 40%, #4C8C2A 100%); text-align: center; position: relative; overflow: hidden; }
.cta-band .hero-cta { position: relative; }
.cta-band::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--rainbow); }
.cta-inner { max-width: 680px; margin-inline: auto; position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(34px, 5vw, 56px); }
.cta-band p { color: rgba(255,255,255,.92); font-size: 19px; margin-bottom: 28px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--magenta-deep); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--cream); }
.cta-band .btn-ink { background: var(--orange); color: var(--ink); }
.cta-band .btn-ink:hover { background: var(--orange-deep); color: #fff; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-size: clamp(28px, 3.6vw, 42px); }
.contact-info > p { color: var(--text-muted); font-size: 17.5px; max-width: 40ch; }
.contact-list { display: grid; gap: 20px; margin-top: 30px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; font-size: 15px; color: var(--text-muted); }
.contact-list strong { color: var(--ink); font-size: 16.5px; }
.ci-ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: rgba(192,34,126,.12); color: var(--magenta); }
.ci-ico svg { width: 22px; height: 22px; }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.req { color: var(--coral); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--border-strong); border-radius: 12px;
  background: var(--cream); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta-bright); background: #fff; box-shadow: 0 0 0 4px rgba(192,34,126,.16); }
textarea { resize: vertical; min-height: 110px; }
.error { display: block; color: var(--coral-deep); font-size: 13.5px; font-weight: 500; margin-top: 6px; min-height: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--coral-deep); }
.form-note { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; text-align: center; }

.form-success {
  position: absolute; inset: 0; background: var(--card); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 40px; gap: 6px;
}
.form-success[hidden] { display: none; }
.form-success svg { color: var(--sage-deep); margin-bottom: 10px; }
.form-success h3 { font-size: 26px; margin: 0; }
.form-success p { color: var(--text-muted); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,247,241,.78); padding-block: clamp(48px, 6vw, 76px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { font-size: 14.5px; max-width: 32ch; margin: 16px 0 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(251,247,241,.08); color: var(--cream); transition: background .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { background: var(--coral); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-col h4 { color: var(--cream); font-family: "Inter", sans-serif; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 15px; color: rgba(251,247,241,.74); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--coral); }
.ndis-note { font-size: 14px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(251,247,241,.12); font-size: 13.5px; }
.footer-bottom p { margin: 0; }
.footer-sample { color: rgba(251,247,241,.5); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature, .card-clinical { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; max-width: 460px; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card-feature, .card-clinical { grid-column: span 1; }
  .values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-card-stat { width: 190px; }
  .careers-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   LIGHTWEIGHT CSS 3D  (subtle, transform-only)
   JS adds .tilt-ready to <html> only when 3D is allowed
   (fine pointer + hover + no reduced-motion). Without it,
   every rule below is inert and existing 2D states stand.
   ============================================================ */

/* --- bento card pointer-follow tilt --- */
.tilt-ready .bento { perspective: 1100px; }
.tilt-ready .card {
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transition: transform .4s var(--ease), box-shadow .35s var(--ease), border-color .28s var(--ease);
}
/* while actively tilting, follow the pointer instantly (JS sets --rx/--ry per frame) */
.tilt-ready .card.is-tilting { transition: box-shadow .2s var(--ease), border-color .2s var(--ease); will-change: transform; }
.tilt-ready .card.is-tilting {
  box-shadow:
    calc(var(--ry, 0deg) * -1.1px) calc(var(--rx, 0deg) * 1.4px + 22px) 46px -18px rgba(110,50,25,.38),
    0 8px 20px -12px rgba(110,50,25,.20);
}
/* parallax lift of inner content on tilt */
.tilt-ready .card .card-ico { transform: translateZ(38px); }
.tilt-ready .card h3 { transform: translateZ(24px); }
.tilt-ready .card p  { transform: translateZ(14px); }
.tilt-ready .card .card-ico,
.tilt-ready .card h3,
.tilt-ready .card p { transition: transform .4s var(--ease); }
/* neutralise the old translateY hover so it doesn't fight the 3D transform */
.tilt-ready .card:hover { transform:
    perspective(900px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px)); }
.tilt-ready .card:hover .card-ico { transform: translateZ(40px) scale(1.06) rotate(-3deg); }

/* --- gentle accent tilts (hero stat card, director portrait, logo mark) --- */
.tilt-ready .hero-card-main,
.tilt-ready .hero-card-stat { transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.tilt-ready .director-portrait {
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.tilt-ready .director:hover .director-portrait {
  transform: perspective(800px) rotateX(6deg) rotateY(-7deg) translateZ(10px);
  box-shadow: 14px 26px 50px -16px rgba(110,50,25,.4);
}
.tilt-ready .brand-logo-mark img { transition: transform .45s var(--ease), box-shadow .35s var(--ease); transform-style: preserve-3d; }
.tilt-ready .brand:hover .brand-logo-mark img {
  transform: perspective(500px) rotateY(-14deg) translateZ(8px);
  box-shadow: 6px 10px 22px -8px rgba(110,50,25,.35), inset 0 0 0 1px rgba(244,199,121,.4);
}

/* --- hero parallax: JS sets --px/--py (pointer) and --sy (scroll) per layer --- */
.tilt-ready .hero-blob { will-change: transform; }
.tilt-ready .hero-blob-1 { transform: translate3d(calc(var(--px,0) * 26px), calc(var(--py,0) * 22px + var(--sy,0) * 40px), 0); }
.tilt-ready .hero-blob-2 { transform: translate3d(calc(var(--px,0) * -30px), calc(var(--py,0) * -18px + var(--sy,0) * 70px), 0); }
.tilt-ready .hero-blob-3 { transform: translate3d(calc(var(--px,0) * 18px), calc(var(--py,0) * 26px + var(--sy,0) * 24px), 0); }
.tilt-ready .hero-card-badge { transform: translate3d(calc(var(--px,0) * 14px), calc(var(--py,0) * 10px), 0); }

/* TOUCH / no-hover devices: never tilt (mobile stays calm + smooth) */
@media (hover: none), (pointer: coarse) {
  .tilt-ready .card,
  .tilt-ready .card:hover { transform: none; }
  .tilt-ready .card .card-ico,
  .tilt-ready .card h3,
  .tilt-ready .card p { transform: none; }
  .tilt-ready .hero-blob { transform: none; }
}

/* ---------- reduced motion ----------
   Note: the CSS-3D tilt/parallax is intentionally NOT suppressed here
   (client requested it on-by-default for mouse devices). We still calm
   looping/entrance animation, which is the more disorienting motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .float, .float-slow { animation: none; }
}
