/* ============================================================
   ARPHATECH — Team Page
   Depends on: base.css + landing.css (.team-card, .team__grid)
   ============================================================ */

.team-page {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.team-page__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;

    max-width: 780px;
    margin: 0 auto;
}

.team-page__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--accent);
    background-color: var(--accent-soft);
    border-radius: 999px;
}

.team-page__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.team-page__accent { color: var(--primary); }

.team-page__subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    max-width: 60ch;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.team-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;

    margin-top: -0.5rem;
}

.team-filter__btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);

    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    cursor: pointer;

    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.team-filter__btn:hover {
    border-color: var(--border);
    color: var(--primary);
}

.team-filter__btn.is-active {
    background-color: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

.team-filter__btn:focus-visible {
    outline: 3px solid var(--primary-soft);
    outline-offset: 2px;
}

/* ============================================================
   GRID — inherits .team__grid from landing.css,
   override margin only
   ============================================================ */
.team-page__grid {
    margin-top: 0;

}

/* ============================================================
   HIDE FILTERED CARDS
   ============================================================ */
.team-card.is-hidden {
    display: none;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.team-page__empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem 0;
    margin: 0;
}

.team-card__tech-stacks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.team-card__tech-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-soft);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ============================================================
   JOIN CTA
   ============================================================ */
.team-page__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;

    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);

    background-color: var(--primary);
    color: var(--surface);
    border-radius: 16px;
}

.team-page__cta-content { flex: 1 1 320px; }

.team-page__cta-title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--surface);
}

.member__social {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.member__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: var(--text-secondary);
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;

    transition: color 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.15s ease;
}

.member__social a:hover {
    color: var(--surface);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.team-page__cta-sub {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 52ch;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .team-page__cta {
        justify-content: center;
        text-align: center;
    }
    .team-page__cta-content { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
    .team-page { gap: 2rem; }

    .team-filter {
        gap: 0.4rem;
    }

    .team-filter__btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }

    .team-page__cta {
        flex-direction: column;
        padding: 1.5rem 1.25rem;
    }

    .team-page__cta .btn-cta {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .team-filter__btn {
        transition: none !important;
    }
}