/* ========================================
   FAQ ACCORDION ENHANCEMENTS
   Smooth, luxury animations for FAQ items
   ======================================== */

/* FAQ Section - always visible */
.faq {
    opacity: 1 !important;
}

/* FAQ Item Base Styles */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* FAQ Question - Clickable Header (works with both div and button) */
.faq-question,
button.faq-question {
    background: white;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
    user-select: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.faq-question:hover,
button.faq-question:hover {
    background: #fef8f5;
}

.faq-question:active,
button.faq-question:active {
    background: #fdf2ed;
}

.faq-question h4,
button.faq-question span {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

/* FAQ Icon - Chevron */
.faq-question i {
    color: #d17355;
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Active State - Rotate Chevron */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* FAQ Answer - Expandable Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
}

/* Active State - Expand Answer */
.faq-item.active .faq-answer {
    max-height: 800px; /* Increased for longer content */
    padding: 0 2rem 1.5rem;
}

/* FAQ Answer Content */
.faq-answer p {
    margin: 0;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Active State Visual Enhancement */
.faq-item.active {
    box-shadow: 0 6px 20px rgba(209, 115, 85, 0.15);
}

.faq-item.active .faq-question {
    background: #fef8f5;
}

/* Keyboard Focus States (works with both div and button) */
.faq-question:focus-visible,
button.faq-question:focus-visible {
    outline: 2px solid #d17355;
    outline-offset: -2px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

/* Smooth Stagger Animation for FAQ Items */
.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.3s; }
.faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-item:nth-child(8) { animation-delay: 0.4s; }
.faq-item:nth-child(9) { animation-delay: 0.45s; }
.faq-item:nth-child(10) { animation-delay: 0.5s; }
.faq-item:nth-child(11) { animation-delay: 0.55s; }

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .faq-answer {
        transition: none;
    }
    
    .faq-question i {
        transition: none;
    }
    
    .faq-item {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .faq-item {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 0 2rem 1.5rem !important;
    }
    
    .faq-question i {
        display: none;
    }
}
