/* ==========================================================================
   FAQ (Frequently Asked Questions)
   ========================================================================== */

.faq {
    width: 100%;
    background-color: #ffffff;
    padding-block: 3.5rem;
}

.faq__title {
    color: #1c1c1c;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.faq__title-accent {
    color: #ffcc00;
}

.faq__list {
    max-width: 52rem; /* ~832px — within 800–900px spec */
    margin-inline: auto;
}

.faq__heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq__item {
    border-bottom: 1px solid #e5e7eb;
}

.faq__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.125rem 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #1c1c1c;
    transition: color 0.2s ease;
}

.faq__trigger:focus-visible {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
    border-radius: 4px;
}

.faq__question {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: inherit;
}

.faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.3s ease;
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.faq__icon::before {
    width: 12px;
    height: 2px;
}

.faq__icon::after {
    width: 2px;
    height: 12px;
}

.faq__item.is-open .faq__icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

/* Active / open state */
.faq__item.is-open .faq__trigger,
.faq__item.is-open .faq__icon {
    color: #00aeef;
}

/* Answer panel */
.faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.faq__item.is-open .faq__panel {
    grid-template-rows: 1fr;
}

.faq__panel-inner {
    overflow: hidden;
}

.faq__answer {
    margin: 0;
    padding-bottom: 1.25rem;
    color: #1c1c1c;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: none;
}

@media (min-width: 769px) {
    .faq__answer {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Mobile — generous touch targets
   ========================================================================== */

@media (max-width: 768px) {
    .faq {
        padding-block: 2.5rem;
    }

    .faq__trigger {
        padding-block: 1.25rem; /* 20px — within 16–20px spec */
    }

    .faq__question {
        font-size: 1rem;
    }

    .faq__answer {
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq__panel {
        transition: none;
    }

    .faq__icon,
    .faq__icon::before,
    .faq__icon::after,
    .faq__trigger {
        transition: none;
    }
}

/* ==========================================================================
   Shop variant — card accordion on cream background
   ========================================================================== */

.faq--shop {
    background-color: #faf8f3;
    background-image: radial-gradient(rgba(197, 147, 63, 0.14) 1px, transparent 1px);
    background-size: 18px 18px;
    padding-block: 3rem 3.5rem;
}

.faq--shop .faq__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.faq--shop .faq__list {
    max-width: 56rem;
}

.faq--shop .faq__item {
    border-bottom: none;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 6px 22px rgba(26, 54, 93, 0.07);
    overflow: hidden;
}

.faq--shop .faq__item + .faq__item {
    margin-top: 0.875rem;
}

.faq--shop .faq__trigger {
    padding: 1.25rem 1.5rem;
}

.faq--shop .faq__question {
    font-size: 1rem;
    font-weight: 800;
}

.faq--shop .faq__icon {
    color: #1c1c1c;
}

.faq--shop .faq__item.is-open .faq__trigger,
.faq--shop .faq__item.is-open .faq__icon {
    color: #1c1c1c;
}

.faq--shop .faq__panel-inner {
    padding-inline: 1.5rem;
}

.faq--shop .faq__answer {
    padding-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .faq--shop {
        padding-block: 2.5rem;
    }

    .faq--shop .faq__trigger {
        padding: 1.125rem 1.25rem;
    }

    .faq--shop .faq__panel-inner {
        padding-inline: 1.25rem;
    }
}
