/* =========================================================
   home.css — homepage only (index.html)
   Shared parts (header, footer, buttons, cards…) are in main.css
   ========================================================= */

/* ---------- HERO ---------- */
.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 450px;
    background: var(--hero) url("../img/home-hero.jpg") right center / auto 100% no-repeat;
}

.home-hero .container {
    position: relative;
    z-index: 1;
    padding-block: 60px;
}

.home-hero h1 {
    max-width: 620px;
    margin-bottom: 20px;
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.home-hero-lead {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ---------- STATS ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    transition: transform var(--transition), background-color var(--transition);
}

.stat:hover {
    transform: translateY(-3px);
    background: var(--surface);
}

.stat-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.stat-number {
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}


/* ---------- WHY US ---------- */
.why {
    padding-bottom: 30px;
}

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

.why-card {
    min-height: 230px;
    padding: 24px 18px;
    text-align: center;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    object-fit: contain;
    transition: transform 220ms ease;
}

.why-card:hover .why-icon {
    transform: scale(1.07) translateY(-2px);
}

.why-card h3 {
    margin-bottom: 9px;
    font-size: var(--fs-md);
}

.why-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}


/* ---------- ACTION BAND ---------- */
.action-band {
    margin-top: 28px;
    background: var(--navy);
}

.action-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 28px 0;
}

.action-band h2 {
    margin-bottom: 4px;
    color: var(--white);
    font-size: var(--fs-h2);
}

.action-band p {
    color: rgba(255, 255, 255, .82);
    font-size: var(--fs-base);
}


/* ---------- FIND A PARTNER ---------- */
.find-subtitle {
    margin: 30px 0 15px;
    font-size: 18px;
}

.partner-card {
    display: flex;
    flex-direction: column;
}

.partner-media {
    display: block;
    height: 140px;
}

.partner-info {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.partner-logo {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.partner-text {
    min-width: 0;
}

.partner-text h3 {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-text p {
    margin-top: 3px;
    color: var(--muted-light);
    font-size: var(--fs-sm);
}

.partner-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-location .icon {
    width: 13px;
    height: 13px;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 11px 12px 13px;
    border-top: 1px solid var(--line-soft);
    color: var(--navy);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.partner-link .arrow {
    font-size: 18px;
}

.find-note {
    padding-top: 30px;
    text-align: center;
}

.find-note h3 {
    font-size: var(--fs-h3);
}

.find-note p {
    margin-top: 5px;
    color: var(--muted);
}


/* ---------- UPCOMING EVENTS ---------- */
.mission-media {
    position: relative;
    height: 150px;
}

.mission-label {
    position: absolute;
    left: 12px;
    bottom: 0;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
    background: var(--white);
    color: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mission-body {
    position: relative;
    min-height: 110px;
    padding: 14px;
}

.mission-body h3 {
    margin: 0 25px 10px 0;
    font-size: var(--fs-base);
    line-height: 1.35;
}

.mission-info p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0;
    color: var(--muted-light);
    font-size: var(--fs-sm);
}

.mission-info .icon {
    width: 13px;
    height: 13px;
}

.mission-arrow {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 600;
}


/* ---------- ARTICLES ---------- */
.home-articles {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.article-featured {
    position: relative;
    height: 400px;
}

.article-featured > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.article-featured:hover > img {
    transform: scale(1.025);
}

.article-featured-body {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    width: 75%;
    padding: 24px 30px 26px;
    border-radius: 0 var(--radius) 0 0;
    background: rgba(255, 255, 255, .97);
}

.article-featured-body h3 {
    font-size: 24px;
}

.article-featured-body p {
    color: var(--muted);
}

.article-featured-body h3 a:hover,
.article-small h3 a:hover {
    color: var(--blue-bright);
}

.article-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    height: 400px;
}

.article-small {
    display: flex;
    min-width: 0;
}

.article-small .card-media {
    flex: 0 0 140px;
}

.article-small-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 14px;
}

.article-small h3 {
    font-size: var(--fs-md);
    line-height: 1.3;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .stats,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-articles {
        grid-template-columns: 1fr;
    }

    .article-side {
        grid-template-rows: none;
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }

    .article-small {
        flex-direction: column;
    }

    .article-small .card-media {
        flex-basis: 130px;
    }
}

@media (max-width: 680px) {
    .home-hero {
        min-height: 430px;
        background-position: 58% center;
        background-size: cover;
    }

    /* light overlay so the text stays readable over the photo */
    .home-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(240, 245, 251, .96) 0%, rgba(240, 245, 251, .84) 58%, rgba(240, 245, 251, .45) 100%);
    }

    .home-hero .container {
        padding-block: 50px;
    }

    .home-hero-lead {
        font-size: var(--fs-base);
    }

    .hero-buttons .btn {
        flex: 1 1 180px;
    }

    .stats,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        gap: 6px;
    }

    .why-card {
        min-height: 0;
    }

    .action-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-inner .btn {
        width: 100%;
    }

    .article-featured {
        height: 430px;
    }

    .article-featured-body {
        width: 92%;
        padding: 18px 20px 20px;
    }

    .article-featured-body h3 {
        font-size: 21px;
    }

    .article-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-small {
        flex-direction: row;
        min-height: 120px;
    }

    .article-small .card-media {
        flex-basis: 115px;
    }
}


/* ---------- PARTNER CARD: logo area (PHP version) ---------- */
.partner-top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}

.partner-top .partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 84px;
    height: 84px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    transition: transform 220ms ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.partner-logo .logo-initials {
    font-size: 24px;
}

.partner-text h3 {
    font-size: var(--fs-base);
}

.partner-text h3 a:hover {
    color: var(--blue-bright);
}

/* The photo area is a link — links need display:block to get a height */
.mission-media {
    display: block;
}
