/* ============================================================
   ANGEL ASSISTANCE CARE: DESIGN SYSTEM
   ------------------------------------------------------------
   Calm, warm, premium-but-approachable healthcare.
   Mobile-first · WCAG 2.1 AA · respects prefers-reduced-motion.

   CONTENTS
   1.  Design tokens
   2.  Base & reset
   3.  Utilities & layout
   4.  Buttons
   5.  Header & navigation
   6.  Hero
   7.  Sections & cards
   8.  Process steps / feature rows / stats
   9.  Testimonials carousel
   10. Breadcrumbs & page hero (inner pages)
   11. Forms
   12. CTA band
   13. Footer
   14. Modals
   15. Accessibility toolbar & helper modes
   16. FAQ accordion & prose (content pages)
   17. Reveal animations & reduced motion
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS: change the brand in ONE place
   ---------------------------------------------------------- */
:root {
    /* Brand palette (blue = logo + uniform; WCAG AA-checked) */
    --brand-primary:   #1E3A8A;   /* brand navy-blue, trust/care      */
    --brand-primary-dark: #152C6B;
    --brand-secondary: #2951B0;   /* brighter blue                    */
    --brand-accent:    #E8A33D;   /* warm amber, warmth/optimism      */
    --brand-accent-dark: #C9882A;
    --brand-soft:      #E4EBF8;   /* pale blue wash for sections      */
    --brand-soft-2:    #F1F5FC;
    --ink:             #1E2A32;   /* near-black text                  */
    --muted:           #566372;   /* secondary text (AA on light)     */
    --white:           #FFFFFF;
    --page-bg:         #EEF3FB;   /* pale blue page background         */

    /* Form feedback */
    --success:         #1E7A46;
    --success-soft:    #E8F5EE;
    --error:           #B3261E;
    --error-soft:      #FBEDEC;

    /* Typography */
    --font-heading: "Poppins", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
    --font-body:    "Nunito Sans", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
    --text-base:    1.125rem;     /* 18px, generous for readability  */
    --leading:      1.65;

    /* Spacing scale */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6rem;

    /* Radius scale: soft, rounded, friendly */
    --radius-sm: .5rem;
    --radius-md: .875rem;
    --radius-lg: 1.25rem;
    --radius-pill: 999px;

    /* Shadow scale: gentle, never harsh */
    --shadow-sm: 0 1px 3px rgba(30, 42, 50, .08);
    --shadow-md: 0 6px 18px rgba(30, 42, 50, .10);
    --shadow-lg: 0 16px 40px rgba(30, 42, 50, .14);

    /* Layout */
    --container: 1200px;
    --header-h: 6rem;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: .45s;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading);
    color: var(--ink);
    background: var(--page-bg);
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 var(--space-4);
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }
li { margin-bottom: var(--space-2); }

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

a {
    color: var(--brand-primary-dark);
    text-decoration: underline;
    text-underline-offset: .15em;
}
a:hover { color: var(--brand-secondary); }

/* Visible focus for EVERY interactive element, non-negotiable */
:focus-visible {
    outline: 3px solid var(--brand-secondary);
    outline-offset: 2px;
    border-radius: 2px;
}
.btn:focus-visible, .card:focus-visible { outline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--brand-soft); margin: var(--space-6) 0; }

::selection { background: var(--brand-accent); color: var(--ink); }

/* ----------------------------------------------------------
   3. UTILITIES & LAYOUT
   ---------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    z-index: 200;
    left: 0; top: 0;
    background: var(--brand-secondary);
    color: #fff;
    padding: var(--space-3) var(--space-5);
    border-radius: 0 0 var(--radius-sm) 0;
    text-decoration: none;
    font-weight: 700;
}

/* Honeypot: hidden from humans, present for bots */
.hp-wrap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.section { padding-block: clamp(3rem, 8vw, var(--space-9)); }
.section--soft { background: var(--brand-soft); }
.section--soft-2 { background: var(--brand-soft-2); }
.section--tight { padding-block: clamp(2rem, 5vw, var(--space-7)); }

