/* =========================================
   FAQ Page — faq.css
   Inherits variables from main.css
   ========================================= */

/* =========================================
   Page Hero
   ========================================= */
.faq-page-hero {
    padding: 140px 5% 80px;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.faq-page-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.faq-page-hero-shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(191, 90, 26, 0.07);
    top: -100px;
    right: -80px;
}

.faq-page-hero-shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(88, 70, 61, 0.05);
    bottom: 0;
    left: -80px;
}

.faq-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(191, 90, 26, 0.1);
    color: var(--brand-orange);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.faq-page-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.faq-page-hero p {
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Hero quick-nav pills */
.faq-hero-quicknav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.faq-qnav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-bg);
    color: var(--text-sub);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.faq-qnav-pill:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: rgba(191, 90, 26, 0.05);
    transform: translateY(-2px);
}

/* =========================================
   Main FAQ Layout
   ========================================= */
.faq-page-main {
    padding: 72px 5%;
    max-width: 1160px;
    margin: 0 auto;
}

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

/* =========================================
   Sticky Sidebar Navigation
   ========================================= */
.faq-sidebar {
    position: sticky;
    top: 100px;
}

.faq-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-sub);
    margin-bottom: 14px;
    padding-left: 12px;
}

.faq-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    text-align: left;
    transition: var(--transition);
}

.faq-nav-btn i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-nav-btn:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}

.faq-nav-btn.active {
    background: rgba(191, 90, 26, 0.08);
    color: var(--brand-orange);
    font-weight: 600;
}

.faq-nav-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-sub);
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 2px 8px;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-nav-btn.active .faq-nav-count {
    background: rgba(191, 90, 26, 0.12);
    color: var(--brand-orange);
}

/* =========================================
   FAQ Content Panels
   ========================================= */
.faq-content-panels {
    min-width: 0;
}

.faq-panel {
    display: none;
}

.faq-panel.active {
    display: block;
    animation: fadeInUp 0.28s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-panel-header {
    margin-bottom: 32px;
}

.faq-panel-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-panel-title i {
    color: var(--brand-orange);
    font-size: 20px;
}

.faq-panel-sub {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* =========================================
   Accordion Items
   ========================================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-acc-item {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-acc-item:hover {
    border-color: rgba(191, 90, 26, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-acc-item.open {
    border-color: rgba(191, 90, 26, 0.35);
    box-shadow: 0 6px 24px rgba(191, 90, 26, 0.07);
}

.faq-acc-btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.faq-acc-btn:hover {
    background: rgba(191, 90, 26, 0.02);
}

.faq-acc-q-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    margin-top: 1px;
    transition: var(--transition);
}

.faq-acc-item.open .faq-acc-q-num {
    background: rgba(191, 90, 26, 0.1);
    color: var(--brand-orange);
}

.faq-acc-q-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: break-word;
}

.faq-acc-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
    transition: background 0.25s, color 0.25s, transform 0.3s;
}

.faq-acc-item.open .faq-acc-icon {
    background: rgba(191, 90, 26, 0.1);
    color: var(--brand-orange);
    transform: rotate(45deg);
}

.faq-acc-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-acc-answer-inner {
    padding: 16px 22px 24px 64px;
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
}

.faq-acc-answer-inner p + p {
    margin-top: 12px;
}

.faq-acc-answer-inner strong {
    color: var(--text-main);
    font-weight: 600;
}

.faq-acc-answer-inner ol,
.faq-acc-answer-inner ul {
    margin: 12px 0 0 20px;
    line-height: 2;
}

.faq-acc-answer-inner ul {
    list-style: disc;
}

.faq-acc-answer-inner ol {
    list-style: decimal;
}

.faq-acc-answer-inner code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    background: var(--bg-gray);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--brand-orange);
}

.faq-acc-answer-inner a {
    color: var(--brand-orange);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Tip callout inside answer */
.faq-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
}

.faq-tip-info {
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid rgba(59, 130, 246, 0.4);
}

.faq-tip-info i {
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-tip-warn {
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid rgba(245, 158, 11, 0.4);
}

.faq-tip-warn i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-tip-success {
    background: rgba(34, 197, 94, 0.06);
    border-left: 3px solid rgba(34, 197, 94, 0.4);
}

.faq-tip-success i {
    color: #22c55e;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =========================================
   Protocol / Platform tag pills in answers
   ========================================= */
.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.faq-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-gray);
    color: var(--text-sub);
    border: 1px solid var(--border-color);
}

/* =========================================
   "Still have questions?" CTA section
   ========================================= */
.faq-cta-section {
    background: var(--bg-hero);
    border-top: 1px solid var(--border-color);
    padding: 72px 5%;
    text-align: center;
}

.faq-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.faq-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(191, 90, 26, 0.1);
    color: var(--brand-orange);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.faq-cta-inner h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 14px;
    line-height: 1.25;
}

.faq-cta-inner p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 36px;
}

.faq-cta-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.faq-cta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    padding: 18px 24px;
    min-width: 200px;
    text-align: left;
    text-decoration: none;
    transition: var(--transition);
}

.faq-cta-card:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 8px 30px rgba(191, 90, 26, 0.1);
    transform: translateY(-2px);
}

.faq-cta-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(191, 90, 26, 0.08);
    color: var(--brand-orange);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-cta-card-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.faq-cta-card-text span {
    font-size: 12px;
    color: var(--text-sub);
}

/* =========================================
   Mobile: Horizontal tab bar replaces sidebar
   ========================================= */
@media (max-width: 900px) {
    .faq-page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .faq-sidebar {
        position: static;
        min-width: 0;
    }

    .faq-sidebar-title {
        display: none;
    }

    .faq-nav-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-width: 0;
    }

    .faq-nav-list::-webkit-scrollbar {
        display: none;
    }

    .faq-nav-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        border-radius: 100px;
        border: 1.5px solid var(--border-color);
        font-size: 13px;
    }

    .faq-nav-btn.active {
        border-color: var(--brand-orange);
    }

    .faq-nav-count {
        display: none;
    }

    .faq-acc-answer-inner {
        padding-left: 22px;
    }
}

@media (max-width: 640px) {
    .faq-page-main {
        padding: 48px 4%;
    }

    .faq-page-hero {
        padding: 120px 4% 60px;
    }

    .faq-hero-quicknav {
        gap: 8px;
    }

    .faq-qnav-pill {
        font-size: 12px;
        padding: 6px 14px;
    }

    .faq-acc-btn {
        padding: 16px 18px;
        gap: 12px;
    }

    .faq-cta-cards {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-card {
        width: 100%;
        max-width: 360px;
    }
}
