/* ============================================
   kids-and-youth.css — NextGen landing page
   ============================================ */

:root {
    --nextgen-ink: #1c0909;
    --nextgen-wine: #4a1717;
    --nextgen-wine-light: #682525;
    --nextgen-gold: #efbd70;
    --nextgen-gold-soft: #d6a35f;
    --nextgen-cream: #fff7ea;
    --nextgen-muted: rgba(255, 247, 234, 0.82);
}

.nextgen-page {
    background: var(--nextgen-ink);
    color: var(--nextgen-cream);
}

.nextgen-page main {
    overflow: hidden;
}

.nextgen-page h1,
.nextgen-page h2,
.nextgen-page h3,
.nextgen-page p {
    margin-top: 0;
}

.nextgen-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.nextgen-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.nextgen-kicker {
    color: var(--nextgen-gold);
    font-size: 0.88rem;
    letter-spacing: 0.2em;
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Hero */
.nextgen-hero {
    align-items: center;
    background: url('../assets/nextgen-hero.png') center 52% / cover no-repeat;
    display: flex;
    justify-content: center;
    min-height: 525px;
    position: relative;
    text-align: center;
}

.nextgen-hero__shade {
    background:
        linear-gradient(180deg, rgba(24, 6, 6, 0.18) 0%, rgba(24, 6, 6, 0.34) 44%, rgba(18, 4, 4, 0.83) 100%),
        linear-gradient(90deg, rgba(25, 7, 7, 0.32), transparent 30%, transparent 70%, rgba(25, 7, 7, 0.32));
    inset: 0;
    position: absolute;
}

.nextgen-hero__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 46px 24px 34px;
    position: relative;
    transform: translateY(-4px);
    z-index: 1;
}

.nextgen-hero__cross {
    fill: var(--nextgen-gold);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    height: 76px;
    margin-bottom: -43px;
    opacity: 0.96;
    width: 112px;
}

.nextgen-hero__eyebrow {
    color: var(--nextgen-gold);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.nextgen-wordmark {
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.7));
    font-family: 'Oswald', Impact, sans-serif;
    font-size: clamp(5rem, 10vw, 8.4rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.92;
    margin: 0;
    text-transform: uppercase;
    transform: skewX(-5deg);
}

.nextgen-wordmark__next {
    color: #fff;
}

.nextgen-wordmark__gen {
    color: var(--nextgen-gold);
}

.nextgen-hero__ministry {
    color: #fff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    margin: 18px 0 8px;
    text-transform: uppercase;
}

.nextgen-hero__tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 2.1vw, 1.45rem);
    font-style: italic;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.85);
}

/* About */
.nextgen-intro {
    background:
        radial-gradient(circle at 15% 35%, rgba(139, 54, 45, 0.42), transparent 34%),
        linear-gradient(112deg, #5c2221 0%, #3c1213 58%, #501b1b 100%);
    padding: 68px 0;
}

.nextgen-intro__grid {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
}

.nextgen-intro__copy {
    border-right: 1px solid rgba(239, 189, 112, 0.58);
    padding-right: 64px;
}

.nextgen-intro__copy h2,
.nextgen-section-heading h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.15rem, 4vw, 3.05rem);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 20px;
}

