/* ════════════════════════════════════════════════
   Meet the Team — clean minimal layout
   • Portrait cards, 4-per-row wrapping, centered
   • White / light-gray alternating bands only
   • Cards have fixed width so small groups center
   ════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   Kill ALL grid-line sources from landing.css:
   1. body.landing-page base background (radial + linear — fine to keep,
      just strip any repeating-linear grid lines)
   2. body.landing-page.landing-page--grid overrides
   3. .page-hero::before — has embedded repeating-linear-gradient grids
      that appear on EVERY page hero regardless of --grid class
   ══════════════════════════════════════════════ */
body.landing-page,
body.landing-page.landing-page--grid {
    background-image: none !important;
    background: #ffffff !important;
}

/* The page hero on meet-the-team is overridden to a dark bg image,
   so we kill the ::before pseudo-element that landing.css injects grid lines into */
.page-hero::before,
.page-hero::after {
    display: none !important;
}

/* ── Shell ── */
.team-section-shell {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* ── Section band ── */
.team-group {
    padding: 5rem 2rem;
    position: relative;
}

/* Alternating minimal bands */
.team-group[data-band="0"] { background: #ffffff; }
.team-group[data-band="1"] { background: #f4f6f8; }
.team-group[data-band="2"] { background: #ffffff; }
.team-group[data-band="3"] { background: #f4f6f8; }
.team-group[data-band="4"] { background: #ffffff; }

/* Shared CSS vars — same accent throughout for consistency */
.team-group {
    --accent:        #1F6B4A;
    --accent-light:  #eaf4ed;
    --accent-border: #c3dfc9;
    --title-color:   #0b1a12;
    --card-bg:       #ffffff;
    --card-border:   #e2e8f0;
    --card-shadow:   rgba(15, 23, 42, 0.07);
    --name-color:    #0b1a12;
    --role-color:    #5a7566;
}

/* Slightly different card bg on gray bands so cards pop */
.team-group[data-band="1"] { --card-bg: #ffffff; --card-border: #dde3ea; }
.team-group[data-band="3"] { --card-bg: #ffffff; --card-border: #dde3ea; }

/* ── Section heading ── */
.team-group__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 3rem;
}

.team-group__title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--title-color);
    position: relative;
    padding-bottom: 0.6rem;
}

.team-group__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}

.team-group__count {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: -0.5rem; /* optically align with title baseline */
}

/* ── Member grid ──
   Cards have a fixed width; flexbox with wrap + center
   so small groups (1–3) sit centered rather than left-aligned.
   Max 4 per row — after 4, wraps to next row.
──────────────────────────────────────────────── */
.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
}

/* ── Member card ── */
.team-member-card {
    width: 240px;          /* fixed card width — 4 fit comfortably at 1160px */
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px var(--card-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
}

/* Photo — square 1:1 for a clean headshot look */
.team-member-card__photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--accent-light);
    position: relative;
    flex-shrink: 0;
}

.team-member-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.35s ease;
}

.team-member-card:hover .team-member-card__photo {
    transform: scale(1.04);
}

/* Fallback initials */
.team-member-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--accent);
    background: var(--accent-light);
}

/* Card body */
.team-member-card__body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.team-member-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--name-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.team-member-card__role {
    margin: 0;
    font-size: 0.82rem;
    color: var(--role-color);
    line-height: 1.45;
}

.team-member-card__social {
    margin-top: 0.8rem;
}

.team-member-card__facebook {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #d1dbe8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    background: transparent;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.team-member-card__facebook:hover {
    transform: translateY(-2px);
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.28);
}

.team-member-card__facebook svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Empty state */
.team-empty {
    color: #94a3b8;
    font-size: 0.93rem;
    text-align: center;
    padding: 2rem 0;
    margin: 0;
    width: 100%;
}

/* ── Responsive ── */
@media (max-width: 1060px) {
    /* 3-per-row on mid-size screens — still centered */
    .team-member-card {
        width: 220px;
    }
}

@media (max-width: 720px) {
    .team-member-card {
        width: calc(50% - 0.75rem); /* 2 per row */
    }

    .team-group {
        padding: 3.5rem 1.25rem;
    }

    .team-group__head {
        margin-bottom: 2rem;
    }
}

@media (max-width: 400px) {
    .team-member-card {
        width: 100%;
    }
}