/* =============================================
   About Page Styles - Based on Design Images
   ============================================= */

/* -----------------------------------------
   Section 1: Our Philosophy
   ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

.philosophy-section {
    min-height: 100vh;
    background: #5d4a3f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.philosophy-content {
    color: var(--color-white);
}

.philosophy-label {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 400;
}

.philosophy-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-white);
}

/* -----------------------------------------
   Section 2: Brand Values
   ----------------------------------------- */
.brand-values-section {
    padding: 100px 60px 120px;
    background: var(--color-bg);
}

.brand-values-container {
    margin: 0 auto;
}

.brand-values-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-brown);
    margin-bottom: 50px;
    letter-spacing: 0px;
    line-height: 136%;
    letter-spacing: 1px;
}

.brand-values-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Align image with first value item on laptop+ screens */
@media (min-width: 992px) {
    .values-image {
        align-self: start;
        margin-top: 0;
    }

    .values-image img {
        top: 0;
        transform: none;
    }
}

.values-list {
    display: flex;
    flex-direction: column;
}

.value-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.value-item:first-child {
    border-top: 1px solid var(--color-border-light);
}

.value-item.active {
    background: rgba(255, 237, 228, 0.5);
    /* margin: 0 -20px; */
    padding: 24px 20px;
    border-left: 3px solid var(--color-brown);
}

.value-name {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.value-item.active .value-name {
    color: var(--color-brown);
}

.value-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.value-item.active .value-desc {
    color: var(--color-text-soft);
}

.values-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.values-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.values-image img.active {
    opacity: 1;
}

/* Mobile Display for Brand Values */
.values-mobile-display {
    display: none;
}

.values-mobile-text {
    margin-top: 24px;
}

.values-mobile-name {
    font-family: var(--font-sans);
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-brown);
    font-weight: 500;
    margin-bottom: 8px;
}

.values-mobile-desc {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Mobile Display for Brand Values */
.values-mobile-display {
    display: none;
}

.values-mobile-text {
    margin-top: 24px;
}

.values-mobile-name {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-brown);
    font-weight: 500;
    margin-bottom: 8px;
}

.values-mobile-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Mobile Controls for Brand Values */
.values-mobile-controls {
    display: none;
    margin-top: 24px;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

.values-counter,
.team-mobile-counter {
    font-size: 14px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.values-progress,
.team-mobile-progress {
    flex: 1;
    height: 5px;
    background: var(--color-border-light);
    position: relative;
    max-width: 60px;
}

.values-progress-bar,
.team-mobile-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--color-brown);
    transition: width 0.3s ease;
}

/* -----------------------------------------
   Section 3: Meet the Founders & Team
   ----------------------------------------- */

/* Common Team Section Styles */
.team-section-new {
    padding: 100px 60px 120px;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

/* .team-section-founders {
    padding-bottom: 40px;
}

.team-section-members {
    padding-top: 40px;
} */

.team-container-new {
    margin: 0 auto;
}

.team-header-new {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}
.team-header-team{
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}
.team-title-new {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-brown);
    margin-bottom: 50px;
    letter-spacing: 0px;
    line-height: 136%;
    text-transform: uppercase;
}

.team-nav-arrows {
    display: none;
    gap: 12px;
}

.team-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-brown);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-arrow:hover {
    background: var(--color-brown);
    color: #fff;
    border-color: var(--color-brown);
}

.team-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Slider Container */
.team-slider-container {
    overflow: hidden;
    position: relative;
}

/* =========================================
   FOUNDERS SECTION - 2 Cards
   ========================================= */

/* Desktop: Show both founders side by side */
.founders-slider-container {
    overflow: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.founders-slider {
    display: flex;
    transition: transform 0.4s ease;
    touch-action: manipulation;
}

.founder-card {
    flex: 0 0 50%;
    display: flex;
    gap: 24px;
    padding-right: 30px;
    min-width: 50%;
    touch-action: manipulation;
}

/* Team Card Styles */
.team-card {
    display: flex;
    gap: 24px;
}

/* Founder card image: 305x305 */
.founder-card .team-card-image {
    flex: 0 0 305px;
    width: 305px;
    height: 305px;
    aspect-ratio: 1/1;
    background: var(--color-bg);
    overflow: hidden;
}

/* Team member card image: 279x279 */
.member-card .team-card-image {
    flex: 0 0 279px;
    aspect-ratio: 1/1;
    background: var(--color-bg);
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}

.team-card-info {
    display: flex;
    flex-direction: column;
}

.team-card-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-card-role {
    font-size: 18px;
    color: var(--color-brown-dark);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.team-card-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 24px;
    flex: 1;
}

.team-card-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-brown);
    font-weight: 400;
    padding-bottom: 15px;
    align-self: flex-start;
    margin-top: auto;
    position: relative;
    transition: letter-spacing 0.35s ease;
}

