/* FAQ page – tap-and-reveal accordion */
.faq-section {
    background: var(--light-bg);
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Groups */
.faq-group {
    margin-bottom: 50px;
    scroll-margin-top: 110px;
}

.faq-group-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 22px;
}

/* Item */
.faq-item {
    background: var(--white);
    border: 1px solid rgba(10, 14, 39, 0.06);
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    scroll-margin-top: 110px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.faq-item:hover {
    box-shadow: var(--card-shadow);
}

.faq-item.is-open {
    border-color: var(--primary-solid);
    box-shadow: var(--hover-shadow);
}

.faq-question {
    margin: 0;
    font-size: inherit;
}

.faq-trigger {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: 0;
    border-radius: 16px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    color: var(--secondary-color);
    -webkit-tap-highlight-color: transparent;
}

.faq-trigger:focus-visible {
    outline: 3px solid var(--primary-solid);
    outline-offset: -3px;
}

.faq-number {
    flex: 0 0 24px;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-solid);
}

.faq-question-text {
    flex: 1 1 auto;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.faq-item.is-open .faq-question-text {
    color: var(--primary-solid);
}

/* Plus -> minus icon */
.faq-icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light-bg);
    transition: background 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.is-open .faq-icon {
    background: var(--primary-solid);
    transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
    background: var(--white);
}

.faq-item.is-open .faq-icon::after {
    transform: rotate(0deg);
}

/* Smooth reveal: animate grid row 0fr -> 1fr (no JS height measuring) */
.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
}

.faq-item.is-open .faq-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.faq-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer {
    padding: 0 26px 26px 26px;
    margin-left: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.faq-answer p {
    margin: 0 0 14px;
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer li::marker {
    color: var(--primary-solid);
    font-weight: 700;
}

.faq-answer strong {
    color: var(--secondary-color);
}

/* CTA */
.faq-cta {
    text-align: center;
    padding: 50px 30px;
    background: var(--secondary-color);
    border-radius: 20px;
    color: var(--white);
}

.faq-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.faq-cta p {
    max-width: 560px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-group-title {
        font-size: 1.3rem;
    }

    .faq-trigger {
        gap: 12px;
        padding: 18px 18px;
    }

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

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

    .faq-cta h2 {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-panel,
    .faq-answer,
    .faq-icon,
    .faq-icon::before,
    .faq-icon::after {
        transition-duration: 0.01s !important;
        transition-delay: 0s !important;
    }
}

.faq-empty {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}
