/* ==========================================================
   CGiS HOME V3
   Modern editorial interface
   ========================================================== */

:root {
    --cgis-primary: #d64a72;
    --cgis-primary-dark: #b8325c;
    --cgis-primary-deep: #8f2347;

    --cgis-primary-soft: #fce8ef;
    --cgis-primary-ultrasoft: #fff7fa;

    --cgis-green: #08703f;
    --cgis-green-dark: #04512e;
    --cgis-green-soft: #eaf4ef;

    --cgis-yellow: #f6b800;
    --cgis-yellow-soft: #fff5cf;

    --cgis-ink: #171217;
    --cgis-muted: #6e646a;

    --cgis-surface: #faf8f9;
    --cgis-white: #ffffff;

    --cgis-border:
        rgba(56, 32, 42, .10);

    --cgis-shadow-sm:
        0 12px 35px
        rgba(71, 36, 50, .06);

    --cgis-shadow-md:
        0 24px 65px
        rgba(71, 36, 50, .10);

    --cgis-shadow-lg:
        0 38px 100px
        rgba(71, 36, 50, .14);

    --cgis-radius-sm: 18px;
    --cgis-radius-md: 28px;
    --cgis-radius-lg: 42px;
}


/* ==========================================================
   GLOBAL
   ========================================================== */

html {
    scroll-padding-top: 100px;
}

body {
    color: var(--cgis-ink);

    background:
        var(--cgis-white);

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}

main {
    overflow: hidden;
}

.section {
    position: relative;

    padding-top: 125px;
    padding-bottom: 125px;
}

.section-heading {
    max-width: 900px;
}

.section-heading h2,
.ecosystem h2,
.mandate h2,
.impact h2,
.join h2 {
    font-weight: 760;

    letter-spacing:
        -.055em;
}

.section-heading p,
.mandate p,
.ecosystem p,
.join-card p {
    font-size: 1rem;

    line-height: 1.8;
}


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

.header {
    border-bottom:
        1px solid
        rgba(56, 32, 42, .07);

    background:
        rgba(255,255,255,.88);

    backdrop-filter:
        blur(22px)
        saturate(160%);
}

.nav {
    min-height: 90px;
}

.header-scrolled .nav {
    min-height: 76px;
}

.brand-logo {
    height: 68px;

    width: auto;

    transition:
        height .3s ease,
        transform .3s ease;
}

.header-scrolled .brand-logo {
    height: 57px;
}

.nav-links {
    gap: 28px;
}

.nav-links a {
    color: #5d555a;

    font-size: .82rem;

    font-weight: 720;

    letter-spacing: -.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color:
        var(--cgis-primary);
}

.nav-actions {
    gap: 14px;
}

.language-switch {
    border-color:
        rgba(214,74,114,.16);

    background:
        rgba(252,232,239,.45);
}


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

.hero {
    min-height: 790px;

    position: relative;

    padding-top: 130px;
    padding-bottom: 100px;

    isolation: isolate;

    background:
        radial-gradient(
            circle at 87% 18%,
            rgba(214,74,114,.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 72% 68%,
            rgba(246,184,0,.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 4% 76%,
            rgba(8,112,63,.06),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffafd 58%,
            #ffffff 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    opacity: .26;

    background-image:
        linear-gradient(
            rgba(214,74,114,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(214,74,114,.08) 1px,
            transparent 1px
        );

    background-size:
        72px 72px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.4),
            transparent 75%
        );
}

.hero-grid {
    min-height: 590px;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(420px, .92fr);

    gap: 90px;
}

.eyebrow {
    width: fit-content;

    padding: 8px 12px;

    border:
        1px solid
        rgba(214,74,114,.15);

    border-radius: 999px;

    color:
        var(--cgis-primary-dark);

    background:
        rgba(252,232,239,.62);

    font-size: .65rem;

    letter-spacing: .14em;
}

.hero h1 {
    max-width: 880px;

    margin-top: 25px;

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

    line-height: .91;

    letter-spacing:
        -.075em;
}

.hero h1 span {
    position: relative;

    color:
        var(--cgis-primary);
}

.hero h1 span::after {
    content: "";

    width: 72px;
    height: 5px;

    position: absolute;

    left: 3px;
    bottom: -15px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--cgis-primary),
            var(--cgis-yellow)
        );
}

.hero-lead {
    max-width: 700px;

    margin-top: 38px;

    color:
        var(--cgis-muted);

    font-size: 1.08rem;

    line-height: 1.8;
}

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

.button {
    min-height: 50px;

    padding-inline: 24px;

    border-radius: 999px;
}

.button-large {
    min-height: 58px;

    padding-inline: 30px;
}

.button-primary {
    background:
        linear-gradient(
            135deg,
            #df557d,
            var(--cgis-primary-dark)
        );

    box-shadow:
        0 14px 35px
        rgba(184,50,92,.22);
}

