/* faq.css — homepage "Časté dotazy" section (src/templates/section_faq.php). Native
   <details>/<summary> accordion, no JS needed for expand/collapse. */

/* Vertical padding + beige background now come from the shared .section/.section--beige
   (styles.css) classes on the element itself. */

.faq-heading-link {
    color: inherit;
    text-decoration: underline;
}

.faq-groups {
    max-width: 800px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.faq-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--clr-green);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* "Zobrazit další dotazy" — an actual button (reuses the site's .btn.btn-secondary), not
   disguised as another question row. The questions it reveals are plain .faq-item/.faq-question
   cards sitting directly in their own .faq-list, same as the 6 static ones above — not nested
   inside this button. */
.faq-more {
    text-align: center;
}

.faq-more-toggle {
    gap: 0.5rem;
}

.faq-more-toggle::-webkit-details-marker {
    display: none;
}

.faq-more-toggle .faq-chevron {
    color: inherit;
    transition: transform 0.2s ease;
}

.faq-more[open] .faq-more-toggle .faq-chevron {
    transform: rotate(180deg);
}

.faq-more-label-open {
    display: none;
}

.faq-more[open] .faq-more-label-closed {
    display: none;
}

.faq-more[open] .faq-more-label-open {
    display: inline;
}

.faq-more-content {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .faq-groups {
        gap: 2rem;
    }

    .faq-more-content {
        gap: 2rem;
    }
}
