/* ============================================================
   VAZ AUTO SOLUTIONS — FAQ Page
   Banner + centred accordion. Nothing else.

   Built entirely on the tokens already declared in /style.css :root
   (--steel-blue, --steel-blue-dark, --graphite, --light-gray,
    --white, --text-secondary, --text-muted, --border-light,
    --border-default). No new colours are introduced.

   No JavaScript — <details>/<summary> handles all interaction,
   so every answer stays readable, linkable and keyboard-operable
   even if scripts never load.
   ============================================================ */

/* ---------- Sub-line inside the existing page banner ---------- */
.faq-header-sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 40rem;
    margin-inline: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);
}

/* ---------- Section ---------- */
.faq-section {
    
    padding: 4rem 0 4.5rem;
}

/* Centred measure. ~50rem keeps question lines short enough to scan
   comfortably; wider than this and the eye loses the line. */
.faq-wrap {
    max-width: 50rem;
    margin-inline: auto;
}

/* ---------- Accordion item ---------- */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 0.6rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover { border-color: var(--border-default); }

/* Steel-blue rail wipes down the left edge when an answer opens */
.faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--steel-blue);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.28s ease;
}

.faq-item[open] {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 18px rgba(11, 31, 51, 0.06);
}

.faq-item[open]::before { transform: scaleY(1); }

/* ---------- Question ---------- */
.faq-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--graphite);
    transition: color 0.18s ease;
}

.faq-q::-webkit-details-marker { display: none; }

/* Lets a long question wrap instead of pushing the marker off the row */
.faq-q-text { min-width: 0; }

.faq-q:hover { color: var(--steel-blue-dark); }

.faq-q:focus-visible {
    outline: 2px solid var(--steel-blue);
    outline-offset: -2px;
    border-radius: 12px;
}

.faq-item[open] > .faq-q { color: var(--steel-blue-dark); }

/* ---------- Marker: thin plus that turns into a minus ---------- */
.faq-q-marker {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.1rem;
    border: 1px solid var(--border-default);
    border-radius: 50%;
    transition: border-color 0.2s ease, background-color 0.2s ease,
                transform 0.3s ease;
}

.faq-q-marker::before,
.faq-q-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--text-secondary);
    transition: transform 0.3s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.faq-q-marker::before {
    width: 9px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.faq-q-marker::after {
    width: 1.5px;
    height: 9px;
    transform: translate(-50%, -50%);
}

.faq-q:hover .faq-q-marker { border-color: var(--steel-blue-light); }

.faq-item[open] .faq-q-marker {
    background: var(--steel-blue);
    border-color: var(--steel-blue);
    transform: rotate(90deg);
}

.faq-item[open] .faq-q-marker::before { background: var(--white); }
.faq-item[open] .faq-q-marker::after  { opacity: 0; }

/* ---------- Answer ---------- */
.faq-a {
    padding: 0 1.25rem 1.25rem;
    animation: faqReveal 0.26s ease both;
}

.faq-a p {
    margin: 0;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .faq-header-sub { font-size: 0.95rem; }

    .faq-section { padding: 2.5rem 0 3rem; }

    .faq-q {
        padding: 0.95rem 1rem;
        font-size: 0.94rem;
        gap: 0.9rem;
    }

    .faq-a { padding: 0 1rem 1.1rem; }
    .faq-a p { font-size: 0.9rem; line-height: 1.7; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item::before,
    .faq-q,
    .faq-q-marker,
    .faq-q-marker::before,
    .faq-q-marker::after {
        transition: none;
    }
    .faq-a { animation: none; }
}