/* ============================================================
   FAQ block
   ============================================================ */

.faq-block {
    --faq-primary:      #282837;
    --faq-primary-600:  #7E7E87;
    --faq-primary-800:  #53535F;
    --faq-secondary:    #a8ffb0;
    --faq-border:       #d4d4d7;
    --faq-light-grey:   #EEEEEF;

    width: 100%;
}

/* ---- Background presets ---- */
.faq-bg-white      { background-color: #ffffff; }
.faq-bg-light-grey { background-color: var(--faq-light-grey); }
.faq-bg-charcoal   { background-color: var(--faq-primary); }
.faq-bg-mint       { background-color: var(--faq-secondary); }

/* ---- Padding presets ---- */
.faq-pad-standard { padding-top: 4rem; padding-bottom: 4rem; }
.faq-pad-large    { padding-top: 6rem; padding-bottom: 6rem; }

/* ---- Layout: contained ---- */
@media (min-width: 768px) {
    .faq-layout--contained {
        border-radius: 1.5rem;
        margin-top: 3.5rem;
        margin-bottom: 3.5rem;
    }
}

/* ---- Layout: full-width breakout ---- */
.faq-layout--full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.editor-styles-wrapper .faq-layout--full-width {
    width: 100%;
    position: static;
    left: auto;
    transform: none;
}

/* ---- Charcoal overrides ---- */
.faq-bg-charcoal .faq-eyebrow          { color: var(--faq-secondary); }
.faq-bg-charcoal .faq-heading          { color: #ffffff; }
.faq-bg-charcoal .faq-list             { border-top-color: #53535F; }
.faq-bg-charcoal .faq-item             { border-bottom-color: #53535F; }
.faq-bg-charcoal .faq-item__question   { color: #ffffff; }
.faq-bg-charcoal .faq-item__chevron    { color: var(--faq-secondary); }
.faq-bg-charcoal .faq-item__answer     { color: #A9A9AF; }
.faq-bg-charcoal .faq-item__answer a   { color: var(--faq-secondary); }


.faq-block h1, .faq-block h2, .faq-block h3,
.faq-block h4, .faq-block h5, .faq-block h6,
.faq-block p {
    padding-bottom: 0;
}

/* ---- Inner container ---- */
.faq-inner {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---- Header ---- */
.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-eyebrow {
    font-family: Inter, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faq-eyebrow-color, #7E7E87);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.faq-heading {
    font-family: BeausiteSlickWeb-Light, Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--faq-primary);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .faq-heading {
        font-size: 2.5rem;
    }
}

/* ---- FAQ list ---- */
.faq-list {
    border-top: 1px solid var(--faq-border);
}

/* ---- FAQ item ---- */
.faq-item {
    border-bottom: 1px solid var(--faq-border);
}

.faq-item__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.25rem 0;
    text-align: left;
    cursor: pointer;
    color: var(--faq-primary);
}

.faq-item__toggle:focus-visible {
    outline: 2px solid var(--faq-secondary);
    outline-offset: 2px;
    border-radius: 2px;
}

.faq-item__question {
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--faq-primary);
}

@media (min-width: 768px) {
    .faq-item__question {
        font-size: 1.0625rem;
    }
}

/* ---- Chevron ---- */
.faq-item__chevron {
    flex-shrink: 0;
    color: var(--faq-primary-600);
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

/* ---- Answer ---- */
.faq-item__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.faq-item__body.is-open {
    max-height: 600px;
}

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

.faq-item__answer {
    padding-bottom: 1.25rem;
    font-family: Inter, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.625;
    color: var(--faq-primary-800);
}

.faq-item__answer p {
    margin: 0 0 0.75rem;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

.faq-item__answer a {
    color: var(--faq-primary);
    text-decoration: underline;
}

/* ---- In blog posts: remove section spacing so the block flows with content ---- */
/* WordPress adds .single to <body> on all single post views */
.single .faq-pad-standard,
.single .faq-pad-large {
    padding-top: 0;
    padding-bottom: 0;
}

.single .faq-layout--contained {
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Neutralise full-width breakout inside the post content column */
.single .faq-layout--full-width {
    width: 100%;
    position: static;
    left: auto;
    transform: none;
}

/* Remove inner side padding so FAQ aligns with surrounding post text */
.single .faq-inner {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
