/*
 * Sunsgoods Theme — FAQ Page Styles
 *
 * @package Sunsgoods
 */

/* =========================================================================
 * Page wrapper
 * ========================================================================= */
.faq-page {
    max-width: 100%;
    overflow-x: hidden;
    background: #f5f5f5;
    padding: 60px 0 80px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================================
 * Heading & Intro
 * ========================================================================= */
.faq-heading {
    font-family: 'Times New Roman', 'oxygen-bold', Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #7a5c3e;
    margin: 0 0 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.faq-intro {
    font-family: 'Times New Roman', 'oxygen-regular', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 40px;
}

/* =========================================================================
 * Accordion
 * ========================================================================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Header (question) */
.faq-card__header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 22px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: background 0.2s;
}

.faq-card__header:hover {
    background: #fafafa;
}

.faq-card__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.faq-card__question {
    flex: 1;
    font-family: 'Times New Roman', 'oxygen-regular', Arial, sans-serif;
    font-size: 22px;
    color: #222;
    line-height: 1.4;
}

/* Chevron */
.faq-card__chevron {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s;
}

.faq-card__chevron::before,
.faq-card__chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #888;
    transition: transform 0.3s;
}

.faq-card__chevron::before {
    left: 3px;
    transform: translateY(-50%) rotate(45deg);
}

.faq-card__chevron::after {
    right: 3px;
    transform: translateY(-50%) rotate(-45deg);
}

/* Open state — flip chevron */
.faq-card--open .faq-card__chevron::before {
    transform: translateY(-50%) rotate(-45deg);
}

.faq-card--open .faq-card__chevron::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Body (answer) */
.faq-card__body {
    padding: 0 20px 22px 20px;
    background: #fff;
}

.faq-card__body[hidden] {
    display: none;
}

.faq-card__answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-card__answer-text {
    font-family: 'Times New Roman', 'oxygen-regular', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #696969;
    padding-top: 8px;
}

/* =========================================================================
 * Responsive
 * ========================================================================= */
@media (max-width: 768px) {
    .faq-page {
        padding: 40px 0 60px;
    }

    .faq-container {
        padding: 0 20px;
    }

    .faq-heading {
        font-size: 22px;
    }

    .faq-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .faq-card__header {
        padding: 16px 14px;
    }

    .faq-card__question {
        font-size: 18px;
    }

    .faq-card__answer-text {
        font-size: 16px;
    }

    .faq-card__icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .faq-card__question {
        font-size: 16px;
    }

    .faq-card__answer-text {
        font-size: 15px;
    }
}
