:root {
    --ink: #16213a;
    --muted: #647084;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --teal: #0f9f9a;
    --blue: #246bfe;
    --coral: #f26b5b;
    --gold: #f4c95d;
    --line: rgba(22, 33, 58, 0.12);
    --shadow: 0 24px 70px rgba(22, 33, 58, 0.16);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--paper);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, var(--max));
    margin: 18px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 60px rgba(22, 33, 58, 0.12);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-6px);
}

.brand,
.main-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: var(--radius);
    color: white;
    background:
        radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.28) 0 16%, transparent 17%),
        linear-gradient(135deg, #20c4ce, #246bfe);
    font-weight: 950;
    letter-spacing: 0;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 1rem;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.main-nav {
    gap: 6px;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(22, 33, 58, 0.78);
    font-size: 0.94rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(36, 107, 254, 0.1);
    color: var(--blue);
}

.main-nav .nav-cta {
    color: white;
    background: var(--ink);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 130px max(24px, calc((100vw - var(--max)) / 2)) 70px;
    overflow: hidden;
    background: #ecfbfc;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    background:
        linear-gradient(90deg, transparent 0 22%, rgba(34, 199, 210, 0.96) 22% 100%),
        radial-gradient(circle at 77% 50%, rgba(255, 255, 255, 0.94) 0 9%, transparent 9.4%),
        radial-gradient(circle at 77% 50%, rgba(36, 107, 254, 0.95) 0 12%, transparent 12.4%),
        repeating-radial-gradient(ellipse at 18% 8%, transparent 0 10px, rgba(34, 199, 210, 0.24) 11px 13px, transparent 14px 18px),
        repeating-radial-gradient(ellipse at 85% 94%, transparent 0 10px, rgba(34, 199, 210, 0.24) 11px 13px, transparent 14px 18px),
        linear-gradient(180deg, #eefcff 0%, #f7feff 100%);
    background-size: auto, auto, auto, 900px 280px, 900px 280px, auto;
    background-position: center, center, center, -120px -35px, right -60px bottom -60px, center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 18, 35, 0.82) 0%, rgba(10, 18, 35, 0.56) 46%, rgba(10, 18, 35, 0.12) 100%),
        linear-gradient(0deg, rgba(10, 18, 35, 0.52) 0%, rgba(10, 18, 35, 0.04) 48%, rgba(10, 18, 35, 0) 72%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: white;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.79rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    max-width: 720px;
    font-size: clamp(2.65rem, 7vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.hero-copy {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.button.primary {
    color: white;
    background: var(--coral);
}

.button.secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
    position: absolute;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 54px;
    z-index: 2;
    width: min(360px, calc(100% - 48px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.hero-panel strong {
    display: block;
    margin: 8px 24px;
    font-size: 1.35rem;
    line-height: 1.18;
}

.hero-panel p {
    margin: 0 24px 24px;
    color: rgba(255, 255, 255, 0.82);
}

.panel-label {
    display: block;
    margin: 22px 24px 0;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-logo-card {
    padding: 28px 26px 24px;
    color: #07101f;
    background: rgba(237, 252, 255, 0.94);
}

.hero-logo-word,
.hero-logo-main,
.hero-logo-tagline {
    display: block;
}

.hero-logo-word,
.hero-logo-main {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: 0;
}

.hero-logo-word {
    font-size: 3.1rem;
}

.hero-logo-main {
    position: relative;
    width: max-content;
    max-width: 100%;
    font-size: 4.35rem;
}

.hero-logo-main::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: 8px;
    width: 58px;
    height: 48px;
    border-radius: 60% 60% 70% 70%;
    background: var(--teal);
    transform: rotate(-34deg);
    clip-path: polygon(50% 100%, 0 38%, 12% 10%, 44% 9%, 50% 24%, 57% 9%, 88% 10%, 100% 38%);
}

.hero-logo-tagline {
    max-width: 270px;
    margin-top: 14px;
    font-size: 0.83rem;
    font-weight: 950;
    line-height: 1.12;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-card {
    min-height: 190px;
    padding: 40px max(24px, calc((100vw - var(--max)) / 2));
    background: white;
}

.stat-card + .stat-card {
    padding-left: 36px;
    padding-right: 36px;
}

.stat-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.stat-card span {
    color: var(--muted);
}

.section {
    padding: 100px max(24px, calc((100vw - var(--max)) / 2));
}

.split,
.families,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.section-copy p,
.section-heading p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.04rem;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.check-grid span {
    padding: 14px;
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    background: var(--soft);
    font-weight: 800;
}

.image-stack {
    position: relative;
}

.image-stack img,
.families-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.floating-note {
    position: absolute;
    right: -24px;
    bottom: 34px;
    width: 220px;
    padding: 18px;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.floating-note strong,
.floating-note span {
    display: block;
}

.floating-note strong {
    color: var(--coral);
}

.floating-note span {
    color: var(--muted);
}

.band {
    background:
        linear-gradient(135deg, rgba(15, 159, 154, 0.08), rgba(244, 201, 93, 0.16)),
        var(--soft);
}

.section-heading {
    max-width: 740px;
    margin-bottom: 42px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 34px rgba(22, 33, 58, 0.07);
}

.service-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 26px;
    border-radius: var(--radius);
    color: white;
    background: var(--ink);
    font-weight: 900;
}

.service-card:nth-child(2) .service-icon {
    background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
    background: var(--coral);
}

.service-card:nth-child(4) .service-icon {
    color: var(--ink);
    background: var(--gold);
}

.service-card p {
    color: var(--muted);
}

.families {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.accordion {
    display: grid;
    gap: 12px;
}

.accordion-item {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-align: left;
    background: white;
    cursor: pointer;
}

.accordion-item span,
.accordion-item small {
    display: block;
}

.accordion-item span {
    font-size: 1rem;
    font-weight: 900;
}

.accordion-item small {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.96rem;
    transition: max-height 220ms ease, margin-top 220ms ease;
}

.accordion-item.is-open {
    border-color: rgba(15, 159, 154, 0.36);
    box-shadow: 0 12px 34px rgba(15, 159, 154, 0.1);
}

.accordion-item.is-open small {
    max-height: 160px;
    margin-top: 10px;
}

.resources {
    background: var(--ink);
    color: white;
}

.resources .eyebrow {
    color: var(--gold);
}

.resources .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.resource-list a {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    transition: transform 180ms ease, background 180ms ease;
}

.resource-list a:hover,
.resource-list a:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.resource-list span {
    display: block;
    margin-bottom: 24px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
}

.resource-list strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.22;
}

.contact {
    align-items: start;
    background: linear-gradient(180deg, white, var(--soft));
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    color: var(--muted);
}

.contact-details a {
    color: var(--blue);
    font-weight: 850;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 850;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    background: var(--soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(36, 107, 254, 0.16);
    border-color: var(--blue);
}

.form-alert {
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.form-alert.success {
    color: #0f5f4f;
    background: rgba(15, 159, 154, 0.14);
}

.form-alert.error {
    color: #982f24;
    background: rgba(242, 107, 91, 0.15);
}

.social-band {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
    gap: 32px;
    align-items: end;
    padding: 76px max(24px, calc((100vw - var(--max)) / 2));
    color: white;
    background:
        linear-gradient(135deg, rgba(36, 107, 254, 0.82), rgba(15, 159, 154, 0.9)),
        #123064;
}

.social-band .eyebrow {
    color: var(--gold);
}

.social-band h2 {
    margin-bottom: 0;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.social-links a {
    min-height: 138px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.13);
    transition: transform 180ms ease, background 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}

.social-links span,
.social-links strong {
    display: block;
}

.social-links span {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 850;
}

.social-links strong {
    font-size: 1.05rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px max(24px, calc((100vw - var(--max)) / 2));
    color: white;
    background: #101729;
}

.site-footer p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.64);
}

.site-footer a,
.footer-links a {
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: var(--radius);
        background: white;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: 880px;
        background-position: center top;
    }

    .hero-panel {
        left: 24px;
        right: auto;
    }

    .stats,
    .service-grid,
    .resource-list,
    .social-band,
    .split,
    .families,
    .contact {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .stat-card + .stat-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .families-media {
        order: 2;
    }

    .floating-note {
        right: 18px;
    }
}

@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 24px);
        margin-top: 12px;
    }

    .brand-text {
        display: none;
    }

    .hero {
        min-height: 820px;
        padding-top: 112px;
        padding-bottom: 280px;
    }

    .hero-media {
        background:
            linear-gradient(180deg, rgba(10, 18, 35, 0.35), rgba(10, 18, 35, 0.74)),
            linear-gradient(180deg, #ecfbfc 0 22%, #22c7d2 22% 58%, #ecfbfc 58% 100%);
    }

    h1 {
        font-size: 2.72rem;
    }

    h2 {
        font-size: 2.05rem;
    }

    .hero-actions,
    .site-footer,
    .footer-links {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .contact-form {
        padding: 20px;
    }
}
