/* ==========================================
   OUR TEAM PAGE
   Alabaster Theme & Static Hierarchy
   ========================================== */

.team-section {
    background-color: #E6E4E0; /* Textured Alabaster */
    color: #050505;
    min-height: 100vh;
    padding: 12rem 5% 8rem 5%; /* Clears the taller navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- HEADER --- */
.team-header {
    margin-bottom: 5rem;
    max-width: 800px;
}

.team-title {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.team-title .accent-red {
    color: #8B0000; /* Deep red for "Team." */
    font-style: normal;
}

.team-subtitle {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- TIERS & GRIDS --- */
.team-tier-section {
    width: 100%;
    margin-bottom: 5rem;
}

.tier-heading {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8B0000;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Small decorative line below headings to ground them */
.tier-heading::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #050505;
}

.team-grid {
    display: grid;
    gap: 3.5rem;
    width: 100%;
}

.exec-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px; /* Increased to allow 3 cards side-by-side */
    margin: 0 auto;
}

.hod-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

/* --- MEMBER CARDS (STATIC, MINIMAL) --- */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px); /* Very subtle lift */
}

/* Replaces the round avatars with clean portrait rectangles */
.avatar-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait ratio standard for corporate photography */
    max-width: 260px;
    background-color: #D8D6D2; /* Darker alabaster variant */
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
}

/* When you swap out the placeholder for actual images later, use this */
.team-member img {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-width: 260px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.team-member:hover .avatar-placeholder,
.team-member:hover img {
    border-bottom: 3px solid #8B0000; /* Deep red reveal on hover */
}

.member-name {
    font-size: 1.25rem;
    color: #050505;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-title {
    font-size: 0.85rem;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --- ENTRANCE ANIMATIONS --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUpEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   MOBILE RESPONSIVE (Our Team Page) - FIXED
   ============================================================ */
@media (max-width: 768px) {
    /* --- 0. Global Mobile Reset --- */
    * {
        box-sizing: border-box !important;
    }

    /* --- 1. Mobile Nav Layout --- */
    .main-nav .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        padding: 1rem 1.5rem !important;
    }

    /* Hide the Logo */
    .main-nav .nav-brand {
        display: none !important;
    }

    /* Burger Menu Left (Stays Dark) */
    .main-nav .mobile-toggle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        order: 1;
        display: flex !important;
    }

    /* Force Quote Button to Show on Right */
    .main-nav .nav-actions {
        position: relative !important;
        display: block !important;
        order: 2;
    }

    /* Scale the button slightly for small screens */
    .main-nav .nav-quote-pill {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    /* --- 2. Team Section Spacing --- */
    .team-section {
        padding-top: 8rem !important; 
        padding-bottom: 4rem !important;
    }

    .team-header {
        margin-bottom: 3.5rem !important;
    }

    .team-title {
        font-size: 3rem !important; 
    }

    /* --- 3. Grid & Profile Stacking --- */
    .team-grid {
        gap: 3rem !important;
    }

    /* Force single column */
    .exec-grid,
    .hod-grid {
        grid-template-columns: 1fr !important; 
    }

    /* FIX: Force the member card to take up the full column width so text length doesn't break the layout */
    .team-member {
        width: 100% !important;
    }

    /* Ensures the portrait placeholder/image doesn't over-expand, but remains uniform */
    .avatar-placeholder, 
    .team-member img {
        width: 100% !important;
        max-width: 300px !important; 
    }
}