.section__head {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, var(--space-7));
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-primary-dark);
    background: var(--brand-soft);
    border-radius: var(--radius-pill);
    padding: .35em 1em;
    margin-bottom: var(--space-4);
}
.section--soft .eyebrow { background: var(--white); }

.lead {
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    color: var(--muted);
}

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.text-center { text-align: center; }

/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .85em 1.7em;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
                background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-dark); color: #fff; }

.btn--accent { background: var(--brand-accent); color: var(--ink); }
.btn--accent:hover { background: var(--brand-accent-dark); color: var(--ink); }

.btn--ghost {
    background: transparent;
    color: var(--brand-primary-dark);
    border-color: currentColor;
}
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-primary-dark); }

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .85);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.btn--lg { font-size: 1.1rem; padding: 1em 2.1em; }

.btn[disabled], .btn[aria-disabled="true"] {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn .icon { width: 1.2em; height: 1.2em; }

/* Text link with arrow */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brand-primary-dark);
    text-decoration: none;
}
.link-more .icon { width: 1.1em; height: 1.1em; transition: transform .18s var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }
.link-more:hover { text-decoration: underline; }

/* ----------------------------------------------------------
   5. HEADER & NAVIGATION
   ---------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(30, 42, 50, .08);
    transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--header-h);
    transition: min-height .25s var(--ease);
}
.site-header.is-scrolled .site-header__inner { min-height: 4.75rem; }

.site-header__brand { display: inline-flex; align-items: center; }
.site-header__brand img { width: auto; height: 4.75rem; transition: height .25s var(--ease); }
.site-header.is-scrolled .site-header__brand img { height: 3.75rem; }

.site-header__actions { display: flex; align-items: center; gap: var(--space-4); }

.site-header__phone {
    display: none;
    align-items: center;
    gap: .45em;
    font-weight: 700;
    color: var(--brand-secondary);
    text-decoration: none;
}
.site-header__phone .icon { width: 1.15em; height: 1.15em; }
.site-header__phone:hover { text-decoration: underline; }
@media (min-width: 1100px) { .site-header__phone { display: inline-flex; } }

.site-header__cta { display: none; }
@media (min-width: 900px) { .site-header__cta { display: inline-flex; } }

/* Primary nav: desktop */
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(.25rem, 1.5vw, 1rem);
}
.site-nav__link {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    padding: .55em .8em;
    border-radius: var(--radius-sm);
    transition: background-color .18s var(--ease), color .18s var(--ease);
}
.site-nav__link:hover { background: var(--brand-soft); color: var(--brand-primary-dark); }
.site-nav__link.is-active {
    color: var(--brand-primary-dark);
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--brand-accent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.site-nav__cta-item { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    align-items: center;
    gap: .5em;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    border-radius: var(--radius-sm);
}
.nav-toggle__box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 22px;
}
.nav-toggle__bar {
    height: 3px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav panel */
@media (max-width: 899px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        transform: translateY(-110%);
        /* visibility flips instantly on open (so links are focusable
           immediately) and only after the slide-out on close */
        transition: transform .3s var(--ease), visibility 0s .3s;
        visibility: hidden;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: var(--space-4) clamp(1rem, 4vw, 2rem) var(--space-6);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }
    .site-nav.is-open {
        transform: translateY(0);
        visibility: visible;
        transition: transform .3s var(--ease), visibility 0s;
    }

    .site-nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
    .site-nav__link { display: block; font-size: 1.15rem; padding: .8em .6em; }
    .site-nav__link.is-active { box-shadow: inset 4px 0 0 var(--brand-accent); border-radius: var(--radius-sm); }
    .site-nav__cta-item { display: block; margin-top: var(--space-4); }
    .site-nav__cta { width: 100%; }

    body.nav-open { overflow: hidden; }
}

/* ----------------------------------------------------------
   6. HERO (home)
   ---------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    padding-block: clamp(4rem, 12vw, 8.5rem);
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Gentle Ken Burns on the hero image (disabled under reduced motion) */
@keyframes hero-kenburns {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.07) translateY(-1.5%); }
}
.hero__media img { animation: hero-kenburns 24s var(--ease) both alternate infinite; }

