/* ============================================================================
   FAQ.CSS - the public FAQ page at /faq/

   The template has linked this file since it was written and the file never
   existed: /static/webpages/css/faq.css answered 404. Two consequences, both
   live on a page that sits in the sitemap at priority 0.7:

   * `.faq__answer--hidden` had no rule, so the accordion JS toggled a class
     that did nothing and all 53 answers stood permanently open.
   * Nothing else on the page had a surface, so it rendered as a wall of text.

   `page-faq.css` is a different component - the per-page help drawer's FAQ -
   and styles `.page-faq__*`. It was never going to reach this page.

   Vocabulary follows service-pages.css so /faq/ reads as the same site.
   ============================================================================ */

.faq-hero {
    padding: 3.5rem 0 3rem;
    text-align: center;
    color: #ffffff;
    background: var(--gradient-accent, linear-gradient(135deg, #F3C130 0%, #FF5851 100%));
    margin-bottom: 3rem;
}

/* brandkit-typography paints every h1 with a navy-to-grey gradient text-fill,
   which on a coloured band is dark on dark. Two selectors beat the bare `h1`,
   so it is undone here rather than with an !important. */
.faq-hero h1 {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.faq-hero .lead {
    max-width: 44rem;
    margin: 0 auto;
    font-size: 1.125rem;
    opacity: 0.95;
}

.faq-hero__subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.faq-section {
    padding-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   CATEGORY
   -------------------------------------------------------------------------- */

.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category__title {
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--brand-blue, #313b61);
    border-bottom: 1px solid #e8eaed;
}

.faq-category__title i {
    color: var(--brand-yellow, #F3C130);
}

/* --------------------------------------------------------------------------
   ITEM - the question is a div, so the pointer and the focus ring are ours
   -------------------------------------------------------------------------- */

.faq-item {
    margin-bottom: 0.75rem;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 0.625rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 0.0625rem 0.1875rem rgba(15, 15, 26, 0.06);
}

.faq__question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: #0f0f1a;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.faq__question:hover {
    background: #f8f9fb;
}

/* The +/- the JS swaps. Fixed size so swapping the glyph does not reflow the
   question next to it. */
.faq__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-blue, #313b61);
    background: #fff7dc;
    border-radius: 50%;
}

.faq__answer {
    padding: 0 1.25rem 1.125rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #6b7280;
}

/* The rule the whole page was missing. */
.faq__answer--hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   CONTACT CTA
   -------------------------------------------------------------------------- */

.faq-contact__cta {
    padding: 2.5rem 2rem;
    margin-top: 1rem;
    text-align: center;
    background: #f8f9fb;
    border: 1px solid #e8eaed;
    border-radius: 0.875rem;
}

.faq-contact__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue, #313b61);
}

.faq-contact__title i {
    color: var(--brand-yellow, #F3C130);
}

.faq-contact__desc {
    max-width: 32rem;
    margin-inline: auto;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-contact__btn {
    font-weight: 600;
    border-radius: var(--control-radius, 0.3125rem);
}

/* --------------------------------------------------------------------------
   PHONE
   -------------------------------------------------------------------------- */

@media (max-width: 47.9375rem) {
    .faq-hero {
        padding: 2.5rem 0 2rem;
        margin-bottom: 2rem;
    }

    .faq-hero h1 {
        font-size: 1.875rem;
    }

    .faq-hero .lead {
        font-size: 1rem;
    }

    .faq-category__title {
        font-size: 1.125rem;
    }

    .faq__question {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .faq__answer {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }

    .faq-contact__cta {
        padding: 1.75rem 1.25rem;
    }

    /* Three full-width buttons rather than three ragged ones. */
    .faq-contact__btn {
        flex: 1 1 100%;
        min-height: 2.75rem;
    }
}
