/* ===================================
   FAQ Accordion Styles
   =================================== */

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.faq-intro h2 {
    position: relative;
    display: inline-block;
}

.faq-intro h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold-500, #BC912A), var(--color-gold-600, #A67A1F));
    border-radius: 2px;
}

/* FAQ Item */
.faq-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(188, 145, 42, 0.1);
}

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

.faq-question {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold-500, #BC912A), var(--color-gold-600, #A67A1F));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.faq-question:hover::before,
.faq-question[aria-expanded="true"]::before {
    transform: scaleY(1);
}

.faq-question:hover {
    background: linear-gradient(135deg, #fff9f0 0%, #faf6ee 100%);
}

.faq-question[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--color-gold-500, #BC912A), var(--color-gold-600, #A67A1F));
    color: white;
}

.faq-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s ease;
    padding-right: 0.5rem;
}

.faq-question[aria-expanded="true"] .faq-question-text {
    color: white;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-500, #BC912A);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: rgba(188, 145, 42, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.faq-answer {
    background: #fafafa;
}

.faq-answer-content {
    padding: 1.5rem;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
    border-top: 1px solid rgba(188, 145, 42, 0.1);
}

/* Animation on collapse */
.faq-answer.collapsing {
    transition: height 0.35s ease;
}

.faq-answer.collapse.show {
    animation: fadeIn 0.4s ease;
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question-text {
        font-size: 0.9rem;
    }

    .faq-answer-content {
        padding: 1.25rem;
        font-size: 0.875rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

/* Focus styles for accessibility */
.faq-question:focus {
    outline: 2px solid var(--color-gold-500, #BC912A);
    outline-offset: 2px;
}

.faq-question:focus:not(:focus-visible) {
    outline: none;
}

/* Spacing adjustments */
.row.g-4 > [class*="col-"] {
    padding-bottom: 0;
}

/* Alternative style - Bordered variant */
.faq-item.faq-bordered {
    border: 2px solid rgba(188, 145, 42, 0.2);
    box-shadow: none;
}

.faq-item.faq-bordered:hover {
    border-color: var(--color-gold-500, #BC912A);
}

/* Print styles */
@media print {
    .faq-question {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #ddd;
    }

    .faq-icon {
        display: none;
    }

    .faq-answer {
        display: block !important;
        height: auto !important;
        background: white !important;
    }

    .faq-answer-content {
        page-break-inside: avoid;
    }
}
