@import url('https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,500;7..72,600;7..72,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    /* Align with The Felix Group / NDIS purple, plus tiny yellow & green hints */
    --purple-950: #12071f;
    --purple-900: #1e0a2e;
    --purple-800: #2d1248;
    --purple-700: #6a2875;
    --purple-600: #7c3a9e;
    --purple-500: #9b51e0;
    --purple-400: #b47aff;
    --purple-300: #d4b4ff;
    --purple-100: #f3ebff;
    --purple-50: #faf7ff;

    --ndis-green: #007e46;
    --ndis-green-light: #00a651;
    --ndis-green-soft: #e6f5ee;
    --ndis-yellow: #f5c518;
    --ndis-yellow-deep: #b8860b;
    --ndis-yellow-soft: rgba(245, 197, 24, 0.14);

    /* Legacy aliases used across the stylesheet */
    --forest-950: var(--purple-950);
    --forest-900: var(--purple-900);
    --forest-700: var(--purple-700);
    --forest-500: var(--purple-500);
    --sage: var(--purple-300);
    --moss: var(--ndis-green);
    --stone: #efeaf8;
    --stone-soft: #f6f3fc;
    --cream: var(--purple-50);
    --surface: #ffffff;
    --text: #1a1228;
    --text-secondary: #4a4560;
    --text-muted: #7a7590;
    --text-on-dark: rgba(255,255,255,0.94);
    --text-on-dark-muted: rgba(255,255,255,0.72);
    --border: rgba(106, 40, 117, 0.12);
    --border-strong: rgba(106, 40, 117, 0.22);
    --shadow-md: 0 18px 44px rgba(30, 10, 46, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1120px;
    --max-wide: 1280px;
    --header-h: 76px;
    --font-display: "Literata", Georgia, serif;
    --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--text);
    background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--purple-500); }
h1, h2, h3, h4 {
    font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, var(--max-wide)); margin-inline: auto; }

.eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--purple-700);
}
.section-header { text-align: left; max-width: 640px; margin: 0 0 2.5rem; }
.section-header.is-center { text-align: center; margin-inline: auto; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.45rem); margin-top: 0.65rem; }
.section-header p { margin: 0.85rem 0 0; color: var(--text-secondary); font-size: 1.06rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.85rem 1.55rem; border-radius: 999px; font-family: var(--font-body);
    font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    color: white;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--purple-500), var(--purple-600)); color: white; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--stone); color: var(--purple-950); }
.btn-outline-light {
    background: rgba(255,255,255,0.12); color: white; border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { color: white; background: rgba(255,255,255,0.2); }
.btn-soft {
    background: var(--stone-soft); color: var(--purple-900); border-color: var(--border);
}
.btn-soft:hover { background: var(--stone); color: var(--purple-950); }

.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(250, 247, 255, 0.82); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    background: rgba(255,255,255,0.94); border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(30,10,46,0.06);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand img { height: 36px; width: auto; }
.nav-desktop { display: none; gap: 1.35rem; margin-left: auto; }
.nav-desktop a { color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; }
.nav-desktop a.active, .nav-desktop a:hover { color: var(--purple-700); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-desktop + .nav-actions { margin-left: 0; }
.nav-toggle {
    border: 1px solid var(--border-strong); background: white; border-radius: 999px;
    padding: 0.45rem 0.9rem; font-weight: 700; color: var(--text);
}
.nav-mobile {
    display: none; flex-direction: column; gap: 0.35rem; padding: 0.75rem 1rem 1.25rem;
    background: white; border-bottom: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.65rem 0.4rem; color: var(--text); font-weight: 600; }
.nav-mobile-contact { margin-top: 0.5rem; text-align: center; }
@media (min-width: 960px) {
    .nav-desktop { display: flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }
    .nav-actions { margin-left: 0; }
}

/* —— Purple full-bleed hero with soft NDIS colour hints —— */
.hero {
    position: relative; min-height: 0;
    display: grid; align-items: start; overflow: hidden; color: var(--text);
    background:
        linear-gradient(180deg, #faf7ff 0%, #f0e8fb 48%, #e4d6f5 100%);
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(155,81,224,0.22), transparent 60%),
        radial-gradient(ellipse 28% 30% at 72% 28%, rgba(245,197,24,0.16), transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(0,166,81,0.12), transparent 55%);
    animation: softDrift 12s ease-in-out infinite;
}
@keyframes softDrift {
    0%, 100% { opacity: 0.85; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-6px); }
}
.hero-media {
    position: absolute; inset: 0; z-index: 0;
    background:
        linear-gradient(105deg, rgba(250,247,255,0.94) 0%, rgba(250,247,255,0.72) 38%, rgba(250,247,255,0.15) 62%, transparent 78%),
        linear-gradient(180deg, transparent 55%, rgba(250,247,255,0.55) 100%),
        url('/images/hero-care.svg') right center / cover no-repeat;
}
.hero-inner {
    position: relative; z-index: 1; padding: 2.25rem 0 3.5rem;
    max-width: 36rem;
}
.hero-brand {
    font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 4.6rem);
    font-weight: 700; color: var(--purple-900); margin: 0; letter-spacing: -0.03em;
}
.hero h1 {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem); font-weight: 500; max-width: 22ch;
    color: var(--text-secondary); margin: 0.85rem 0 0;
}
.hero-lead { max-width: 34rem; margin: 1rem 0 0; color: var(--text-secondary); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
@media (min-width: 960px) {
    .hero-inner { padding: 2.75rem 0 4.5rem; }
}

.band { padding: 4.75rem 0; }
.band-muted {
    background:
        linear-gradient(180deg, var(--stone-soft), var(--stone));
}
.band-sage {
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(155,81,224,0.16), transparent 50%),
        radial-gradient(ellipse 40% 50% at 0% 100%, rgba(0,166,81,0.1), transparent 45%),
        linear-gradient(180deg, #f3ebff, #ebe3f7);
}
.band-ink {
    background: linear-gradient(160deg, var(--purple-950), var(--purple-800));
    color: var(--text-on-dark);
}
.band-ink .section-header h2 { color: white; }
.band-ink .section-header p { color: var(--text-on-dark-muted); }
.band-ink .eyebrow { color: var(--purple-300); }

.support-list { display: grid; gap: 0; border-top: 1px solid var(--border-strong); }
.support-row {
    display: grid; gap: 0.65rem; padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) {
    .support-row {
        grid-template-columns: 11rem 1fr; gap: 2rem; align-items: start;
        padding: 1.75rem 0;
    }
}
.support-row h3 { font-size: 1.25rem; }
.support-row p { margin: 0; color: var(--text-secondary); max-width: 42rem; }
.support-meta {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ndis-green); margin: 0;
}

