/* ═══════════════════════════════════════════════════════
   TEAM PAGE CSS — team.css
   Register in functions.php as 'team' => 'assets/css/team.css'
   ═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.team-hero {
    position: relative;
    height: 65vh;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.team-hero__bg {
    position: absolute;
    inset: 0;
}

.team-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 40, 51, 0.96) 0%,
        rgba(28, 40, 51, 0.60) 50%,
        rgba(28, 40, 51, 0.18) 100%
    );
}

.team-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 68px;
    color: white;
    max-width: 700px;
}

.team-hero__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.team-hero__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    max-width: 560px;
}

/* ══════════════════════════════════════════════════════
   SHARED SECTION HEADER
══════════════════════════════════════════════════════ */
.team-section-header {
    margin-bottom: 56px;
}

.team-section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    margin-top: 8px;
}

/* ══════════════════════════════════════════════════════
   TOP LEADERSHIP — Full Bio Cards
══════════════════════════════════════════════════════ */
.team-top-section {
    padding: 100px 0;
    background: white;
}

.team-top-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* ── Bio Card ─────────────────────────────────────────── */
.team-bio-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 72px;
    align-items: start;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.team-bio-card:hover {
    box-shadow: 0 20px 56px rgba(46,187,111,0.12);
}

.team-bio-card--reverse {
    grid-template-columns: 1fr 340px;
}

.team-bio-card--reverse .team-bio-card__photo-wrap {
    order: 2;
}

.team-bio-card--reverse .team-bio-card__content {
    order: 1;
    padding: 48px 0 48px 48px;
}

/* ── Photo ────────────────────────────────────────────── */
.team-bio-card__photo-wrap {
    position: relative;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
}

.team-bio-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    min-height: 420px;
    transition: transform 0.6s ease;
}

.team-bio-card:hover .team-bio-card__photo {
    transform: scale(1.04);
}

.team-bio-card__photo-placeholder {
    width: 100%;
    min-height: 420px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Role badge overlaid on photo */
.team-bio-card__role-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(28,40,51,0.85);
    backdrop-filter: blur(10px);
    color: white;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Content ──────────────────────────────────────────── */
.team-bio-card__content {
    padding: 48px 48px 48px 0;
    display: flex;
    flex-direction: column;
}

.team-bio-card--reverse .team-bio-card__content {
    padding: 48px 0 48px 48px;
}

.team-bio-card__name {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.team-bio-card__role-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.team-bio-card__divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin-bottom: 28px;
}

.team-bio-card__sub {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gray);
    margin-bottom: 10px;
}

.team-bio-card__bg {
    font-size: 14.5px;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 28px;
}

/* Key roles list */
.team-roles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-roles-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 500;
    padding: 9px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.team-roles-list__item:hover {
    border-color: var(--primary);
    background: rgba(46,187,111,0.04);
    transform: translateX(4px);
}

.team-roles-list__item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   OTHER KEY LEADERSHIP — Compact Cards
══════════════════════════════════════════════════════ */
.team-other-section {
    padding: 100px 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.team-other-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(46,187,111,0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255,158,100,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.team-other-section .team-section-header {
    position: relative;
    z-index: 1;
}

.team-other-section .team-section-title {
    color: white;
}

.team-other-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* ── Other Card ───────────────────────────────────────── */
.team-other-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s ease;
}

.team-other-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(46,187,111,0.35);
    transform: translateY(-4px);
}

.team-other-card__photo-wrap {
    flex-shrink: 0;
}

.team-other-card__photo {
    width: 80px;
    height: 100px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    display: block;
}

.team-other-card__photo-placeholder {
    width: 80px;
    height: 100px;
    background: linear-gradient(145deg, rgba(46,187,111,0.3), rgba(31,139,79,0.5));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(46,187,111,0.3);
}

.team-other-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.team-other-card__name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.team-other-card__role {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.team-other-card__desc {
    font-size: 13.5px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .team-bio-card {
        grid-template-columns: 280px 1fr;
        gap: 48px;
    }

    .team-bio-card--reverse {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 768px) {
    .team-hero { height: 70vh; }

    .team-top-section { padding: 64px 0; }
    .team-other-section { padding: 64px 0; }

    .team-bio-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .team-bio-card--reverse {
        grid-template-columns: 1fr;
    }

    .team-bio-card--reverse .team-bio-card__photo-wrap { order: 1; }
    .team-bio-card--reverse .team-bio-card__content    { order: 2; padding: 32px; }

    .team-bio-card__photo-wrap { min-height: 300px; }
    .team-bio-card__photo      { min-height: 300px; }
    .team-bio-card__photo-placeholder { min-height: 300px; }

    .team-bio-card__content {
        padding: 32px !important;
    }

    .team-other-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .team-hero__title { font-size: 30px; }

    .team-other-card {
        flex-direction: column;
        gap: 18px;
    }

    .team-other-card__photo,
    .team-other-card__photo-placeholder {
        width: 100%;
        height: 140px;
    }
}