/* ==========================================
   FAQ SECTION (Editorial Theme)
   ========================================== */
.faq-section {
    background-color: var(--color-bg-light);
    color: var(--color-accent-black);
    padding: var(--spacing-section) 5%;
    
    /* ADDED: Forces the section to slide OVER the sticky hero */
    position: relative;
    z-index: 10; 
}

.faq-container {
    display: flex;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-container.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* --- Left Column --- */
.faq-left {
    flex: 0 0 35%;
    position: sticky;
    top: 15vh; /* Sticks comfortably below the header */
}

.faq-left h2 {
    font-size: var(--font-h2);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.faq-contact-card {
    padding: 0 0 0 1.5rem; 
    border-left: 2px solid #8B0000; /* Deep red architectural line */
    margin-top: 3rem;
}

.faq-contact-card p {
    color: var(--color-text-light); 
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- Right Column --- */
.faq-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- MINIMALIST FILTER TABS --- */
.faq-tabs {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
}

.faq-tab {
    background: transparent;
    border: none;
    color: var(--color-text-light); 
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 1rem 0;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-tab:hover,
.faq-tab.active {
    color: var(--color-accent-black);
}

.faq-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #8B0000; /* Deep red active tab underline */
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-tab.active::after {
    width: 100%; 
}

/* --- Accordion Container & Items --- */
.faq-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- The Editorial Question --- */
.faq-question {
    font-family: 'Playfair Display', serif; /* Inherits the premium serif font */
    background: transparent;
    color: var(--color-accent-black); 
    border: none;
    width: 100%;
    text-align: left;
    padding: 2rem 0;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-icon {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Active States */
.faq-item.active .faq-question {
    color: #8B0000; /* Question turns deep red */
}

.faq-item.active .faq-icon {
    color: #8B0000; 
    transform: rotate(45deg); /* Turns the '+' into an 'x' */
}

/* Hidden Answer State */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--color-text-main); 
    line-height: 1.6;
}

.faq-answer p {
    padding-bottom: 2rem;
    padding-right: 2rem; 
    font-size: 1.05rem;
    margin: 0;
}

/* --- CROSS-FADE & STAGGER STATES (Triggered by JS) --- */
.faq-item.hiding { opacity: 0; transform: translateY(10px); }
.faq-item.showing { opacity: 1; transform: translateY(0); }
.faq-item.pending { opacity: 0; transform: translateY(15px); }

/* --- Mobile Responsive Layout --- */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
        gap: 0; 
    }
    
    .faq-left, .faq-right {
        display: contents;
    }

    .faq-left h2, .faq-left .hero-kicker, .faq-left .editorial-divider {
        order: -1 !important;
        text-align: center !important;
        width: 100%;
    }
    
    .faq-left .editorial-divider {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Swipeable Tabs for Mobile */
    .faq-tabs {
        order: 2;
        margin-top: 2rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
        padding-bottom: 2px; 
    }

    .faq-tabs::-webkit-scrollbar { display: none; }
    .faq-tab { white-space: nowrap; flex-shrink: 0; }
    .faq-accordion { order: 3; }
    
    .faq-contact-card {
        order: 4;
        margin-top: 4rem; 
        margin-bottom: 2rem;
    }
}