/* =========================================================================
   Homepage — /
   Mobile first (390px). Breakpoints: 768px, 1024px.
   All tokens from design-system.css. No hardcoded colors or spacing.
   ========================================================================= */

/* ── Section 1: Hero ────────────────────────────────────────────────────── */

.wf-home-hero {
    /* Hero is a theme-agnostic visual block — always-dark photo + 78%
       black overlay below. Pin the color tokens locally so the [data-theme]
       toggle doesn't flip the headline + subline to dark text on dark
       overlay. The .wf-home-hero__headline / __subline rules continue to
       use var(--color-text) / var(--color-text-muted) unchanged — they
       resolve to the dark-mode values inside this scope. */
    --color-text:       #E8EDF5;
    --color-text-muted: #8892A4;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: var(--space-16) 0;
    background-color: var(--color-bg);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
}

.wf-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 0;
    pointer-events: none;
}

.wf-home-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.wf-home-hero__headline {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text);
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin: 0 0 var(--space-4);
}

.wf-home-hero__subline {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 var(--space-8);
    max-width: 50ch;
    margin-inline: auto;
}

.wf-home-hero__cta {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

/* ── Section 2: College Match Teaser ─────────────────────────────────── */

.wf-home-match {
    padding: var(--space-16) 0;
    background: var(--color-surface);
}

.wf-home-match .wf-container {
    text-align: center;
}

.wf-home-match__heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 var(--space-3);
}

.wf-home-match__subline {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-8);
}

.wf-home-match__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.wf-home-match__btn {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-6);
    justify-content: center;
}

.wf-home-match__browse {
    display: inline-block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.wf-home-match__browse:hover {
    color: var(--color-primary);
}

/* ── Section 3: School Logos ──────────────────────────────────────────── */

.wf-home-logos {
    padding: var(--space-16) 0;
    background: var(--color-bg);
}

.wf-home-logos .wf-container {
    text-align: center;
}

.wf-home-logos__label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-8);
}

.wf-home-logos__row {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-4);
    justify-content: flex-start;
}

.wf-home-logos__row::-webkit-scrollbar {
    display: none;
}

.wf-home-logos__item {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.wf-home-logos__item:hover {
    opacity: 0.7;
}

.wf-home-logos__img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.wf-home-logos__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.wf-home-logos__divisions {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: var(--space-6) 0 0;
    letter-spacing: 0.04em;
    opacity: 0.6;
}

/* ── Section 4: How It Works ──────────────────────────────────────────── */

.wf-home-how {
    padding: var(--space-20) 0;
    background: var(--color-surface);
}

.wf-home-how .wf-container {
    text-align: center;
}

.wf-home-how__heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 var(--space-10);
}

.wf-home-how__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.wf-home-how__step {
    position: relative;
    text-align: left;
}

.wf-home-how__step-number {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-2);
}

.wf-home-how__step-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 var(--space-2);
}

.wf-home-how__step-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 40ch;
}

/* ── Section 5: Coach CTA ─────────────────────────────────────────────── */

.wf-home-coach {
    padding: var(--space-16) 0;
    background: var(--color-bg);
}

.wf-home-coach .wf-container {
    text-align: center;
    max-width: 600px;
}

.wf-home-coach__heading {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-3);
}

.wf-home-coach__text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 var(--space-6);
}

.wf-home-coach__cta {
    font-size: var(--text-base);
}

/* ── Section 6: Final CTA ─────────────────────────────────────────────── */

.wf-home-closing {
    padding: var(--space-20) 0;
    background: var(--color-surface);
}

.wf-home-closing .wf-container {
    text-align: center;
}

.wf-home-closing__headline {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 var(--space-8);
    max-width: 20ch;
    margin-inline: auto;
}

.wf-home-closing__cta {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

/* ── Desktop ──────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .wf-home-hero {
        min-height: 100vh;
    }

    .wf-home-hero__headline {
        font-size: var(--text-7xl);
    }

    .wf-home-match__buttons {
        flex-direction: row;
        justify-content: center;
    }

    .wf-home-logos__row {
        justify-content: center;
        overflow-x: visible;
        gap: var(--space-10);
    }

    .wf-home-how__steps {
        flex-direction: row;
        gap: var(--space-8);
        text-align: left;
    }

    .wf-home-how__step {
        flex: 1;
    }

    .wf-home-closing__headline {
        font-size: var(--text-4xl);
    }
}

@media (min-width: 1024px) {
    .wf-home-hero__headline {
        font-size: var(--text-7xl);
    }

    .wf-home-how__step-number {
        font-size: 5rem;
    }
}
