/* =========================================================
   AFRICGUIDE — OUR TEAM
   ========================================================= */

.our-team-page {
    background: #fffdf9;
    color: #10233c;
}

.team-shell {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.team-kicker {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #e85f13;
}

/* HERO */
.team-hero {
    position: relative;
    min-height: 430px;
    margin-top: 70px;
    overflow: hidden;
    background: #fff7ee url("/images/our-team/Africa-Inspires-Banner.png") center center / cover no-repeat;
}

.team-hero_inner {
    width: 100%;
    max-width: 1300px;
    min-height: 430px;
    margin: 0 auto;
    padding: 54px 30px;
    display: flex;
    align-items: center;
}

.team-hero_copy {
    width: min(590px, 48%);
}

.team-hero h1 {
    margin: 0 0 18px;
    font-family: "Playfair", serif;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    color: #10233c;
}

.team-hero_copy > p:last-child {
    max-width: 560px;
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    color: #4f5c6b;
}

/* TEAM */
.team-section {
    padding: 72px 0 78px;
    background: #fffdf9;
}

.team-section_heading,
.work-heading,
.principles-heading {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr);
    gap: 72px;
    align-items: end;
    margin-bottom: 38px;
}

.team-section_heading h2,
.work-heading h2,
.principles-heading h2,
.team-cta h2 {
    margin: 0;
    font-family: "Playfair", serif;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #10233c;
}

.team-section_heading h2,
.work-heading h2,
.principles-heading h2 {
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.06;
}

.team-section_heading > p,
.work-heading > p,
.principles-heading > p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #687282;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    grid-column: span 2;
    min-height: 290px;
    padding: 28px 28px 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 35, 60, .07);
    border-radius: 18px;
    background:
        linear-gradient(155deg, rgba(255,255,255,.98), rgba(255,249,240,.94));
    box-shadow: 0 14px 38px rgba(64, 48, 34, .07);
}

.team-card--wide {
    grid-column: span 3;
    min-height: 250px;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 26px;
    align-items: start;
}

.team-card::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -52px;
    height: 105px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(90deg, rgba(234,181,119,.14), rgba(220,227,213,.12), rgba(210,218,229,.11));
    transform: rotate(-3deg);
}

.team-card_badge {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: #f7dfc1;
    color: #452211;
    font-family: "Playfair", serif;
    font-size: 31px;
    font-weight: 700;
}

.team-card_badge--sage { background: #e6eadf; }
.team-card_badge--blue { background: #e5edf2; }
.team-card_badge--peach { background: #f8dfd1; }
.team-card_badge--lavender { background: #ebe7ef; }

.team-card:not(.team-card--wide) .team-card_badge {
    width: 80px;
    height: 80px;
    margin-bottom: 22px;
    font-size: 27px;
}

.team-card_content {
    position: relative;
    z-index: 1;
}

.team-card h3 {
    margin: 0 0 15px;
    padding-bottom: 13px;
    position: relative;
    font-family: "Playfair", serif;
    font-size: 22px;
    line-height: 1.18;
    color: #10233c;
}

.team-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #ef681d;
}

.team-card p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14.5px;
    line-height: 1.68;
    color: #606a77;
}

/* HOW WE WORK */
.work-section {
    padding: 68px 0 72px;
    background: #fff9f2;
    border-top: 1px solid rgba(239, 104, 29, .08);
    border-bottom: 1px solid rgba(239, 104, 29, .08);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(16,35,60,.09);
    padding-top: 30px;
}

.work-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 0 30px;
    border-right: 1px solid rgba(16,35,60,.09);
}

.work-item:first-child { padding-left: 0; }
.work-item:last-child { border-right: 0; padding-right: 0; }

.work-item_number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f16418;
    color: #fff;
    font: 700 12px/1 "Inter", sans-serif;
}

.work-item_number--sage { background: #849264; }
.work-item_number--blue { background: #7690aa; }

.work-item h3 {
    margin: 0 0 8px;
    font-family: "Playfair", serif;
    font-size: 20px;
    color: #10233c;
}

.work-item p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #687282;
}

/* PRINCIPLES */
.principles-section {
    padding: 72px 0 80px;
    background: #fffdf9;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.principle-card {
    min-height: 230px;
    padding: 28px 26px;
    border: 1px solid rgba(16,35,60,.07);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f2 100%);
    box-shadow: 0 12px 30px rgba(64,48,34,.055);
}

.principle-card_line {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 20px;
    background: #ef681d;
}

.principle-card h3 {
    margin: 0 0 12px;
    font-family: "Playfair", serif;
    font-size: 21px;
    line-height: 1.15;
    color: #10233c;
}

.principle-card p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #687282;
}

/* CTA */
.team-cta {
    position: relative;
    overflow: hidden;
    padding: 78px 30px 82px;
    text-align: center;
    background: linear-gradient(180deg, #fff8f0 0%, #fff1e2 100%);
}

.team-cta_inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.team-cta h2 {
    font-size: clamp(34px, 3.7vw, 50px);
    line-height: 1.06;
    margin-bottom: 15px;
}

.team-cta_inner > p:not(.team-kicker) {
    max-width: 680px;
    margin: 0 auto 24px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #5d6875;
}

.team-cta_button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: #e85f13;
    color: #fff;
    text-decoration: none;
    font: 700 14px/1 "Inter", sans-serif;
    box-shadow: 0 10px 25px rgba(232,95,19,.22);
}

.team-cta_button:hover { background: #cf4f08; }

@media (max-width: 980px) {
    .team-hero {
        min-height: 500px;
        background-position: 62% center;
    }
    .team-hero_inner { min-height: 500px; align-items: flex-start; padding-top: 62px; }
    .team-hero_copy { width: min(560px, 68%); }
    .team-section_heading,
    .work-heading,
    .principles-heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-card,
    .team-card--wide { grid-column: span 1; display: block; min-height: 300px; }
    .team-card--wide .team-card_badge { width: 80px; height: 80px; margin-bottom: 22px; font-size: 27px; }
    .work-grid { grid-template-columns: 1fr; gap: 26px; }
    .work-item,
    .work-item:first-child,
    .work-item:last-child {
        padding: 0;
        border-right: 0;
    }
    .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .team-shell { padding-left: 20px; padding-right: 20px; }
    .team-hero {
        margin-top: 64px;
        min-height: 560px;
        background-position: 70% center;
        background-size: auto 100%;
        background-color: #fff7ee;
    }
    .team-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255,250,244,.97) 0%, rgba(255,250,244,.88) 55%, rgba(255,250,244,.25) 100%);
        pointer-events: none;
    }
    .team-hero_inner {
        min-height: 560px;
        padding: 54px 20px;
        position: relative;
        z-index: 1;
    }
    .team-hero_copy { width: 100%; max-width: 420px; }
    .team-hero h1 { font-size: clamp(43px, 13vw, 58px); }
    .team-section,
    .work-section,
    .principles-section { padding-top: 58px; padding-bottom: 62px; }
    .team-grid,
    .principles-grid { grid-template-columns: 1fr; }
    .team-card,
    .team-card--wide { min-height: auto; padding: 24px; }
    .principle-card { min-height: auto; }
    .work-item { grid-template-columns: 46px 1fr; gap: 14px; }
    .team-cta { padding: 64px 20px 68px; }
}
