/* ======================================== */
/* FAQ SECTION - WARM THEME */
/* ======================================== */

/* Section Base */
.faq-modern-section {
    background: linear-gradient(135deg, #e8dcc8 0%, #f5efe6 100%) !important;
    padding: 60px 0;
    position: relative;
}

/* Decorative Elements */
.faq-modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.faq-modern-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Titles */
.faq-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #4A3228 !important;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .faq-modern-section {
        padding: 80px 0;
    }

    .faq-main-title {
        font-size: 2.8rem;
    }
}

.title-accent-bar {
    width: 50px;
    height: 4px;
    background: #8B6B4A !important;
    margin: 15px auto;
    border-radius: 10px;
    position: relative;
}

.title-accent-bar::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 4px;
    background: #C49A6C !important;
    left: 55px;
    border-radius: 10px;
}

/* Subtitle/Badge */
.faq-badge {
    display: inline-block;
    background: rgba(139, 115, 85, 0.12) !important;
    color: #8B6B4A !important;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Container & Cards */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-card {
    background: #ffffff !important;
    border: 2px solid #8B6B4A !important;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.08);
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.15);
    border-color: #C49A6C !important;
}

/* Header */
.faq-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .faq-header {
        padding: 25px 30px;
    }
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #4A3228 !important;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-card:hover .faq-question {
    color: #8B6B4A !important;
}

@media (min-width: 768px) {
    .faq-question {
        font-size: 1.15rem;
    }
}

/* Icon */
.faq-icon-wrapper {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: rgba(139, 115, 85, 0.1) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
    .faq-icon-wrapper {
        width: 35px;
        height: 35px;
    }
}

.faq-icon {
    font-size: 18px;
    color: #8B6B4A !important;
    transition: transform 0.4s ease;
}

/* Active State */
.faq-card.active {
    border-color: #8B6B4A !important;
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.2) !important;
    transform: translateY(-3px);
}

.faq-card.active .faq-icon-wrapper {
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.3);
}

.faq-card.active .faq-icon {
    transform: rotate(45deg);
    color: #ffffff !important;
}

.faq-card.active .faq-question {
    color: #4A3228 !important;
}

/* Body & Content */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: #5A4A3A !important;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid rgba(139, 115, 85, 0.12) !important;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .faq-content {
        padding: 0 30px 30px 30px;
        font-size: 1.05rem;
    }
}

/* FAQ Number Badge */
.faq-number {
    display: inline-block;
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    color: white !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ======================================== */
/* REVEAL ANIMATION - SAFE VERSION */
/* ======================================== */
/* Default: visible, JS will handle fade-in */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only hide when JS is about to reveal */
.reveal-up.pre-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 576px) {
    .faq-modern-section {
        padding: 40px 0;
    }

    .faq-main-title {
        font-size: 1.6rem;
    }

    .faq-header {
        padding: 15px 15px;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-content {
        padding: 0 15px 15px 15px;
        font-size: 0.85rem;
    }

    .faq-icon-wrapper {
        width: 25px;
        height: 25px;
    }

    .faq-icon {
        font-size: 14px;
    }

    .faq-badge {
        font-size: 11px;
        padding: 4px 15px;
    }
}

/* ======================================== */
/* ROOT VARIABLES - WARM THEME */
/* ======================================== */

:root {
    --faq-primary: #8B6B4A;
    --faq-primary-light: #A8825A;
    --faq-primary-lighter: #C49A6C;
    --faq-primary-dark: #6B5544;
    --faq-primary-darker: #4A3228;
    --faq-bg-start: #e8dcc8;
    --faq-bg-end: #f5efe6;
    --faq-card-bg: #ffffff;
}

/* ======================================== */
/* DARK MODE - WARM THEME */
/* ======================================== */

@media (prefers-color-scheme: dark) {
    .faq-modern-section {
        background: linear-gradient(135deg, #2A1F18 0%, #3D2D22 100%) !important;
    }

    .faq-card {
        background: #2A1F18 !important;
        border-color: #6B5544 !important;
    }

    .faq-card:hover {
        border-color: #8B6B4A !important;
    }

    .faq-question {
        color: #F5E6D3 !important;
    }

    .faq-card:hover .faq-question {
        color: #C49A6C !important;
    }

    .faq-content {
        color: #D4C5B5 !important;
        border-top-color: rgba(139, 115, 85, 0.2) !important;
    }

    .faq-icon-wrapper {
        background: rgba(139, 115, 85, 0.15) !important;
    }

    .faq-icon {
        color: #C49A6C !important;
    }

    .faq-badge {
        background: rgba(139, 115, 85, 0.15) !important;
        color: #C49A6C !important;
    }

    .faq-main-title {
        color: #F5E6D3 !important;
    }

    .title-accent-bar {
        background: #8B6B4A !important;
    }

    .title-accent-bar::after {
        background: #C49A6C !important;
    }

    .faq-number {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    }

    .faq-card.active .faq-number {
        background: linear-gradient(135deg, #8B6B4A 0%, #C49A6C 100%) !important;
    }

    .faq-card.active .faq-icon-wrapper {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%) !important;
    }

    .faq-card.active .faq-question {
        color: #F5E6D3 !important;
    }

    .faq-card.active {
        border-color: #8B6B4A !important;
        box-shadow: 0 15px 40px rgba(139, 115, 85, 0.15) !important;
    }
}

/* ======================================== */
/* FAQ BODY - COLLAPSED BY DEFAULT */
/* ======================================== */
.faq-body {
    max-height: 0 !important;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-card.active .faq-body {
    max-height: 500px !important;
}

/* ======================================== */
/* FAQ HEADER - FLEX LAYOUT */
/* ======================================== */
.faq-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    gap: 15px;
}

.faq-question {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A3228 !important;
}

/* ======================================== */
/* ICON - CIRCLE + PLUS */
/* ======================================== */
.faq-icon-wrapper {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: #f5efe6 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-card.active .faq-icon-wrapper {
    background: #8B6B4A !important;
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: #8B6B4A !important;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-card.active .faq-icon {
    color: #ffffff !important;
    transform: rotate(45deg);
}

/* ======================================== */
/* FAQ CONTENT */
/* ======================================== */
.faq-content {
    padding: 0 25px 20px 25px;
    color: #5A4A3A !important;
    line-height: 1.7;
    border-top: 1px solid rgba(139, 115, 85, 0.12);
    margin-top: 5px;
    padding-top: 15px;
}

/* ======================================== */
/* FAQ CARD */
/* ======================================== */
.faq-card {
    background: #ffffff !important;
    border: 2px solid #8B6B4A !important;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.08);
}

.faq-card.active {
    border-color: #8B6B4A !important;
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.2) !important;
}

/* ======================================== */
/* REMOVE ANY HIDDEN OPACITY / ANIMATION */
/* ======================================== */
.faq-card,
.faq-card.reveal-up,
.faq-card.shadow-sm {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}