/* ============================================================
   LUX4RIDES — FAQ Knowledge Hub styles  (/faq/)
   Namespaced .faq-* — no global collisions.
   Matches the live design system: black #0a0a0a, gold #c9a44a
   accents, #FFA500→#FFD700 CTA gradient, Playfair Display
   headings, Montserrat/Inter body. Mobile-first.
   ============================================================ */

.faq-page {
    --faq-gold: #c9a44a;
    --faq-gold-light: #dfc06e;
    --faq-bg: #0a0a0a;
    --faq-card: #111113;
    --faq-border: rgba(201, 164, 74, 0.16);
    --faq-border-soft: rgba(255, 255, 255, 0.08);
    --faq-text: #f5f5f0;
    --faq-muted: rgba(255, 255, 255, 0.72);
    --faq-subtle: rgba(255, 255, 255, 0.55);
    --faq-display: 'Playfair Display', Georgia, serif;
    --faq-body: 'Montserrat', 'Inter', -apple-system, sans-serif;
    --faq-grad: linear-gradient(135deg, #ffa500, #ffd700);
    --faq-radius: 12px;
    --faq-ease: cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--faq-bg);
    color: var(--faq-text);
    font-family: var(--faq-body);
    overflow-x: clip;
}

.faq-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px)  { .faq-shell { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .faq-shell { padding-left: 2rem;  padding-right: 2rem;  } }

.faq-page h1,
.faq-page h2 {
    font-family: var(--faq-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--faq-text);
    margin: 0;
}

.faq-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faq-gold);
    margin: 0 0 0.75rem;
}

.faq-gold {
    background: linear-gradient(135deg, #ffa500 0%, #ffd700 55%, #ffa500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Buttons ---------- */
.faq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-family: var(--faq-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s var(--faq-ease), box-shadow 0.3s var(--faq-ease), background 0.3s;
}
.faq-btn--gold {
    background: var(--faq-grad);
    color: #000;
    box-shadow: 0 3px 18px rgba(255, 165, 0, 0.3);
}
.faq-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(255, 165, 0, 0.5); }
.faq-btn--ghost {
    background: transparent;
    border: 1px solid rgba(201, 164, 74, 0.45);
    color: var(--faq-gold);
}
.faq-btn--ghost:hover { background: rgba(201, 164, 74, 0.1); }
.faq-text-link {
    align-self: center;
    color: var(--faq-muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 0.4rem;
}
.faq-text-link:hover { color: var(--faq-gold); }

/* Visible keyboard focus everywhere in the hub */
.faq-page a:focus-visible,
.faq-page button:focus-visible,
.faq-page input:focus-visible,
.faq-page summary:focus-visible {
    outline: 2px solid var(--faq-gold-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Hero ---------- */
.faq-hero {
    position: relative;
    /* clear the fixed site header */
    padding: calc(72px + clamp(2.5rem, 8vw, 5.5rem)) 0 clamp(2.25rem, 5vw, 4rem);
    background:
        radial-gradient(90% 120% at 15% 0%, rgba(201, 164, 74, 0.14), transparent 55%),
        linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--faq-border-soft);
    overflow: hidden;
}
.faq-hero-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 720px;
    max-height: 720px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.09), transparent 65%);
    pointer-events: none;
}
.faq-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--faq-subtle);
    margin-bottom: 1.6rem;
}
.faq-breadcrumbs a { color: var(--faq-subtle); text-decoration: none; }
.faq-breadcrumbs a:hover { color: var(--faq-gold); }
.faq-hero h1 { font-size: clamp(1.85rem, 5.4vw, 3.2rem); max-width: 18ch; }
.faq-hero-copy {
    max-width: 640px;
    margin: 1.1rem 0 1.5rem;
    font-size: clamp(0.95rem, 2.4vw, 1.08rem);
    line-height: 1.7;
    color: var(--faq-muted);
}
.faq-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}
.faq-proof li {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faq-gold-light);
    border: 1px solid var(--faq-border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgba(201, 164, 74, 0.05);
}
.faq-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Quick answer ---------- */
.faq-intro { padding: clamp(2rem, 5vw, 3.25rem) 0; border-bottom: 1px solid var(--faq-border-soft); }
.faq-intro-grid { display: grid; gap: 1.25rem; }
.faq-intro h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.faq-intro p:not(.faq-eyebrow) { margin: 0; color: var(--faq-muted); line-height: 1.75; font-size: 0.98rem; }
@media (min-width: 900px) {
    .faq-intro-grid { grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; }
}

