/* ==========================================
   OUR TEAM - EDITORIAL LAYOUT
   ========================================== */

:root {
    /* MASTER SLIDER: Reduced by 50% (from 25% to 12.5%) */
    --column-width: 5%; 
}

.light-theme-override {
    background-color: #E6E4E0; /* Signature Alabaster */
    color: #050505;
}

.team-page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* THE RIGHT CONTENT AREA */
.team-content-area {
    margin-left: var(--column-width);
    width: calc(100% - var(--column-width));
    padding: 12rem 5% 6rem 5%;
    position: relative;
    z-index: 5; /* Sits BELOW the black column */
}

/* The Header Layout (Stacked Left) */
.team-header {
    display: flex;
    flex-direction: column; /* Stacks the text under the heading */
    align-items: flex-start; /* Anchors everything to the left */
    margin-bottom: 6rem;
    gap: 1.5rem; /* Tighter gap since they are stacked */
}

.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Matches Contact/Quote sizes */
    line-height: 1;
    font-weight: 600;
    flex-shrink: 0;
}

.cursive-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.gold-dot { color: #C89B3C; }

.team-description {
    max-width: 500px;
    margin-top: 0; 
}

.team-description p {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* THE CONVEYOR BELT */
.team-conveyor-container {
    width: 100%;
    overflow: hidden; 
    margin-bottom: 8rem;
    cursor: grab;
    position: relative; 
    transform: translateZ(0); /* Forces GPU hardware acceleration to stop flickering */
}

/* 1. The Track */
.team-conveyor-track {
    display: flex;
    width: max-content;
    /* REMOVED the gap here so the browser doesn't miscalculate the total width */
    /* This powers the infinite slide. Change '20s' to make it faster or slower */
    animation: scrollConveyor 50s linear infinite;
}

/* Bonus: Pauses scrolling on hover */
.team-conveyor-track:hover {
    animation-play-state: paused;
}

/* 2. The Groups */
.conveyor-group {
    display: flex;
    gap: 2rem; /* Keeps the gap between individual photos */
    padding-right: 2rem; /* Creates the perfect gap between Group 1 and Group 2 */
}

/* 3. The Perfect Loop */
@keyframes scrollConveyor {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Since the track is exactly 2 identical groups, -50% is a flawless pixel match */
        transform: translateX(-50%); 
    } 
}

.team-member {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden; /* Acts as a strict picture frame to stop bleeding */
    transform: translateZ(0); /* Secondary GPU lock */
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block; /* Kills ghost margins that push content down */
    margin-bottom: 1rem;
    transition: filter 0.4s ease, transform 0.4s ease; 
    
    /* Anti-Flicker Armor */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.team-member:hover img {
    filter: grayscale(0%);
}

.team-member p {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.team-member span {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* THE STATIC AWARDS SECTION */
.awards-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 4rem;
}

/* The Awards Header (Stacked Right) */
.awards-header {
    display: flex;
    flex-direction: column; /* Stacks the text under the heading */
    align-items: flex-end; /* Anchors everything to the far right */
    text-align: right; /* Aligns the actual paragraph text to the right edge */
    margin-bottom: 4rem;
    gap: 1.5rem; /* Tighter gap */
}

.awards-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.awards-text {
    max-width: 400px;
    color: #555555;
    line-height: 1.6;
    margin-top: 0; 
}

.awards-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.awards-grid img {
    height: 60px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.awards-grid img:hover {
    filter: grayscale(0%) opacity(1);
}

/* --- LIGHT THEME NAV OVERRIDES (Matching Contact Page) --- */

/* 1. Turn resting text dark grey */
.light-theme-override .flip-link {
    color: #555555; 
}

/* 2. Turn hover text solid black */
.light-theme-override .flip-link::before {
    color: #050505; 
}

/* 3. Invert the Request a Quote button */
.light-theme-override .nav-btn {
    border-color: #050505;
    color: #050505;
}
.light-theme-override .nav-btn:hover {
    background-color: #050505;
    color: #ffffff;
}

/* 4. Invert the mobile hamburger menu icon */
.light-theme-override .mobile-menu-btn {
    color: #050505;
}

/* 5. Kill the dark scroll overlay from nav.js */
.light-theme-override .navbar.scrolled {
    background: transparent !important; 
    border-bottom: none; 
}

/* ==========================================
   EDITORIAL HIERARCHY - STATIC GRIDS
   ========================================== */

.team-tier-section {
    margin-bottom: 6rem;
}

/* Elegant Section Headings (Centered) */
.tier-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #050505;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(5, 5, 5, 0.1);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the text horizontally */
}

/* Matte Gold Vertical Line Accent */
.tier-heading::before {
    content: '';
    display: inline-block;
    width: 3px;             /* Creates a sleek, thin line */
    height: 1.2rem;         /* Matches the height of the text */
    background-color: #C89B3C;
    margin-right: 12px;
}

/* The HOD Centered Flex Layout */
.team-static-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers all team members */
    gap: 3rem;               /* Slightly wider gap for premium spacing */
}

.team-static-member {
    width: 200px;            /* Locks the width so cards never warp */
}

/* Square portraits for the static grid */
.team-static-member img {
    width: 100%;
    height: 320px; /* 20% taller than the 180px width */
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}


.team-static-member p {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: #050505;
    text-align: center;      /* Centers the member's name */
}

.team-static-member span {
    display: block;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;      /* Centers the member's title */
}

/* Executive Board Modifier */
.team-static-member.exec-member {
    width: 250px; /* 20% wider than standard 180px */
}

.team-static-member.exec-member img {
    height: 350px; /* 40% taller than standard 180px */
}

.team-static-member.exec-member p {
    font-size: 1.2rem; 
}

/* Mobile Breakpoints */
@media (max-width: 1024px) {
    :root { --column-width: 0%; } /* Removes black column on mobile */
    .team-black-column { display: none; }
    
    .team-header, .awards-header { 
        flex-direction: column; 
        align-items: flex-start; 
        text-align: left; /* Ensures the right-aligned awards snap back to left on mobile */
    }
}