/* ===========================================================================
   Ability Access — shared stylesheet
   Built at a 1440px design width (source screenshots are ~50% scale).
   Headings: Lora (serif).  Body/UI: Inter (sans).
   =========================================================================== */

:root {
  --teal:        #138a82;   /* primary brand teal (buttons, accents)        */
  --teal-600:    #0f7c75;
  --teal-bright: #1a9a91;   /* CTA band                                     */
  --ink:         #0f2e33;   /* headings / darkest text                      */
  --body:        #5b6c70;   /* body paragraphs                              */
  --muted:       #8c9a9d;   /* faint labels                                 */
  --dark:        #042b32;   /* dark sections (Getting started)              */
  --darker:      #042329;   /* footer                                       */
  --coral:       #e67b6a;   /* accent / decorative                          */
  --pale:        #f1f8fa;   /* pale-cyan section background                 */
  --line:        #e6ebec;   /* hairline borders                             */
  --card:        #ffffff;
  --ph-bg: linear-gradient(135deg, #eef5f6 0%, #e3eef0 45%, #f3f7f4 100%); /* premium placeholder fill */

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* ---- fluid type scale (clamp 360px->1440px, modular ~1.2->1.25) ---- */
  --fs-50:  clamp(.78rem, .77rem + .05vw, .81rem);
  --fs-100: clamp(.875rem, .85rem + .1vw, .94rem);
  --fs-200: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-300: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --fs-400: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
  --fs-500: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
  --fs-600: clamp(2.25rem, 1.6rem + 2.9vw, 3.25rem);
  --fs-700: clamp(2.75rem, 1.8rem + 4.2vw, 4.5rem);
  --lh-tight: 1.08; --lh-heading: 1.12; --lh-body: 1.7;

  /* ---- spacing (4px base) + fluid section rhythm ---- */
  --space-8: .5rem;  --space-12: .75rem; --space-16: 1rem;  --space-24: 1.5rem;
  --space-32: 2rem;  --space-48: 3rem;   --space-64: 4rem;  --space-80: 5rem;
  --space-96: 6rem;  --space-128: 8rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);

  /* ---- radius ---- */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;

  /* ---- elevation (layered, teal-tinted) ---- */
  --shadow-1: 0 1px 2px rgba(4,43,50,.06), 0 2px 6px rgba(4,43,50,.06);
  --shadow-2: 0 2px 4px rgba(4,43,50,.06), 0 8px 18px -6px rgba(4,43,50,.12);
  --shadow-3: 0 6px 12px -4px rgba(4,43,50,.10), 0 18px 36px -12px rgba(4,43,50,.16);
  --shadow-4: 0 12px 24px -8px rgba(4,43,50,.14), 0 30px 60px -24px rgba(4,43,50,.20);
  --shadow-teal:  0 18px 40px -18px rgba(19,138,130,.45);
  --shadow-coral: 0 30px 50px -28px rgba(230,123,106,.55);

  /* ---- motion ---- */
  --dur-1: .18s; --dur-2: .32s; --dur-3: .6s; --dur-4: .9s; --dur-5: 1.4s;
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft:   cubic-bezier(.22, .61, .36, 1);
  --ease-back:   cubic-bezier(.34, 1.56, .64, 1);
  --reveal-distance: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;   /* contain transient reveal-transform offsets; safe for position:sticky */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- shared type -------------------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.12; }
.accent { font-style: italic; color: var(--teal); font-weight: 500; }

.eyebrow {
  font: 600 11px/1 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
}

