/* ==========================================================================
   FAQ PAGE STYLES — faq.css
   Depends on css/styles.css for design tokens and base utilities
   ========================================================================== */

/* ------------------------------------------------------------------
   BREADCRUMB BAR  (shared with other pages via styles.css if present)
   ------------------------------------------------------------------ */
.breadcrumb-bar {
    background: var(--bg-alt);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(9,14,45,0.07);
}
.breadcrumb-bar a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.breadcrumb-bar a:hover { color: var(--brand-red); }

/* ------------------------------------------------------------------
   PAGE HERO
   ------------------------------------------------------------------ */
.faq-hero {
    position: relative;
    background: var(--brand-navy);
    overflow: hidden;
    padding: 80px 0 72px;
}
.faq-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.faq-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--brand-red);
}
.faq-hero__shape--1 {
    width: 520px; height: 520px;
    top: -180px; right: -100px;
}
.faq-hero__shape--2 {
    width: 320px; height: 320px;
    bottom: -120px; left: -60px;
    background: #fff;
    opacity: 0.04;
}

.faq-hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.faq-hero__content .tag { color: rgba(255,255,255,0.65); }
.faq-hero__content h1 {
    color: #fff;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
}
.faq-hero__lead {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 32px;
}
.faq-hero__lead a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.faq-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.faq-hero__stat strong {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}
.faq-hero__stat span {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.faq-hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

.faq-hero__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    aspect-ratio: 4/3;
}
.faq-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 900px) {
    .faq-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .faq-hero__image {
        aspect-ratio: 16/7;
        max-height: 260px;
    }
    .faq-hero { padding: 56px 0 48px; }
}
@media (max-width: 600px) {
    .faq-hero { padding: 40px 0 36px; }
    .faq-hero__content h1 { font-size: 24px; }
    .faq-hero__image { display: none; }
}

/* ------------------------------------------------------------------
   FILTER PILLS BAR
   ------------------------------------------------------------------ */
.faq-filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid rgba(9,14,45,0.09);
    box-shadow: 0 2px 12px rgba(9,14,45,0.05);
    padding: 12px 0;
}
.faq-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.faq-filter-pills::-webkit-scrollbar { display: none; }

.faq-pill {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(9,14,45,0.14);
    background: transparent;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.faq-pill:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: rgba(216,12,20,0.05);
}
.faq-pill--active,
.faq-pill:focus-visible {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    outline: none;
}

/* ------------------------------------------------------------------
   MAIN LAYOUT — sidebar + content
   ------------------------------------------------------------------ */
.faq-main { background: var(--bg-base); }

.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

/* ------------------------------------------------------------------
   STICKY SIDE NAV
   ------------------------------------------------------------------ */
.faq-sidenav {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(9,14,45,0.15) transparent;
}
.faq-sidenav__inner {
    background: #fff;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(9,14,45,0.06);
}
.faq-sidenav__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-meta);
    font-weight: 600;
    margin-bottom: 12px;
}
.faq-sidenav nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.faq-sidenav__link {
    font-size: 13px;
    color: var(--text-body);
    padding: 7px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 400;
    line-height: 1.4;
}
.faq-sidenav__link:hover,
.faq-sidenav__link.active {
    background: rgba(216,12,20,0.07);
    color: var(--brand-red);
    font-weight: 500;
}
.faq-sidenav__cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(9,14,45,0.08);
    text-align: center;
}
.faq-sidenav__cta p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
    .faq-sidenav { display: none; }
}

/* ------------------------------------------------------------------
   FAQ SECTIONS
   ------------------------------------------------------------------ */
.faq-sections {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.faq-section {
    scroll-margin-top: 80px;
}

/* Section hidden by filter */
.faq-section--hidden { display: none; }

.faq-section__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-alt);
}
.faq-section__header .tag { margin-bottom: 4px; }
.faq-section__header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-h1);
    margin: 0;
}
.faq-section__icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Section image */
.faq-section__image {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 280px;
    box-shadow: var(--shadow-soft);
}
.faq-section__image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.faq-section__image:hover img {
    transform: scale(1.02);
}

/* ------------------------------------------------------------------
   ACCORDION ITEMS
   ------------------------------------------------------------------ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(9,14,45,0.08);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.faq-item {
    border-bottom: 1px solid rgba(9,14,45,0.07);
}
.faq-item:last-child { border-bottom: none; }

/* Hidden by filter */
.faq-item--hidden { display: none; }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-h1);
    line-height: 1.45;
    transition: background 0.2s, color 0.2s;
}
.faq-question:hover {
    background: rgba(216,12,20,0.04);
    color: var(--brand-red);
}
.faq-question[aria-expanded="true"] {
    color: var(--brand-red);
    background: rgba(216,12,20,0.04);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(9,14,45,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
}
/* Plus/minus via pseudo-elements */
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-h1);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; }

.faq-question[aria-expanded="true"] .faq-icon {
    border-color: var(--brand-red);
    background: var(--brand-red);
    transform: rotate(45deg);
}
.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after {
    background: #fff;
}

.faq-list .faq-answer {
    /* Reset the global styles.css accordion pattern (max-height/overflow) */
    max-height: none !important;
    overflow: visible !important;
    display: none;
    padding: 0 24px 22px 24px;
    animation: faqFadeIn 0.2s ease;
}
.faq-list .faq-answer.is-open { display: block; }
.faq-list .faq-answer p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}
.faq-list .faq-answer p + p { margin-top: 10px; }
.faq-list .faq-answer a {
    color: var(--brand-red);
    font-weight: 500;
    text-underline-offset: 3px;
}
.faq-list .faq-answer a:hover { text-decoration: underline; }

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .faq-question {
        font-size: 14px;
        padding: 16px 18px;
    }
    .faq-list .faq-answer {
        padding: 0 18px 18px;
    }
    .faq-list .faq-answer p { font-size: 14px; }
    .faq-section__header h2 { font-size: 18px; }
    .faq-section__icon {
        width: 42px; height: 42px;
        font-size: 22px;
        border-radius: 10px;
    }
}

/* ------------------------------------------------------------------
   BOTTOM CTA SECTION
   ------------------------------------------------------------------ */
.faq-cta {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #1a2260 60%, #2a1a60 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}
.faq-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--brand-red);
    opacity: 0.07;
    pointer-events: none;
}

.faq-cta__inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.faq-cta__content h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
}
.faq-cta__content p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin-bottom: 32px;
}
.faq-cta__btns {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.faq-cta__book {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
}
.faq-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.2s;
}
.faq-cta__phone:hover { opacity: 0.8; }
.faq-cta__phone-icon { font-size: 18px; }

.faq-cta__image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    aspect-ratio: 3/4;
    max-height: 420px;
}
.faq-cta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 900px) {
    .faq-cta__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .faq-cta__image {
        aspect-ratio: 16/6;
        max-height: 200px;
    }
    .faq-cta__image img { object-position: center 20%; }
    .faq-cta { padding: 56px 0; }
}
@media (max-width: 600px) {
    .faq-cta__image { display: none; }
    .faq-cta { padding: 48px 0; }
    .faq-cta__btns { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------
   UTILITY: no-results state for filter
   ------------------------------------------------------------------ */
.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
    display: none;
}
.faq-no-results.is-visible { display: block; }
.faq-no-results strong {
    display: block;
    font-size: 20px;
    color: var(--text-h2);
    margin-bottom: 8px;
}