/* ---------- Search & filters ---------- */
.faq-tools {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 0 0.9rem;
    background: rgba(8, 8, 8, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--faq-border-soft);
}
.faq-search-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faq-gold);
    margin-bottom: 0.55rem;
}
.faq-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 640px;
    padding: 0 0.9rem;
    background: var(--faq-card);
    border: 1px solid var(--faq-border);
    border-radius: 10px;
    transition: border-color 0.25s;
}
.faq-search-wrap:focus-within { border-color: rgba(255, 165, 0, 0.55); }
.faq-search-wrap svg { width: 18px; height: 18px; color: var(--faq-gold); flex-shrink: 0; }
.faq-search-wrap input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 0;
    background: none;
    border: 0;
    color: var(--faq-text);
    font-family: var(--faq-body);
    font-size: 16px; /* prevents iOS zoom-on-focus */
}
.faq-search-wrap input::placeholder { color: var(--faq-subtle); }
.faq-search-wrap input:focus { outline: none; }
.faq-search-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; }
#faq-clear {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    background: rgba(201, 164, 74, 0.12);
    border: 1px solid var(--faq-border);
    border-radius: 6px;
    color: var(--faq-gold-light);
    font-family: var(--faq-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
#faq-clear:hover { background: rgba(201, 164, 74, 0.22); }
.faq-filters {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.faq-filters::-webkit-scrollbar { display: none; }
.faq-filters button {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--faq-border-soft);
    border-radius: 999px;
    color: var(--faq-muted);
    font-family: var(--faq-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.faq-filters button:hover { color: var(--faq-gold-light); border-color: var(--faq-border); }
.faq-filters button.is-active {
    background: rgba(201, 164, 74, 0.14);
    border-color: rgba(201, 164, 74, 0.5);
    color: var(--faq-gold-light);
}
.faq-result-count { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--faq-subtle); }

/* ---------- Layout: sidebar + sections ---------- */
.faq-layout { display: grid; gap: 2rem; padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 1024px) {
    .faq-layout { grid-template-columns: 250px 1fr; gap: 3.5rem; }
}
.faq-sidebar { display: none; }
@media (min-width: 1024px) {
    .faq-sidebar {
        display: block;
        position: sticky;
        /* below the sticky search tools */
        top: 175px;
        align-self: start;
    }
    .faq-sidebar-label {
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--faq-gold);
        margin: 0 0 0.9rem;
    }
    .faq-sidebar a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0.75rem;
        margin: 0 -0.75rem;
        border-radius: 8px;
        color: var(--faq-muted);
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }
    .faq-sidebar a:hover { color: var(--faq-gold-light); background: rgba(201, 164, 74, 0.07); }
    .faq-sidebar a span {
        font-size: 0.7rem;
        color: var(--faq-subtle);
        border: 1px solid var(--faq-border-soft);
        border-radius: 999px;
        padding: 0.1rem 0.5rem;
    }
}

/* ---------- Category blocks ---------- */
.faq-sections { min-width: 0; }
.faq-category { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); scroll-margin-top: 190px; }
.faq-category-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--faq-border);
}
.faq-category-number {
    margin: 0;
    font-family: var(--faq-display);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1;
    color: rgba(201, 164, 74, 0.55);
}
.faq-category-heading h2 { font-size: clamp(1.25rem, 3.2vw, 1.65rem); }
.faq-category-heading > div > p { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--faq-subtle); }

