/* ════════════════════════════════════════════════════════════════════
   LX FAQ – Frontend Accordion (Klosterhedens Planteskole stil)
   Fraunces display · Inter body · Green/cream/amber palette
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */

.lx-faq-wrap,
.lx-faq-wrap *,
.lx-faq,
.lx-faq * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Variables (Klosterheden palette) ─────────────────── */

.lx-faq-wrap {
    --lx-green-deep: #1f3b2b;
    --lx-green: #2f5d3f;
    --lx-green-50: #eaf1ec;
    --lx-cream: #f7f3ec;
    --lx-cream-warm: #efe8db;
    --lx-accent: #c47d34;
    --lx-accent-soft: #f4c87a;
    --lx-ink: #1a201c;
    --lx-ink-soft: #4a534d;
    --lx-line: #e3dccd;
    --lx-white: #ffffff;

    --lx-font-display: 'Fraunces', Georgia, serif;
    --lx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --lx-radius-md: 14px;
    --lx-radius-lg: 20px;
    --lx-radius-xl: 28px;

    --lx-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --lx-gutter: clamp(16px, 4vw, 48px);

    --lx-shadow-sm: 0 1px 2px rgba(31, 59, 43, .04), 0 1px 3px rgba(31, 59, 43, .06);
    --lx-shadow-md: 0 4px 12px rgba(31, 59, 43, .06), 0 2px 4px rgba(31, 59, 43, .04);
    --lx-shadow-card: 0 4px 16px rgba(31, 59, 43, .08), 0 16px 48px rgba(31, 59, 43, .10);
    --lx-shadow-open: 0 6px 24px rgba(31, 59, 43, .10), 0 2px 6px rgba(31, 59, 43, .06);
}

/* ─── Wrapper (background + decorative leaves) ──────────── */

.lx-faq-wrap {
    background-color: var(--lx-cream);
    color: var(--lx-ink);
    font-family: var(--lx-font-body);
    line-height: 1.6;
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lx-faq-wrap__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.lx-faq-wrap__bg-leaf {
    position: absolute;
    color: var(--lx-green);
    transform: rotate(var(--lx-leaf-rot, 0deg));
    animation: lxFaqLeafDrift 16s ease-in-out infinite;
    height: auto;
}

.lx-faq-wrap__bg-leaf:nth-child(2n) {
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes lxFaqLeafDrift {
    0%, 100% { transform: rotate(var(--lx-leaf-rot, 0deg)) translateY(0); }
    50%      { transform: rotate(var(--lx-leaf-rot, 0deg)) translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .lx-faq-wrap__bg-leaf { animation: none; }
}

/* ─── Section ───────────────────────────────────────────── */

.lx-faq {
    font-family: var(--lx-font-body);
    position: relative;
    z-index: 1;
    padding: 0 var(--lx-gutter);
}

.lx-faq-inner {
    max-width: 1480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

/* ─── Left column: header / intro ───────────────────────── */

.lx-faq-left {
    min-width: 0;
    position: sticky;
    top: 32px;
}

.lx-faq-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--lx-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lx-accent);
    margin-bottom: 1rem;
}

.lx-faq-label svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.lx-faq-title {
    font-family: var(--lx-font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.022em;
    color: var(--lx-green-deep);
    margin: 0 0 1.4rem 0;
    text-wrap: balance;
    font-variation-settings: 'opsz' 144;
}

.lx-faq-title em,
.lx-faq-title i {
    font-style: italic;
    font-weight: 400;
    color: var(--lx-accent);
    font-variation-settings: 'opsz' 96;
}

.lx-faq-desc {
    font-family: var(--lx-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--lx-ink-soft);
    margin: 0 0 2rem 0;
    max-width: 480px;
}

/* ─── CTA pill button (matches about-section style) ─────── */

.lx-faq-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    background-color: var(--lx-green-deep);
    color: var(--lx-white);
    border-radius: 100px;
    font-family: var(--lx-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.22s var(--lx-ease),
                transform 0.18s var(--lx-ease),
                box-shadow 0.22s var(--lx-ease);
    box-shadow: 0 4px 12px rgba(31, 59, 43, .18);
    white-space: nowrap;
}

.lx-faq-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s var(--lx-ease);
}

@media (hover: hover) and (pointer: fine) {
    .lx-faq-cta:hover {
        background-color: #142819;
        color: var(--lx-white);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(31, 59, 43, .28);
    }
    .lx-faq-cta:hover svg { transform: translateX(3px); }
}

.lx-faq-cta:focus-visible {
    outline: 2px solid var(--lx-accent);
    outline-offset: 3px;
}

/* ─── Accordion list ────────────────────────────────────── */

.lx-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.lx-faq-item {
    background: var(--lx-white);
    border: 1px solid var(--lx-line);
    border-radius: var(--lx-radius-lg);
    overflow: hidden;
    transition: border-color 0.3s var(--lx-ease),
                box-shadow 0.3s var(--lx-ease),
                background-color 0.3s var(--lx-ease);
    box-shadow: var(--lx-shadow-sm);
}

.lx-faq-item:hover {
    border-color: rgba(47, 93, 63, .35);
    box-shadow: var(--lx-shadow-md);
}

.lx-faq-item.open {
    border-color: var(--lx-green);
    background-color: var(--lx-white);
    box-shadow: var(--lx-shadow-open);
}

/* ─── Question heading wrapper (SEO h3 reset) ──────────── */

.lx-faq-q-heading {
    margin: 0;
    padding: 0;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: inherit;
}

/* ─── Question button ───────────────────────────────────── */

.lx-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 22px 26px;
    font-family: var(--lx-font-display);
    font-weight: 500;
    font-size: 18px;
    color: var(--lx-green-deep);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.25s var(--lx-ease);
    gap: 16px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
    font-variation-settings: 'opsz' 96;
}

.lx-faq-q:hover,
.lx-faq-q:focus,
.lx-faq-q:active {
    color: var(--lx-green);
    background: none;
    outline: none;
}

.lx-faq-q:focus-visible {
    outline: 2px solid var(--lx-accent);
    outline-offset: -2px;
    border-radius: var(--lx-radius-lg);
}

.lx-faq-q-text {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    flex: 1;
}



/* ─── Toggle icon (circular, matches about-section bullets) ─ */

.lx-faq-q-ico {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lx-green-50);
    color: var(--lx-green);
    transition: background-color 0.35s var(--lx-ease),
                color 0.35s var(--lx-ease),
                transform 0.35s var(--lx-ease);
}

