/* =====================================================
   FORAGE AGRONOMY LAB — PEOPLE PAGE
   Page-specific styles only
===================================================== */


/* =====================================================
   PEOPLE SECTIONS
===================================================== */

.people-section {
    padding: 100px 0 110px;
    background: var(--cream);
}

.light-section {
    background: var(--cream-dark);
}


/* =====================================================
   SECTION HEADING
===================================================== */

.people-section .section-heading {
    max-width: 800px;
    margin-bottom: 55px;
}

.people-section .section-heading h2 {
    color: var(--brown-dark);

    font-size:
        clamp(36px, 5vw, 52px);

    font-weight: 500;
    line-height: 1.1;

    letter-spacing: -0.6px;
}

.people-section .section-heading > p:last-child {
    max-width: 760px;

    color: var(--text-light);

    font-size: 17px;
    line-height: 1.75;
}


/* =====================================================
   PRINCIPAL INVESTIGATOR
===================================================== */

.pi-card {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(320px, 440px)
        minmax(0, 1fr);

    background: var(--white);

    border: 1px solid var(--border-light);

    box-shadow:
        0 20px 55px
        rgba(59, 42, 32, 0.10);

    overflow: hidden;
}


/* Green top accent */

.pi-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background: var(--green);

    z-index: 2;
}


/* =====================================================
   PI IMAGE
===================================================== */

.pi-image {
    position: relative;

    min-height: 480px;

    background: var(--cream-dark);

    overflow: hidden;
}

.pi-image::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 25%;

    background:
        linear-gradient(
            to top,
            rgba(59, 42, 32, 0.12),
            transparent
        );

    pointer-events: none;
}

.pi-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

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


/* =====================================================
   PI CONTENT
===================================================== */

.pi-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 58px 62px;
}

.role {
    margin-bottom: 13px;

    color: var(--green);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.pi-content h3 {
    margin-bottom: 13px;

    color: var(--brown-dark);

    font-size:
        clamp(36px, 4vw, 46px);

    font-weight: 500;
    line-height: 1.12;

    letter-spacing: -0.5px;
}

.position {
    margin-bottom: 20px;

    color: var(--brown);

    font-size: 19px;
    line-height: 1.5;
}

.pi-content > p {
    margin-bottom: 15px;
}

.bio {
    max-width: 620px;

    color: var(--text-light);

    font-size: 16px;
    line-height: 1.75;
}


/* =====================================================
   PI LINKS
===================================================== */

.pi-links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}

.pi-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 17px;

    border: 1px solid var(--brown);

    color: var(--brown);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.pi-links a:hover {
    background: var(--brown);

    border-color: var(--brown);

    color: var(--white);

    transform:
        translateY(-2px);
}

.pi-links a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}


/* =====================================================
   LAB MEMBERS GRID
===================================================== */

.people-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* =====================================================
   PERSON CARD
===================================================== */

.person-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: var(--white);

    border: 1px solid var(--border-light);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.person-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background: var(--green);

    transform:
        scaleX(0);

    transform-origin:
        left;

    transition:
        transform 0.25s ease;

    z-index: 2;
}

.person-card:hover {
    border-color:
        rgba(83, 107, 69, 0.30);

    box-shadow:
        0 18px 40px
        rgba(59, 42, 32, 0.11);

    transform:
        translateY(-5px);
}

.person-card:hover::before {
    transform:
        scaleX(1);
}


/* =====================================================
   PERSON IMAGE
===================================================== */

.person-image {
    height: 320px;

    background: var(--cream-dark);

    overflow: hidden;
}

.person-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}

.person-card:hover .person-image img {
    transform:
        scale(1.035);
}


/* =====================================================
   PERSON CONTENT
===================================================== */

.person-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 29px 29px 33px;
}

.person-role {
    margin-bottom: 11px;

    color: var(--green);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.person-content h3 {
    margin-bottom: 19px;

    color: var(--brown-dark);

    font-size: 27px;
    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -0.2px;
}


/* =====================================================
   RESEARCH AREA
===================================================== */

.research-label {
    margin-bottom: 6px;

    color: var(--brown);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.person-content p:last-child {
    margin-bottom: 0;

    color: var(--text-light);

    font-size: 15px;
    line-height: 1.7;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .pi-card {
        grid-template-columns:
            minmax(280px, 360px)
            minmax(0, 1fr);
    }

    .pi-content {
        padding: 48px 42px;
    }

    .pi-content h3 {
        font-size: 38px;
    }

    .people-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .people-section {
        padding: 65px 0 75px;
    }

    .people-section .section-heading {
        margin-bottom: 38px;
    }

    .people-section .section-heading h2 {
        font-size: 36px;
    }

    .people-section .section-heading > p:last-child {
        font-size: 16px;
    }


    /* PI */

    .pi-card {
        grid-template-columns: 1fr;
    }

    .pi-image {
        height: 410px;
        min-height: 410px;
    }

    .pi-content {
        padding: 40px 30px 42px;
    }

    .pi-content h3 {
        font-size: 34px;
    }

    .position {
        font-size: 18px;
    }


    /* Members */

    .people-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .person-image {
        height: 350px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 450px) {

    .people-section {
        padding: 55px 0 65px;
    }

    .people-section .section-heading h2 {
        font-size: 32px;
    }


    /* PI */

    .pi-image {
        height: 345px;
        min-height: 345px;
    }

    .pi-content {
        padding: 31px 23px 34px;
    }

    .pi-content h3 {
        font-size: 31px;
    }

    .pi-links {
        flex-direction: column;
        align-items: stretch;
    }

    .pi-links a {
        width: 100%;
    }


    /* Members */

    .person-image {
        height: 295px;
    }

    .person-content {
        padding: 25px 22px 29px;
    }

    .person-content h3 {
        font-size: 25px;
    }

}
