/* ===================================
   FAQ SECTION - ELEGANT ACCORDION
   =================================== */

.faq-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-white);
    position: relative;
}

/* Decorative background elements */
.faq-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===================================
   FAQ GRID
   =================================== */

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===================================
   FAQ ITEMS
   =================================== */

.faq-item {
    margin-bottom: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid rgba(217, 180, 95, 0.1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item:hover {
    border-color: rgba(217, 180, 95, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* Active state */
.faq-item.active {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(217, 180, 95, 0.15);
}

/* ===================================
   FAQ QUESTION (Button)
   =================================== */

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-question::before {
    opacity: 1;
}

.faq-question:hover {
    color: var(--primary-dark-gold);
}

.faq-question span {
    flex: 1;
    line-height: 1.5;
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-dark-gold);
}

/* ===================================
   FAQ ANSWER
   =================================== */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust based on content */
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    color: var(--text-medium);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 0;
    animation: fadeIn 0.4s ease forwards;
}

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

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

/* ===================================
   FAQ CTA
   =================================== */

.faq-cta {
    margin-top: var(--spacing-xxl);
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.05) 0%, rgba(217, 180, 95, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(217, 180, 95, 0.2);
}

.faq-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.faq-cta .cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ===================================
   ANIMATIONS FOR FAQ ITEMS
   =================================== */

.faq-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }

/* Only animate on initial load */
.faq-section.loaded .faq-item {
    animation: none;
    opacity: 1;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    .faq-section {
        padding: var(--spacing-xl) 0;
    }
    
    .faq-question {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 var(--spacing-md) var(--spacing-sm);
        font-size: 0.95rem;
    }
    
    .faq-cta {
        padding: var(--spacing-lg);
    }
    
    .faq-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .faq-item {
        margin-bottom: var(--spacing-sm);
    }
    
    .faq-question {
        padding: var(--spacing-sm);
        font-size: 0.95rem;
        gap: var(--spacing-sm);
    }
    
    .faq-answer p {
        padding: 0 var(--spacing-sm) var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
    }
    
    .faq-cta {
        padding: var(--spacing-md);
    }
    
    .faq-cta .cta-button {
        width: 100%;
        padding: 14px 32px;
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-answer,
    .faq-icon {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.faq-question:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: -2px;
}

/* Keyboard navigation highlight */
.faq-question:focus {
    background: rgba(217, 180, 95, 0.05);
}

/* ===================================
   NUMBER INDICATORS (Optional Enhancement)
   =================================== */

.faq-question::after {
    content: attr(data-number);
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.1) 0%, rgba(217, 180, 95, 0.2) 100%);
    border-radius: 50%;
    display: none; /* Enable if you want numbered FAQs */
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.faq-item.active .faq-question::after {
    background: var(--gold-gradient);
    color: white;
}
