/* ════════════════════════════════════════════════════════
   FAQ SECTION STYLES
   Paste this block into css/style.css  OR
   save as css/faq.css and load on every page via head.php.
   ════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.faq-section {
    padding: 4rem 0 5rem;                      /* ← reduced top: ornament sits above with its own margin */
}

/* ── Header block (centred) ── */
.faq-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;                     /* ← space below header */
}
.faq-title {
    margin-bottom: 0.8rem;
}
.faq-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.2rem);    /* ← INTRO TEXT SIZE */
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto;
}

/* ── FAQ list ── */
.faq-list {
    max-width: 800px;                          /* ← LIST MAX WIDTH */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Individual FAQ item ── */
.faq-item {
    border-bottom: 1px solid rgba(201,168,76,0.15);
    position: relative;
}
.faq-item:first-child {
    border-top: 1px solid rgba(201,168,76,0.15);
}

/* Gold left accent line — appears on open item */
.faq-item::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faq-item.open::before { opacity: 1; }

/* ── Question button ── */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1rem 1.5rem 1.5rem;       /* ← QUESTION PADDING */
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
}
.faq-question:hover {
    background: rgba(201,168,76,0.04);
}

/* h3 inside the button — reset heading styles, use as text */
.faq-q-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem); /* ← QUESTION TEXT SIZE */
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    margin: 0; padding: 0;
    transition: color var(--transition);
}
.faq-question:hover .faq-q-text,
.faq-item.open .faq-q-text {
    color: var(--gold-light);
}

/* Chevron icon — CSS-only, rotates on open */
.faq-chevron {
    flex-shrink: 0;
    width: 18px; height: 18px;                /* ← CHEVRON SIZE */
    position: relative;
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 2px;
    background: rgba(201,168,76,0.05);
    transition: background var(--transition), border-color var(--transition);
}
.faq-chevron::before,
.faq-chevron::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 1.5px;
    background: var(--gold-dim);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, background var(--transition);
}
/* + icon: two lines forming a cross */
.faq-chevron::before { transform: translate(-50%, -50%) rotate(0deg); }
.faq-chevron::after  { transform: translate(-50%, -50%) rotate(90deg); }

/* Open state: cross becomes minus */
.faq-item.open .faq-chevron {
    background: rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.6);
}
.faq-item.open .faq-chevron::before { background: var(--gold-light); }
.faq-item.open .faq-chevron::after  {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

/* ── Answer panel ── */
.faq-answer {
    /*
     * Google reads this content regardless of visual state
     * because the text is in the DOM on page load.
     * We use max-height + overflow to animate open/close.
     */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item.open .faq-answer {
    max-height: 600px;                         /* ← large enough for longest answer */
}

.faq-answer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.98rem, 1.6vw, 1.08rem); /* ← ANSWER TEXT SIZE */
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
    padding: 0 1.5rem 1.8rem 1.5rem;          /* ← ANSWER TEXT PADDING */
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .faq-section    { padding: 5rem 0 4rem; }
    .faq-question   { padding: 1.2rem 0.8rem 1.2rem 1rem; }
    .faq-answer p   { padding: 0 1rem 1.5rem 1rem; }
    .faq-q-text     { font-size: 1rem; }
}
