/* =========================================
   FAQ Page: Glass Layout
   ========================================= */

.faq-page-layout {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 3rem 3rem;
    gap: 2.5rem;
    min-height: 100vh;
}

/* =========================================
   FAQ Page: Hero Text
   ========================================= */

.faq-hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-text-on-dark);
    margin-top: 6rem;
    margin-bottom: 4rem;
}

.faq-hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-on-dark);
    margin: 0 0 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

.faq-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-light-brown-drab);
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   FAQ Card
   ========================================= */

.faq-card {
    width: 700px !important;
    max-height: none;
    overflow-y: visible;
}

/* =========================================
   FAQ Items (accordion)
   ========================================= */

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

.faq-item {
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-answer {
    margin-top: 0.75rem;
    padding-left: 0.25rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.faq-answer * {
    background-color: transparent !important;
    color: inherit !important;
}

.faq-answer p {
    margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* =========================================
   FAQ: Mobile Layout (full-bleed scroll-reveal)
   ========================================= */

@media (max-width: 768px) {
    /* Override glass-page flex */
    .glass-page.faq-page-layout {
        display: block;
        position: relative;
        min-height: auto;
        padding: 0;
        gap: 0;
    }

    /* Background becomes a static 100vh hero block */
    .faq-page-layout .glass-bg {
        position: relative;
        inset: unset;
        height: 100vh;
        height: 100svh;
        will-change: auto;
        z-index: 0;
    }

    .faq-page-layout .glass-bg-image {
        height: 100%;
    }

    .faq-page-layout .glass-bg-overlay {
        height: 100%;
    }

    /* Hero text: absolutely centered over the full-bleed image */
    .faq-hero-text {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100svh;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 1.5rem;
        text-align: center;
    }

    .faq-hero-title {
        font-size: 3rem;
    }

    .faq-hero-subtitle {
        font-size: 1.5rem;
    }

    /* Animated scroll hint */
    .faq-hero-text::after {
        content: '↓';
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(238, 226, 200, 0.55);
        font-size: 1.4rem;
        animation: faq-scroll-hint 2s ease-in-out infinite;
    }

    @keyframes faq-scroll-hint {
        0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
        50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
    }

    /* FAQ card: full width below the image */
    .faq-page-layout .faq-card {
        width: calc(100% - 2rem) !important;
        max-height: none !important;
        margin: 2rem auto 3rem !important;
    }
}
