/* =========================================
   OUR IMPACT STORIES PAGE
   Image-forward, responsive editorial layout
   ========================================= */

/* --- HERO --- */
.impact-hero {
    overflow: hidden;
    color: var(--white);
    background: var(--brand-dark);
    border-bottom: 7px solid var(--brand-gold);
}

.impact-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
    gap: clamp(44px, 6vw, 84px);
    align-items: center;
    min-height: 610px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.impact-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 610px;
}

.impact-eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--brand-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.impact-hero h1 {
    max-width: 620px;
    margin: 14px 0 22px;
    color: var(--white);
    font-size: clamp(3.1rem, 5.6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -1.5px;
}

.impact-hero p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    line-height: 1.75;
}

.impact-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-bottom: 6px;
    color: var(--white);
    border-bottom: 2px solid var(--brand-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.impact-hero-link i {
    color: var(--brand-gold);
    transition: transform 0.25s ease;
}

.impact-hero-link:hover,
.impact-hero-link:focus-visible {
    color: var(--brand-gold);
}

.impact-hero-link:hover i,
.impact-hero-link:focus-visible i {
    transform: translateY(4px);
}

.impact-hero-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 500px;
    transform: rotate(-1deg);
}

.impact-hero-photo {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-width: 0;
    border: 5px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.impact-hero-photo-main {
    grid-row: 1 / 3;
}

.impact-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.impact-hero-photo-main img {
    object-position: 50% 30%;
}

.impact-hero-photo-top img {
    object-position: 50% 28%;
}

.impact-hero-photo-bottom img {
    object-position: 50% 18%;
}

/* --- INTRO --- */
.impact-intro-section {
    padding: 72px 0 66px;
    background: var(--white);
}

.impact-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(38px, 6vw, 72px);
    align-items: center;
}

.impact-intro-grid h2 {
    max-width: 620px;
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.12;
}

.impact-intro-grid p {
    color: #58635f;
    font-size: 1.04rem;
    line-height: 1.8;
}

.impact-sharing-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0 0;
    padding: 16px 18px;
    color: var(--brand-dark) !important;
    background: var(--brand-light);
    border-left: 4px solid var(--brand-gold);
    border-radius: 4px;
    font-weight: 700;
}

.impact-sharing-note i {
    margin-top: 5px;
    color: #d79ab5;
}

/* --- STORY LIST --- */
.impact-stories-section {
    padding: 86px 0 96px;
    background: #f1f5f3;
    scroll-margin-top: 90px;
}

.impact-stories-grid {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.impact-story-card {
    display: grid;
    grid-template-columns: minmax(360px, 46%) minmax(0, 54%);
    min-height: 500px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dbe4e0;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(20, 39, 33, 0.1);
}

.impact-story-card:nth-child(even) .impact-story-image {
    grid-column: 2;
    grid-row: 1;
}

.impact-story-card:nth-child(even) .impact-story-content {
    grid-column: 1;
    grid-row: 1;
}

.impact-story-image {
    position: relative;
    min-width: 0;
    min-height: 500px;
    overflow: hidden;
    background: #dce5e1;
}

.impact-story-image::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 32%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(20, 39, 33, 0.28));
}

.impact-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.impact-story-card:hover .impact-story-image img {
    transform: scale(1.025);
}

/* Per-story face-aware crops */
.story-kinsley .impact-story-image img { object-position: 50% 30%; }
.story-jodie .impact-story-image img { object-position: 84% 48%; }
.story-orin .impact-story-image img { object-position: 34% 18%; }
.story-victoria .impact-story-image img { object-position: 50% 30%; }
.story-mary .impact-story-image img { object-position: 50% 22%; }
.story-nichole .impact-story-image img { object-position: 50% 22%; }
.story-hernandez .impact-story-image img { object-position: 50% 24%; }
.story-oaklyn .impact-story-image img { object-position: 50% 17%; }
.story-paige .impact-story-image img { object-position: 50% 6%; }

.impact-story-badge {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    color: var(--brand-dark);
    background: var(--brand-gold);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.impact-story-badge.memorial {
    color: var(--white);
    background: #70527f;
}

.impact-story-badge.survivor {
    color: var(--white);
    background: #177d7b;
}

.impact-story-badge.fighter {
    color: var(--white);
    background: var(--brand-dark);
}

.impact-story-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(237, 207, 121, 0.16), transparent 36%),
        linear-gradient(135deg, #1e3b32, #10231d);
}

.impact-story-placeholder::after {
    display: none;
}

.impact-story-placeholder > i {
    color: var(--brand-gold);
    font-size: 3.1rem;
}

.impact-story-placeholder > span:not(.impact-story-badge) {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.impact-story-placeholder small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.96rem;
}

.impact-story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(34px, 5vw, 64px);
}

.impact-story-content h2 {
    margin: 0 0 7px;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.05;
}

