/*
 * Shams FoodHub
 * Frequently Asked Questions page.
 */

.faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}


/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.faq-header {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.faq-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #e86f00;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.faq-title {
    margin: 0 0 14px;

    color: #222222;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
}

.faq-intro {
    margin: 0;

    color: #666666;
    font-size: 1rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------------- */

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.04);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.faq-item:focus-within {
    border-color: rgba(232, 111, 0, 0.45);

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.07);
}


/*
 * The question itself is a real button rather than a clickable div.
 * This gives keyboard and screen-reader users proper interaction.
 */
.faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 21px 22px;

    border: 0;
    background: transparent;

    color: #222222;

    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;

    text-align: left;
    cursor: pointer;
}

.faq-question:hover {
    color: #e86f00;
}

.faq-question:focus-visible {
    outline: 3px solid rgba(232, 111, 0, 0.25);
    outline-offset: -3px;
}


/*
 * Plus/minus icon.
 */
.faq-icon {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #fff3e8;
    color: #e86f00;

    font-size: 1.2rem;
    font-weight: 500;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: #e86f00;
    color: #ffffff;
}


/* ============================================================
   FAQ ANSWERS
   ============================================================ */

.faq-answer {
    /*
     * JavaScript sets this to the answer's real scrollHeight
     * when the question is opened.
     */
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 280ms ease,
        opacity 200ms ease;
}


.faq-answer.is-open {
    opacity: 1;
}


.faq-answer-inner {
    overflow: hidden;
}


.faq-answer-content {
    padding: 0 22px 22px;

    color: #666666;

    font-size: 0.94rem;
    line-height: 1.75;
}


.faq-answer-content p {
    margin: 0;
}


/* ---------------------------------------------------------------
   Bottom CTA
   --------------------------------------------------------------- */

.faq-cta {
    margin-top: 46px;
    padding: 30px;

    border-radius: 18px;

    background: #fff7f0;

    text-align: center;
}

.faq-cta h2 {
    margin: 0 0 8px;

    color: #222222;
    font-size: 1.35rem;
}

.faq-cta p {
    margin: 0 0 18px;

    color: #666666;
    line-height: 1.6;
}

.faq-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 22px;

    border-radius: 10px;

    background: #e86f00;
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.faq-cta-link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(232, 111, 0, 0.25);
}


/* ---------------------------------------------------------------
   Responsive adjustments
   --------------------------------------------------------------- */

@media (max-width: 600px) {
    .faq-page {
        padding: 34px 16px 56px;
    }

    .faq-header {
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-answer-content {
        padding: 0 18px 18px;
    }

    .faq-cta {
        padding: 24px 18px;
    }
}


/* ---------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-icon,
    .faq-answer,
    .faq-cta-link {
        transition: none;
    }
}