/* =====================================================================
   Salvatore — FAQ (pure white)
   Inspired by /design/faq-widget.png — generous whitespace, accordions.
   ===================================================================== */

.sv-faq {
    background: var(--sv-paper);
    color: var(--sv-text);
    padding: var(--sv-section-y) var(--sv-gutter);
    position: relative;
}

.sv-faq__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

/* ---------- intro / left column ---------- */
.sv-faq__intro {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.sv-faq__title {
    font-family: var(--sv-font-display);
    font-weight: 500;
    color: var(--sv-text);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.sv-faq__intro-text {
    color: var(--sv-text-soft);
    font-size: clamp(15px, 1.1vw, 17px);
    max-width: 420px;
}

.sv-faq__cta {
    margin-top: 8px;
}

/* Image card under the intro copy */
.sv-faq__media {
    margin: 28px 0 0;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sv-faq__media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--sv-radius-lg);
    background: var(--sv-cream);
    box-shadow: var(--sv-shadow-md);
    line-height: 0;
    font-size: 0;
    transition: transform .8s var(--sv-ease), box-shadow .8s var(--sv-ease);
}

.sv-faq__media-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow-lg);
}

.sv-faq__media-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
    transition: transform 1.4s var(--sv-ease);
}

.sv-faq__media-frame:hover img {
    transform: scale(1.0);
}

.sv-faq__media-cap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--sv-font-script);
    font-style: italic;
    color: var(--sv-brown);
    font-size: 16px;
    line-height: 1.3;
}

.sv-faq__media-cap-line {
    width: 24px;
    height: 1px;
    background: var(--sv-gold);
    opacity: 0.7;
    flex-shrink: 0;
}

/* ---------- list ---------- */
.sv-faq__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sv-faq__item {
    background: var(--sv-paper);
    border: 1px solid var(--sv-line-soft);
    border-radius: var(--sv-radius-md);
    overflow: hidden;
    transition: border-color .4s var(--sv-ease), box-shadow .4s var(--sv-ease), background .4s var(--sv-ease);
}

.sv-faq__item:hover {
    border-color: rgba(183, 138, 60, 0.35);
    box-shadow: var(--sv-shadow-sm);
}

.sv-faq__item[open] {
    background: var(--sv-cream-soft);
    border-color: rgba(183, 138, 60, 0.45);
    box-shadow: var(--sv-shadow-md);
}

.sv-faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px clamp(20px, 3vw, 36px);
    font-family: var(--sv-font-display);
    font-weight: 500;
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--sv-text);
    line-height: 1.4;
    user-select: none;
}

.sv-faq__item summary::-webkit-details-marker { display: none; }

.sv-faq__q-num {
    font-family: var(--sv-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--sv-gold);
    background: var(--sv-cream);
    padding: 6px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.sv-faq__item[open] .sv-faq__q-num {
    background: var(--sv-paper);
}

.sv-faq__q-text {
    flex: 1;
}

.sv-faq__q-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--sv-line-mid);
    transition: background .4s var(--sv-ease), border-color .4s var(--sv-ease), transform .4s var(--sv-ease);
}

.sv-faq__q-icon span {
    position: absolute;
    background: var(--sv-text);
    transition: background .4s var(--sv-ease), transform .4s var(--sv-ease);
}

.sv-faq__q-icon span:nth-child(1) {
    top: 50%;
    left: 25%;
    right: 25%;
    height: 1px;
    transform: translateY(-50%);
}

.sv-faq__q-icon span:nth-child(2) {
    left: 50%;
    top: 25%;
    bottom: 25%;
    width: 1px;
    transform: translateX(-50%);
}

.sv-faq__item[open] .sv-faq__q-icon {
    background: var(--sv-text);
    border-color: var(--sv-text);
    transform: rotate(180deg);
}

.sv-faq__item[open] .sv-faq__q-icon span {
    background: var(--sv-paper);
}

.sv-faq__item[open] .sv-faq__q-icon span:nth-child(2) {
    transform: translateX(-50%) scaleY(0);
}

/* ---------- answer ---------- */
.sv-faq__a {
    padding: 0 clamp(20px, 3vw, 36px) 28px;
    padding-left: calc(clamp(20px, 3vw, 36px) + 22px + 11px); /* align with question text */
    color: var(--sv-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.sv-faq__a p {
    max-width: 60ch;
}

/* JS-driven smooth open/close (set from script via inline style) */
.sv-faq__item[data-animating="true"] .sv-faq__a {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .sv-faq__item,
    .sv-faq__q-icon,
    .sv-faq__q-icon span {
        transition: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .sv-faq__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sv-faq__intro {
        position: static;
    }
    .sv-faq__media {
        max-width: 100%;
        margin-top: 16px;
    }
    .sv-faq__media-frame {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 560px) {
    .sv-faq__item summary {
        padding: 22px 20px;
        gap: 14px;
        font-size: 16px;
    }
    .sv-faq__a {
        padding: 0 20px 24px;
        padding-left: 20px;
    }
}