.hero::before {
    /* Soft brand overlay so white text always passes contrast */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(13, 24, 66, .90) 0%, rgba(30, 58, 138, .74) 45%, rgba(30, 58, 138, .38) 100%);
}

.hero__inner { max-width: 40rem; }
.hero__title { color: #fff; margin-bottom: var(--space-4); }
.hero__subtitle {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    color: rgba(255, 255, 255, .94);
    margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .98rem;
    font-weight: 600;
}
.hero__trust li { display: inline-flex; align-items: center; gap: .45em; margin: 0; }
.hero__trust .icon { width: 1.15em; height: 1.15em; color: var(--brand-accent); }

/* ----------------------------------------------------------
   7. SECTIONS & CARDS
   ---------------------------------------------------------- */
/* Trust bar strip */
.trust-bar { background: var(--brand-secondary); color: #fff; padding-block: var(--space-4); }
.trust-bar__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) clamp(1.5rem, 4vw, 3rem);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: .98rem;
}
.trust-bar__list li { display: inline-flex; align-items: center; gap: .5em; margin: 0; }
.trust-bar__list .icon { width: 1.25em; height: 1.25em; color: var(--brand-accent); flex: none; }

/* Generic card */
.card {
    background: var(--white);
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand-primary-dark);
    margin-bottom: var(--space-4);
}
.card__icon .icon { width: 1.6rem; height: 1.6rem; }

.card--accent-top { border-top: 4px solid var(--brand-accent); }

/* Compact value cards (home "why us") — short, scannable, less tall */
.grid--features .card { padding: var(--space-5); }
.grid--features .card__icon { margin-bottom: var(--space-3); }
.grid--features .card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.grid--features .card p { margin: 0; color: var(--muted); }

/* Founder cards — icon badge instead of a personal photo */
.founder-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem; height: 4rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-primary-dark);
    margin-bottom: var(--space-4);
}
.founder-card__badge .icon { width: 2rem; height: 2rem; }

