/* =========================================================
   ROOT
========================================================= */

:root {
    /* Shining Communities Brand */
    --brand-blue: #3573B5;
    --brand-blue-light: #659FD0;
    --brand-blue-dark: #1467A9;

    --brand-red: #D93738;
    --brand-red-dark: #C62F30;

    --brand-navy: #1A3247;
    --brand-gray: #B4B4B6;

    /* UI */
    --ink: #1A3247;
    --muted: #64748B;
    --white: #FFFFFF;
    --light-bg: #F7F9FC;

    --border: #E5EAF0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Manrope", sans-serif;
}


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


/* =========================================================
   HEADER
========================================================= */

.site-header {
    transition:
        background-color 400ms ease,
        box-shadow 400ms ease,
        backdrop-filter 400ms ease;
}


.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(16px);

    box-shadow:
        0 8px 30px rgba(26, 50, 71, 0.08);
}


.header-inner {
    transition: all 400ms ease;
}


.site-header.scrolled .header-inner {
    transform: translateY(-1px);
}


.site-logo {
    transition: transform 300ms ease;
}


.site-header.scrolled .site-logo {
    transform: scale(0.92);
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-link {
    position: relative;

    color: rgba(255, 255, 255, 0.9);

    font-size: 0.875rem;
    font-weight: 600;

    transition:
        color 250ms ease;
}


.site-header.scrolled .nav-link {
    color: var(--ink);
}


.nav-link:hover {
    color: var(--brand-blue-light) !important;
}


.site-header.scrolled .nav-link:hover {
    color: var(--brand-blue) !important;
}


.nav-link.active {
    color: var(--brand-blue);
}


.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;

    background: var(--brand-red);

    transform: scaleX(1);
}


.nav-dropdown {
    position: relative;
}


.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 20px);
    left: -20px;

    min-width: 230px;

    padding: 10px;

    background: white;

    border: 1px solid rgba(26, 50, 71, 0.08);

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(26, 50, 71, 0.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 200ms ease,
        transform 200ms ease,
        visibility 200ms ease;
}


.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.nav-dropdown-menu a {
    display: block;

    padding: 11px 13px;

    color: var(--ink);

    font-size: 0.875rem;
    font-weight: 500;

    border-radius: 10px;

    transition:
        background 200ms ease,
        color 200ms ease;
}


.nav-dropdown-menu a:hover {
    background: #EEF5FB;

    color: var(--brand-blue);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn-primary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 12px 19px;

    color: white;

    background: var(--brand-red);

    border-radius: 999px;

    font-size: 0.875rem;
    font-weight: 700;

    transition:
        transform 250ms ease,
        box-shadow 250ms ease,
        background 250ms ease;
}


.btn-primary:hover {
    background: var(--brand-red-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(217, 55, 56, 0.28);
}


.btn-primary svg {
    transition:
        transform 200ms ease;
}


.btn-primary:hover svg {
    transform: translateX(3px);
}


/* White / light button */

.btn-light {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 21px;

    color: var(--brand-navy);

    background: white;

    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        transform 250ms ease,
        box-shadow 250ms ease,
        color 250ms ease;
}


.btn-light:hover {
    color: var(--brand-blue);

    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(26, 50, 71, 0.16);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-button {
    width: 44px;
    height: 44px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.12);
}


.site-header.scrolled .mobile-menu-button {
    background: #EEF5FB;
}


.mobile-menu-button span {
    width: 19px;
    height: 2px;

    background: white;

    border-radius: 10px;

    transition: all 250ms ease;
}


.site-header.scrolled .mobile-menu-button span {
    background: var(--ink);
}


.mobile-menu {
    max-height: 0;

    overflow: hidden;

    background: white;

    transition:
        max-height 400ms ease;
}


.mobile-menu.open {
    max-height: 600px;

    box-shadow:
        0 20px 30px rgba(26, 50, 71, 0.08);
}


.mobile-menu nav a {
    display: block;

    padding: 14px 0;

    color: var(--ink);

    font-size: 0.95rem;
    font-weight: 600;

    border-bottom: 1px solid #E8EDF2;

    transition:
        color 200ms ease;
}


.mobile-menu nav a:hover {
    color: var(--brand-blue);
}


.mobile-menu .mobile-cta {
    margin-top: 16px;

    padding: 14px 18px;

    color: white;

    background: var(--brand-red);

    border: none;

    border-radius: 999px;

    text-align: center;
}


.mobile-menu .mobile-cta:hover {
    background: var(--brand-red-dark);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background: var(--brand-navy);
}


.hero-slides {
    position: absolute;

    inset: 0;
}


.hero-slide {
    position: absolute;

    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 900ms ease,
        visibility 900ms ease;
}


.hero-slide.active {
    opacity: 1;
    visibility: visible;
}


.hero-slide>div:first-child {
    transform: scale(1.03);

    transition:
        transform 8s cubic-bezier(0.2, 0.6, 0.2, 1);
}


.hero-slide.active>div:first-child {
    transform: scale(1);
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(26, 50, 71, 0.92) 0%,
            rgba(26, 50, 71, 0.72) 45%,
            rgba(26, 50, 71, 0.35) 75%,
            rgba(26, 50, 71, 0.12) 100%);
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}