.team-card-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #7b4417;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.team-card-link:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}


.link-arrow {
    font-size: 14px;
}

/* =========================================
   TEAM MEMBERS SECTION - 4 Cards Grid
   ========================================= */

/* Desktop: 4-column grid */
.team-grid-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    transition: transform 0.4s ease;
}

/* Match founder card layout on desktop */
.member-card {
    /* flex: 0 0 50% */
    display: flex;
    flex-direction: column;
}

/* Match founder card image size: 305x305 */
.member-card .team-card-image {
    flex: 0 0 305px;
    width: 305px;
    height: 305px;
    background: var(--color-bg) !important;
}

.member-card .team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card .team-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    padding-right: 40px;
}

.member-card .team-card-name {
    font-size: 24px;
    margin-bottom: 6px;
}

.member-card .team-card-role {
    margin-bottom: 0;
}

/* Mobile controls hidden by default */
.team-mobile-controls-wrapper {
    display: none;
}
/* Tablet: Show 2 team members with arrows */
@media (max-width: 1200px) {
    .team-slide-pair {
        gap: 40px;
    }

    .team-card-image {
        flex: 0 0 180px;
    }

    /* Team members: 2 columns on tablet */
    .team-grid-members {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Show arrows for team section on tablet */
    .team-section-members .team-nav-arrows {
        display: flex;
    }

    /* Transform grid to slider on tablet */
    .team-section-members .team-slider-wrapper {
        overflow: hidden;
    }

    .team-grid-members {
        display: flex;
        gap: 0;
        flex-wrap:nowrap; 
        transition: transform 0.4s ease;
    }

    .member-card {
        flex: 0 0 50%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .team-section-new {
        padding: 60px 40px;
    }

    .team-slide-pair {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Member cards stack on tablet */
    .member-card {
        flex-direction: column;
    }

    .member-card .team-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }

    .member-card .team-card-info {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .team-section-new {
        padding: 60px 24px;
    }

    .team-container-new {
        position: relative;
    }

    .team-title-new {
        font-size: 20px;
        font-family: var(--font-serif);
        letter-spacing: 1px;
        margin-bottom: 0 !important;
    }

    /* Show arrows next to title for both sections on mobile */
    .team-section-founders .team-nav-arrows,
    .team-section-members .team-nav-arrows {
        display: flex;
        gap: 8px;
    }

    .team-section-founders .team-arrow,
    .team-section-members .team-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Mobile: Show only one card at a time with swipe */
    .team-slider-container {
        overflow: hidden;
        touch-action: pan-y;
    }

    .team-slider-new {
        display: flex;
        width: 100%;
    }

    .team-slide-pair {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        flex: 0 0 100%;
    }

    /* Show only first card by default */
    /* Show only one card within each slide pair on mobile */
    .team-slide-pair .team-card {
        display: none;
    }

    .team-slide-pair .team-card:first-child {
        display: flex;
    }

    /* When show-second class is added, show second card instead */
    .team-slide-pair.show-second .team-card:first-child {
        display: none !important;
    }

    .team-slide-pair.show-second .team-card:last-child {
        display: flex !important;
    }

    .team-card {
        flex-direction: column;
        gap: 0;
        width: 100%;
        animation: fadeCard 0.3s ease;
    }

    @keyframes fadeCard {
        from { opacity: 0.7; }
        to { opacity: 1; }
    }

    .team-card-image {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 1/1;
        background: #c4c4c4;
        margin-bottom: 24px;
    }

    .team-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .team-card-info {
        padding: 0;
    }

    .team-card-name {
        font-size: 22px;
        font-family: var(--font-serif);
        font-weight: 400;
        letter-spacing: 0.5px;
        color: #000;
        margin-bottom: 8px;
    }

    .team-card-role {
        font-size: 13px;
        color: var(--color-brown-light);
        margin-bottom: 20px;
    }

    .team-card-bio {
        font-size: 14px;
        line-height: 1.7;
        color: #666;
        margin-bottom: 24px;
        /* Show full bio */
        display:none;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .team-card-link {
        font-size: 12px;
        letter-spacing: 1.5px;
        gap: 12px;
    }

    /* =========================================
       MOBILE: Founders Section - Static grid layout
       ========================================= */
    .team-section-founders .founders-slider-container {
        overflow: visible;
        width: 100%;
    }

    .team-section-founders .founders-slider {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .team-section-founders .founder-card {
        flex: none;
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 0;
        flex-direction: column;
    }

    /* Mobile: Founder image square aspect ratio */
    .team-section-founders .founder-card .team-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-height: none;
        margin-bottom: 12px;
    }

    .team-section-founders .founder-card .team-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Mobile: Founder info styling */
    .team-section-founders .founder-card .team-card-info {
        padding: 0;
    }

    .team-section-founders .founder-card .team-card-name {
        font-size: 14px;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .team-section-founders .founder-card .team-card-role {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* Mobile: Show KNOW MORE link for founders */
    .team-section-founders .founder-card .team-card-link {
        display: inline-flex;
        font-size: 11px;
        letter-spacing: 1px;
        margin-top: 8px;
    }

    /* Mobile: Hide founders navigation */
    .team-section-founders .founders-mobile-controls,
    .team-section-founders .team-nav-arrows {
        display: none !important;
    }

    /* =========================================
       MOBILE: Team Members Section - Static grid layout
       ========================================= */
    .team-section-members .team-slider-wrapper {
        overflow: visible;
        width: 100%;
    }

    .team-section-members .team-grid-members {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
        width: 100%;
        transform: none !important;
    }

    .team-section-members .member-card {
        flex: none;
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 0;
        flex-direction: column;
    }

    /* Mobile: Team member image - square aspect ratio */
    .team-section-members .member-card .team-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-height: none;
        margin-bottom: 12px;
    }

    .team-section-members .member-card .team-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Mobile: Show team member info like founders section */
    .team-section-members .member-card .team-card-info {
        display: block;
        padding: 0;
    }

    .team-section-members .member-card .team-card-name {
        font-size: 14px;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .team-section-members .member-card .team-card-role {
        font-size: 16px;
        margin-bottom: 0;
    }

    /* Mobile: Hide team navigation controls */
    .team-section-members .team-mobile-controls,
    .team-section-members .team-nav-arrows,
    .team-section-founders .founders-mobile-controls,
    .team-section-founders .team-nav-arrows {
        display: none !important;
    }

    .founders-counter,
    .team-counter {
        font-size: 14px;
        color: var(--color-text-muted);
    }

    .founders-progress,
    .team-progress {
        width: 40px;
        height: 8px;
        border: 1px solid var(--color-border);
        background: transparent;
        position: relative;
    }

    .founders-progress-bar,
    .team-progress-bar {
        height: 100%;
        background: var(--color-brown);
        transition: width 0.3s ease;
    }

    /* Mobile controls wrapper - match reference */
    .team-mobile-controls-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid var(--color-border-light);
    }

    .team-mobile-counter {
        font-size: 14px;
        color: var(--color-text-muted);
        font-family: var(--font-sans);
    }

    /* Mobile progress bar - small black rectangle */
    .team-mobile-progress {
        width: 40px;
        height: 8px;
        border: 1px solid var(--color-border);
        background: transparent;
        position: relative;
    }

    .team-mobile-progress-bar {
        height: 100%;
        background: var(--color-brown);
        transition: width 0.3s ease;
    }
}

/* Carousel Viewport */
.team-carousel-viewport {
    position: relative;
    overflow: hidden;
}

.team-carousel-viewport:hover .team-carousel-nav {
    opacity: 1;
    visibility: visible;
}

/* Team Slider */
.team-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-slide {
    flex: 0 0 100%;
    display: flex;
    gap: 60px;
    padding: 0 40px;
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.team-slide.active {
    opacity: 1;
    transform: scale(1);
}

.team-slide-image {
    flex: 0 0 320px;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #ffe8dc 0%, #ffd5c2 50%, #ffc4a8 100%);
    overflow: hidden;
}

.team-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.slide-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.slide-role {
    font-size: 13px;
    color: var(--color-brown-light);
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slide-bio {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.slide-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brown);
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-brown);
    align-self: flex-start;
    transition: gap 0.3s ease;
}

.slide-link:hover {
    gap: 24px;
}

.slide-link .arrow {
    font-size: 16px;
}

/* Navigation Arrows */
.team-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-brown);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.team-carousel-nav:hover {
    background: var(--color-brown);
    color: #fff;
    border-color: var(--color-brown);
}

.team-carousel-nav.prev {
    left: 0;
}

.team-carousel-nav.next {
    right: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .team-section-2 {
        padding: 60px 40px;
    }

    .team-slide {
        flex-direction: column;
        gap: 30px;
    }

    .team-slide-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        aspect-ratio: 3/4;
    }

    .slide-name {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .team-section-2 {
        padding: 40px 20px;
    }

    .team-carousel-header {
        margin-bottom: 30px;
    }

    .team-title {
        font-size: 18px;
    }

    .team-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
        opacity: 1;
        visibility: visible;
    }

    .team-slide {
        padding: 0 20px;
    }

    .slide-name {
        font-size: 20px;
    }

    .slide-bio {
        font-size: 13px;
    }
}

/* -----------------------------------------
   Team Member Popup Modal
   ----------------------------------------- */
.team-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 240, 233, 0.98);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.team-modal.active {
    display: flex;
}

.team-modal-content {
    max-width: 600px;
    width: 100%;
    background: transparent;
    position: relative;
}

.team-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-brown);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-modal-close:hover {
    transform: rotate(90deg);
}

.team-modal-body {
    text-align: center;
    padding: 40px 20px;
}

.team-modal-image {
    width: 280px;
    height: 360px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, #ffe8dc 0%, #ffd5c2 50%, #ffc4a8 100%);
    overflow: hidden;
}

.team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-brown);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-modal-role {
    font-size: 14px;
    color: var(--color-brown-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.team-modal-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-soft);
    max-width: 480px;
    margin: 0 auto;
}