.split-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) {
    .split-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
}
.split-copy h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-top: 0.65rem; }
.split-copy p { color: var(--text-secondary); margin-top: 1rem; }
.split-aside {
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--ndis-yellow);
}
.split-aside h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
.split-aside p { margin: 0; color: var(--text-secondary); }

.trust-line {
    text-align: center; max-width: 40rem; margin: 0 auto;
    color: var(--text-on-dark-muted); font-size: 1.08rem;
}
.trust-line a { color: var(--purple-300); font-weight: 700; }
.trust-line a:hover { color: white; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.cta-band p { color: var(--text-secondary); max-width: 34rem; margin: 0.9rem auto 1.5rem; }

.page-hero {
    padding: 3.75rem 0 2.25rem;
    background:
        radial-gradient(ellipse 60% 80% at 90% 10%, rgba(155,81,224,0.2), transparent 55%),
        radial-gradient(ellipse 30% 40% at 8% 90%, rgba(0,166,81,0.1), transparent 50%),
        linear-gradient(180deg, #f3ebff, var(--cream));
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); max-width: 18ch; }
.page-hero p { max-width: 40rem; color: var(--text-secondary); margin-top: 0.9rem; }

.service-catalogue { display: grid; gap: 0; border-top: 1px solid var(--border-strong); }
.service-item {
    display: grid; gap: 0.5rem; padding: 1.85rem 0;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) {
    .service-item {
        grid-template-columns: 1.1fr 1.6fr 0.9fr; gap: 1.75rem; align-items: start;
    }
}
.service-item h3 { font-size: 1.35rem; }
.service-item p { margin: 0; color: var(--text-secondary); }
.service-for {
    font-size: 0.92rem; color: var(--text-muted); margin: 0;
    padding-top: 0.15rem;
}
.service-for strong {
    display: block; font-size: 0.75rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--purple-700); margin-bottom: 0.35rem;
}

.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { position: relative; padding-top: 0.25rem; }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 999px;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    color: white; font-weight: 700; font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 3px var(--ndis-yellow-soft);
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.step p { margin: 0; color: var(--text-secondary); }

.story-stack { display: grid; gap: 2.5rem; max-width: 44rem; }
.story-block h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.story-block p { margin: 0; color: var(--text-secondary); }

