/* ==========================================================================
   Team Page
   ========================================================================== */

/* --- Team Intro --- */
.team-intro__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.team-intro__content h2 {
    margin-bottom: var(--space-md);
}

.team-intro__content p {
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

.team-intro__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.team-stat {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--color-border-light);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.team-stat:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.team-stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.team-stat__label {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--fw-medium);
}

@media (max-width: 768px) {
    .team-intro__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Team Grid --- */
.team-grid {
    display: grid;
    gap: var(--space-xl);
}

.team-grid--1 { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
.team-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin-inline: auto; }
.team-grid--3 { grid-template-columns: repeat(3, 1fr); }
.team-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .team-grid--3,
    .team-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .team-grid--2,
    .team-grid--3,
    .team-grid--4 { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* --- Team Card (improved) --- */
.card--team {
    text-align: center;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    overflow: visible;
}

.card--team:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card--team__photo {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-lg);
    border: 4px solid var(--color-bg);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-base);
}

.card--team:hover .card--team__photo {
    border-color: var(--color-secondary);
}

.card--team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-avatar span {
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-bg-white);
}

.card--team .card__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-xs);
}

.card--team .card__position {
    color: var(--color-secondary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
}

.card--team .card__bio {
    color: var(--color-text-light);
    font-size: var(--fs-xs);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

.card--team .card__socials {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    background: var(--color-bg);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.card__social-link:hover {
    color: var(--color-bg-white);
    background: var(--color-primary);
}

/* --- Team CTA --- */
.team-cta {
    text-align: center;
}

.team-cta h2 {
    color: var(--color-bg-white);
    margin-bottom: var(--space-md);
}

.team-cta p {
    font-size: var(--fs-md);
    opacity: 0.9;
    max-width: 650px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
}

/* --- Team single page --- */
.team-single {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}

.team-single__photo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-xl);
    border: 4px solid var(--color-bg);
    box-shadow: var(--shadow-md);
}

.team-single__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-single__bio {
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
}

.team-single__links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}
