:root {
    --brand: #18355d;
    --brand-strong: #102640;
    --brand-soft: #2f5f92;
    --accent: #d67a31;
    --accent-strong: #b7601d;
    --accent-soft: #f7e4d3;
    --ink: #162234;
    --muted: #607089;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.86);
    --canvas: #f4f7fb;
    --canvas-deep: #e7edf6;
    --line: #d8e2ee;
    --shadow-sm: 0 14px 34px rgba(16, 38, 64, 0.06);
    --shadow-md: 0 22px 54px rgba(16, 38, 64, 0.09);
    --shadow-lg: 0 34px 90px rgba(16, 38, 64, 0.14);
}

body.public-site {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(214, 122, 49, 0.14), transparent 22%),
        radial-gradient(circle at top right, rgba(24, 53, 93, 0.10), transparent 28%),
        var(--canvas);
    padding-top: 88px;
}

body.public-site h1,
body.public-site h2,
body.public-site h3,
body.public-site h4,
body.public-site h5,
body.public-site h6,
body.public-site .navbar-brand {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.03em;
    color: var(--ink);
}

body.public-site p,
body.public-site li,
body.public-site .lead,
body.public-site .text-muted {
    color: var(--muted) !important;
}

body.public-site a {
    text-decoration: none;
}

.public-navbar {
    background: rgba(248, 250, 252, 0.84) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(216, 226, 238, 0.9);
    padding: 0.95rem 0;
    box-shadow: 0 12px 28px rgba(16, 38, 64, 0.05);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--brand) !important;
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    box-shadow: 0 14px 28px rgba(24, 53, 93, 0.22);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-navbar .navbar-toggler {
    border: 1px solid rgba(24, 53, 93, 0.12);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
}

.public-navbar .nav-link {
    color: #33445c;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.65rem 0.95rem !important;
    border-radius: 999px;
    transition: 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--brand);
    background: rgba(24, 53, 93, 0.08);
}

.public-nav-list {
    gap: 0.2rem;
}

.nav-cta {
    margin-left: 0.35rem;
}

.btn-brand,
.btn-accent,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.92rem 1.35rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-brand:hover,
.btn-accent:hover,
.btn-soft:hover {
    transform: translateY(-1px);
}

.btn-brand {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    border: none;
    box-shadow: 0 18px 34px rgba(24, 53, 93, 0.24);
}

.btn-brand:hover {
    color: #fff;
    box-shadow: 0 22px 42px rgba(24, 53, 93, 0.28);
}

.btn-accent {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border: none;
    box-shadow: 0 18px 34px rgba(214, 122, 49, 0.24);
}

.btn-accent:hover {
    color: #fff;
}

.btn-soft {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

.btn-soft:hover {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.88);
}

.btn-light-outline {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.92rem 1.35rem;
    font-weight: 800;
}

.btn-light-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.public-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 88px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.public-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 24, 42, 0.84), rgba(24, 53, 93, 0.52));
}

.public-hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: 14%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(214, 122, 49, 0.34), transparent 64%);
    filter: blur(10px);
}

.family-hero.public-hero::before {
    background: linear-gradient(135deg, rgba(10, 24, 42, 0.72), rgba(72, 96, 129, 0.42));
}

.public-hero > .container {
    position: relative;
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-title {
    margin-top: 1.15rem;
    margin-bottom: 1.2rem;
    color: #fff !important;
    font-size: clamp(2.8rem, 6vw, 4.9rem);
    line-height: 1.03;
    max-width: 760px;
    text-shadow: 0 8px 24px rgba(6, 14, 26, 0.28);
}

.hero-title span {
    color: #ffd29f;
}

body.public-site .hero-copy,
body.public-site p.hero-copy,
body.public-site .public-hero .hero-copy {
    max-width: 640px;
    color: #ffffff !important;
    font-size: 1.06rem;
    line-height: 1.9;
    text-shadow: 0 6px 18px rgba(8, 18, 34, 0.42);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 28px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
}

body.public-site .hero-glass-card h3,
body.public-site .hero-glass-card h4 {
    color: #fff !important;
    text-shadow: 0 6px 18px rgba(8, 18, 34, 0.24);
}

body.public-site .hero-glass-card p,
body.public-site .hero-glass-card li,
body.public-site .hero-glass-card span {
    color: #ffffff !important;
    text-shadow: 0 6px 18px rgba(8, 18, 34, 0.38);
}

body.public-site .hero-glass-card p {
    font-weight: 500;
    line-height: 1.75;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 18px 16px;
}

body.public-site .metric-box strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 4px 12px rgba(8, 18, 34, 0.2);
}

body.public-site .metric-box span {
    color: #ffffff !important;
    font-size: 0.83rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(8, 18, 34, 0.28);
}

.section-block {
    position: relative;
    padding: 92px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(231, 237, 246, 0.76));
}

