/* =========================================================
   JIM KNUTE SCHAFER FOUNDATION
   ABOUT PAGE
   Page-specific styles only
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.jks-about {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.jks-about *,
.jks-about *::before,
.jks-about *::after {
    box-sizing: border-box;
}

.jks-about h1,
.jks-about h2,
.jks-about h3,
.jks-about p {
    margin-top: 0;
}

.jks-about-label {
    display: block;
    margin-bottom: 18px;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    color: var(--jks-gold, #c89b3c);
}

.jks-about h2 {
    margin: 0 0 24px;

    font-size: clamp(36px, 3.4vw, 54px);
    line-height: 1.06;
    letter-spacing: -1.4px;

    color: var(--jks-navy, #052236);
}


/* =========================================================
   SHARED STORY TYPOGRAPHY
   ========================================================= */

.jks-about-legacy-copy p,
.jks-about-jim-copy p {
    margin: 24px 0 0;

    font-size: 18px;
    line-height: 1.75;
    font-weight: 400;

    color: #40515e;
}


/* =========================================================
   1. OUR LEGACY — JIM KNUTE SCHAFER
   ========================================================= */

.jks-about-legacy {
    padding: clamp(72px, 7vw, 110px) 0;
    background: #ffffff;
}

.jks-about-legacy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);

    gap: clamp(55px, 6vw, 95px);
    align-items: stretch;
}

.jks-about-legacy-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 0;
}

.jks-about-legacy-photo {
    position: relative;

    width: 100%;
    min-height: 0;

    overflow: hidden;

    border-left: 4px solid var(--jks-gold, #c89b3c);

    box-shadow:
        0 24px 50px rgba(5, 34, 54, .14);
}

.jks-about-legacy-photo img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /* Favor upper portion so Jim's head stays in frame */
    object-position: center 25%;
}


/* =========================================================
   2. FAMILY COACHING LEGACY
   ========================================================= */

.jks-about-coaching-legacy {
    position: relative;

    padding: clamp(82px, 7vw, 110px) 0;

    background: var(--jks-navy, #052236);
    color: #ffffff;

    overflow: hidden;
}


/* Decorative background circles */

.jks-about-coaching-legacy::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -210px;
    top: -290px;

    border: 1px solid rgba(200, 155, 60, .18);
    border-radius: 50%;

    pointer-events: none;
}

.jks-about-coaching-legacy::after {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    left: -200px;
    bottom: -250px;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;

    pointer-events: none;
}

.jks-about-coaching-legacy .jks-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   COACHING LEGACY HEADING
   ========================================================= */

.jks-coaching-legacy-heading {
    max-width: 840px;

    margin: 0 auto 62px;

    text-align: center;
}

.jks-coaching-legacy-heading .jks-about-label {
    margin-bottom: 18px;

    color: var(--jks-gold, #c89b3c);
}

.jks-about .jks-coaching-legacy-heading h2 {
    margin: 0 0 24px;

    color: #ffffff;

    font-size: clamp(42px, 4.6vw, 66px);
    line-height: 1.04;
    letter-spacing: -1.8px;
}

.jks-coaching-legacy-heading > p {
    max-width: 750px;

    margin: 0 auto;

    color: rgba(255, 255, 255, .78);

    font-size: 18px;
    line-height: 1.75;
}


/* =========================================================
   COACHING STAT GRID
   ========================================================= */

.jks-coaching-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 980px;

    margin: 0 auto;

    border-top: 1px solid rgba(255, 255, 255, .16);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}


/* =========================================================
   INDIVIDUAL COACHING STAT
   ========================================================= */

.jks-coaching-stat {
    position: relative;

    padding: 46px 30px 43px;

    text-align: center;

    transition:
        background-color .3s ease,
        transform .3s ease;
}