.nextgen-intro__copy > p:last-child {
    color: var(--nextgen-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 650px;
}

.nextgen-programs {
    display: grid;
    gap: 28px;
}

.nextgen-program {
    align-items: flex-start;
    display: grid;
    gap: 22px;
    grid-template-columns: 48px 1fr;
}

.nextgen-icon,
.nextgen-value__icon {
    fill: none;
    stroke: var(--nextgen-gold);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.8;
}

.nextgen-icon {
    height: 46px;
    width: 46px;
}

.nextgen-program h3,
.nextgen-value h3 {
    color: var(--nextgen-gold);
    font-size: 0.94rem;
    font-weight: normal;
    letter-spacing: 0.14em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.nextgen-program p {
    font-size: 0.97rem;
    line-height: 1.45;
    margin-bottom: 2px;
}

.nextgen-program__motto {
    color: var(--nextgen-muted);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
}

/* Why NextGen */
.nextgen-why {
    background: url('../assets/nextgen-bible.png') center / cover no-repeat;
    min-height: 575px;
    padding: 62px 0 56px;
    position: relative;
}

.nextgen-why__shade {
    background:
        linear-gradient(180deg, rgba(19, 5, 3, 0.74), rgba(18, 5, 3, 0.68)),
        radial-gradient(circle at center, transparent 0%, rgba(13, 3, 2, 0.34) 75%);
    inset: 0;
    position: absolute;
}

.nextgen-why__content {
    position: relative;
    z-index: 1;
}

.nextgen-section-heading {
    margin: 0 auto 52px;
    max-width: 760px;
    text-align: center;
}

.nextgen-section-heading h2 {
    margin-bottom: 14px;
}

.nextgen-section-heading > p:last-child {
    color: var(--nextgen-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.nextgen-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.nextgen-value {
    padding: 0 28px;
    text-align: center;
}

.nextgen-value + .nextgen-value {
    border-left: 1px solid rgba(239, 189, 112, 0.55);
}

.nextgen-value__icon {
    height: 50px;
    margin-bottom: 18px;
    width: 50px;
}

.nextgen-value h3 {
    line-height: 1.45;
    min-height: 2.8em;
}

.nextgen-value p {
    color: var(--nextgen-muted);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.45;
    margin-bottom: 0;
}

/* Scripture */
.nextgen-scripture {
    background:
        linear-gradient(rgba(101, 31, 29, 0.86), rgba(101, 31, 29, 0.86)),
        url('../assets/rug.png') center / 520px auto repeat;
    border-bottom: 1px solid rgba(239, 189, 112, 0.13);
    border-top: 1px solid rgba(239, 189, 112, 0.13);
    padding: 38px 24px 34px;
    text-align: center;
}

.nextgen-scripture blockquote {
    margin: 0 auto;
    max-width: 770px;
}

.nextgen-scripture p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.55rem, 3.2vw, 2.25rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.22;
    margin-bottom: 13px;
}

.nextgen-scripture cite {
    color: var(--nextgen-gold);
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Get involved */
.nextgen-involved {
    background: linear-gradient(100deg, #250b0b, #421414 50%, #250b0b);
    padding: 48px 24px;
    text-align: center;
}

.nextgen-involved h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.nextgen-involved p {
    color: var(--nextgen-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.nextgen-button {
    align-items: center;
    border: 1px solid var(--nextgen-gold);
    border-radius: 3px;
    color: var(--nextgen-gold);
    display: inline-flex;
    font-size: 0.78rem;
    gap: 10px;
    letter-spacing: 0.12em;
    padding: 13px 21px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nextgen-button svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 16px;
}

.nextgen-button:hover,
.nextgen-button:focus-visible {
    background: var(--nextgen-gold);
    color: #2a0b0b;
    transform: translateY(-2px);
}

/* Resources */
.nextgen-resources {
    background:
        linear-gradient(rgba(72, 22, 21, 0.9), rgba(72, 22, 21, 0.9)),
        url('../assets/rug.png') center / 520px auto repeat;
    padding: 30px 24px 34px;
    text-align: center;
}

.nextgen-resources__heading {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr auto 1fr;
    margin: 0 auto;
    max-width: 760px;
}

.nextgen-resources__heading > span {
    background: rgba(239, 189, 112, 0.62);
    height: 1px;
}

.nextgen-resources h2 {
    color: var(--nextgen-gold);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.nextgen-resources p {
    color: var(--nextgen-muted);
    font-size: 0.78rem;
    margin-bottom: 0;
}

.nextgen-resources__links {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 18px;
}

.nextgen-resources__links a {
    color: var(--nextgen-cream);
    font-size: 0.84rem;
    text-underline-offset: 4px;
}

.nextgen-resources__links a:hover,
.nextgen-resources__links a:focus-visible {
    color: var(--nextgen-gold);
}

@media (max-width: 920px) {
    .nextgen-hero {
        min-height: 490px;
    }

    .nextgen-intro__grid {
        gap: 42px;
        grid-template-columns: 1fr 0.8fr;
    }

    .nextgen-intro__copy {
        padding-right: 42px;
    }

    .nextgen-values {
        gap: 40px 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .nextgen-value:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 700px) {
    .nextgen-container {
        width: min(100% - 34px, 620px);
    }

    .nextgen-hero {
        background-position: 44% center;
        min-height: 490px;
    }

    .nextgen-hero__content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nextgen-wordmark {
        font-size: clamp(4.2rem, 20vw, 6.3rem);
    }

    .nextgen-hero__ministry {
        letter-spacing: 0.18em;
    }

    .nextgen-intro {
        padding: 52px 0;
    }

    .nextgen-intro__grid {
        grid-template-columns: 1fr;
    }

    .nextgen-intro__copy {
        border-bottom: 1px solid rgba(239, 189, 112, 0.45);
        border-right: 0;
        padding: 0 0 38px;
    }

    .nextgen-programs {
        gap: 24px;
    }

    .nextgen-why {
        padding: 52px 0 46px;
    }

    .nextgen-section-heading {
        margin-bottom: 42px;
    }

    .nextgen-value {
        padding: 0 20px;
    }

    .nextgen-resources__heading {
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .nextgen-hero {
        min-height: 445px;
    }

    .nextgen-hero__cross {
        height: 64px;
        margin-bottom: -35px;
        width: 95px;
    }

    .nextgen-wordmark {
        font-size: clamp(3.65rem, 19vw, 5.2rem);
    }

    .nextgen-hero__ministry {
        font-size: 1rem;
        letter-spacing: 0.15em;
        margin-top: 15px;
    }

    .nextgen-hero__tagline {
        font-size: 1.05rem;
        line-height: 1.35;
        max-width: 310px;
    }

    .nextgen-values {
        grid-template-columns: 1fr;
    }

    .nextgen-value {
        padding: 0 15px 30px;
    }

    .nextgen-value + .nextgen-value,
    .nextgen-value:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(239, 189, 112, 0.4);
        padding-top: 30px;
    }

    .nextgen-value h3 {
        min-height: 0;
    }

    .nextgen-resources__heading {
        grid-template-columns: 36px auto 36px;
    }

    .nextgen-resources__links {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nextgen-page *,
    .nextgen-page *::before,
    .nextgen-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .nextgen-page [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
