/**
 * Components stylesheet (Phase 13, D-17, CUT-02; plan 13-11).
 *
 * Styles the shared renderers in inc/components/: components.faq and components.trust-bar
 * (components.related uses .ez-svc-related from global.css). The rules are copies of the product-base.css rules, so the theme can
 * delete inc/products/* and product-base.css later (plan 13-22) without About, Contact and the
 * services pages losing them. Enqueued as eazysoft-components (version = theme version)
 * immediately before eazysoft-product-base, so with product-base still present the flag-off
 * cascade is unchanged.
 */

/* ============================================
   FAQ section header (components.faq)
   ============================================ */

.ez-prod-faq-section .ez-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.ez-prod-faq-section .ez-section__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--product-primary, var(--wp--preset--color--primary));
    margin: 0.75rem 0 0;
}

/* ============================================
   FAQ accordion (components.faq)
   ============================================ */

.ez-prod-faq-section .ez-prod-faq {
    max-width: 820px;
    margin-inline: auto;
}

.ez-prod-faq-section .ez-prod-faq__item {
    border: 1px solid var(--wp--preset--color--border, #e2e8f0);
    border-radius: 14px;
    background: var(--wp--preset--color--surface, #fff);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ez-prod-faq-section .ez-prod-faq__item[open] {
    border-color: var(--product-accent, #4a90d9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.ez-prod-faq-section .ez-prod-faq__q {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--product-primary, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ez-prod-faq-section .ez-prod-faq__q::-webkit-details-marker {
    display: none;
}

.ez-prod-faq-section .ez-prod-faq__q::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--product-accent, #4a90d9);
    transition: transform .2s ease;
}

.ez-prod-faq-section .ez-prod-faq__item[open] .ez-prod-faq__q::after {
    transform: rotate(45deg);
}

.ez-prod-faq-section .ez-prod-faq__a {
    padding: 0 1.5rem 1.35rem;
    color: var(--wp--preset--color--text-muted, #64748b);
    line-height: 1.9;
}

.ez-prod-faq-section .ez-prod-faq__a p {
    margin: 0 0 .75rem;
}

.ez-prod-faq-section .ez-prod-faq__a p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Trust bar (components.trust-bar)
   ============================================ */

.ez-prod-trust {
    background: var(--wp--preset--color--surface, #fff);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--wp--preset--color--border, #e2e8f0);
}

.ez-prod-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.ez-prod-trust__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ez-prod-trust__stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--product-primary, var(--wp--preset--color--primary));
    line-height: 1.2;
}

.ez-prod-trust__desc {
    font-size: 0.9rem;
    color: var(--wp--preset--color--text-muted, #64748b);
}

@media (max-width: 992px) {
    .ez-prod-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