/* Service card (image variant) */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-soft); }
.service-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.service-card__title { margin: 0; font-size: 1.25rem; }
.service-card__title a {
    color: var(--ink);
    text-decoration: none;
}
/* Whole-card click without breaking a11y: link overlay */
.service-card { position: relative; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card__title a:hover { color: var(--brand-primary-dark); }
.service-card__excerpt { color: var(--muted); font-size: 1.02rem; margin: 0; flex: 1; }
.service-card__more {
    display: inline-flex; align-items: center; gap: .4em;
    font-family: var(--font-heading); font-weight: 600;
    color: var(--brand-primary-dark);
    margin-top: var(--space-2);
}
.service-card__more .icon { width: 1.05em; height: 1.05em; }

/* Split (image + text) blocks */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--flip > .split__media { order: 2; }
}
.split__media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}
.split__media { position: relative; }
.split__content h2 { margin-bottom: var(--space-4); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.checklist li {
    display: flex;
    gap: .65em;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}
.checklist .icon {
    width: 1.35em; height: 1.35em;
    color: var(--brand-primary);
    flex: none;
    margin-top: .12em;
}

/* ----------------------------------------------------------
   8. PROCESS STEPS / FEATURE ROWS / STATS
   ---------------------------------------------------------- */
.steps { counter-reset: step; }
.step {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--brand-soft);
    border-top: 3px solid var(--brand-accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    counter-increment: step;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Large faint step number that fills the card, sitting behind the text */
.step::after {
    content: counter(step);
    position: absolute;
    right: .75rem;
    bottom: -1.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 7.5rem;
    line-height: 1;
    color: var(--brand-soft);
    z-index: 0;
    pointer-events: none;
}
.step > * { position: relative; z-index: 1; }
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    background: var(--brand-accent);
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: var(--space-4);
    box-shadow: 0 0 0 6px var(--brand-soft-2);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { margin: 0; color: var(--muted); }

/* Animated counters (used only with truthful, config-driven numbers) */
.stat { text-align: center; }
.stat__value {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--brand-primary-dark);
}
.stat__label { color: var(--muted); font-weight: 600; }

/* ----------------------------------------------------------
   9. TESTIMONIALS CAROUSEL (accessible, pausable)
   ---------------------------------------------------------- */
.carousel { position: relative; max-width: 46rem; margin-inline: auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel__track { display: flex; transition: transform .45s var(--ease); }
.carousel__slide { flex: 0 0 100%; padding: var(--space-2); }

.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    text-align: center;
}
.testimonial .icon { width: 2rem; height: 2rem; color: var(--brand-accent); margin-inline: auto; }
.testimonial__quote { font-size: 1.15rem; margin-block: var(--space-4); }
.testimonial__author { font-family: var(--font-heading); font-weight: 700; margin: 0; }
.testimonial__detail { color: var(--muted); font-size: .95rem; margin: 0; }

.carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    background: var(--white);
    color: var(--brand-primary-dark);
    cursor: pointer;
    transition: background .18s var(--ease);
}
.carousel__btn:hover { background: var(--brand-soft); }
.carousel__btn .icon { width: 1.3rem; height: 1.3rem; }
.carousel__dots { display: flex; gap: .5rem; }
.carousel__dot {
    width: .8rem; height: .8rem;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.carousel__dot[aria-current="true"] { background: var(--brand-primary); }

/* ----------------------------------------------------------
   10. BREADCRUMBS & PAGE HERO (inner pages)
   ---------------------------------------------------------- */
.page-hero {
    background:
        linear-gradient(120deg, var(--brand-soft) 0%, var(--brand-soft-2) 100%);
    padding-block: clamp(2.5rem, 7vw, 5rem);
}
.page-hero__inner { max-width: 50rem; }
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero .lead { margin-bottom: 0; }

.breadcrumbs { background: transparent; padding-top: var(--space-4); font-size: .95rem; }
.page-hero .breadcrumbs { padding-top: 0; }
.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35em;
    margin: 0 0 var(--space-3);
    padding: 0;
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: .35em; margin: 0; }
.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    color: var(--muted);
}
.breadcrumbs__item a { color: var(--muted); }
.breadcrumbs__item [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------
   11. FORMS
   ---------------------------------------------------------- */
.form { max-width: 44rem; margin-inline: auto; }
.form fieldset {
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin: 0 0 var(--space-6);
}
.form legend {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    padding-inline: var(--space-2);
}

.form-field { margin-bottom: var(--space-5); }
.form-field label,
.form-field .form-field__label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--space-2);
}
.form-field .req { color: var(--error); }
.form-field__hint {
    font-size: .95rem;
    color: var(--muted);
    margin: -.35rem 0 var(--space-2);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    /* Border must stay ≥3:1 against white AND the soft section
       backgrounds (WCAG 1.4.11); #6E7E88 is ~4.1:1 on white. */
    border: 2px solid #6E7E88;
    border-radius: var(--radius-sm);
    padding: .7em .9em;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .25);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--error); }

.form-field__error {
    display: flex;
    align-items: center;
    gap: .4em;
    color: var(--error);
    font-weight: 600;
    font-size: .98rem;
    margin: var(--space-2) 0 0;
}

/* Checkboxes & radios */
.choice {
    display: flex;
    gap: .65em;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}
.choice input {
    width: 1.35rem; height: 1.35rem;
    margin-top: .2rem;
    accent-color: var(--brand-primary);
    flex: none;
}
.choice label { font-weight: 500; margin: 0; font-family: var(--font-body); }

.choice-grid { display: grid; gap: var(--space-1); }
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }

/* Status banners (aria-live region) */
.form__status:empty { display: none; }
.form-banner {
    display: flex;
    gap: .6em;
    align-items: flex-start;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    font-weight: 600;
}
.form-banner .icon { flex: none; width: 1.4em; height: 1.4em; margin-top: .1em; }
.form-banner--success { background: var(--success-soft); color: var(--success); border: 1px solid currentColor; }
.form-banner--error   { background: var(--error-soft);   color: var(--error);   border: 1px solid currentColor; }

/* Nested fieldset (e.g. the services checkbox group inside the
   referral form): lighter box so it reads as a sub-group */
.form fieldset fieldset {
    background: var(--brand-soft-2);
    border-color: transparent;
    margin-bottom: var(--space-4);
}
.form fieldset fieldset legend {
    font-size: 1rem;
    font-weight: 600;
}

