/* =========================================================
   VINCINITY FOUNDATION
   EDUCATION PAGE
   ========================================================= */


/* ================= ROOT ================= */

:root {
    --navy: #123b5d;
    --navy-dark: #0b2941;
    --blue: #285b7d;

    --green: #173f35;
    --green-dark: #102e27;

    --ivory: #f7f1e7;
    --paper: #fffdf8;

    --terracotta: #c56b4e;
    --gold: #d5a85b;

    --ink: #252b29;
    --muted: #70766f;

    --border: rgba(37, 43, 41, 0.15);

    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;
    --condensed: "Barlow Condensed", sans-serif;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* ================= HEADER ================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    padding: 24px 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 20;

    color: white;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;

    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--serif);
    font-size: 23px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name strong {
    font-size: 17px;
    letter-spacing: 2px;
}

.brand-name small {
    margin-top: 5px;

    font-family: var(--condensed);
    letter-spacing: 3px;
    font-size: 11px;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 13px;
    letter-spacing: 0.5px;

    transition: 0.25s ease;
}

.main-nav a:hover {
    opacity: 0.65;
}

.nav-donate {
    padding: 11px 20px;

    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 100px;
}

.menu-toggle {
    display: none;

    background: none;
    border: 0;

    color: white;
    font-size: 24px;

    cursor: pointer;
}


/* ================= HERO ================= */

.education-hero {
    min-height: 92vh;

    position: relative;

    display: flex;
    align-items: flex-end;

    padding: 150px 7vw 100px;

    color: white;

    background-image:
        url("images/education-hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 30, 45, 0.88),
            rgba(8, 30, 45, 0.48),
            rgba(8, 30, 45, 0.20)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 900px;
}

.eyebrow {
    font-family: var(--condensed);

    font-size: 13px;
    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 18px;

    color: var(--gold);
}

.hero-content h1 {
    font-family: var(--serif);

    font-size: clamp(58px, 8vw, 115px);

    line-height: 0.94;

    font-weight: 600;

    max-width: 950px;
}

.hero-description {
    margin-top: 30px;

    max-width: 530px;

    font-size: 18px;

    color: rgba(255,255,255,0.84);
}


/* ================= INTRO ================= */

.intro-section {
    padding: 130px 7vw;

    background: var(--ivory);
}

.section-label {
    font-family: var(--condensed);

    letter-spacing: 3px;
    font-size: 12px;

    color: var(--blue);

    margin-bottom: 55px;
}

.intro-grid {
    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 10vw;

    align-items: start;
}

.intro-grid h2 {
    font-family: var(--serif);

    font-size: clamp(40px, 5vw, 70px);

    line-height: 1.05;

    font-weight: 600;
}

.intro-text {
    max-width: 540px;
}

.intro-text p {
    font-size: 17px;

    color: var(--muted);

    margin-bottom: 25px;
}


/* ================= GALLERY ================= */

.gallery-section {
    padding: 130px 5vw 120px;

    background: var(--paper);
}

.gallery-heading {
    max-width: 700px;

    margin-left: 2vw;

    margin-bottom: 60px;
}

.gallery-heading h2 {
    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.05;
}


/* THREE IMAGES IN ONE LINE */

.image-gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.gallery-image {
    height: 500px;

    position: relative;

    background-size: cover;
    background-position: center;

    cursor: pointer;

    overflow: hidden;

    transition: transform 0.4s ease;
}

.gallery-image:hover {
    transform: translateY(-6px);
}


/* DARK OVERLAY */

.gallery-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.08);

    transition: 0.3s ease;
}

.gallery-image:hover::after {
    background: rgba(0,0,0,0.25);
}


/* PLUS */

.image-expand {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.7);

    background: rgba(0,0,0,0.2);

    color: white;

    font-size: 24px;

    line-height: 1;

    z-index: 3;

    cursor: pointer;

    backdrop-filter: blur(4px);
}


/* ================= CONTENT ================= */

.content-section {
    padding: 130px 12vw;

    background: var(--green);

    color: white;
}

.content-section .eyebrow {
    color: var(--gold);
}

.content-section h2 {
    max-width: 850px;

    font-family: var(--serif);

    font-size: clamp(45px, 6vw, 80px);

    line-height: 1.03;

    margin-bottom: 70px;
}

.content-copy {
    max-width: 780px;

    margin-left: auto;
}

.content-copy p {
    font-size: 18px;

    line-height: 1.85;

    color: rgba(255,255,255,0.78);

    margin-bottom: 30px;
}


/* ================= FEATURE ================= */

.feature-section {
    padding: 120px 10vw;

    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 60px;

    background: var(--ivory);
}

.feature-number {
    font-family: var(--condensed);

    font-size: 75px;

    color: var(--terracotta);

    line-height: 1;
}

.feature-content {
    max-width: 800px;
}

.feature-content h2 {
    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.05;

    margin-bottom: 35px;
}

.feature-content > p:last-child {
    max-width: 650px;

    font-size: 18px;

    color: var(--muted);
}


/* ================= CTA ================= */

.page-cta {
    padding: 150px 8vw;

    text-align: center;

    background: var(--navy-dark);

    color: white;
}

.page-cta .eyebrow {
    color: var(--gold);
}

.page-cta h2 {
    max-width: 900px;

    margin: 0 auto 30px;

    font-family: var(--serif);

    font-size: clamp(45px, 6vw, 80px);

    line-height: 1.03;
}

.page-cta > p:not(.eyebrow) {
    max-width: 600px;

    margin: 0 auto 40px;

    color: rgba(255,255,255,0.72);

    font-size: 17px;
}

.cta-button {
    display: inline-block;

    padding: 15px 28px;

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 100px;

    transition: 0.25s ease;
}

.cta-button:hover {
    background: white;

    color: var(--navy-dark);
}


/* ================= FOOTER ================= */

.site-footer {
    padding: 55px 6vw 30px;

    background: #071e2f;

    color: white;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 40px;
}

.footer-brand .brand-mark {
    width: 42px;
    height: 42px;
}

.footer-brand strong {
    letter-spacing: 1.5px;
}

.footer-brand p {
    margin-top: 5px;

    color: rgba(255,255,255,0.5);

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 25px;

    padding-bottom: 30px;

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    font-size: 13px;

    color: rgba(255,255,255,0.7);
}

.copyright {
    margin-top: 25px;

    font-size: 12px;

    color: rgba(255,255,255,0.4);
}


/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(4, 15, 23, 0.94);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 90vh;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    border: none;
    background: none;

    color: white;

    font-size: 45px;

    cursor: pointer;

    font-weight: 200;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 850px) {

    .main-nav {
        position: absolute;

        top: 80px;
        left: 5vw;
        right: 5vw;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        padding: 25px;

        background: var(--navy-dark);

        border-radius: 8px;
    }

    .main-nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 420px;
    }

    .feature-section {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .content-section {
        padding: 100px 7vw;
    }

}


@media (max-width: 550px) {

    .site-header {
        padding: 18px 5vw;
    }

    .brand-name strong {
        font-size: 14px;
    }

    .education-hero {
        min-height: 80vh;

        padding: 130px 6vw 70px;
    }

    .hero-content h1 {
        font-size: 55px;
    }

    .intro-section,
    .gallery-section {
        padding: 90px 6vw;
    }

    .gallery-heading {
        margin-left: 0;
    }

    .gallery-image {
        height: 360px;
    }

    .page-cta {
        padding: 100px 6vw;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}