.impact-story-subtitle {
    margin: 0 0 23px;
    color: #7f6117;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.95px;
    text-transform: uppercase;
}

.story-text-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.story-text-wrapper.collapsed {
    max-height: 240px;
}

.story-text-wrapper.collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 92px;
    pointer-events: none;
    background: linear-gradient(transparent, var(--white));
}

.story-text-wrapper p {
    margin-bottom: 16px;
    color: #48524e;
    font-size: 1rem;
    line-height: 1.76;
}

.story-text-wrapper blockquote {
    margin: 20px 0 14px;
    padding: 18px 20px;
    color: var(--brand-dark);
    background: var(--brand-light);
    border-left: 4px solid var(--brand-gold);
    font-style: italic;
    line-height: 1.7;
}

.story-attribution,
.story-emphasis {
    color: var(--brand-dark) !important;
    font-weight: 800;
}

.read-more-btn {
    align-self: flex-start;
    margin-top: 16px;
    padding: 10px 0 3px;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--brand-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
}

.read-more-btn::after {
    content: ' +';
    color: #9a7313;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
    color: #8a6715;
}

/* --- CTA --- */
.impact-cta-section {
    padding: 82px 0;
    background: var(--white);
}

.impact-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 45px;
    align-items: center;
    padding: 45px 50px;
    color: var(--white);
    background: var(--brand-dark);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 39, 33, 0.17);
}

.impact-cta-card h2 {
    margin: 8px 0 12px;
    color: var(--white);
}

.impact-cta-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.impact-cta-actions {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.impact-cta-actions .btn {
    width: 100%;
    margin: 7px 0;
}

/* --- TABLET --- */
@media (max-width: 980px) {
    .impact-hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
        min-height: 0;
        padding-top: 60px;
        padding-bottom: 54px;
    }

    .impact-hero-copy {
        max-width: 760px;
    }

    .impact-hero-gallery {
        width: 100%;
        max-width: 820px;
        height: 470px;
        transform: none;
    }

    .impact-intro-grid,
    .impact-cta-card {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .impact-story-card,
    .impact-story-card:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .impact-story-card:nth-child(even) .impact-story-image,
    .impact-story-card:nth-child(even) .impact-story-content {
        grid-column: 1;
    }

    .impact-story-card:nth-child(even) .impact-story-image {
        grid-row: 1;
    }

    .impact-story-card:nth-child(even) .impact-story-content {
        grid-row: 2;
    }

    .impact-story-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .impact-cta-actions {
        width: 100%;
        min-width: 0;
    }
}

/* --- MOBILE --- */
@media (max-width: 640px) {
    .impact-hero-inner {
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 38px;
    }

    .impact-hero h1 {
        margin-top: 10px;
        font-size: clamp(2.65rem, 13vw, 4rem);
        line-height: 1;
    }

    .impact-hero p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .impact-hero-link {
        margin-top: 24px;
        font-size: 0.74rem;
    }

    .impact-hero-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1.22fr 0.78fr;
        gap: 9px;
        height: 440px;
    }

    .impact-hero-photo {
        border-width: 3px;
        border-radius: 12px;
    }

    .impact-hero-photo-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .impact-hero-photo-top {
        grid-column: 1;
        grid-row: 2;
    }

    .impact-hero-photo-bottom {
        grid-column: 2;
        grid-row: 2;
    }

    .impact-intro-section {
        padding: 54px 0 48px;
    }

    .impact-intro-grid {
        gap: 22px;
    }

    .impact-intro-grid h2 {
        margin-bottom: 0;
        font-size: 2.05rem;
    }

    .impact-sharing-note {
        padding: 14px 15px;
        font-size: 0.92rem;
    }

    .impact-stories-section {
        padding: 52px 0 60px;
    }

    .impact-stories-grid {
        gap: 28px;
    }

    .impact-story-card {
        border-radius: 13px;
    }

    .impact-story-image {
        aspect-ratio: 4 / 3;
    }

    .impact-story-badge {
        left: 15px;
        bottom: 14px;
        min-height: 30px;
        padding: 6px 11px;
        font-size: 0.64rem;
    }

    .impact-story-content {
        padding: 26px 22px 25px;
    }

    .impact-story-content h2 {
        font-size: 1.9rem;
    }

    .impact-story-subtitle {
        margin-bottom: 18px;
        font-size: 0.72rem;
    }

    .story-text-wrapper.collapsed {
        max-height: 225px;
    }

    .story-text-wrapper p {
        font-size: 0.97rem;
        line-height: 1.68;
    }

    .impact-story-placeholder {
        min-height: 300px;
    }

    .impact-cta-section {
        padding: 58px 0;
    }

    .impact-cta-card {
        padding: 30px 22px;
    }
}

@media (max-width: 390px) {
    .impact-hero-gallery {
        height: 390px;
    }

    .impact-story-image {
        aspect-ratio: 1 / 1;
    }
}