.lead { font-size: 17px; line-height: 1.75; color: var(--body); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-600); }
.btn-outline{ background: transparent; color: var(--ink); border-color: #d7dedf; }
.btn-light  { background: #fff; color: var(--teal); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
}
.site-header .container {
  display: flex; align-items: center; gap: 40px;
  height: 96px;
  max-width: 1410px;            /* header sits a touch wider than content */
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* official brand lockup (mark + ABILITY/ACCESS + strapline) as a single asset */
.brand-logo { height: 60px; width: auto; display: block; }

.main-nav { display: flex; gap: 30px; margin-left: 64px; }
.main-nav a { font: 500 15px/1 var(--sans); color: #243a3e; }
.main-nav a:hover { color: var(--teal); }

.header-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
/* header NDIS trust lockup (round "I love ndis" badge + "Registered NDIS Provider") */
.ndis-badge { display: flex; align-items: center; gap: 12px; }
.ndis-badge img { width: 56px; height: auto; display: block; flex-shrink: 0; }
.ndis-badge span { font: 500 14px/1.18 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #6a2875; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; }
.hero-inner { position: relative; padding: 132px 0 264px; max-width: 430px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--teal); font: 600 12px/1 var(--sans);
  letter-spacing: .05em; text-transform: none; margin-bottom: 18px;
}
.hero-eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: 50px; line-height: 1.12; letter-spacing: -.01em; }
.hero p.lead { margin: 22px 0 30px; max-width: 430px; font-size: 16px; }
.hero-cta { display: flex; gap: 16px; }
.scroll-cue { display: flex; align-items: center; gap: 10px; margin-top: 70px; color: var(--body); font-size: 13px; letter-spacing: .04em; }
.scroll-cue .dot { width: 30px; height: 30px; border: 1.5px solid #cfd9da; border-radius: 50%; display: grid; place-items: center; }
.scroll-cue svg { width: 14px; height: 14px; }

.hero-photo {
  position: absolute; top: 96px; bottom: 0; right: 0; left: 36%;
  background: var(--ph-bg); overflow: hidden;
}
.hero-photo.ph::after { content: "HERO IMAGE"; }

/* =========================================================================
   TRUST BADGES (floating card)
   ========================================================================= */
.badges { position: relative; z-index: 5; margin-top: -64px; }
.badges-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(4,43,50,.18);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 30px 20px;
}
.badge { display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.badge + .badge { border-left: 1px solid var(--line); }
.badge .ic { width: 30px; height: 30px; color: var(--teal); flex-shrink: 0; }
.badge b { font: 600 15px/1.35 var(--sans); color: var(--ink); display: block; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services { padding: 120px 0 110px; }
.sec-head { display: flex; align-items: flex-end; gap: 40px; }
.sec-head .left { max-width: 560px; margin-right: auto; }
.sec-head h2 { font-size: 44px; margin-top: 12px; line-height: 1.08; }
.sec-head .right { max-width: 330px; margin-right: 200px; text-align: left; padding-bottom: 6px; }
.sec-head .right p { margin-bottom: 16px; }

.services-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; margin-top: 54px; }
.svc {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 14px;
  text-align: center; min-height: 132px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.svc .ic { width: 28px; height: 28px; color: var(--teal); }
.svc span { font: 600 12.5px/1.3 var(--sans); color: var(--ink); }

/* =========================================================================
   PARTICIPANT STORIES
   ========================================================================= */
.stories { background: var(--pale); padding: 62px 0; }
.stories .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.stories h2 { font-size: 44px; margin-top: 12px; line-height: 1.08; }
.stories p.lead { margin: 22px 0 30px; max-width: 380px; }
.story-media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/11; background: var(--ph-bg); }
.story-media .play {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center;
}
.story-media .play svg { width: 22px; height: 22px; color: var(--teal); margin-left: 3px; }
.story-quote {
  position: absolute; left: 32px; right: 32px; bottom: 28px; color: #fff;
}
.story-quote p { font: italic 500 18px/1.5 var(--serif); color: #fff; }
.story-quote small { display: block; margin-top: 12px; font: 600 13px/1 var(--sans); color: rgba(255,255,255,.85); }
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 26px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #c4d3d5; display: block; }
.dots i.on { width: 22px; border-radius: 4px; background: var(--teal); }

/* =========================================================================
   WHY CHOOSE US
   ========================================================================= */
.why { padding: 62px 0 68px; text-align: center; }
.why h2 { font-size: 44px; margin-top: 12px; line-height: 1.12; max-width: 760px; margin-inline: auto; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 64px; text-align: center; }
.feature .circle {
  width: 70px; height: 70px; border-radius: 50%; background: #e9f3f3;
  display: grid; place-items: center; margin: 0 auto 22px;
}
.feature .circle svg { width: 30px; height: 30px; color: var(--teal); }
.feature h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.feature p { font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* =========================================================================
   GETTING STARTED (dark)
   ========================================================================= */
.steps { background: var(--dark); color: #cfe0e0; position: relative; overflow: hidden; }
.steps .grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.steps-body { padding: 42px 60px 42px 0; }
.steps h2 { color: #fff; font-size: 42px; line-height: 1.1; }
.steps .eyebrow { color: #6fc3bb; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 64px; position: relative; }
.step .scircle {
  width: 50px; height: 50px; border-radius: 50%; background: #0c4a4b;
  border: 1px solid #1c6a68; display: grid; place-items: center; margin-bottom: 26px;
}
.step .scircle svg { width: 22px; height: 22px; color: #8fd3cc; }
.step .num { font: 700 13px/1 var(--sans); color: #5fb6ae; margin-bottom: 8px; display: block; }
.step h3 { font-family: var(--sans); font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13.5px; line-height: 1.65; color: #9fbdbc; }
/* connector line behind the circles */
.steps-row::before {
  content: ""; position: absolute; top: 25px; left: 6%; right: 6%;
  border-top: 1px dashed #1e6361;
}
.steps-photo { position: absolute; top: 0; bottom: 0; right: 0; left: 64%; background: var(--ph-bg); }

/* =========================================================================
   CAREERS
   ========================================================================= */
.careers { padding: 18px 0; }
.careers .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.careers-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 7/5; background: var(--ph-bg); }
.careers h2 { font-size: 44px; margin-top: 12px; line-height: 1.08; }
.careers p.lead { margin: 22px 0 32px; max-width: 420px; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta { background: var(--teal-bright); color: #fff; position: relative; overflow: hidden; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.cta-text { max-width: 620px; }
.cta h2 { color: #fff; font-size: 42px; line-height: 1.1; }
.cta p { color: rgba(255,255,255,.9); margin: 18px 0 30px; font-size: 17px; max-width: 480px; }
.cta-cta { display: flex; gap: 16px; }
.cta-badge { flex-shrink: 0; width: 168px; height: 168px; position: relative; }
.cta-badge .ring { width: 100%; height: 100%; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; display: grid; place-items: center; }
.cta-badge .heart { width: 54px; height: 54px; color: #fff; }
.cta-badge .ctext { position: absolute; inset: 0; }
/* decorative blobs */
.cta .blob { position: absolute; background: rgba(230,123,106,.85); border-radius: 50%; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--darker); color: #9fb6b8; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 20px 0 14px; }
.footer-brand .brand-logo { height: 64px; }
.footer-brand p { margin: 20px 0 22px; max-width: 300px; line-height: 1.7; color: #8aa3a5; }
.socials { display: flex; gap: 12px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; color: #cfe0e0; }
.footer-col h4 { font: 700 15px/1 var(--sans); color: #fff; margin-bottom: 22px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.footer-contact .btn { margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: #7e9799; }
.footer-bottom .links { display: flex; gap: 26px; }

/* =========================================================================
   PLACEHOLDER
   ========================================================================= */
.ph { position: relative; overflow: hidden; }
.ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 200% 100%; background-position: -50% 0;
  animation: aa-shimmer 2.8s var(--ease-in-out) infinite;
}
.ph::after {
  content: "IMAGE"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 12px/1 var(--sans); letter-spacing: .18em; color: #9fb0b3;
}

/* =========================================================================
   BEHAVIOUR SUPPORT (single-service) PAGE — new components, Home untouched
   ========================================================================= */
.main-nav a.active { color: var(--teal); }

/* ---- service hero ---- */
.svc-hero { position: relative; padding: 122px 0 46px; }
.svc-hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center; }
.svc-hero-text .eyebrow { margin-bottom: 18px; }
.svc-hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.01em; }
.svc-sub { font: italic 500 23px/1.35 var(--serif); color: var(--teal); margin: 18px 0 22px; }
.svc-hero .lead { max-width: 480px; font-size: 16px; }
.svc-hero-cta { display: flex; gap: 16px; margin: 30px 0 28px; }
.svc-badge { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: var(--ink); }
.svc-badge svg { width: 17px; height: 17px; color: var(--teal); }
.svc-hero-media { position: relative; }
.svc-hero-photo { background: var(--ph-bg); border-radius: 18px; aspect-ratio: 8/5; }
.svc-hero-card {
  position: absolute; right: -16px; bottom: -28px; width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 30px 60px -30px rgba(4,43,50,.28);
}
.svc-hero-card .ic { width: 42px; height: 42px; border-radius: 12px; background: #e9f3f3; display: grid; place-items: center; margin-bottom: 14px; }
.svc-hero-card .ic svg { width: 22px; height: 22px; color: var(--teal); }
.svc-hero-card b { display: block; font: 600 17px/1.2 var(--sans); color: var(--ink); margin-bottom: 6px; }
.svc-hero-card p { font-size: 13.5px; line-height: 1.55; color: var(--body); }

/* ---- feature row ---- */
.featrow { padding: 30px 0 22px; }
.featrow-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -34px rgba(4,43,50,.16);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 28px 12px;
}
.feat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 4px 18px; }
.feat + .feat { border-left: 1px solid var(--line); }
.feat .ic { width: 30px; height: 30px; color: var(--teal); }
.feat b { font: 600 14px/1.35 var(--sans); color: var(--ink); }

/* ---- generic split (text + photo) ---- */
.split { padding: 54px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text h2 { font-size: 42px; margin: 14px 0 20px; line-height: 1.12; }
.split-text .lead { margin-bottom: 24px; }
.split-photo { background: var(--ph-bg); border-radius: 18px; aspect-ratio: 16/10; }

.checklist { display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.checklist svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }

/* ---- dark process (full-width 4-step) ---- */
.process { background: var(--dark); color: #cfe0e0; padding: 50px 0 54px; }
.process-head { text-align: center; margin-bottom: 40px; }
.process-head .eyebrow { color: #6fc3bb; margin-bottom: 12px; }
.process-head h2 { color: #fff; font-size: 42px; line-height: 1.12; }
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process .pstep { text-align: center; }
.process .scircle { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.process .scircle svg { width: 26px; height: 26px; color: var(--teal); }
.process .pstep h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.process .pstep p { font-size: 13.5px; line-height: 1.6; color: #9fbdbc; }

/* ---- support (photo + coral quote / checklist) ---- */
.support { padding: 56px 0; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.support-media { position: relative; }
.support-photo { background: var(--ph-bg); border-radius: 18px; aspect-ratio: 5/4; }
.support-quote {
  position: absolute; left: -20px; bottom: 36px; width: 250px;
  background: var(--coral); color: #fff; border-radius: 16px; padding: 24px 24px 22px;
  box-shadow: 0 30px 50px -28px rgba(230,123,106,.6);
}
.support-quote .mark { font: 700 44px/0.6 var(--serif); display: block; height: 22px; }
.support-quote p { font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.support-quote small { font: 600 12.5px/1 var(--sans); opacity: .9; }
.support-text h2 { font-size: 42px; line-height: 1.12; margin: 14px 0 24px; }
.support-text .btn { margin-top: 30px; }

/* ---- FAQ ---- */
.faq { padding: 16px 0 64px; }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.faq-intro { position: relative; }
.faq-intro h2 { font-size: 40px; line-height: 1.12; margin: 14px 0 18px; }
.faq-intro > p { color: var(--body); margin-bottom: 24px; }
.faq-deco { position: absolute; right: 10px; bottom: 0; width: 88px; height: 88px; border-radius: 18px; background: #e9f3f3; display: grid; place-items: center; }
.faq-deco svg { width: 40px; height: 40px; color: var(--teal); }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: #fff; }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 22px; font: 600 16px/1.35 var(--sans); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; transition: transform .2s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--teal); }
.faq-list details p { padding: 0 22px 22px; font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* =========================================================================
   MICRO-INTERACTIONS & DEPTH (design elevation)
   ========================================================================= */
.btn {
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-1); }
.btn-teal:hover        { box-shadow: var(--shadow-teal); }
.btn-outline:hover     { border-color: var(--teal); color: var(--teal); }
.btn-light:hover       { box-shadow: var(--shadow-3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn svg, .link-arrow svg, .ct-detail-link svg { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover svg, .link-arrow:hover svg, .ct-detail-link:hover svg { transform: translateX(4px); }
.btn:focus-visible, .link-arrow:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(19,138,130,.35); }
.link-arrow { transition: color var(--dur-1) var(--ease-out); }
.link-arrow:hover { color: var(--teal-600); }

/* animated nav underline */
.main-nav a { position: relative; transition: color var(--dur-1) var(--ease-out); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* elevated footer */
.site-footer { background: linear-gradient(180deg, #05333a 0%, var(--darker) 62%); position: relative; overflow: hidden; }
.footer-col a, .footer-bottom .links a { display: inline-block; transition: color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.footer-col a:hover, .footer-bottom .links a:hover { color: #fff; transform: translateX(3px); }
.socials a { transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
.socials a:hover { transform: translateY(-3px); background: var(--teal); }
.socials a:hover svg { color: #fff; }

@media (max-width: 1024px) { .main-nav a::after { display: none; } }

/* =========================================================================
   HOME ELEVATION (bold hero + section motion)
   ========================================================================= */
/* hero atmosphere */
.hero {
  background:
    radial-gradient(900px 620px at 10% 20%, rgba(19,138,130,.08), transparent 60%),
    radial-gradient(720px 520px at 94% 88%, rgba(230,123,106,.06), transparent 60%);
}
.hero h1 { font-size: var(--fs-600); letter-spacing: -.02em; line-height: 1.04; }
.hero-photo { left: 40%; border-top-left-radius: 120px; box-shadow: var(--shadow-3); }

/* hero load-in — pure CSS, LCP-safe, gated on html.js (reduced-motion auto-off) */
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line-inner { display: block; }
html.js .hero h1 .line-inner { animation: aa-line-in var(--dur-4) var(--ease-out) backwards; }
html.js .hero h1 .line:nth-child(1) .line-inner { animation-delay: .08s; }
html.js .hero h1 .line:nth-child(2) .line-inner { animation-delay: .18s; }
html.js .hero h1 .line:nth-child(3) .line-inner { animation-delay: .28s; }
html.js .hero-eyebrow,
html.js .hero p.lead,
html.js .hero-cta,
html.js .scroll-cue { animation: aa-hero-in var(--dur-4) var(--ease-out) backwards; }
html.js .hero-eyebrow { animation-delay: .04s; }
html.js .hero p.lead  { animation-delay: .42s; }
html.js .hero-cta     { animation-delay: .54s; }
html.js .scroll-cue   { animation-delay: .66s; }

/* refined scroll cue — gentle bob + pulse ring */
.scroll-cue .dot { position: relative; }
.scroll-cue .dot svg { animation: aa-cue-bob 1.8s var(--ease-in-out) infinite; }
.scroll-cue .dot::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid var(--teal); animation: aa-pulse-ring 2.4s var(--ease-out) infinite;
}
@keyframes aa-cue-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* glass floating badges */
.badges-card {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
          backdrop-filter: saturate(160%) blur(18px);
  border-color: rgba(255,255,255,.65);
  box-shadow: var(--shadow-4);
}
.badge .ic { transition: transform var(--dur-2) var(--ease-out); }
.badge:hover .ic { transform: scale(1.12); }

/* service tiles — promote the .scard lift + icon pop */
.svc { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: #d7e3e3; }
.svc .ic { transition: transform var(--dur-2) var(--ease-out); }
.svc:hover .ic { transform: scale(1.12); }

/* stories — pulsing play */
.story-media .play { transition: transform var(--dur-2) var(--ease-out); }
.story-media:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.story-media .play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55); animation: aa-pulse-ring 2.6s var(--ease-out) infinite;
}

/* process connector draws left->right when scrolled into view */
.steps-row[data-draw]::before { transform-origin: left; }
html.js .steps-row[data-draw]::before { transform: scaleX(0); transition: transform var(--dur-5) var(--ease-out); }
html.js .steps-row[data-draw].is-drawn::before { transform: scaleX(1); }

/* CTA finale — brand gradient + slow-rotating seal */
.cta { background: linear-gradient(120deg, var(--teal) 0%, var(--teal-bright) 55%, #1aa79c 100%); }
.cta-badge .ctext { animation: aa-spin 18s linear infinite; transform-origin: center; }

/* hero video */
.hero-photo .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* story carousel */
.story-media .carousel-slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity var(--dur-4) var(--ease-out);
}
.story-media .carousel-slide.is-active { opacity: 1; }
.story-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(4,43,50,.62), transparent 46%);
}
.story-media .story-quote { z-index: 2; }
.dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: #c4d3d5; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: width var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.dots button:hover { background: #9fb3b5; }
.dots button.on { width: 22px; border-radius: 4px; background: var(--teal); }

/* =========================================================================
   SUB-PAGE HERO LOAD-IN + CARD INTERACTIONS (site-wide)
   ========================================================================= */
/* hero text load-in for behaviour-support / our-supports / about / contact /
   referrals — pure CSS (LCP-safe), staggered, gated on html.js (reduced-motion off) */
html.js [class$="-hero-text"] > * { animation: aa-hero-in var(--dur-4) var(--ease-out) backwards; }
html.js [class$="-hero-text"] > *:nth-child(1) { animation-delay: .04s; }
html.js [class$="-hero-text"] > *:nth-child(2) { animation-delay: .12s; }
html.js [class$="-hero-text"] > *:nth-child(3) { animation-delay: .20s; }
html.js [class$="-hero-text"] > *:nth-child(4) { animation-delay: .28s; }
html.js [class$="-hero-text"] > *:nth-child(5) { animation-delay: .36s; }
html.js [class$="-hero-text"] > *:nth-child(6) { animation-delay: .44s; }

/* floating hero cards levitate gently */
.svc-hero-card, .rf-hero-card { animation: aa-float var(--dur-5) var(--ease-in-out) infinite; }

/* card & icon hovers */
.feature .circle, .feature .circle svg { transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.feature:hover .circle { transform: scale(1.08); background: var(--teal); }
.feature:hover .circle svg { color: #fff; }
.featrow .feat .ic { transition: transform var(--dur-2) var(--ease-out); }
.featrow .feat:hover .ic { transform: scale(1.12); }
.checklist svg, .scard-list svg { transition: transform var(--dur-2) var(--ease-back); }
.checklist li:hover svg, .scard-list li:hover svg { transform: scale(1.18); }
.process .scircle, .step .scircle { transition: transform var(--dur-2) var(--ease-out); }
.process .pstep:hover .scircle, .step:hover .scircle { transform: scale(1.06); }

/* =========================================================================
   HAMBURGER (hidden at the 1440px design width — no effect on the diff)
   ========================================================================= */
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column;
  justify-content: center; gap: 5px; cursor: pointer; padding: 10px; }
.hamburger span { height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* =========================================================================
   RESPONSIVE  (improvised below the source width — no reference images;
   the diff harness only validates the 1440px source width)
   ========================================================================= */
@media (max-width: 1280px) {
  /* tighten the inline nav so the brand + prominent NDIS badge keep their room */
  .main-nav { gap: 18px; margin-left: 24px; }
  .ndis-badge img { width: 50px; }
  .ndis-badge span { font-size: 12.5px; letter-spacing: .04em; }
}
@media (max-width: 1200px) {
  .site-header .container { max-width: 100%; gap: 20px; }
  .main-nav { gap: 15px; margin-left: 18px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { max-width: 40%; }
}

@media (max-width: 1024px) {
  .site-header .container { position: relative; height: 76px; }
  .hamburger { display: flex; }
  .header-right { gap: 14px; }
  .ndis-badge { gap: 9px; }
  .ndis-badge img { width: 46px; }
  .ndis-badge span { font-size: 11px; letter-spacing: .03em; }
  .site-header .brand-logo { height: 48px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 16px;
    background: #fff; box-shadow: 0 20px 40px -20px rgba(4,43,50,.25);
    border-top: 1px solid var(--line);
  }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .main-nav { display: flex; }

  .hero { display: flex; flex-direction: column-reverse; }
  /* position:relative (NOT static) keeps the absolutely-positioned .hero-video
     contained in this 320px box — static lets it escape and cover the whole
     hero, washing out the headline. */
  .hero-photo { position: relative; left: auto; width: 100%; height: 340px; border-top-left-radius: 0; }
  .hero .container { order: 1; }
  .hero-inner { max-width: 620px; padding: 120px 0 64px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .steps .grid { grid-template-columns: 1fr; }
  .steps-body { padding: 64px 0; }
  .steps-photo { display: none; }
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-row::before { display: none; }
  .stories .grid { gap: 36px; }
  .careers .grid { gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* phones — keep the header compact so the logo + prominent NDIS badge + menu
   fit one tidy row */
@media (max-width: 640px) {
  .site-header .brand-logo { height: 42px; }
  .ndis-badge img { width: 42px; }
  .ndis-badge span { font-size: 10px; letter-spacing: .02em; }
  .ndis-badge { gap: 8px; }
  .header-right { gap: 12px; }
}
@media (max-width: 400px) {
  .site-header .brand-logo { height: 38px; }
  .ndis-badge img { width: 38px; }
  .ndis-badge span { font-size: 9px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .badges { margin-top: 32px; }
  .badges-card { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 26px 10px; }
  .badge:nth-child(odd) { border-left: none; }
  .badge { padding: 0 18px; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sec-head .left, .sec-head .right { max-width: 100%; margin: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .stories .grid, .careers .grid { grid-template-columns: 1fr; }
  .careers-photo { order: -1; }

  .why h2 { font-size: 34px; }
  .hero h1 { font-size: 38px; }
  .sec-head h2, .stories h2, .careers h2 { font-size: 34px; }
  .steps h2 { font-size: 32px; }

  .cta .container { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px 0; }
  .cta h2 { font-size: 34px; }
}

@media (max-width: 480px) {
  .badges-card { grid-template-columns: 1fr; }
  .badge { border-left: none !important; padding: 0 12px; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-cta { flex-wrap: wrap; }
  .hero h1 { font-size: 34px; }
  .header-right .btn { display: none; }
}

/* ---- responsive: Behaviour Support (single-service) components ---- */
@media (max-width: 1024px) {
  .svc-hero { padding-top: 104px; }
  .svc-hero-grid, .split-grid, .support-grid, .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-hero-media, .split-photo, .support-media { max-width: 620px; }
  .svc-hero-card { right: 0; bottom: -20px; }
  .featrow-card { grid-template-columns: repeat(3, 1fr); gap: 28px 0; }
  .feat + .feat { border-left: none; }
  .process-row { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .support-quote { left: 0; }
  .faq-deco { display: none; }
}
@media (max-width: 768px) {
  .svc-hero h1 { font-size: 38px; }
  .svc-sub { font-size: 20px; }
  .split-text h2, .support-text h2, .process-head h2 { font-size: 32px; }
  .faq-intro h2 { font-size: 30px; }
  .featrow-card { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .support-quote { position: static; width: auto; margin-top: 18px; }
  .support-media { max-width: none; }
}
@media (max-width: 480px) {
  .process-row { grid-template-columns: 1fr; gap: 28px; }
  .featrow-card { grid-template-columns: 1fr; }
  .svc-hero h1 { font-size: 32px; }
}

/* consistent generous vertical rhythm (match the CTA band) */
.services, .stories, .why, .careers,
.featrow, .split, .support, .faq, .process { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.steps-body { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.footer-top { padding-top: var(--section-y); padding-bottom: var(--space-48); }
/* CTA: buttons sit between the text and the badge (per design) */
.cta-text { max-width: 420px; }
.cta-cta { flex-shrink: 0; }

/* ===== mobile reflow fixes (<=768) ===== */
@media (max-width: 768px) {
  /* let single-column grid tracks shrink so wide content reflows instead of forcing width */
  .svc-hero-grid > *, .split-grid > *, .support-grid > *, .faq-grid > *,
  .ab-hero-grid > *, .ab-story-grid > *, .ab-purpose-grid > *,
  .ct-hero-grid > *, .ct-main-grid > *, .rf-hero-grid > * { min-width: 0; }
  /* button groups wrap on small screens */
  .svc-hero-cta, .hero-cta, .ab-hero-cta, .rf-hero-cta { flex-wrap: wrap; }
  /* CTA action buttons stack full-width */
  .cta-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-cta .btn { justify-content: center; }
}

/* never let aspect-ratio + min-height widen a media box past its container */
.hero-photo, .story-media, .steps-photo, .careers-photo,
.svc-hero-photo, .split-photo, .support-photo,
.ab-hero-photo, .ab-story-photo, .ab-impact-photo,
.ct-hero-photo, .ct-map, .rf-hero-photo, .scard-feature-media { max-width: 100%; }

/* ===== footer tagline + inline muted note ===== */
.footer-tagline {
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4;
  color: #cfe7e3; margin-bottom: 12px;
}
.footer-contact .muted-inline { color: rgba(255,255,255,.55); font-size: .92em; }

/* footer NDIS feature strip — highlights the provider badge */
.footer-ndis-feature {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 0; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-ndis-feature img { width: 78px; height: auto; flex-shrink: 0; display: block; }
.footer-ndis-text b { display: block; font: 700 17px/1.2 var(--sans); color: #fff; margin-bottom: 5px; }
.footer-ndis-text p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 540px; }
@media (max-width: 560px) {
  .footer-ndis-feature { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ===== testimonials (home) ===== */
.tmonials { background: var(--pale); padding-top: var(--section-y); padding-bottom: var(--section-y); }
.tmonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.tmonial {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 26px; box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.tmonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: #d7e3e3; }
.tm-mark { font-family: var(--serif); font-size: 60px; line-height: .6; color: var(--teal); opacity: .22; margin-bottom: 14px; height: 30px; }
.tmonial blockquote { margin: 0 0 24px; flex: 1; font-size: 15.5px; line-height: 1.72; color: var(--body); }
.tmonial figcaption { display: flex; align-items: center; gap: 14px; }
.tm-avatar {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: #e9f3f3; color: var(--teal); display: grid; place-items: center;
  font: 700 14px/1 var(--sans); letter-spacing: .04em;
}
.tm-id b { display: block; font: 600 15px/1.2 var(--sans); color: var(--ink); }
.tm-id small { display: block; margin-top: 4px; font: 500 12.5px/1 var(--sans); color: var(--muted); }
@media (max-width: 900px) {
  .tmonial-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
