/* ============================================================
   FAQ PAGE -- dark "stage" treatment matching page-about.php,
   page-services.php, and page-contact.php. Same visual language:
   one dark panel (--card-public-bg-alt), a single soft
   a soft radial glow top-right (--color-public-main-1/-2/-3), bold heading, eyebrow label.
   Each question gets its own bordered panel (same treatment as
   Services' cards), but the border itself uses --card-public-border
   instead of a plain white-alpha line -- the one brand color defined
   in colors.css that nothing on the site was actually using yet.
   Text-color selectors are scoped under .faq-stage from the start,
   same reasoning as services.css/contact.css: assets/css/main.css's
   .public-main p/.public-main ul/.public-main a are more specific
   than a lone class and will silently win otherwise.
   Loaded only on page-faq.php. */

/* ---- Stage ---- */
.faq-stage {
    position: relative;
    overflow: hidden;
    background: var(--card-public-bg-alt);
    border-radius: 28px;
    padding: 56px 48px 64px;
    margin-top: 24px;
    color: var(--static-page-container-text);
}

.faq-stage-glow {
    position: absolute;
    right: -20%;
    top: -35%;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--color-public-main-1) 45%, transparent) 0%,
        color-mix(in srgb, var(--color-public-main-2) 20%, transparent) 45%,
        var(--color-public-main-3) 75%);
    filter: blur(100px);
    pointer-events: none;
    animation: faq-glow-drift 16s ease-in-out infinite;
}

@keyframes faq-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

.faq-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--public-text-special);
    margin-bottom: 14px;
    position: relative;
}

.faq-stage h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 18px;
    position: relative;
}

.faq-stage .breadcrumbs {
    margin-bottom: 22px;
    position: relative;
}

.faq-stage .breadcrumbs a,
.faq-stage .breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.faq-stage .breadcrumbs a:hover {
    color: #fff;
}

.faq-stage .faq-intro-text {
    max-width: 720px;
    color: var(--static-page-container-text);
    font-size: 18px;
    line-height: 1.7;
    position: relative;
}

/* ---- Questions grid: bordered panels, same style as Services'
   cards, but capped at 3 columns instead of auto-fill -- with 8+
   questions a wide screen could otherwise stretch to 4-5 skinny
   columns, which read worse than a steady 3. Steps down to 2, then 1
   (see the responsive block below) rather than reflowing freely. ---- */
.faq-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.faq-card {
    border: 1px solid var(--card-public-border);
    border-radius: 16px;
    padding: 28px;
    background: var(--card-public-bg);
    transition: transform 0.2s ease, background 0.2s ease;
}

.faq-card:hover {
    transform: translateY(-4px);
    background: var(--card-public-hover-bg);
}

/* Icon + question share a row so the icon centers against the
   question's line specifically (same fix as Contact's info blocks,
   About's pillars, and Services' cards). */
/* Icon now sits above the question, centered, instead of beside it --
   bigger and more of a focal point than the row layout the other
   stage pages use for their icon+heading rows. */
.faq-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 14px;
}

.faq-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--card-public-border) 60%, transparent);
    font-size: 38px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-question {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--card-public-text);
}

.faq-stage .faq-answer {
    margin: 0;
    color: var(--card-public-text);
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Scroll reveal ----
   Progressive enhancement: elements are fully visible by default
   so a JS failure never hides content. assets/js/faq-page.js adds
   .reveal-pending right before it starts observing, then swaps it
   for .is-visible as each element scrolls into view. Same logic as
   about-page.js/services-page.js/contact-page.js. ---- */
[data-reveal] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}

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

@media (prefers-reduced-motion: reduce) {
    .faq-stage-glow {
        animation: none;
    }

    [data-reveal] {
        transition: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .faq-stage {
        padding: 40px 24px 48px;
        border-radius: 20px;
    }

    .faq-stage h1 {
        font-size: 34px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