.section-dark {
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-soft));
    color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li {
    color: #fff !important;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
    background: var(--accent-soft);
    border: 1px solid rgba(214, 122, 49, 0.2);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.15rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section-copy {
    max-width: 680px;
    font-size: 1.02rem;
    line-height: 1.85;
}

.surface-card {
    background: var(--surface-soft);
    border: 1px solid rgba(216, 226, 238, 0.92);
    box-shadow: var(--shadow-md);
    border-radius: 30px;
    padding: 32px;
}

.surface-card.compact {
    padding: 26px;
}

.feature-card,
.program-card,
.process-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(216, 226, 238, 0.88);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover,
.program-card:hover,
.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon,
.process-icon-shell,
.program-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(24, 53, 93, 0.10), rgba(214, 122, 49, 0.16));
    color: var(--brand);
    font-size: 1.45rem;
    margin-bottom: 1.15rem;
}

.feature-number,
.process-index {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 16px 24px rgba(214, 122, 49, 0.24);
}

.feature-title,
.program-title,
.process-title {
    font-size: 1.22rem;
    margin-bottom: 0.85rem;
}

.program-list,
.clean-list {
    list-style: none;
    padding: 0;
    margin: 1.15rem 0 0;
}

.program-list li,
.clean-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.85rem;
}

.program-list i,
.clean-list i {
    color: var(--accent);
    margin-top: 5px;
}

.program-purpose {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(214, 122, 49, 0.22);
    background: rgba(247, 228, 211, 0.46);
    color: #4b5568 !important;
    font-size: 0.94rem;
}

.detail-image-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 100%;
}

.detail-image {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}

.info-banner {
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(24, 53, 93, 0.12);
    background: linear-gradient(135deg, rgba(24, 53, 93, 0.08), rgba(214, 122, 49, 0.10));
    color: #33445c !important;
}

.split-list {
    display: grid;
    gap: 12px;
}

.split-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 226, 238, 0.82);
}

.split-list-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.quote-panel {
    border-radius: 30px;
    padding: 40px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    box-shadow: var(--shadow-lg);
}

body.public-site .quote-panel h1,
body.public-site .quote-panel h2,
body.public-site .quote-panel h3,
body.public-site .quote-panel h4,
body.public-site .quote-panel h5,
body.public-site .quote-panel h6,
body.public-site .quote-panel p,
body.public-site .quote-panel span,
body.public-site .quote-panel strong {
    color: #ffffff !important;
    text-shadow: 0 6px 18px rgba(8, 18, 34, 0.3);
}

.stat-panel {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card-public {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(216, 226, 238, 0.88);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    text-align: center;
}

.stat-card-public strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 2.3rem;
    color: var(--brand);
    margin-bottom: 0.25rem;
}

.stat-card-public span {
    color: var(--muted);
    font-weight: 700;
}

.timeline-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-band {
    background: linear-gradient(135deg, var(--brand-strong), var(--brand-soft));
    border-radius: 34px;
    padding: 44px;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

body.public-site .cta-band h2,
body.public-site .cta-band h3,
body.public-site .cta-band p,
body.public-site .cta-band span,
body.public-site .cta-band strong {
    color: #ffffff !important;
    text-shadow: 0 6px 18px rgba(8, 18, 34, 0.26);
}

.public-footer {
    padding: 18px 0 24px;
}

.footer-shell {
    background: linear-gradient(135deg, #10233d, #17355b);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
    padding: 44px 40px 28px;
}

.footer-shell h4,
.footer-shell h5,
.footer-shell p,
.footer-shell a,
.footer-shell li {
    color: rgba(255, 255, 255, 0.84) !important;
}

.footer-shell a:hover {
    color: #ffd29f !important;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.7rem;
}

.footer-contact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-divider {
    height: 1px;
    margin: 2rem 0 1.25rem;
    background: rgba(255, 255, 255, 0.14);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.developer-credit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.label-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(24, 53, 93, 0.08);
    color: var(--brand);
}

.callout-line {
    padding-left: 1rem;
    border-left: 3px solid rgba(214, 122, 49, 0.55);
}

.stack-sm > * + * {
    margin-top: 0.85rem;
}

.stack-md > * + * {
    margin-top: 1.2rem;
}

.reveal-up {
    animation: revealUp 0.65s ease both;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    body.public-site {
        padding-top: 82px;
    }

    .public-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(216, 226, 238, 0.9);
        box-shadow: var(--shadow-md);
    }

    .public-nav-list {
        gap: 0.4rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.35rem;
    }

    .hero-glass-card {
        margin-top: 28px;
    }

    .hero-metrics,
    .stat-panel,
    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .public-hero {
        padding: 98px 0 72px;
    }

    .section-block {
        padding: 74px 0;
    }

    .surface-card,
    .feature-card,
    .program-card,
    .process-card,
    .quote-panel,
    .cta-band,
    .footer-shell {
        padding: 24px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .detail-image {
        min-height: 300px;
    }
}
