/* ==========================================================================
   css/pages/faq.css
   CONTEXT: The Structural Data Vault (Redesign)
   ========================================================================== */

/* --- 1. HERO SECTION --- */
.faq-hero {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 80px;
    background-color: var(--bg-color);
}

.mono-label {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero-line {
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.15);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
.hero-line::after {
    content: ''; position: absolute; top:0; left:0;
    width: 20%; height: 100%; background: var(--accent);
    animation: scan 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes scan { 0% { left: -20%; } 100% { left: 100%; } }


/* --- 2. VAULT LAYOUT (Split Screen) --- */
.faq-vault-section {
    padding-bottom: 200px;
    background-color: var(--bg-color);
}

.vault-grid {
    display: grid;
    grid-template-columns: 400px 1fr; /* Fixed visual width, fluid content */
    gap: 100px;
    align-items: start;
}

/* --- LEFT COLUMN: Sticky Visuals --- */
.vault-col-left {
    position: relative;
    height: 100%;
}

.sticky-anchor {
    position: sticky;
    top: 140px; /* Below header */
    width: 100%;
}

.vault-label {
    font-size: 3rem;
    line-height: 0.9;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.vault-visual {
    width: 100%;
    aspect-ratio: 2.5/5;
    background: #111;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.vault-visual img {
    filter: grayscale(100%) contrast(1.2) brightness(0.6);
    transition: filter 0.5s ease;
}
.faq-vault-section:hover .vault-visual img {
    filter: grayscale(0%) contrast(1) brightness(0.8);
}

.visual-scan-line {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 2px;
    background: rgba(255, 102, 0, 0.5);
    z-index: 10;
    box-shadow: 0 0 20px var(--accent);
    animation: scanDown 6s linear infinite;
}
@keyframes scanDown { 0% { top: -10%; } 100% { top: 110%; } }

.vault-meta {
    margin-top: 20px;
    display: flex; justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}


/* --- RIGHT COLUMN: The Specifications (Accordions) --- */
.vault-col-right {
    padding-top: 20px;
}

.spec-item {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.3s ease;
}

.spec-header {
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

/* The Massive Number */
.spec-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    margin-right: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The Question */
.spec-question {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    flex-grow: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

/* The Mechanical Toggle */
.spec-toggle {
    width: 20px; height: 20px;
    position: relative;
    margin-left: 20px;
}
.toggle-line {
    position: absolute;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}
.toggle-line.h { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.toggle-line.v { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }


/* --- INTERACTIONS --- */

/* Hover State */
.spec-item:hover .spec-num {
    -webkit-text-stroke-color: #fff;
    opacity: 1;
}
.spec-item:hover .spec-question { color: var(--text-muted); }

/* Active (Open) State - Toggled via JS */
.spec-item.active .spec-num {
    color: var(--accent);
    -webkit-text-stroke: 0;
}
.spec-item.active .spec-question {
    color: var(--accent);
}
.spec-item.active .toggle-line.v {
    transform: translateX(-50%) rotate(90deg); /* Turns into minus */
}
.spec-item.active .toggle-line.h {
    background: var(--accent);
}
.spec-item.active .toggle-line.v {
    background: var(--accent);
}


/* --- THE REVEAL CONTENT (CSS Grid Animation) --- */
.spec-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-content {
    overflow: hidden;
    padding-left: calc(4rem + 40px); /* Align with text, not number */
    padding-right: 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.spec-item.active .spec-body {
    grid-template-rows: 1fr;
    padding-bottom: 40px;
}
.spec-item.active .spec-content {
    opacity: 1;
    transform: translateY(0);
}
.spec-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .vault-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .sticky-anchor {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: end;
    }
    .vault-visual { aspect-ratio: 16/9; }
    .vault-label { margin-bottom: 0; font-size: 2.5rem; }
    
    .spec-header { padding: 30px 0; }
    .spec-num { font-size: 3rem; margin-right: 20px; }
    .spec-question { font-size: 1.2rem; }
    .spec-content { padding-left: 0; }
}

@media (max-width: 768px) {
    .sticky-anchor { grid-template-columns: 1fr; }
    .vault-meta { display: none; }
    
    .spec-num { font-size: 2rem; width: 40px; margin-right: 15px; }
    .spec-content { padding-left: 0; }
}