/* ============================================
   FAQ PAGE STYLES
   ============================================ */

/* ----- HERO ----- */
.hero-faq {
    min-height: 65vh;
    background: var(--color-deep-blue);
    padding-bottom: 3rem;
}

.hero-faq .hero-subtitle {
    max-width: 680px;
}

.hero-faq .hero-subtitle a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-anchors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.anchor-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50px;
    color: var(--color-gold);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.anchor-btn:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
}

/* ----- FAQ SECTION ----- */
.faq-section {
    padding: 4rem 0 5rem;
    background: var(--color-off-white);
}

/* Category blocks */
.faq-category {
    max-width: 820px;
    margin: 0 auto 3rem;
    scroll-margin-top: 140px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.faq-category-icon {
    flex-shrink: 0;
}

.faq-category-icon i {
    font-size: 1.5rem;
    color: var(--color-gold);
    background: rgba(201, 168, 76, 0.1);
    border: 2px solid rgba(201, 168, 76, 0.25);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-category-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-deep-blue);
    margin: 0;
}

/* FAQ Accordion items */
.faq-item {
    background: var(--color-white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid #e8e2da;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-deep-blue);
    list-style: none;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: rgba(201, 168, 76, 0.04);
    color: var(--color-gold-dark);
}

/* Answer area */
.faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-deep-blue-light);
    animation: fadeInAnswer 0.3s ease;
}

@keyframes fadeInAnswer {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.faq-answer ul li {
    padding: 0.4rem 0 0.4rem 1.25rem;
    position: relative;
    line-height: 1.6;
}

.faq-answer ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 0.7rem;
    top: 0.6rem;
}

.faq-answer a {
    color: var(--color-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.faq-answer a:hover {
    color: var(--color-gold);
}

.faq-answer strong {
    color: var(--color-deep-blue);
}

/* ----- STICKY SUB-NAV (Desktop only) ----- */
.faq-subnav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    z-index: 900;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

.faq-subnav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.faq-subnav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem 0;
    list-style: none;
    margin: 0;
    overflow-x: auto;
}

.faq-subnav a {
    font-size: 0.85rem;
    color: var(--color-silver-light);
    white-space: nowrap;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.faq-subnav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.faq-subnav a:hover,
.faq-subnav a.active {
    color: var(--color-gold);
}

.faq-subnav a.active::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .faq-subnav ul {
        gap: 1.25rem;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-faq {
        min-height: 55vh;
        padding: 5rem 1.5rem 2rem;
    }
    .faq-anchors {
        gap: 0.4rem;
    }
    .anchor-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }
    .faq-category-header h2 {
        font-size: 1.3rem;
    }
    .faq-category-icon i {
        width: 3rem;
        height: 3rem;
        font-size: 1.2rem;
    }
    .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    .faq-answer {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    /* Hide sticky sub-nav on mobile — hero anchors are enough */
    .faq-subnav {
        display: none;
    }
}