/* -----------------------------------------
   Team Detail Panel (Slide from right)
   ----------------------------------------- */
.panel--team {
    right: 0;
    width: 100%;
    max-width: 500px;
    padding: 48px 40px;
    overflow-y: auto;
    background: #fefefe;
    transform: translateX(100%);
    transition: transform var(--transition-panel);
    z-index: 1001;
}

.panel--team.is-open {
    transform: translateX(0);
}

/* Team Panel Backdrop with blur */
.team-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.team-panel-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}


.team-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.team-detail-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-brown);
    letter-spacing: 0.5px;
}

.team-detail-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.team-detail-image {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 400px;
    background: var(--color-bg);
    overflow: hidden;
}

.team-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-detail-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 00;
    color: #000;
    letter-spacing: 0.5px;
}

.team-detail-role {
    font-size: 18px;
    color: var(--color-brown-light);
    font-weight: 200;
    letter-spacing: 1px;
}

.team-detail-bio {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-top: 16px;
}

/* Mobile Responsive Team Panel */
@media (max-width: 768px) {
    .panel--team {
        max-width: 100%;
        padding: 56px 20px 24px;
    }

    .team-detail-header h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .team-detail-header .panel-close {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 20px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.05);
        border-radius: 50%;
    }

    .team-detail-image {
        aspect-ratio: 1/1;
        max-height: 300px;
    }

    .team-detail-name {
        font-size: 20px;
    }

    .team-detail-role {
        font-size: 16px;
    }

    .team-detail-bio {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .panel--team {
        padding: 52px 16px 20px;
    }

    .team-detail-header h2 {
        font-size: 18px;
    }

    .team-detail-image {
        max-height: 250px;
    }

    .team-detail-name {
        font-size: 18px;
    }
}

