/* ==========================================================================
   FAQ page (/faq/)
   Final theme: balanced corners (14px cards, 9px chips), thin 1px borders, flat cards,
   soft gold on hover. Built on theme.css tokens and home.css components (.faq-item).
   ========================================================================== */

.theme-faq main {
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 14px;
    --edge: 1px solid var(--line-strong);
    --lift: 0 10px 28px rgba(42, 31, 23, .07);
    --edge-hover: rgba(188, 140, 63, .6);
    --fq-y: clamp(48px, 5.5vw, 76px);
}
.theme-faq main > section.section { padding-block: var(--fq-y); }

/* ---------- Banner (image only, full width) ---------- */
.fq-banner {
    position: relative;
    height: clamp(500px, 86vh, 880px);
    background: var(--ink);
    overflow: hidden;
}
.fq-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.fq-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft), var(--gold), var(--gold-deep));
}

/* ---------- Title ---------- */
.fq-head {
    padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 60px);
    background:
        radial-gradient(760px 300px at 50% 0%, rgba(232, 189, 85, .12), transparent 70%),
        linear-gradient(180deg, var(--cream), var(--paper));
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.fq-head .ornament { margin-bottom: 18px; }
.fq-head h1 {
    position: relative;
    max-width: 30em;
    margin: 0 auto;
    padding-bottom: 24px;
    font-size: var(--fs-title);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.012em;
}
.fq-head h1 em { color: var(--gold-ink); font-style: italic; font-weight: 400; }
.fq-head h1::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 96px; height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-deep) 70%, transparent);
}

/* ---------- Topic groups: image beside a titled accordion ---------- */
.fq-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
}
.fq-split--rev .fq-frame { order: 2; }

/* Framed image: thin border, balanced corners, offset gold outline */
.fq-frame { position: relative; margin: 0; }
.fq-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(188, 140, 63, .55);
    border-radius: var(--radius);
    transform: translate(14px, 14px);
}
.fq-frame img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: var(--edge);
    border-radius: var(--radius);
    background: var(--sand);
}

/* Title bar: icon badge to the left of the title, one gold underline beneath both */
.fq-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 20px;
}
.fq-titlebar::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, transparent);
}
.fq-mode {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border: var(--edge);
    border-radius: var(--radius);
    background: rgba(232, 189, 85, .16);
    color: var(--gold-deep);
}
.fq-mode .icon, .fq-mode svg { width: 24px; height: 24px; }
.fq-mode svg:not(.icon) { fill: currentColor; stroke: none; }
.theme-faq .fq-titlebar h2 { margin: 0; padding-bottom: 0; font-size: var(--fs-section); line-height: 1.2; }
.theme-faq .fq-titlebar h2::after { display: none; }

/* Accordion: the homepage .faq-item, grouped in one thin-bordered card */
.fq-list {
    border: var(--edge);
    border-radius: var(--radius);
    background: #fff;
    padding: 6px 28px;
}
.fq-list .faq-item:first-child { border-top: 0; }
.fq-list .faq-item:last-child { border-bottom: 0; }
.fq-list .faq-item summary { padding-block: 20px; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); }
.fq-list .faq-item p { padding: 0 8px 24px 0; text-align: justify; hyphens: manual; }
.fq-list .faq-item p a { color: var(--gold-ink); text-decoration: underline; text-decoration-color: rgba(188, 140, 63, .5); text-underline-offset: 4px; }
.fq-list .faq-item p a:hover { color: var(--heading); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .fq-banner { height: clamp(340px, 62vh, 540px); }
    .fq-split, .fq-split--rev { grid-template-columns: minmax(0, 1fr); }
    .fq-split--rev .fq-frame { order: 0; }
    .fq-frame { width: calc(100% - 14px); max-width: 600px; margin-inline: auto; }
    .fq-frame::before { transform: translate(10px, 10px); }
    .fq-frame img { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
    .fq-titlebar { gap: 14px; }
    .fq-mode { width: 46px; height: 46px; }
    .fq-mode .icon, .fq-mode svg { width: 21px; height: 21px; }
    .fq-list { padding: 4px 18px; }
    .fq-list .faq-item p { padding-right: 0; text-align: left; }
}