.button-outline {
    border:
        1px solid
        rgba(56,32,42,.12);

    background:
        rgba(255,255,255,.85);

    backdrop-filter:
        blur(12px);
}


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

.hero-art {
    min-height: 600px;
}

.hero-card {
    width: 88%;
    height: 535px;

    padding: 40px;

    border-radius: 46px;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(246,184,0,.22),
            transparent 25%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(255,255,255,.10),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #dc547a 0%,
            #b8325c 48%,
            #761f3e 100%
        );

    box-shadow:
        var(--cgis-shadow-lg);
}

.hero-card::after {
    content: "";

    width: 240px;
    height: 240px;

    position: absolute;

    right: -65px;
    bottom: -70px;

    border:
        1px solid
        rgba(255,255,255,.16);

    border-radius: 50%;
}

.hero-card strong {
    font-size:
        clamp(
            4rem,
            6vw,
            5.4rem
        );
}

.floating-card {
    border:
        1px solid
        rgba(255,255,255,.9);

    background:
        rgba(255,255,255,.92);

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 22px 60px
        rgba(70,35,50,.14);
}


/* ==========================================================
   MISSION
   ========================================================== */

#about {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fffafb
        );
}

#about .section-heading {
    margin-bottom: 56px;
}

.mission-visual-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 28px;
}

.mission-visual-card {
    overflow: hidden;

    border:
        1px solid
        rgba(56,32,42,.08);

    border-radius:
        var(--cgis-radius-md);

    background:
        var(--cgis-white);

    box-shadow:
        var(--cgis-shadow-sm);
}

.mission-visual-card:hover {
    box-shadow:
        var(--cgis-shadow-md);
}

.mission-media {
    aspect-ratio: 16 / 9;

    background:
        #f5f0f2;
}

.mission-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.mission-card-content {
    padding:
        34px
        36px
        38px;
}

.mission-card-content h3 {
    margin-bottom: 10px;

    font-size: 1.65rem;

    letter-spacing: -.04em;
}

.mission-card-content p {
    color:
        var(--cgis-muted);

    line-height: 1.7;
}


/* ==========================================================
   PROGRAMS
   ========================================================== */

.section-soft {
    background:
        #f9f7f8;
}

.program-grid {
    gap: 24px;
}

.program {
    min-height: 385px;

    position: relative;

    padding: 32px;

    overflow: hidden;

    border:
        1px solid
        rgba(56,32,42,.08);

    border-radius:
        var(--cgis-radius-md);

    background:
        rgba(255,255,255,.92);

    box-shadow:
        0 8px 28px
        rgba(60,30,43,.035);
}

.program::after {
    content: "";

    width: 130px;
    height: 130px;

    position: absolute;

    top: -85px;
    right: -70px;

    border-radius: 50%;

    background:
        var(--cgis-primary-soft);

    opacity: .65;
}

.program.featured::after {
    background:
        rgba(255,255,255,.13);
}

.program h3 {
    font-size: 1.55rem;

    letter-spacing: -.035em;
}

.program p {
    line-height: 1.7;
}

.program.featured {
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(246,184,0,.20),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            var(--cgis-primary),
            var(--cgis-primary-deep)
        );

    box-shadow:
        0 28px 60px
        rgba(143,35,71,.18);
}


/* ==========================================================
   ECOSYSTEM
   ========================================================== */

.ecosystem {
    padding-top: 135px;
    padding-bottom: 135px;

    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(214,74,114,.23),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 90%,
            rgba(8,112,63,.16),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #241017,
            #3e1423 55%,
            #52172c
        );
}

.ecosystem-grid {
    gap: 95px;
}

.journey {
    gap: 16px;
}

.journey > div {
    min-height: 155px;

    padding: 25px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 22px;

    background:
        rgba(255,255,255,.045);

    backdrop-filter:
        blur(10px);
}

.journey strong {
    font-size: 1.28rem;
}


/* ==========================================================
   MISS CAMEROUN / MANDATE
   ========================================================== */

.mandate {
    padding-top: 130px;
    padding-bottom: 130px;

    background:
        linear-gradient(
            180deg,
            #fffafa,
            #ffffff
        );
}

.mandate-grid {
    display: grid;

    grid-template-columns:
        minmax(400px,.92fr)
        minmax(0,1.08fr);

    align-items: stretch;

    gap: 36px;
}

.mandate-photo-card {
    min-height: 650px;

    border-radius:
        var(--cgis-radius-lg);

    box-shadow:
        var(--cgis-shadow-lg);
}

.mandate-photo {
    object-fit: cover;

    object-position:
        center 38%;
}

.mandate-grid > div:last-child {
    padding:
        58px
        56px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border:
        1px solid
        rgba(56,32,42,.08);

    border-radius:
        var(--cgis-radius-lg);

    background:
        rgba(255,255,255,.92);

    box-shadow:
        var(--cgis-shadow-sm);
}

.mandate-grid > div:last-child h2 {
    margin-bottom: 26px;
}

.mandate-grid > div:last-child p {
    color:
        var(--cgis-muted);
}