.hero-eyebrow::before {
    content: "";

    width: 30px;
    height: 2px;

    background: var(--brand-red);
}


.hero-title {
    max-width: 850px;

    color: white;

    font-family: "Manrope", sans-serif;

    font-size: clamp(3rem,
            6vw,
            5.9rem);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -0.055em;
}


.hero-title span {
    display: block;

    color: var(--brand-blue-light);
}


.hero-description {
    max-width: 620px;

    margin-top: 28px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1.05rem;

    line-height: 1.8;
}


.hero-actions {
    margin-top: 34px;
}


/* =========================================================
   HERO CONTROLS
========================================================= */

.hero-controls {
    position: absolute;

    z-index: 20;

    bottom: 45px;

    right: max(20px,
            calc((100vw - 1280px) / 2));

    display: flex;

    align-items: center;

    gap: 15px;
}


.hero-arrow {
    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    color: white;

    background: rgba(255, 255, 255, 0.1);

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 50%;

    transition:
        background 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}


.hero-arrow:hover {
    background: var(--brand-red);

    border-color: var(--brand-red);

    transform: scale(1.05);
}


.hero-indicators {
    display: flex;

    gap: 7px;
}


.hero-indicator {
    width: 38px;
    height: 3px;

    overflow: hidden;

    padding: 0;

    background: rgba(255, 255, 255, 0.25);

    border: none;

    border-radius: 20px;

    cursor: pointer;
}


.hero-indicator span {
    display: block;

    width: 0;
    height: 100%;

    background: var(--brand-blue-light);
}


.hero-indicator.active span {
    animation:
        indicatorProgress 6s linear forwards;
}


@keyframes indicatorProgress {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


/* =========================================================
   HERO SCROLL
========================================================= */

.hero-scroll {
    position: absolute;

    z-index: 20;

    bottom: 48px;
    left: 40px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.hero-scroll-line {
    width: 50px;
    height: 2px;

    background: var(--brand-red);
}


/* =========================================================
   SECTIONS
========================================================= */

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


.section-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: var(--brand-blue);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.18em;
}


.section-eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--brand-red);
}


.section-title {
    color: var(--ink);

    font-size: clamp(2.2rem,
            4vw,
            4rem);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -0.045em;
}


.section-title span {
    color: var(--brand-blue);
}


.section-lead {
    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.85;
}


/* =========================================================
   INLINE LINKS
========================================================= */

.inline-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--brand-blue);

    font-weight: 700;

    transition:
        gap 200ms ease,
        color 200ms ease;
}


.inline-link:hover {
    gap: 13px;

    color: var(--brand-red);
}


/* =========================================================
   PROGRAM CARDS
========================================================= */

.program-card {
    position: relative;

    padding: 35px;

    min-height: 310px;

    background: white;

    border:
        1px solid rgba(53, 115, 181, 0.12);

    border-radius: 24px;

    transition:
        transform 350ms ease,
        box-shadow 350ms ease,
        border-color 350ms ease;
}


.program-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(53, 115, 181, 0.28);

    box-shadow:
        0 25px 60px rgba(26, 50, 71, 0.10);
}


.program-number {
    margin-bottom: 55px;

    color: var(--brand-red);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.12em;
}


.program-card h3 {
    color: var(--ink);

    font-size: 1.35rem;

    font-weight: 800;
}


.program-card p {
    margin-top: 13px;

    color: var(--muted);

    line-height: 1.7;
}


.program-card a {
    position: absolute;

    bottom: 30px;

    color: var(--brand-blue);

    font-size: 0.85rem;

    font-weight: 700;

    transition:
        color 200ms ease;
}


.program-card a:hover {
    color: var(--brand-red);
}


/* =========================================================
   IMPACT
========================================================= */

.impact-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-top: 70px;

    border-top:
        1px solid rgba(53, 115, 181, 0.16);

    border-bottom:
        1px solid rgba(53, 115, 181, 0.16);
}