.lx-faq-q-ico svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--lx-ease);
}

.lx-faq-item.open .lx-faq-q-ico {
    background-color: var(--lx-green-deep);
    color: var(--lx-white);
}

.lx-faq-item.open .lx-faq-q-ico svg {
    transform: rotate(45deg);
}

/* ─── Answer panel ──────────────────────────────────────── */

.lx-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--lx-ease);
}

.lx-faq-a-inner {
    padding: 4px 26px 24px 26px;
    font-family: var(--lx-font-body);
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--lx-ink-soft);
    max-width: 620px;
    word-break: break-word;
}

/* subtle separator above answer content */
.lx-faq-a-inner::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, var(--lx-line), transparent);
    margin-bottom: 16px;
}

.lx-faq-a-inner p {
    margin: 0 0 14px;
}

.lx-faq-a-inner p:last-child {
    margin-bottom: 0;
}

.lx-faq-a-inner a {
    color: var(--lx-green-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s var(--lx-ease);
}

.lx-faq-a-inner a:hover {
    color: var(--lx-accent);
}

.lx-faq-a-inner strong {
    color: var(--lx-green-deep);
    font-weight: 600;
}

.lx-faq-a-inner ul,
.lx-faq-a-inner ol {
    margin: 0 0 14px 1.2rem;
    padding: 0;
}

.lx-faq-a-inner li {
    margin-bottom: 6px;
}

.lx-faq-a-inner li::marker {
    color: var(--lx-accent);
}

/* ─── Accordion-only mode ───────────────────────────────── */

.lx-faq--accordion-only .lx-faq-inner,
.lx-faq-wrap--accordion-only .lx-faq-inner {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 860px;
}

.lx-faq--accordion-only .lx-faq-list,
.lx-faq-wrap--accordion-only .lx-faq-list {
    width: 100%;
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 960px) {
    .lx-faq-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lx-faq-left {
        position: static;
    }

    .lx-faq-desc {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .lx-faq-wrap {
        padding: clamp(2.5rem, 8vw, 3.5rem) 0;
    }

    .lx-faq-q {
        font-size: 16px;
        padding: 18px 20px;
        gap: 12px;
    }

    .lx-faq-q-ico {
        width: 34px;
        height: 34px;
    }

    .lx-faq-a-inner {
        padding: 4px 20px 22px 20px;
        font-size: 15px;
        max-width: 100%;
    }

    .lx-faq-cta {
        padding: 0.85rem 1.4rem;
        font-size: 12px;
    }
}

/* ─── Reduced motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .lx-faq-cta,
    .lx-faq-item,
    .lx-faq-q,
    .lx-faq-q-ico,
    .lx-faq-q-ico svg,
    .lx-faq-a {
        transition: none !important;
    }
}