.mandate-grid .text-link {
    width: fit-content;

    margin-top: 20px;

    padding-bottom: 4px;

    border-bottom:
        1px solid
        rgba(214,74,114,.35);

    color:
        var(--cgis-primary-dark);
}


/* ==========================================================
   OPPORTUNITIES
   ========================================================== */

#opportunities {
    background:
        #ffffff;
}

.opportunities {
    border-top: 0;
}

.opportunities article {
    min-height: 135px;

    margin-bottom: 14px;

    padding:
        25px
        28px;

    grid-template-columns:
        155px
        minmax(200px,.8fr)
        1.2fr;

    border:
        1px solid
        rgba(56,32,42,.08);

    border-radius: 22px;

    background:
        #ffffff;

    box-shadow:
        0 6px 22px
        rgba(60,30,43,.025);
}

.opportunities article:hover {
    border-color:
        rgba(214,74,114,.20);

    box-shadow:
        var(--cgis-shadow-sm);
}


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

.impact {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(214,74,114,.10),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fff8fa,
            #ffffff
        );
}

.impact h2 {
    max-width: 900px;
}

.metrics {
    margin-top: 68px;

    overflow: hidden;

    border:
        1px solid
        rgba(56,32,42,.08);

    border-radius: 28px;

    background:
        rgba(255,255,255,.84);

    box-shadow:
        var(--cgis-shadow-sm);
}

.metrics div {
    min-height: 200px;

    padding: 34px;
}

.metrics strong {
    font-size:
        clamp(
            3rem,
            5vw,
            4.2rem
        );
}


/* ==========================================================
   JOIN
   ========================================================== */

.join {
    padding-top: 105px;
    padding-bottom: 130px;

    background:
        #ffffff;
}

.join-card {
    padding:
        75px
        72px;

    gap: 90px;

    border-radius:
        var(--cgis-radius-lg);

    background:
        radial-gradient(
            circle at 84% 10%,
            rgba(246,184,0,.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255,255,255,.09),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #d94e76,
            #a72953 62%,
            #7e1f40
        );

    box-shadow:
        0 36px 90px
        rgba(143,35,71,.20);
}

.join-card h2 {
    max-width: 650px;
}

.join-links a {
    min-height: 82px;
}


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

.footer {
    padding-top: 82px;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(214,74,114,.15),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #1d0d13,
            #0d080a
        );
}

.footer-main {
    gap: 95px;
}

.footer-brand .brand-logo {
    height: 112px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .hero-art {
        max-width: 700px;

        width: 100%;

        margin-inline: auto;
    }

    .mandate-grid {
        grid-template-columns: 1fr;

        max-width: 850px;

        margin-inline: auto;
    }

    .mandate-photo-card {
        min-height: 650px;
    }

    .mandate-grid > div:last-child {
        padding: 48px;
    }

}


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

@media (max-width: 700px) {

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

    .nav {
        min-height: 76px;
    }

    .brand-logo {
        height: 56px;
    }

    .header-scrolled .brand-logo {
        height: 51px;
    }

    .hero {
        min-height: auto;

        padding-top: 80px;
        padding-bottom: 75px;
    }

    .hero h1 {
        font-size:
            clamp(
                3.2rem,
                15vw,
                4.7rem
            );

        line-height: .92;
    }

    .hero h1 span::after {
        width: 55px;
        height: 4px;

        bottom: -12px;
    }

    .hero-lead {
        margin-top: 34px;

        font-size: .98rem;
    }

    .hero-art {
        min-height: 470px;
    }

    .hero-card {
        width: 94%;
        height: 440px;

        padding: 28px;

        border-radius: 32px;
    }

    .hero-card strong {
        font-size: 3.5rem;
    }

    .mission-visual-grid {
        grid-template-columns: 1fr;
    }

    .mission-media {
        aspect-ratio: 16 / 10;
    }

    .mission-card-content {
        padding:
            27px
            25px
            30px;
    }

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

    .ecosystem {
        padding-top: 90px;
        padding-bottom: 90px;
    }

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

    .mandate {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .mandate-photo-card {
        min-height: 530px;

        border-radius: 30px;
    }

    .mandate-grid > div:last-child {
        padding:
            36px
            27px;

        border-radius: 30px;
    }

    .opportunities article {
        min-height: 0;

        padding: 24px;

        grid-template-columns: 1fr;

        gap: 9px;
    }

    .metrics {
        grid-template-columns: 1fr;

        border-radius: 24px;
    }

    .metrics div {
        min-height: 150px;

        padding: 27px;
    }

    .join-card {
        padding:
            42px
            27px;

        gap: 42px;

        border-radius: 30px;
    }

    .footer {
        padding-top: 65px;
    }

    .footer-brand .brand-logo {
        height: 90px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 430px) {

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-card {
        height: 410px;
    }

    .floating-card {
        padding: 11px 13px;
    }

    .mandate-photo-card {
        min-height: 470px;
    }

}