/* ============================================
   JOCRA FAQ PAGE - MOBILE FIRST
   ============================================ */

.faq-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--jocra-light, #F0F2F5);
    overflow-x: clip;
}

.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.faq-hero {
    position: relative;
    padding: 80px 0 48px;
    background: var(--jocra-dark, #0F1419);
    overflow: hidden;
}

.faq-hero .bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

.faq-hero .bg-glow {
    position: absolute;
    top: -30%;
    left: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(45, 90, 61, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--jocra-red, #E63946);
}

.hero-badge i {
    font-size: 12px;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
    text-wrap: balance;
}

.hero-title .highlight {
    color: var(--jocra-red, #E63946);
}

.hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
}

.hero-meta i {
    color: var(--jocra-red, #E63946);
    font-size: 13px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 48px 0 64px;
}

/* Search */
.faq-search-wrap {
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jocra-gray, #6B7280);
    font-size: 16px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--jocra-dark, #0F1419);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: var(--jocra-gray, #6B7280);
}

.search-box input:focus {
    outline: none;
    border-color: var(--jocra-green, #2D5A3D);
    box-shadow: 0 4px 20px rgba(45, 90, 61, 0.1);
}

.search-count {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--jocra-gray, #6B7280);
    background: var(--jocra-light, #F0F2F5);
    padding: 4px 10px;
    border-radius: 20px;
    display: none;
}

.search-count.visible {
    display: block;
}

/* FAQ Grid */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Card */
.faq-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-color: rgba(45, 90, 61, 0.1);
}

.faq-card.open {
    border-color: rgba(45, 90, 61, 0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.faq-heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq-head {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-head-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(45, 90, 61, 0.08);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--jocra-green, #2D5A3D);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.faq-card.open .faq-number {
    background: var(--jocra-green, #2D5A3D);
    color: #fff;
}

.faq-question {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--jocra-dark, #0F1419);
    line-height: 1.4;
    text-wrap: balance;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jocra-dark, #0F1419);
    font-size: 12px;
    transition: all 0.3s ease;
}

.faq-card.open .faq-toggle {
    background: var(--jocra-red, #E63946);
    color: #fff;
    transform: rotate(45deg);
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

/* FAQ Body */
.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    visibility: hidden;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
}

.faq-card.open .faq-body {
    grid-template-rows: 1fr;
    visibility: visible;
}

.faq-body-inner {
    overflow: hidden;
    padding: 6px 24px 24px 74px;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--jocra-gray, #6B7280);
}

.faq-body-inner > div,
.faq-body-inner > p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.faq-body-inner p:empty,
.faq-body-inner div:empty {
    display: none;
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 48px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--jocra-gray, #6B7280);
    font-size: 20px;
}

.faq-no-results h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--jocra-dark, #0F1419);
    margin-bottom: 8px;
}

.faq-no-results p {
    font-size: 0.9375rem;
    color: var(--jocra-gray, #6B7280);
    line-height: 1.5;
}

.faq-no-results button {
    background: none;
    border: none;
    color: var(--jocra-red, #E63946);
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.faq-cta {
    padding: 0 0 64px;
    background: var(--jocra-light, #F0F2F5);
}

.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    background: var(--jocra-dark, #0F1419);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.cta-content p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    width: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--jocra-red, #E63946);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
}

.btn-primary i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-secondary i {
    font-size: 14px;
    color: var(--jocra-green-light, #4A7C59);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .faq-head {
        padding: 18px 20px;
    }

    .faq-body-inner {
        padding: 4px 20px 22px 20px;
    }
}

/* ============================================
   TABLET (577px+)
   ============================================ */

@media (min-width: 577px) {
    .container-xl {
        padding: 0 24px;
    }

    .faq-hero {
        padding: 100px 0 60px;
    }

    .hero-meta {
        gap: 24px;
    }

    .faq-section {
        padding: 64px 0 80px;
    }

    .faq-head {
        padding: 20px 24px;
    }

    .faq-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-body-inner {
        padding: 6px 28px 28px 82px;
        font-size: 1rem;
    }

    .cta-box {
        padding: 40px 32px;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 180px;
    }
}

/* ============================================
   DESKTOP (1025px+)
   ============================================ */

@media (min-width: 1025px) {
    .container-xl {
        padding: 0 32px;
    }

    .faq-hero {
        padding: 120px 0 80px;
    }

    .faq-section {
        padding: 80px 0 100px;
    }

    .faq-head {
        padding: 22px 28px;
    }

    .faq-head:hover .faq-number {
        background: var(--jocra-green, #2D5A3D);
        color: #fff;
    }

    .faq-head:hover .faq-toggle {
        background: rgba(0,0,0,0.08);
    }

    .faq-card.open .faq-head:hover .faq-toggle {
        background: var(--jocra-red, #E63946);
    }

    .faq-question {
        font-size: 1.0625rem;
    }

    .faq-body-inner {
        padding: 8px 32px 32px 92px;
    }

    .cta-box {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 48px 64px;
        gap: 48px;
    }

    .cta-content {
        text-align: left;
        flex: 1;
    }

    .cta-actions {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .btn-primary:hover {
        background: var(--jocra-red-dark, #C1121F);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
    }

    .btn-primary:hover i {
        transform: translateX(4px);
    }

    .btn-secondary:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.25);
    }
}

/* ============================================
   TOUCH / REDUCED MOTION
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .faq-card:active {
        transform: scale(0.995);
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .faq-body {
        transition: none;
    }
}