.jks-coaching-stat + .jks-coaching-stat {
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.jks-coaching-stat:hover {
    background: rgba(255, 255, 255, .035);
    transform: translateY(-4px);
}


/* Large numbers */

.jks-coaching-number {
    display: block;

    color: var(--jks-gold, #c89b3c);

    font-size: clamp(68px, 7vw, 98px);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -4px;

    transition:
        color .3s ease,
        transform .3s ease;
}

.jks-coaching-stat:hover .jks-coaching-number {
    transform: scale(1.04);
}


/* Years / Losing Seasons */

.jks-coaching-stat-label {
    display: block;

    margin-top: 18px;

    color: #ffffff;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}


/* Description beneath each stat */

.jks-coaching-stat p {
    margin: 12px 0 0;

    color: rgba(255, 255, 255, .63);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   ZERO LOSING SEASONS — FEATURE STAT
   ========================================================= */

.jks-coaching-stat-featured::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 50%;

    width: 82px;
    height: 4px;

    background: var(--jks-gold, #c89b3c);

    transform: translateX(-50%);
}

.jks-coaching-stat-featured .jks-coaching-number {
    color: #ffffff;
}

.jks-coaching-stat-featured:hover .jks-coaching-number {
    color: var(--jks-gold, #c89b3c);
}


/* =========================================================
   SPORTS LIST
   ========================================================= */

.jks-coaching-sports {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 42px;
}

.jks-coaching-sports span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 18px;

    border: 1px solid rgba(200, 155, 60, .48);
    border-radius: 100px;

    color: rgba(255, 255, 255, .82);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.jks-coaching-sports span:hover {
    background: var(--jks-gold, #c89b3c);
    border-color: var(--jks-gold, #c89b3c);

    color: var(--jks-navy, #052236);

    transform: translateY(-2px);
}


/* =========================================================
   3. JIM SCHAFER — CARRYING THE LEGACY FORWARD
   ========================================================= */

.jks-about-jim {
    padding: clamp(72px, 7vw, 110px) 0;

    background: #f6f3eb;
}

.jks-about-jim-grid {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);

    gap: clamp(55px, 6vw, 95px);
    align-items: stretch;
}

.jks-about-jim-photo {
    position: relative;

    width: 100%;
    min-height: 100%;

    overflow: hidden;

    border-left: 4px solid var(--jks-gold, #c89b3c);

    box-shadow:
        0 24px 50px rgba(5, 34, 54, .14);
}

.jks-about-jim-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.jks-about-jim-photo img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 100%;

    object-fit: cover;
    object-position: center;
}

.jks-about-jim-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================================
   MEDIUM DESKTOP / LAPTOP
   ========================================================= */

@media (max-width: 1180px) {

    .jks-about-legacy-grid,
    .jks-about-jim-grid {
        gap: 55px;
    }

    .jks-coaching-legacy-heading {
        max-width: 760px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .jks-about-legacy,
    .jks-about-jim {
        padding: 75px 0;
    }

    .jks-about-coaching-legacy {
        padding: 80px 0 72px;
    }


    /* Story sections stack */

    .jks-about-legacy-grid,
    .jks-about-jim-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }


    /* Defined photo dimensions */

    .jks-about-legacy-photo,
    .jks-about-jim-photo {
        position: relative;

        width: 100%;
        height: auto;
        min-height: 0;

        aspect-ratio: 16 / 10;

        overflow: hidden;
    }


    /* Reset image positioning */

    .jks-about-legacy-photo img,
    .jks-about-jim-photo img {
        position: relative;
        inset: auto;

        display: block;

        width: 100%;
        height: 100%;
        min-height: 0;

        aspect-ratio: auto;

        object-fit: cover;
        object-position: center;
    }


    /* Keep Jim Knute Schafer in frame */

    .jks-about-legacy-photo img {
        object-position: center 25%;
    }


    /* Coaching legacy */

    .jks-coaching-legacy-heading {
        margin-bottom: 50px;
    }

    .jks-about .jks-coaching-legacy-heading h2 {
        font-size: clamp(40px, 7vw, 56px);
    }

    .jks-coaching-stat {
        padding: 40px 20px;
    }

    .jks-coaching-number {
        font-size: 76px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* Coaching section */

    .jks-about-coaching-legacy {
        padding: 68px 0 62px;
    }

    .jks-coaching-legacy-heading {
        margin-bottom: 40px;
    }

    .jks-about .jks-coaching-legacy-heading h2 {
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .jks-coaching-legacy-heading > p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* Stack 39 / 30 / 0 */

    .jks-coaching-stats {
        grid-template-columns: 1fr;

        max-width: 430px;
    }

    .jks-coaching-stat {
        padding: 34px 20px;
    }

    .jks-coaching-stat + .jks-coaching-stat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }

    .jks-coaching-number {
        font-size: 76px;
    }

    .jks-coaching-stat-featured::before {
        display: none;
    }


    /* Sports */

    .jks-coaching-sports {
        max-width: 430px;

        margin: 30px auto 0;

        gap: 8px;
    }

    .jks-coaching-sports span {
        padding: 8px 14px;

        font-size: 10px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .jks-about-legacy,
    .jks-about-jim {
        padding: 60px 0;
    }

    .jks-about-label {
        margin-bottom: 14px;

        font-size: 13px;
        letter-spacing: 1.4px;
    }

    .jks-about h2 {
        margin-bottom: 20px;

        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.08;
        letter-spacing: -.8px;
    }


    /* Don't force legacy heading line break on phone */

    .jks-about-legacy-copy h2 br {
        display: none;
    }


    /* Same typography in both story sections */

    .jks-about-legacy-copy p,
    .jks-about-jim-copy p {
        margin-top: 20px;

        font-size: 16px;
        line-height: 1.7;
    }

    .jks-about-legacy-grid,
    .jks-about-jim-grid {
        gap: 38px;
    }


    /* Taller photo presentation on phones */

    .jks-about-legacy-photo,
    .jks-about-jim-photo {
        aspect-ratio: 4 / 3;
    }


    /* Maintain upward crop */

    .jks-about-legacy-photo img {
        object-position: center 25%;
    }


    /* Coaching headline */

    .jks-about .jks-coaching-legacy-heading h2 {
        font-size: 36px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .jks-about-coaching-legacy {
        padding: 60px 0;
    }

    .jks-about .jks-coaching-legacy-heading h2 {
        font-size: 33px;
    }

    .jks-coaching-number {
        font-size: 68px;
    }

}


/* =========================================================
   ULTRAWIDE
   Keep composition controlled instead of stretching
   ========================================================= */

@media (min-width: 1600px) {

    .jks-about-legacy-grid,
    .jks-about-jim-grid {
        column-gap: 110px;
    }

}