/**
 * Homepage hero — charity:water-style simplicity (headline + donate widget + CTAs)
 */

/* Desktop hero */
.index-page .hero-cinematic.hero-cinematic--simple {
    min-height: calc(100vh - 168px);
    max-height: 920px;
    padding: 56px 0 40px;
    align-items: center;
    background-position: 78% center;
    background-size: cover;
}

.index-page .hero-cinematic--simple .hero-gradient-overlay {
    background: linear-gradient(
        to right,
        rgba(26, 32, 44, 0.97) 0%,
        rgba(26, 32, 44, 0.82) 42%,
        rgba(26, 32, 44, 0.28) 62%,
        rgba(26, 32, 44, 0.04) 82%,
        rgba(26, 32, 44, 0) 100%
    );
}

.index-page .hero-content-wrapper .container,
.index-page .hero-content-wrapper {
    width: 100%;
}

.index-page .hero-simple-layout {
    max-width: 440px;
    width: 100%;
}

.index-page .hero-simple-copy {
    max-width: 440px;
    display: flex;
    flex-direction: column;
}

.index-page .hero-simple-spacer {
    display: none;
}

.index-page .hero-cinematic--simple h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.index-page .hero-cinematic--simple .hero-graphic-zone,
.index-page .hero-cinematic--simple .badge-light,
.index-page .hero-cinematic--simple .hero-audience-pills {
    display: none !important;
}

.index-page .hero-cinematic--simple .hero-brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: none;
    width: 100%;
}

/* Donation widget */
.hero-donate-widget {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.hero-donate-in-hero {
    display: flex;
}

.hero-donate-in-section {
    display: none;
    margin: 24px auto 0;
    max-width: 340px;
}

.gateway-give-link-desktop {
    display: inline-block;
}

.hero-donate-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.hero-donate-tab {
    border: none;
    background: #f8fafc;
    color: #64748b;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.hero-donate-tab.active {
    background: #fff;
    color: #1e4331;
    box-shadow: inset 0 -3px 0 #3cd070;
}

.hero-donate-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px 16px;
    min-height: 0;
}

.hero-donate-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.hero-donate-amount {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 14px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    line-height: 1.2;
}

.hero-donate-amount:hover {
    border-color: #94a3b8;
}

.hero-donate-amount.active {
    background: #ecfdf5;
    border-color: #2e654a;
    color: #1e4331;
}

.hero-donate-other {
    display: block;
    margin-bottom: 8px;
}

.hero-donate-other span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 5px;
}

.hero-donate-other input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.hero-donate-other input:focus {
    outline: none;
    border-color: #2e654a;
    box-shadow: 0 0 0 3px rgba(46, 101, 74, 0.15);
}

.hero-donate-impact {
    margin: 0 0 10px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.hero-donate-impact-icon {
    color: #2e654a;
    flex-shrink: 0;
    font-size: 0.78rem;
}

.hero-donate-submit {
    width: 100%;
    border: none;
    border-radius: 4px;
    background: #2e654a;
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.hero-donate-submit:hover {
    background: #1e4331;
}

.hero-donate-submit:active {
    transform: scale(0.99);
}

.index-page .hero-cinematic--simple .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.index-page .hero-cinematic--simple .btn-primary-large,
.index-page .hero-cinematic--simple .btn-secondary-large {
    padding: 13px 22px;
    font-size: 0.92rem;
    min-width: 140px;
    text-align: center;
    box-sizing: border-box;
}

/* ── Mobile: image-first hero, no donate box, bottom gradient ── */
@media (max-width: 768px), ((hover: none) and (pointer: coarse)) {
    .hero-donate-in-hero {
        display: none !important;
    }

    .hero-donate-in-section {
        display: flex;
        max-width: none;
        aspect-ratio: auto;
    }

    .gateway-give-link-desktop {
        display: none !important;
    }

    #donate-gate .gateway-container-box p {
        margin-bottom: 20px;
    }

    .index-page .hero-cinematic.hero-cinematic--simple {
        min-height: calc(100dvh - 72px);
        max-height: none;
        padding: 0;
        align-items: stretch;
        background-position: center 20%;
        background-size: cover;
    }

    .index-page .hero-cinematic--simple .hero-gradient-overlay {
        background: linear-gradient(
            to top,
            rgba(26, 32, 44, 0.96) 0%,
            rgba(26, 32, 44, 0.72) 28%,
            rgba(26, 32, 44, 0.25) 55%,
            rgba(26, 32, 44, 0.08) 78%,
            rgba(26, 32, 44, 0) 100%
        );
    }

    .index-page .hero-content-wrapper {
        display: flex;
        flex: 1;
        align-items: stretch;
        min-height: calc(100dvh - 72px);
    }

    .index-page .hero-content-wrapper .container {
        display: flex;
        flex: 1;
        align-items: stretch;
        padding-bottom: 20px;
    }

    .index-page .hero-simple-layout,
    .index-page .hero-simple-copy {
        max-width: none;
        width: 100%;
        flex: 1;
        min-height: calc(100dvh - 72px);
    }

    .index-page .hero-simple-copy {
        justify-content: flex-start;
    }

    .index-page .hero-simple-headline {
        padding-top: 20px;
        flex-shrink: 0;
    }

    .index-page .hero-simple-spacer {
        display: block;
        flex: 1 1 auto;
        min-height: 38vh;
    }

    .index-page .hero-simple-actions {
        flex-shrink: 0;
        padding-bottom: 8px;
    }

    .index-page .hero-cinematic--simple h1 {
        font-size: clamp(1.45rem, 5.6vw, 1.85rem);
        line-height: 1.22;
        text-align: left;
    }

    .index-page .hero-cinematic--simple .hero-cta-row {
        flex-direction: column;
        width: 100%;
    }

    .index-page .hero-cinematic--simple .btn-primary-large,
    .index-page .hero-cinematic--simple .btn-secondary-large {
        width: 100%;
    }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .hero-donate-in-section {
        display: none !important;
    }
}