/* Centre action rows reused outside the hero (e.g. error pages) */
.text-center .hero__actions { justify-content: center; }

/* Submit button busy state */
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
    content: "";
    position: absolute;
    width: 1.2em; height: 1.2em;
    border: 3px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .7s linear infinite;
}
.btn--accent.is-busy::after { border-color: rgba(30, 42, 50, .35); border-top-color: var(--ink); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------
   12. CTA BAND
   ---------------------------------------------------------- */
.cta-band {
    position: relative;
    isolation: isolate;
    color: #fff;
    text-align: center;
    padding-block: clamp(3.5rem, 9vw, 6rem);
    overflow: hidden;
}
.cta-band__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 120% at 15% 15%, rgba(232, 163, 61, .35) 0%, transparent 55%),
        linear-gradient(115deg, var(--brand-secondary) 0%, var(--brand-primary) 70%);
}
.cta-band__title { color: #fff; }
.cta-band__text {
    max-width: 38rem;
    margin-inline: auto;
    color: rgba(255, 255, 255, .95);
    margin-bottom: var(--space-6);
}
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }

/* ----------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------- */
.site-footer {
    background: #14264F; /* deep brand navy */
    color: #D5DEF0;
    padding-block: clamp(3rem, 7vw, 5rem) var(--space-6);
    font-size: 1rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-accent); }

.site-footer__grid {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-7);
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* Colour logo on a white circular badge so the navy emblem shows on the dark footer */
.site-footer__logo {
    width: 6.5rem; height: 6.5rem;
    padding: .5rem;
    background: #fff;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: var(--space-4);
}
.site-footer__blurb { color: #AEBBD6; }

.site-footer__heading {
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.site-footer__links, .site-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__links li { margin-bottom: var(--space-2); }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

.site-footer__contact li {
    display: flex;
    gap: .6em;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}
.site-footer__contact .icon { flex: none; width: 1.2em; height: 1.2em; color: var(--brand-accent); margin-top: .2em; }
.site-footer__contact + .btn { margin-top: var(--space-3); }

.ndis-badge {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: .5em 1.1em;
    margin-bottom: var(--space-2);
}
.ndis-badge .icon { width: 1.2em; height: 1.2em; color: var(--brand-accent); }
.site-footer__regid { color: #AEBBD6; font-size: .95rem; }

.site-footer__social {
    list-style: none;
    display: flex;
    gap: var(--space-3);
    padding: 0;
    margin: var(--space-4) 0 0;
}
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: background .18s var(--ease);
}
.site-footer__social a:hover { background: rgba(255, 255, 255, .2); }

.site-footer__acknowledgement {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: var(--space-5);
    color: #AEBBD6;
    font-size: .95rem;
    max-width: 62rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: var(--space-5);
    font-size: .92rem;
    color: #AEBBD6;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
}
.site-footer__legal li { margin: 0; }

/* Designer credit: deliberately quiet, sits below everything else */
.site-footer__credit {
    margin: var(--space-5) 0 0;
    text-align: center;
    font-size: .8rem;
    letter-spacing: .01em;
    color: #AEBBD6;
    opacity: .55;
    transition: opacity .2s var(--ease);
}
.site-footer__credit:hover { opacity: .9; }
.site-footer__credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    padding-bottom: 1px;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
    color: #fff;
    border-bottom-color: var(--brand-accent);
}
/* Decorative hearts: warm accent, gently brighten with the line */
.site-footer__credit-heart {
    color: var(--brand-accent);
    font-size: .95em;
    margin-inline: .15em;
}

/* ----------------------------------------------------------
   14. MODALS (accessible dialogs)
   ---------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--space-4); }
.modal[hidden] { display: none; }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 52, 61, .6);
    backdrop-filter: blur(3px);
}
.modal__dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 30rem;
    width: 100%;
    padding: var(--space-7) var(--space-6) var(--space-6);
    animation: modal-in .35s var(--ease) both;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: inline-flex;
    background: var(--brand-soft);
    border: 0;
    border-radius: 50%;
    width: 2.5rem; height: 2.5rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
}
.modal__close:hover { background: var(--brand-accent); }
.modal__title { margin-bottom: var(--space-3); }
.modal__body { color: var(--muted); }
.modal__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ----------------------------------------------------------
   15. ACCESSIBILITY TOOLBAR & HELPER MODES
   ---------------------------------------------------------- */
.a11y-toolbar { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 120; }
.a11y-toolbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem; height: 3.25rem;
    border-radius: 50%;
    border: 0;
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.a11y-toolbar__toggle .icon { width: 1.7rem; height: 1.7rem; }
.a11y-toolbar__toggle:hover { background: var(--brand-primary-dark); }

.a11y-toolbar__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + .75rem);
    width: min(20rem, calc(100vw - 2rem));
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-5);
}
.a11y-toolbar__heading { font-size: 1.05rem; margin-bottom: var(--space-3); }
.a11y-toolbar__option {
    display: flex;
    align-items: center;
    gap: .6em;
    width: 100%;
    background: var(--brand-soft-2);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    padding: .65em .9em;
    margin-bottom: var(--space-2);
    cursor: pointer;
    text-align: left;
}
.a11y-toolbar__option .icon { width: 1.3em; height: 1.3em; color: var(--brand-primary-dark); }
.a11y-toolbar__option[aria-pressed="true"] {
    border-color: var(--brand-primary);
    background: var(--brand-soft);
}
.a11y-toolbar__option[aria-pressed="true"]::after {
    content: "On";
    margin-left: auto;
    font-size: .85rem;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: .1em .7em;
}
.a11y-toolbar__note { font-size: .9rem; color: var(--muted); margin: var(--space-3) 0 0; }