/* ---------- Accordion items ---------- */
.faq-item {
    background: var(--faq-card);
    border: 1px solid var(--faq-border-soft);
    border-radius: var(--faq-radius);
    margin-bottom: 0.7rem;
    scroll-margin-top: 190px;
    transition: border-color 0.25s;
}
.faq-item:hover { border-color: var(--faq-border); }
.faq-item[open] { border-color: rgba(201, 164, 74, 0.4); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: rgba(201, 164, 74, 0.12);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--faq-text);
}
.faq-item[open] .faq-q { color: var(--faq-gold-light); }
.faq-toggle {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 1px solid var(--faq-border);
    border-radius: 50%;
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: var(--faq-gold);
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--faq-ease);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 1.1rem 1.15rem; }
.faq-answer p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--faq-muted);
}
.faq-answer a { color: var(--faq-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: #ffd700; }

/* ---------- Empty search state ---------- */
.faq-no-results {
    text-align: center;
    padding: 3rem 1.25rem;
    background: var(--faq-card);
    border: 1px dashed var(--faq-border);
    border-radius: var(--faq-radius);
}
.faq-no-results h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.faq-no-results p { color: var(--faq-muted); margin: 0 0 1.4rem; }

/* ---------- Related guides ---------- */
.faq-related {
    padding: clamp(2.25rem, 5vw, 3.75rem) 0;
    background: linear-gradient(180deg, #0a0a0a, #060606);
    border-top: 1px solid var(--faq-border-soft);
}
.faq-related h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin-bottom: 1.5rem; }
.faq-guide-grid { display: grid; gap: 0.9rem; }
@media (min-width: 640px)  { .faq-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .faq-guide-grid { grid-template-columns: repeat(4, 1fr); } }
.faq-guide-grid a {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.25rem 1.15rem;
    background: var(--faq-card);
    border: 1px solid var(--faq-border-soft);
    border-radius: var(--faq-radius);
    text-decoration: none;
    transition: border-color 0.25s, transform 0.25s var(--faq-ease);
}
.faq-guide-grid a:hover { border-color: rgba(201, 164, 74, 0.45); transform: translateY(-3px); }
.faq-guide-grid span {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faq-gold);
}
.faq-guide-grid strong {
    font-family: var(--faq-display);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--faq-text);
}
.faq-guide-grid em { font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--faq-gold-light); margin-top: auto; }

/* ---------- Bottom CTA ---------- */
.faq-cta { padding: clamp(2.25rem, 5vw, 3.75rem) 0 1rem; }
.faq-cta-inner {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background:
        radial-gradient(110% 140% at 0% 0%, rgba(201, 164, 74, 0.12), transparent 55%),
        linear-gradient(150deg, #141412, #0a0a0a);
    border: 1px solid var(--faq-border);
    border-radius: 16px;
}
.faq-cta h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
.faq-cta-inner > div > p:not(.faq-eyebrow) { margin: 0.75rem 0 0; color: var(--faq-muted); line-height: 1.7; max-width: 560px; }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-content: start; }
@media (min-width: 900px) {
    .faq-cta-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
    .faq-cta-actions { justify-content: flex-end; }
}

.faq-widget-mount { margin-top: 1.5rem; }

/* ---------- Verified sources / press ---------- */
.faq-press {
    padding: clamp(2rem, 4.5vw, 3.25rem) 0 0.5rem;
    border-top: 1px solid var(--faq-border-soft);
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.faq-press h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.75rem; }
.faq-press-intro { margin: 0 0 1.25rem; max-width: 760px; font-size: 0.92rem; line-height: 1.75; color: var(--faq-muted); }
.faq-press-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
@media (min-width: 768px) { .faq-press-list { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }
.faq-press-list li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    background: var(--faq-card);
    border: 1px solid var(--faq-border-soft);
    border-radius: 10px;
}
.faq-press-list a {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faq-gold);
    text-decoration: none;
}
.faq-press-list a:hover { color: var(--faq-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.faq-press-list span { font-size: 0.88rem; line-height: 1.5; color: var(--faq-muted); }
.faq-press-note { margin: 1.1rem 0 0; font-size: 0.82rem; color: var(--faq-subtle); }
.faq-press-note a { color: var(--faq-gold-light); }

.faq-reviewed {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
    font-size: 0.78rem;
    color: var(--faq-subtle);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .faq-page *,
    .faq-page *::before,
    .faq-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .faq-btn--gold:hover,
    .faq-guide-grid a:hover { transform: none; }
}
