/*!
 * True Makeup Theme — faq-page.css
 *
 * Styles for the FAQ page (faq-page-redesign.twig). Two-column
 * layout: category-grouped accordion on the left, sticky sidebar
 * of help cards on the right.
 *
 * The sidebar cards are structurally identical to the ones on the
 * legal and accordion page layouts — we mirror the BEM shape here
 * rather than sharing a stylesheet so the FAQ page keeps its own
 * ownership of every selector it uses.
 */


/* ──────────────────────────────────────────────────
 * Page shell
 * ────────────────────────────────────────────────── */

.tmt-faq-page                { background: #fff; padding: 70px 0 80px; }
.tmt-faq-page__inner         { max-width: var(--layout-max-width, 1700px); margin: 0 auto; }


/* ──────────────────────────────────────────────────
 * Heading strip
 * ────────────────────────────────────────────────── */

.tmt-faq-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 48px 40px;
    background: #F4F4F5;
    background-size: cover;
    background-position: center;
}
.tmt-faq-hero__title {
    margin: 0;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
}
.tmt-faq-hero__desc {
    margin: 8px 0 0;
    color: #000;
    opacity: 0.6;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
}


/* ──────────────────────────────────────────────────
 * Two-column layout
 * ────────────────────────────────────────────────── */

.tmt-faq-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
/* H1 has two children — the full title and the short "FAQ" — so
   the page can show whichever fits the viewport without wrapping
   the heading off the hero strip. Default state hides the short
   variant; the mobile media block below flips them. !important
   on both because the H1 sits inside layered hero/heading rules
   that could otherwise force span display behaviour. Class is
   chained twice (`.tmt-faq-hero__title .tmt-faq-hero__title-…`)
   to push specificity above any single-class override anywhere. */
.tmt-faq-hero__title .tmt-faq-hero__title-full  { display: inline !important; }
.tmt-faq-hero__title .tmt-faq-hero__title-short { display: none !important; }

@media (max-width: 1023px) {
    /* Tighten the gap between the masthead and the hero strip on
       mobile — desktop's 70px crown reads as too much breathing
       room on phones. Same trim as contact-page.css. */
    .tmt-faq-page { padding: 24px 0 48px; }

    .tmt-faq-grid { grid-template-columns: 1fr; }

    /* Swap to the short "FAQ" label on mobile so the heading
       always fits the hero strip width without breaking onto
       multiple lines or vanishing off-screen. */
    .tmt-faq-hero__title .tmt-faq-hero__title-full  { display: none !important; }
    .tmt-faq-hero__title .tmt-faq-hero__title-short { display: inline !important; }
}

.tmt-faq-sidebar { position: sticky; top: 120px; }


/* ──────────────────────────────────────────────────
 * Category accordion (single-open behaviour)
 * ────────────────────────────────────────────────── */

.tmt-faq-cat          { margin-bottom: 8px; background: #fff; }

.tmt-faq-cat__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #F4F4F5;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.tmt-faq-cat__toggle:hover          { border-color: #000; }
.tmt-faq-cat__toggle.is-active      { background: #000; border-color: #000; }

.tmt-faq-cat__toggle h2 {
    margin: 0;
    color: #000;
    font-family: var(--font-primary) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.tmt-faq-cat__toggle.is-active h2   { color: #fff; }

.tmt-faq-cat__toggle svg            { flex-shrink: 0; transition: transform 0.3s; }
.tmt-faq-cat__toggle.is-active svg  { transform: rotate(180deg); }
.tmt-faq-cat__toggle.is-active svg polyline { stroke: #fff; }

.tmt-faq-cat__panel                 { display: none; }
.tmt-faq-cat__panel.is-open         { display: block; }


/* ──────────────────────────────────────────────────
 * Individual FAQ question row (multi-open within a
 * category — users can leave several answers open)
 * ────────────────────────────────────────────────── */

.tmt-faq-item              { border-bottom: 1px solid #eaeaea; }
.tmt-faq-item:last-child   { border-bottom: none; }

.tmt-faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.tmt-faq-item__q:hover          { background: #F4F4F5; }
.tmt-faq-item__q p {
    margin: 0;
    color: #000;
    font-family: var(--font-primary) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: font-weight 0.15s;
}
.tmt-faq-item__q.is-active p    { font-weight: 700; }

.tmt-faq-item__q svg            { flex-shrink: 0; transition: transform 0.3s; }
.tmt-faq-item__q.is-active svg  { transform: rotate(180deg); }

.tmt-faq-item__a {
    display: none;
    padding: 0 24px 20px;
    color: #000;
    opacity: 0.7;
    font-family: var(--font-primary) !important;
    font-size: 14px;
    line-height: 1.8;
}
.tmt-faq-item__a.is-open        { display: block; }


/* ──────────────────────────────────────────────────
 * Sidebar help cards
 * ────────────────────────────────────────────────── */

.tmt-faq-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 40px 32px;
    text-align: center;
}
.tmt-faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #554350, #B07B5F, #CC9E80, #E0BAB2, #FAE8DD, #E0BAB2, #CC9E80, #B07B5F, #554350);
    background-size: 200% 100%;
    animation: tmt-gradient-flow 4s ease infinite;
}
.tmt-faq-card--blush   { background: #FFF0EF; }
.tmt-faq-card--grey    { background: #F4F4F5; }
.tmt-faq-card--dark    { background: #000; }
.tmt-faq-card--dark h4,
.tmt-faq-card--dark h4 strong { color: #fff !important; }
.tmt-faq-card--dark p         { color: rgba(255, 255, 255, 0.6) !important; }

.tmt-faq-card h4 {
    margin: 0 0 8px;
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 400;
}
.tmt-faq-card p {
    margin: 0 0 24px;
    color: #000;
    opacity: 0.6;
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.5;
}

.tmt-faq-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tmt-faq-cta:hover          { background: #FFF0EF; color: #000; border-color: #FFF0EF; }

.tmt-faq-cta--outline       { background: transparent; color: #000; }
.tmt-faq-cta--outline:hover { background: #FFF0EF; color: #000; border-color: #FFF0EF; }

.tmt-faq-cta--inverse {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.tmt-faq-cta--inverse:hover { background: #FFF0EF; color: #000; border-color: #FFF0EF; }
