/* ═══════════════════════════════════════════
   LEADERS SECTION STYLES
   ═══════════════════════════════════════════ */

/* Hero area */
.leaders-hero {
    background-color: var(--background);
    padding-top: 100px;
    padding-bottom: 30px;
}

.leaders-hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 max(24px, 4vw);
    width: 100%;
}

.leaders-hero-tag {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 24px;
    display: inline-block;
}

.leaders-hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(48px, 6.5vw, 84px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.leaders-hero-subheading {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: var(--muted);
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Leaders Section Layout */
.leaders-section {
    background-color: var(--background);
    position: relative;
    padding-bottom: 120px;
}

.leaders-container {
    display: flex;
    justify-content: space-between;
    gap: 5%;
    padding: 0 max(24px, 4vw);
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Left side sticky portrait */
.leaders-portrait-col {
    width: 38%;
    position: relative;
}

.portrait-frame {
    position: sticky;
    top: 140px;
    width: 100%;
}

.portrait-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 Aspect Ratio */
    overflow: hidden;
    background-color: rgba(17, 17, 16, 0.03);
    border: 1px solid rgba(17, 17, 16, 0.05);
}

.leader-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    /* Transition is managed entirely by GSAP dynamically in leaders.js */
}

.leader-img.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Right side list grid */
.leaders-list-col {
    width: 57%;
}

.leaders-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.leaders-column {
    display: flex;
    flex-direction: column;
}

.leader-row {
    position: relative;
    padding-top: 32px;
    cursor: pointer;
}

.leader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.leader-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leader-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 300;
    color: var(--text);
    transition: color 0.3s ease;
    line-height: 1.2;
}

.leader-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    transition: color 0.3s ease;
}

/* Accordion Toggle Plus/Minus */
.accordion-toggle {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    outline: none;
}

.toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

/* Horizontal line */
.toggle-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 1.5px;
}

/* Vertical line */
.toggle-icon::after {
    top: 0;
    left: 7px;
    width: 1.5px;
    height: 16px;
}

/* Active styles */
.leader-row.active .leader-name {
    color: var(--secondary);
}

.leader-row.active .leader-title {
    color: var(--text);
}

.leader-row.active .toggle-icon::before {
    transform: rotate(180deg);
    background-color: var(--secondary);
}

.leader-row.active .toggle-icon::after {
    transform: rotate(90deg) scaleY(0);
    background-color: var(--secondary);
}

/* Bio Content Wrapper */
.leader-bio-wrapper {
    height: 0;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-bio-content {
    padding-top: 16px;
    padding-bottom: 8px;
    padding-right: 40px;
}

.leader-bio-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4840;
}

/* Row Divider */
.leader-row-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(17, 17, 16, 0.1);
    margin-top: 32px;
    transform-origin: left;
    will-change: transform;
}

/* Hover effect */
.leader-row:hover .leader-name {
    color: var(--secondary);
}

/* Active Page Style in Navbar */
.nav-links a.active {
    color: var(--secondary);
    border-bottom: 1px solid var(--secondary);
}




/* ═══════════════════════════════════════════
   RESPONSIVE LAYOUTS
   ═══════════════════════════════════════════ */

/* Mobile Image Wrapper — hidden on desktop */
.leader-mobile-img-wrapper {
    display: none;
}

@media (max-width: 968px) {
    .leaders-hero {
        padding-top: 80px;
        padding-bottom: 20px;
    }

    .leaders-hero-container {
        padding: 0 24px;
    }

    .leaders-container {
        flex-direction: column;
        padding: 0 24px;
        gap: 0;
    }

    /* Hide desktop portrait column completely on mobile */
    .leaders-portrait-col,
    .portrait-frame {
        display: none;
    }

    .leaders-list-col {
        width: 100%;
    }

    .leaders-list-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .leader-bio-content {
        padding-right: 0;
    }

    /* Show and style mobile image accordion block */
    .leader-mobile-img-wrapper {
        display: block;
        width: 100%;
        position: relative;
        padding-bottom: 133.33%; /* 3:4 Aspect Ratio */
        margin-top: 16px;
        margin-bottom: 8px;
        overflow: hidden;
        background-color: rgba(17, 17, 16, 0.03);
        border: 1px solid rgba(17, 17, 16, 0.05);
    }

    .leader-mobile-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        
        /* Animates on hover/active state when row is open */
        opacity: 0;
        transform: scale(1.05);
        transition: 
            opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .leader-row.active .leader-mobile-img {
        opacity: 1;
        transform: scale(1);
    }
}
