/* ===================================================================
 * Modern FAQ Design - Accordion with Micro-Interactions
 * Smooth animations, rotating chevrons, background changes, border glow
 * ================================================================ */

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

#faq {
    background: #000000 !important;
    padding: 6rem 0;
}

#faq h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #ffffff;
}

/* ===================================================================
 * FAQ CATEGORIES
 * ================================================================ */

.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category-title {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: "montserrat-bold", sans-serif;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===================================================================
 * FAQ ITEM - Modern Accordion Card
 * ================================================================ */

.faq-item {
    background: linear-gradient(135deg,
        #0a0a0a 0%,
        #1a1a1a 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
}

/* Hover state - lift and glow */
.faq-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Active/Open state - gradient border glow */
.faq-item.active {
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #242424 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ===================================================================
 * FAQ QUESTION - Clickable Header
 * ================================================================ */

.faq-item h4 {
    margin: 0;
    padding: 1rem 3.5rem 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.3s ease;
}

.faq-item:hover h4 {
    color: #ffffff;
}

.faq-item.active h4 {
    color: #ffffff;
    font-weight: 700;
}

/* Chevron icon */
.faq-item h4::after {
    content: '❯';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover h4::after {
    color: rgba(255, 255, 255, 0.7);
}

/* Rotate chevron when open */
.faq-item.active h4::after {
    transform: translateY(-50%) rotate(270deg);
    color: #ffffff;
}

/* ===================================================================
 * FAQ ANSWER - Collapsible Content
 * ================================================================ */

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.25rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Open state - smooth expand */
.faq-item.active .answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin-top: -0.25rem;
}

/* ===================================================================
 * MICRO-INTERACTIONS
 * ================================================================ */

/* Subtle pulse on first load */
@keyframes faqPulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 255, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

.faq-item:first-child {
    animation: faqPulse 2s ease-in-out;
}

/* Ripple effect on click */
.faq-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.faq-item.ripple::before {
    width: 100%;
    height: 100%;
}

/* ===================================================================
 * MOBILE RESPONSIVE
 * ================================================================ */

@media (max-width: 768px) {
    #faq {
        padding: 4rem 0;
    }
    
    #faq h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .faq-category-title {
        font-size: 1.25rem;
    }
    
    .faq-item h4 {
        font-size: 1.05rem;
        padding: 1.25rem 3.5rem 1.25rem 1.25rem;
    }
    
    .faq-item h4::after {
        right: 1.25rem;
        font-size: 1.1rem;
    }
    
    .faq-item .answer {
        font-size: 0.95rem;
    }
    
    .faq-item.active .answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    #faq h2 {
        font-size: 1.75rem;
    }
    
    .faq-category-title {
        font-size: 1.15rem;
    }
    
    .faq-item h4 {
        font-size: 1rem;
        padding: 1rem 3rem 1rem 1rem;
    }
    
    .faq-item h4::after {
        right: 1rem;
    }
    
    .faq-item .answer {
        font-size: 0.9rem;
    }
    
    .faq-item.active .answer {
        padding: 0 1rem 1rem 1rem;
    }
}
