/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║   MISSION AUTO GLASS — PREMIUM FAQ ARCHITECTURE                              ║
   ║   Target: Absolute Visual Perfection & UX Clarity                            ║
   ║   Version: MAX_CAPACITY_01                                                   ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */
/* ═══════════════════════════════════════════════════════════════════════════════
   1. GLOBAL PAGE CONFIGURATION
   Establishes the surface baseline and typographic rhythm.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq {
    /* distinct off-white surface to separate this page from generic content pages */
    background-color: #F8FAFC;
    background-image: radial-gradient(at 0% 0%, rgba(24, 48, 117, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 28, 36, 0.03) 0px, transparent 50%);
    background-attachment: fixed;

    /* Enforce vertical rhythm */
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2. COMPONENT: BREADCRUMB ELEVATION
   Moves breadcrumbs from "utility text" to "navigation UI".
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq .breadcrumb {
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0;
    background: transparent;
    border-bottom: none;
}

.page-faq .breadcrumb ol {
    background: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    font-size: var(--text-xs);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: var(--weight-bold);
    color: var(--text-muted);
}

.page-faq .breadcrumb a {
    color: var(--color-brand-blue);
    transition: color 0.2s ease;
}

.page-faq .breadcrumb a:hover {
    color: var(--color-brand-red);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. COMPONENT: THE HERO STAGE
   Solves "unaligned content" by creating a strong central anchor.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq .section-hero {
    position: relative;
    text-align: center;
    padding: var(--space-20) 0 var(--space-24);
    margin-bottom: var(--space-12);

    /* Premium Gradient: Blue to Dark Blue with a subtle angle */
    background: linear-gradient(160deg, var(--color-brand-blue) 0%, #0a1638 100%);
    overflow: hidden;
    color: white;

    /* Create depth */
    box-shadow: 0 20px 40px -10px rgba(24, 48, 117, 0.3);
}

/* Decorative background element (Abstract Glass Shard) */
.page-faq .section-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: rotate(25deg);
    pointer-events: none;
}

.page-faq .section-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);

    /* Massive, confident type */
    font-weight: 800;

    /* Black weight */
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: white;

    /* Text Shadow for legibility against gradient */
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-faq .hero-lead {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 68ch;

    /* Optimal reading width (60-75 chars) */
    margin-inline: auto;

    /* Perfect centering */
    margin-bottom: var(--space-8);
}

/* Hero Links styling */
.page-faq .hero-lead a {
    color: var(--color-brand-gold);
    border-bottom: 2px solid rgba(255, 193, 7, 0.4);
    transition: all 0.2s ease;
}

.page-faq .hero-lead a:hover {
    color: white;
    border-bottom-color: white;
    background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   4. COMPONENT: SECTION HEADERS
   Creates visual breaks between FAQ categories.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq .section-faq-group h2 {
    text-align: center;
    font-size: var(--text-2xl);
    color: var(--color-brand-blue-dark);
    font-weight: 700;
    margin-top: var(--space-12);
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

/* The "Love" - a decorative accent below headers */
.page-faq .section-faq-group h2::after {
    content: "";
    width: 40px;
    height: 4px;
    background: var(--color-brand-red);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   5. COMPONENT: THE FAQ CARD STACK
   Transforms static text into interactive UI objects.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);

    /* Rhythm between cards */
    max-width: 860px;

    /* Tighter container for the cards */
    margin-inline: auto;

    /* Center the stack */
    padding: 0 var(--gutter);
}

.faq-item {
    position: relative;
    background: white;
    padding: var(--space-8) var(--space-10);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);

    /* Clean, elevated shadow */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;

    /* For the accent bar */
}

/* Hover State: The card physically lifts */
.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(24, 48, 117, 0.1);
}

/* Accent Bar on Hover (The "Love") */
.faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-brand-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

/* Typography for the Question */
.faq-item h3 {
    font-size: 1.35rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-4);
    font-weight: 700;
    padding-left: 2rem;

    /* Make room for the Q icon */
    position: relative;
}

/* Decorative 'Q' Icon */
.faq-item h3::before {
    content: "?";
    position: absolute;
    left: 0;
    top: 0;
    height: 24px;
    width: 24px;
    background: rgba(236, 28, 36, 0.1);

    /* Red tint */
    color: var(--color-brand-red);
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Typography for the Answer */
.faq-item p {
    font-size: 1.05rem;
    color: var(--color-neutral-600);
    line-height: 1.75;
    padding-left: 2rem;

    /* Align with question text */
    margin: 0;
}

.faq-item strong {
    color: var(--color-brand-blue);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   6. COMPONENT: CTA FOOTER STRIP
   Fixes "Buttons Stretch" and "Alignment" issues.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq .section-cta {
    margin-top: var(--space-24);
    padding: var(--space-16) 0;
    background: white;
    border-top: 1px solid var(--border);
    text-align: center;
}

.page-faq .section-cta h2 {
    font-size: 2rem;
    color: var(--color-brand-blue-dark);
    margin-bottom: var(--space-4);
}

.page-faq .section-cta p {
    font-size: 1.25rem;
    color: var(--color-neutral-500);
    margin-bottom: var(--space-8);
}

.page-faq .section-cta a {
    color: var(--color-brand-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.page-faq .section-cta a:hover {
    color: var(--color-brand-red);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   7. COMPONENT: PRE-FOOTER (The Blue Strip)
   Fixes the "stretched buttons" specifically.
   ═══════════════════════════════════════════════════════════════════════════════ */
.page-faq .prefooter-cta {
    text-align: center;

    /* Ensure text is centered */
}

.page-faq .prefooter-inner {
    /* Use flexbox to center content vertically and horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.page-faq .prefooter-content {
    max-width: 600px;
    margin: 0 auto;
}

.page-faq .prefooter-actions {
    /* CRITICAL FIX: Prevent buttons from stretching */
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
}

/* Enforce intrinsic button width */
.page-faq .btn,
.page-faq .btn-primary,
.page-faq .btn-phone {
    flex: 0 0 auto;

    /* Do not grow, do not shrink */
    min-width: 180px;

    /* Standardize width */
    max-width: 300px;
    width: auto !important;

    /* Override any block-width utility */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   8. RESPONSIVE REFLOW
   Maintains the "tabulous" look on mobile without breaking layout.
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Relax padding on mobile */
    .page-faq .section-hero {
        padding: var(--space-16) var(--gutter);
    }

    .page-faq .section-hero h1 {
        font-size: 2.5rem;
    }

    .faq-item {
        padding: var(--space-6);
    }

    /* Remove the indent on mobile to maximize space */
    .faq-item h3,
        .faq-item p {
        padding-left: 0;
    }

    /* Hide the '?' icon on very small screens to save space */
    .faq-item h3::before {
        display: none;
    }

    /* Stack buttons vertically on small mobile, but keep them centered */
    .page-faq .prefooter-actions {
        flex-direction: column;
        align-items: center;
    }

    .page-faq .btn,
        .page-faq .btn-primary,
        .page-faq .btn-phone {
        width: 100% !important;

        /* Allow full width only on tiny screens for touch targets */
        max-width: 350px;
    }
}