* {
    box-sizing: border-box;
}

.team-page {
    min-width: 320px;
    color: #292522;
    background: #ffffff;
}

/*
 * INTRO
 */

.team-intro {
    padding: 48px 24px 60px;
    background: #ffffff;
}

.team-intro-inner {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.72fr)
        minmax(0, 1.28fr);
    gap: 52px;

    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 38px 42px;

    border: 1px solid #eadfd7;
    border-radius: 16px;

    background: #fffaf7;

    box-shadow:
        0 8px 24px rgba(59, 43, 31, 0.05);
}

.team-intro-title {
    margin: 0;

    color: #2f2924;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.team-intro-text {
    color: #675e57;

    font-size: 16px;
    line-height: 1.75;
}

/*
 * COMMON SECTION HEADINGS
 */

.team-section-heading {
    max-width: 820px;
    margin: 0 auto 30px;

    text-align: center;
}

.team-section-heading h2 {
    margin: 0;

    color: #2f2924;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.team-section-heading p {
    margin: 16px 0 0;

    color: #756d67;

    font-size: 16px;
    line-height: 1.65;
}

/*
 * TEAM MEMBERS
 */

.team-members {
    padding: 18px 24px 76px;
    background: #ffffff;
}

.team-members-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.team-members-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.team-member-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    border: 1px solid #eadfd7;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 6px 18px rgba(59, 43, 31, 0.06);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.team-member-card:hover {
    transform: translateY(-3px);

    border-color: #d8b59f;

    box-shadow:
        0 10px 24px rgba(59, 43, 31, 0.1);
}

.team-member-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eee7e1;
}

.team-member-image img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 20%;

    transform: scale(1.01);

    transition:
        transform 0.3s ease;
}

.team-member-card:hover
.team-member-image img {
    transform: scale(1.04);
}

.team-member-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    padding: 16px 17px 18px;
}

.team-member-content h3 {
    margin: 0;

    color: #2f2924;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.team-member-role {
    margin: 7px 0 0;

    color: #c46e43;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-member-bio {
    margin: 12px 0 0;

    color: #756d67;

    font-size: 13px;
    line-height: 1.55;
}

.team-member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
    padding-top: 15px;
}

.team-member-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 14px;

    border: 1px solid #d8b59f;
    border-radius: 8px;

    color: #b76039;
    background: #fffaf6;

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.team-member-links a:hover {
    transform: translateY(-1px);

    border-color: #c46e43;
    background: #fff3e9;
}

/*
 * VALUES
 */

.team-values {
    padding: 66px 24px 76px;
    background: #f8f4ef;
}

.team-values-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.team-values-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-value-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    min-height: 230px;
    padding: 24px;

    border: 1px solid #eadfd7;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 8px 22px rgba(59, 43, 31, 0.05);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.team-value-card:hover {
    transform: translateY(-4px);

    border-color: #d8b59f;

    box-shadow:
        0 14px 30px rgba(59, 43, 31, 0.1);
}

.team-value-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;
    margin-bottom: 18px;

    border: 1px solid #eadfd7;
    border-radius: 12px;

    background: #fff8f1;
}

.team-value-icon img {
    display: block;

    width: 28px;
    height: 28px;

    object-fit: contain;
}

.team-value-card h3 {
    margin: 0;

    color: #2f2924;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.team-value-card p {
    margin: 12px 0 0;

    color: #756d67;

    font-size: 14px;
    line-height: 1.65;
}

/*
 * CTA
 */

.team-cta {
    padding: 72px 24px;
    background: #ffffff;
}

.team-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 40px 44px;

    border: 1px solid #dfc4b1;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #fff8f1 0%,
            #f7ece4 100%
        );

    box-shadow:
        0 10px 30px rgba(59, 43, 31, 0.06);
}

.team-cta-copy {
    max-width: 760px;
}

.team-cta-copy h2 {
    margin: 0;

    color: #2f2924;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.team-cta-copy p {
    margin: 14px 0 0;

    color: #675e57;

    font-size: 15px;
    line-height: 1.65;
}

.team-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 52px;
    padding: 0 22px;

    border: 1px solid #c46e43;
    border-radius: 10px;

    color: #ffffff;
    background: #c46e43;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;

    box-shadow:
        0 8px 18px rgba(161, 93, 29, 0.16);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.team-cta-button:hover {
    transform: translateY(-2px);

    border-color: #ad5d36;
    background: #ad5d36;

    box-shadow:
        0 12px 24px rgba(161, 93, 29, 0.2);
}

/*
 * RESPONSIVE
 */

@media (max-width:1100px) {

    .team-members-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }


    .team-values-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}

@media (max-width: 900px) {
    .team-intro-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .team-members-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .team-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .team-members-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .team-member-content {
        padding: 13px;
    }

    .team-member-content h3 {
        font-size: 17px;
    }

    .team-member-role {
        font-size: 10px;
    }

    .team-member-bio {
        display: none;
    }

    .team-member-links {
        width: 100%;
        padding-top: 12px;
    }

    .team-member-links a {
        width: 100%;
        min-height: 34px;
        padding: 0 8px;
        font-size: 10px;
    }

    .team-intro {
        padding: 34px 14px 46px;
    }

    .team-intro-inner {
        padding: 28px 22px;
    }

    .team-intro-title {
        font-size: 31px;
    }

    .team-members {
        padding: 12px 14px 54px;
    }

    .team-section-heading {
        margin-bottom: 24px;
    }

    .team-section-heading h2 {
        font-size: 32px;
    }

    .team-section-heading p {
        font-size: 15px;
    }

    .team-members-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .team-values-grid {
        grid-template-columns: 1fr;
    }

    .team-values {
        padding: 52px 14px;
    }

    .team-value-card {
        min-height: 0;
        padding: 20px;
    }

    .team-cta {
        padding: 52px 14px;
    }

    .team-cta-inner {
        padding: 30px 22px;
    }

    .team-cta-copy h2 {
        font-size: 30px;
    }

    .team-cta-button {
        width: 100%;
    }
}