.impact-item {
    padding: 45px 30px;

    text-align: center;

    border-right:
        1px solid rgba(53, 115, 181, 0.16);
}


.impact-item:last-child {
    border-right: none;
}


.impact-item strong {
    display: block;

    color: var(--brand-blue);

    font-family: "Manrope", sans-serif;

    font-size: clamp(2.5rem,
            5vw,
            4.3rem);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.05em;
}


.impact-item span {
    display: block;

    margin-top: 14px;

    color: var(--muted);

    font-size: 0.9rem;

    font-weight: 600;
}


/* =========================================================
   PUBLICATIONS
========================================================= */

.publication-card {
    overflow: hidden;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 22px;

    transition:
        transform 350ms ease,
        box-shadow 350ms ease,
        border-color 350ms ease;
}


.publication-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(53, 115, 181, 0.25);

    box-shadow:
        0 25px 60px rgba(26, 50, 71, 0.08);
}


.publication-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #EEF5FB;
}


.publication-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 600ms ease;
}


.publication-card:hover .publication-image img {
    transform: scale(1.05);
}


.publication-content {
    padding: 28px;
}


.publication-content>span {
    color: var(--brand-red);

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing: 0.15em;
}


.publication-content h3 {
    margin-top: 13px;

    color: var(--ink);

    font-size: 1.25rem;

    line-height: 1.3;

    font-weight: 800;
}


.publication-content p {
    margin-top: 12px;

    color: var(--muted);

    line-height: 1.65;

    font-size: 0.9rem;
}


.publication-content a {
    display: inline-block;

    margin-top: 20px;

    color: var(--brand-blue);

    font-size: 0.85rem;

    font-weight: 700;

    transition:
        color 200ms ease;
}


.publication-content a:hover {
    color: var(--brand-red);
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 100px 0;

    background:
        radial-gradient(circle at 85% 30%,
            rgba(101, 159, 208, 0.16),
            transparent 30%),
        var(--brand-navy);
}


.cta-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}


.cta-inner h2 {
    margin-top: 10px;

    color: white;

    font-size: clamp(2.3rem,
            5vw,
            4.5rem);

    line-height: 1.03;

    font-weight: 800;

    letter-spacing: -0.05em;
}


.cta-inner h2 span {
    color: var(--brand-red);
}


.cta-inner p {
    max-width: 650px;

    margin-top: 22px;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

.footer-title {
    margin-bottom: 22px;

    color: white;

    font-size: 0.85rem;

    font-weight: 800;
}


.footer-links {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.footer-links a {
    color: rgba(255, 255, 255, 0.6);

    font-size: 0.875rem;

    transition:
        color 200ms ease,
        transform 200ms ease;
}


.footer-links a:hover {
    color: var(--brand-blue-light);

    transform: translateX(3px);
}


.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 65px;

    padding-top: 25px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.75rem;
}


.footer-bottom a:hover {
    color: var(--brand-blue-light);
}


/* =========================================================
   SCROLL ANIMATIONS
========================================================= */

[data-animate] {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 800ms ease,
        transform 800ms cubic-bezier(0.2,
            0.65,
            0.3,
            1);
}


[data-animate="fade-left"] {
    transform: translateX(40px);
}


[data-animate="fade-right"] {
    transform: translateX(-40px);
}


[data-animate].is-visible {
    opacity: 1;

    transform: translate(0,
            0);
}


[data-delay="100"] {
    transition-delay: 100ms;
}


[data-delay="200"] {
    transition-delay: 200ms;
}


[data-delay="300"] {
    transition-delay: 300ms;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1023px) {

    .hero-title {
        font-size: clamp(3rem,
                9vw,
                5rem);
    }


    .hero-scroll {
        display: none;
    }


    .impact-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .impact-item:nth-child(2) {
        border-right: none;
    }


    .impact-item:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(53,
                115,
                181,
                0.16);
    }


    .cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }
}


@media (max-width: 640px) {

    .section-padding {
        padding-top: 75px;

        padding-bottom: 75px;
    }


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


    .hero-description {
        font-size: 0.95rem;
    }


    .hero-controls {
        left: 20px;

        right: auto;

        bottom: 25px;
    }


    .hero-arrow {
        width: 38px;
        height: 38px;
    }


    .hero-indicator {
        width: 28px;
    }


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


    .impact-item {
        border-right: none !important;

        border-bottom:
            1px solid rgba(53,
                115,
                181,
                0.16);
    }


    .impact-item:last-child {
        border-bottom: none;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }
}



