/* ============================================================
   Compact FAQ — reusable template-part component
   template-parts/faq-compact.php
   Left info panel (eyebrow, heading, intro, phone card) + a dense
   single-column accordion list. Uses the shared brand tokens from
   style.css :root — no component-local color palette. Background is
   deliberately NOT set here by default: pass 'bg' to the template part
   per page, since the right shade depends on what sits above/below it.
   ============================================================ */

.ssd-faq-compact {
    padding: clamp(28px, 4vw, 48px) 0;
}
/* style.css has a sitewide ".ssd-wrap section" rule that force-adds
   padding-left/right: clamp(20px, 5vw, 56px) !important to every raw
   <section> under .ssd-wrap — since this component is also a <section>,
   it was getting that ON TOP OF .ssd-faq-compact__inner's own border-box
   gutter below, double-insetting the FAQ relative to the post header
   above it. .ssd-wrap .ssd-faq-compact (two classes) outranks
   .ssd-wrap section (one class + one type), so this cancels just the
   generic padding — same fix already applied to .ssd-related. */
.ssd-wrap .ssd-faq-compact {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding: 56px 5px !important;
}

/* Border-box gutter technique: content area always equals exactly
   --ssd-container-w (matching the header) once the box hits its cap;
   below that, width:100% takes over and the 20px padding still holds
   as a safe mobile gutter. */
.ssd-faq-compact__inner {
    width: 100%;
    max-width: calc(var(--ssd-container-w) + 40px);
    margin: 0 auto !important;
    padding: 0 20px;
    box-sizing: border-box;
}

.ssd-faq-compact__grid {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 860px) {
    .ssd-faq-compact__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ── Left info panel ──
   top clears the site's sticky header (#elementor-sticky-header — 80px
   logo + 5px top/bottom padding ≈ 90-100px tall when scrolled) plus a
   little breathing room, so the panel settles just below it instead of
   scrolling underneath it. */
.ssd-faq-compact__aside {
    position: sticky;
    top: 116px;
}

@media (max-width: 860px) {
    .ssd-faq-compact__aside {
        position: static;
    }
}

.ssd-faq-compact__eyebrow {
    margin: 0 0 6px !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ssd-primary-dark);
}

.ssd-faq-compact__heading {
    margin: 0 !important;
    /* Matches the site's other section H2s (snapshot, offices, reviews,
       conversion) for one consistent heading scale across the page. */
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
    color: var(--ssd-text);
}

.ssd-faq-compact__intro {
    margin: 10px 0 0 !important;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ssd-text-secondary);
}

.ssd-faq-compact__intro a {
    color: var(--ssd-primary-dark);
}

.ssd-faq-compact__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px !important;
    padding: 12px 14px;
    background: var(--ssd-white);
    border: 1px solid var(--ssd-border);
    border-radius: var(--ssd-radius);
}

.ssd-faq-compact__contact-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ssd-primary);
    color: var(--ssd-white);
    display: grid;
    place-items: center;
}

.ssd-faq-compact__contact-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ssd-faq-compact__contact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ssd-muted);
}

.ssd-faq-compact__contact-phone {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ssd-text);
    text-decoration: none;
}

.ssd-faq-compact__contact-phone:hover {
    color: var(--ssd-primary-dark);
}

/* ── Right: dense single-column accordion list ── */
.ssd-faq-compact__list {
    background: var(--ssd-white);
    border: 1px solid var(--ssd-border);
    border-radius: var(--ssd-radius);
    overflow: hidden;
}

.ssd-faq-compact__item {
    border-bottom: 1px solid var(--ssd-border);
}

.ssd-faq-compact__item:last-child {
    border-bottom: 0;
}

.ssd-faq-compact__q {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ssd-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.ssd-faq-compact__item[open] > .ssd-faq-compact__q {
    color: var(--ssd-primary-dark);
}

.ssd-faq-compact__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ssd-light-bg);
    position: relative;
    transition: transform 200ms;
}

.ssd-faq-compact__icon::before,
.ssd-faq-compact__icon::after {
    content: '';
    position: absolute;
    background: var(--ssd-text-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ssd-faq-compact__icon::before {
    width: 8px;
    height: 1.5px;
}

.ssd-faq-compact__icon::after {
    width: 1.5px;
    height: 8px;
}

.ssd-faq-compact__item[open] > .ssd-faq-compact__q .ssd-faq-compact__icon {
    background: var(--ssd-primary);
    transform: rotate(45deg);
}

.ssd-faq-compact__item[open] > .ssd-faq-compact__q .ssd-faq-compact__icon::before,
.ssd-faq-compact__item[open] > .ssd-faq-compact__q .ssd-faq-compact__icon::after {
    background: var(--ssd-white);
}

.ssd-faq-compact__a {
    padding: 0 18px 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ssd-text-secondary);
}

.ssd-faq-compact__a p {
    margin: 0 !important;
}

.ssd-faq-compact__a p + p {
    margin-top: 8px !important;
}

.ssd-faq-compact__a a {
    color: var(--ssd-primary-dark);
}

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

@media (max-width: 480px) {
    .ssd-faq-compact__q {
        padding: 12px 14px;
        font-size: 13.5px;
    }
    .ssd-faq-compact__a {
        padding: 0 14px 12px;
    }
}