/* Helper modes (html-level classes set by main.js) */
html.a11y-large-text { font-size: 118%; }
html.a11y-high-contrast {
    --brand-primary:   #14276B;
    --brand-primary-dark: #0E1C52;
    --brand-secondary: #16274F;
    --brand-accent:    #8A5A12;
    --muted:           #33434C;
    --brand-soft:      #DDE4F3;
}
html.a11y-high-contrast body { background: #fff; }
html.a11y-high-contrast .hero::before {
    background: linear-gradient(100deg, rgba(8, 14, 45, .94) 0%, rgba(14, 28, 82, .90) 60%, rgba(14, 28, 82, .72) 100%);
}

/* ----------------------------------------------------------
   16. FAQ ACCORDION & PROSE (content pages)
   ---------------------------------------------------------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq__item {
    background: var(--white);
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
}
.faq__item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; transition: transform .25s var(--ease); color: var(--brand-primary-dark); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:hover { background: var(--brand-soft-2); }
.faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--muted); }

/* Long-form content (privacy, terms, accessibility, …) */
.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul li { margin-bottom: var(--space-2); }
.prose .note {
    background: var(--brand-soft);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    padding: var(--space-4) var(--space-5);
    margin-block: var(--space-5);
}

/* Contact info blocks */
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.contact-list li {
    display: flex;
    gap: .7em;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}
.contact-list .icon { flex: none; width: 1.4em; height: 1.4em; color: var(--brand-primary-dark); margin-top: .1em; }

/* Small "Answered 24/7" style badge beside a contact detail */
.contact-note {
    display: inline-block;
    margin-left: .5em;
    padding: .1em .6em;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-primary-dark);
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}
/* On the dark footer the pale wash would glare, so invert it */
.site-footer .contact-note {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--brand-soft);
}
.map-placeholder img { width: 100%; }
/* display:flex + stretch makes the iframe fill the card's full height,
   so when the card is stretched to match a taller column beside it,
   the map grows with it instead of leaving white space below. */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; }
.map-embed iframe { flex: 1 1 auto; display: block; width: 100%; min-height: 22rem; border: 0; }

/* ----------------------------------------------------------
   17. REVEAL ANIMATIONS & REDUCED MOTION
   ---------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="left"]  { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* No-JS: everything visible, no motion required */
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* Respect the user's OS motion preference: REQUIRED */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero__media img { animation: none !important; }
    .carousel__track { transition: none; }
}

/* ----------------------------------------------------------
   Print: keep it clean
   ---------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .cta-band, .a11y-toolbar,
    .modal, .nav-toggle, .breadcrumbs { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