.feature-grid { display: grid; gap: 1.75rem; }
@media (min-width: 800px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.feature-plain h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feature-plain p { margin: 0; color: var(--text-secondary); }
.band-ink .feature-plain p { color: var(--text-on-dark-muted); }
.band-ink .feature-plain h3 { color: white; }

.contact-form {
    display: grid; gap: 0.9rem; max-width: 560px;
    background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.9rem; }
.contact-form input, .contact-form textarea, .contact-form select {
    border: 1px solid var(--border-strong); border-radius: 10px; padding: 0.75rem 0.85rem;
    font: inherit; background: var(--stone-soft);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.faq-list { display: grid; gap: 0.75rem; max-width: 760px; margin: 0 auto; }
.faq-item {
    background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.15rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); }
.faq-item p { margin: 0.7rem 0 0; color: var(--text-secondary); }

/* NDIS-quirky badges: yellow pending, green solid, purple accent option */
.ndis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}
.ndis-badge--pending {
    background: linear-gradient(135deg, var(--ndis-yellow-soft), rgba(155,81,224,0.08));
    color: var(--ndis-yellow-deep);
    border: 1px solid rgba(184, 134, 11, 0.4);
    box-shadow: inset 0 0 0 1px rgba(0, 166, 81, 0.12);
}
.ndis-badge--pending .ndis-badge-dot {
    background: var(--ndis-green-light);
    box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.2);
}
.ndis-badge--solid {
    background: var(--ndis-green-soft);
    color: var(--ndis-green);
    border: 1px solid rgba(0, 126, 70, 0.28);
}
.ndis-badge--solid .ndis-badge-dot {
    background: var(--ndis-yellow);
}
.ndis-badge--purple {
    background: rgba(155, 81, 224, 0.12);
    color: var(--purple-700);
    border: 1px solid rgba(155, 81, 224, 0.28);
}
.ndis-badge--purple .ndis-badge-dot {
    background: var(--ndis-yellow);
}
.ndis-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.band-ink .ndis-badge--pending,
.site-footer .ndis-badge--pending {
    background: linear-gradient(135deg, rgba(245,197,24,0.18), rgba(155,81,224,0.16));
    color: #f0d78c;
    border-color: rgba(240, 215, 140, 0.4);
}
.band-ink .ndis-badge--pending .ndis-badge-dot,
.site-footer .ndis-badge--pending .ndis-badge-dot {
    background: var(--ndis-green-light);
}

.site-footer {
    background: linear-gradient(160deg, var(--purple-950), var(--purple-900));
    color: var(--text-on-dark-muted); padding: 3.5rem 0 1.5rem; margin-top: auto;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--purple-500), var(--ndis-yellow), var(--ndis-green-light), var(--purple-400)) 1;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-tagline { color: var(--purple-300); font-family: var(--font-display); font-weight: 600; margin: 0 0 0.75rem; }
.footer-label {
    font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
    color: var(--ndis-yellow); margin-bottom: 0.85rem;
}
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a, .site-footer a { color: var(--text-on-dark); }
.footer-areas { margin: 0; padding-left: 1.1rem; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
    margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* —— G.U.I.D.E methodology page —— */
.prose-guide {
    max-width: 46rem;
}
.prose-guide h2 {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    margin: 2.25rem 0 0.85rem;
}
.prose-guide h2:first-of-type { margin-top: 0.85rem; }
.prose-guide p {
    color: var(--text-secondary);
    margin: 0 0 1.1rem;
    font-size: 1.05rem;
}
.prose-guide ul {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}
.prose-guide li { margin: 0.65rem 0; }
.prose-guide li strong { color: var(--text); }

.guide-phases {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
@media (min-width: 700px) {
    .guide-phases { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
    .guide-phases { grid-template-columns: repeat(5, 1fr); gap: 0.85rem; }
}
.guide-phase {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 1.35rem 1.15rem;
}
.guide-phase h3 { color: white; font-size: 1.15rem; margin: 0.35rem 0 0.55rem; }
.guide-phase p { margin: 0; color: var(--text-on-dark-muted); font-size: 0.95rem; }
.guide-timing {
    margin-top: 0.85rem !important;
    color: var(--ndis-yellow) !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.guide-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 0 3px var(--ndis-yellow-soft);
}
.guide-letter--sm {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.guide-detail-stack { display: grid; gap: 1.5rem; }
.guide-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-md);
}
.guide-detail-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}
.guide-detail-head h3 { font-size: 1.3rem; margin: 0 0 0.35rem; }
.guide-detail-head p { margin: 0; color: var(--text-secondary); }
.guide-steps {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-secondary);
}
.guide-steps li { margin: 0.45rem 0; }

.guide-metrics {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (min-width: 800px) {
    .guide-metrics { grid-template-columns: repeat(4, 1fr); }
}
.guide-metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.35rem 1.1rem;
    text-align: center;
}
.guide-metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--purple-700);
    margin-bottom: 0.35rem;
}
.guide-metric span {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: #8a1f1f; color: white; padding: 0.8rem 1rem;
}
#blazor-error-ui .reload { color: white; margin-left: 0.5rem; text-decoration: underline; }