/* -----------------------------------------
   Section 4: About the Company
   ----------------------------------------- */
.about-company-section {
    padding: 100px 60px 120px;
    background: var(--color-bg);
    border-bottom: 1px solid #653d2240;
}

.about-company-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-company-label {
    display: block;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-serif);
    color: var(--color-brown);
    margin-bottom: 30px;
    font-weight: 500;
}

.about-company-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
}

.about-company-columns p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-brown);
    font-weight: 400;
}

.about-company-video {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.about-company-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------
   Responsive Styles
   ----------------------------------------- */
@media (max-width: 1200px) {
    .brand-values-content {
        gap: 40px;
    }

    .team-member {
        flex: 0 0 340px;
    }

    .about-company-container {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .brand-values-section,
    .team-section,
    .about-company-section {
        padding: 80px 40px;
    }

    .brand-values-content {
        grid-template-columns: 1fr;
    }

    .values-image {
        aspect-ratio: 16/9;
        max-height: 400px;
    }

    .team-member {
        flex: 0 0 300px;
    }

    .about-company-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-company-text {
        order: 1;
    }

    .about-company-video {
        order: 2;
    }
}

@media (max-width: 768px) {
    .philosophy-section {
        min-height: 80vh;
        padding: 60px 24px;
    }

    .philosophy-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .brand-values-section,
    .team-section,
    .about-company-section {
        padding: 60px 24px;
    }

    .brand-values-title,
    .team-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    /* Brand Values Mobile */
    .values-list {
        display: none;
    }

    .values-image {
        aspect-ratio: 4/3;
    }

    .values-mobile-display {
        display: block;
    }

    .values-mobile-controls {
        display: flex;
        justify-content: space-between;
    }

    /* Team Section Mobile */
    .team-header {
        margin-bottom: 30px;
    }

    .team-scroll-bar {
        width: 60px;
    }

    .team-member {
        flex: 0 0 260px;
    }

    .team-member-image {
        aspect-ratio: 1/1.2;
    }

    .member-name {
        font-size: 16px;
    }

    .member-role {
        font-size: 12px;
    }

    .member-bio-short {
        font-size: 13px;
    }

    /* Modal Mobile */
    .team-modal {
        padding: 20px;
    }

    .team-modal-close {
        top: -30px;
        right: 0;
    }

    .team-modal-image {
        width: 200px;
        height: 260px;
        margin-bottom: 30px;
    }

    .team-modal-name {
        font-size: 20px;
    }

    .team-modal-bio {
        font-size: 14px;
    }

    /* About Company Mobile */
    .about-company-label {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .about-company-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-company-columns p {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 480px) {
    .philosophy-label {
        font-size: 10px;
    }

    .values-counter,
    .founders-counter {
        font-size: 15px;
    }

    .team-scroll-bar {
        width: 50px;
    }

    .team-member {
        flex: 0 0 220px;
    }
}

/* -----------------------------------------
   Animation Classes
   ----------------------------------------- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-image.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Common slider support */
.team-slider-container{
    overflow:hidden;
    position:relative;
}

.founders-slider,
.team-grid-members{
    display:flex;
    transition:transform .45s cubic-bezier(.4,0,.2,1);
    will-change:transform;
    touch-action:pan-y;
}

/* Desktop layout - Show 2 cards side by side like Founders section */
@media (min-width:1201px){

    .team-section-members .team-grid-members{
        display: flex;
        gap: 24px;
        justify-content: center;
        transform: none !important;
    }

    /* .team-section-members .member-card{
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    } */
}

/* Tablet slider */
@media (max-width:1200px){

    .team-section-members .team-grid-members{
        display:flex;
        flex-wrap:nowrap;
    }

    .team-section-members .member-card{
        /* flex:0 0 50%; */
        min-width:50%;
    }
}

/* Mobile slider */
@media (max-width:768px){

    .team-section-members .member-card,
    .team-section-founders .founder-card{
        flex:0 0 100%;
        min-width:100%;
    }
}

/* Brand values mobile arrows */
.values-mobile-controls{
    align-items:center;
}

.values-prev,
.values-next{
    width:32px;
    height:32px;
    font-size:14px;
}

@media (min-width:769px){
    .values-prev,
    .values-next{
        display:none;
    }
}
.brand-values-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:32px;
}

.values-nav-arrows{
    display:none;
    gap:8px;
}

.values-arrow,
.values-prev,
.values-next{
    width:36px;
    height:36px;
    border:1px solid var(--color-border);
    background:transparent;
    color:var(--color-brown);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
}

.values-prev:hover,
.values-next:hover{
    background:var(--color-brown);
    color:#fff;
}
@media(max-width:768px){

    .values-nav-arrows{
        display:flex;
    }

}

/* Arrow order: prev on left, next on right */


.values-prev {
    order: 1;
}

.values-next {
    order: 2;
}