/* ==========================================
   TEAM PAGE STYLES — Warm Cream Theme
   ========================================== */


/* --- BACK BUTTON --- */

.back-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 1001;
    padding: 12px 28px;
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--stm-dark);
    background-color: var(--stm-white);
    border: 3px solid var(--stm-dark);
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: 2px;
    cursor: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-btn:hover {
    background-color: var(--stm-orange);
    border-color: var(--stm-orange);
    color: var(--stm-white);
    transform: scale(1.05);
}


/* --- TEAM HERO --- */

.team-hero {
    background-color: var(--stm-orange);
    text-align: center;
    padding: 180px 60px 100px;
    position: relative;
    overflow: hidden;
}

/* Text selection on green hero */
.team-hero ::selection,
.team-hero::selection {
    background-color: var(--stm-dark);
    color: var(--stm-white);
}

.team-title::selection,
.team-subtitle::selection {
    background-color: var(--stm-dark);
    color: var(--stm-white);
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.team-title {
    font-family: var(--font-head);
    font-size: 8rem;
    color: var(--stm-white);
    line-height: 1;
    margin-bottom: 15px;
}

.team-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: rgba(248, 244, 241, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
}


/* --- TEAM SECTIONS --- */

.team-section {
    padding: 80px 60px;
    background-color: #F5F5F7;
    position: relative;
}

/* Decorative orange divider between sections */
.team-section+.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--stm-orange);
    border-radius: 4px;
}

/* Alternate sections get barely different shade for depth */
.team-section:nth-child(even) {
    background-color: #EEEEF0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.category-title {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--stm-dark);
    position: relative;
}

/* Decorative underline on category headers */
.category-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--stm-orange);
    border-radius: 4px;
}

.category-count {
    background-color: var(--stm-dark);
    color: var(--stm-green);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 18px;
    line-height: 1;
    letter-spacing: 1px;
}


/* --- MEMBERS GRID --- */

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.member-card {
    text-align: center;
    cursor: none;
    background-color: #ffffff;
    border: 2px solid rgba(26, 21, 18, 0.06);
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Subtle green glow at top edge on hover */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stm-orange);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.member-card:hover::before {
    opacity: 1;
}

.member-card:hover {
    box-shadow: 0 20px 40px rgba(26, 21, 18, 0.12);
    border-color: rgba(255, 90, 0, 0.2);
}

.member-avatar {
    width: 130px;
    height: 130px;
    background-color: #EEEEF0;
    border-radius: 50%;
    margin: 0 auto 18px;
    border: 3px solid rgba(26, 21, 18, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.member-card:hover .member-avatar {
    border-color: var(--stm-orange);
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 10px 25px rgba(255, 90, 0, 0.25);
}

.member-avatar .avatar-head {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    transition: transform 0.4s ease;
}

.member-card:hover .avatar-head {
    transform: scale(1.08);
}

.member-card h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--stm-dark);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.member-card:hover h3 {
    color: var(--stm-orange);
}

.member-role {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(26, 21, 18, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* --- MEMBER SOCIAL DRAWER --- */

.member-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 12;
}

.member-card:hover .member-socials {
    opacity: 1;
    transform: translateY(0);
}

.member-socials a {
    color: var(--stm-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EEEEF0;
    border: 2px solid rgba(26, 21, 18, 0.1);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: none;
}

.member-socials a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.member-socials a:hover {
    background: var(--stm-dark);
    border-color: var(--stm-dark);
    color: var(--stm-green);
    transform: scale(1.2) translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 21, 18, 0.2);
}

/* Glare (inherited from style.css — works on light background too) */
.glare {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.55) 0%, transparent 60%);
}


/* --- JOIN US CTA --- */

.join-cta {
    background-color: var(--stm-dark);
    text-align: center;
    padding: 100px 60px;
    position: relative;
    overflow: hidden;
}

.join-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--stm-orange);
}

.join-inner {
    max-width: 700px;
    margin: 0 auto;
}

.join-title {
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--stm-orange);
    line-height: 1.1;
    margin-bottom: 20px;
}

.join-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(248, 244, 241, 0.6);
    line-height: 1.6;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.join-email {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--stm-green);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    cursor: none;
}

.join-email:hover {
    transform: scale(1.08) rotate(-2deg);
    color: var(--stm-white);
    text-shadow: 0 0 30px rgba(0, 255, 102, 0.5);
}


/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .team-title {
        font-size: 4rem;
    }

    .team-subtitle {
        font-size: 1rem;
    }

    .team-hero {
        padding: 150px 30px 60px;
    }

    .team-section {
        padding: 50px 30px;
    }

    .category-title {
        font-size: 2rem;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
    }

    .member-card h3 {
        font-size: 1.1rem;
    }

    .back-btn {
        top: 20px;
        right: 20px;
        font-size: 0.8rem;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .team-title {
        font-size: 3rem;
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .member-avatar {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
}