/* FAQ page — premium editorial system aligned with the rest of the site */
:root {
    --maxw: 1280px;
    --fq-forest: #1d4a38;
    --fq-forest-deep: #143a2c;
    --fq-cream: #f8f5ef;
    --fq-ivory: #fffdf9;
    --fq-sage: #e8f2ed;
    --fq-gold: #896936;
    --fq-muted: #6b6860;
    --fq-border: rgba(29, 74, 56, 0.12);
    --fq-section-space: clamp(4.75rem, 7vw, 7rem);
    --fq-shadow: 0 24px 70px -42px rgba(25, 50, 39, 0.36);
    --fq-shadow-hover: 0 34px 82px -42px rgba(25, 50, 39, 0.5);
}

.route-faq,
.faq-page {
    overflow: clip;
    background: var(--fq-ivory);
    color: var(--ink);
}

.fq-shell {
    width: min(100%, var(--maxw));
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    position: relative;
    z-index: 2;
}

.faq-page h1,
.faq-page h2,
.faq-page h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.faq-page h1 {
    margin: 0 0 1.15rem;
    font-size: clamp(2.75rem, 4.1vw, 4.15rem);
    line-height: 0.98;
}

.faq-page h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(2.15rem, 3.2vw, 3.35rem);
    line-height: 1.07;
}

.faq-page h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    line-height: 1.12;
}

.faq-page .eyebrow {
    margin-bottom: 1rem;
    color: var(--fq-gold);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.faq-page .btn {
    min-height: 48px;
    justify-content: center;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.faq-page .btn:hover {
    transform: translateY(-2px);
}

.route-faq .inner-heading,
.route-faq .inner-interactive,
.route-faq .inner-visual {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

.route-faq .inner-motion-line,
.route-faq .inner-morph,
.route-faq .inner-card-glow {
    display: none !important;
}

.fq-section {
    position: relative;
    padding-block: var(--fq-section-space);
}

.fq-transition {
    position: absolute;
    right: -5%;
    bottom: -1px;
    left: -5%;
    z-index: 3;
    pointer-events: none;
}

/* Hero */
.fq-hero {
    min-height: clamp(500px, 62svh, 560px);
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(3.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 86% 16%, rgba(245, 237, 216, 0.76), transparent 25rem),
        linear-gradient(135deg, var(--fq-ivory), var(--fq-cream));
}

.fq-hero__glow {
    position: absolute;
    left: -11rem;
    bottom: -14rem;
    width: 33rem;
    aspect-ratio: 1;
    border: 1px solid rgba(29, 74, 56, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.fq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    color: var(--fq-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fq-breadcrumb a {
    position: relative;
    color: var(--fq-forest);
}

.fq-breadcrumb a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 1px;
    background: var(--fq-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 200ms ease;
}

.fq-breadcrumb a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.fq-hero__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    align-items: center;
}

.fq-hero__copy {
    grid-column: 1 / span 6;
    position: relative;
    z-index: 3;
}

.fq-hero__lead {
    max-width: 600px;
    margin: 0;
    color: var(--fq-muted);
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    line-height: 1.55;
}

.fq-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.4rem;
    margin-top: 2rem;
}

.fq-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    padding-block: 0.6rem;
    color: var(--fq-forest);
    font-size: 0.9rem;
    font-weight: 500;
}

.fq-text-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

.fq-text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.fq-hero__visual {
    grid-column: 8 / -1;
    position: relative;
    width: min(100%, 560px);
    margin: 0 0 0 auto;
}

.fq-hero__visual::before {
    content: "";
    position: absolute;
    inset: -1.2rem 2.5rem 2.2rem -1.2rem;
    z-index: -1;
    border-radius: 22px;
    background: rgba(210, 226, 215, 0.62);
    transform: rotate(-2.5deg);
}

.fq-hero__image {
    overflow: hidden;
    height: clamp(315px, 28vw, 370px);
    aspect-ratio: auto;
    border: 6px solid rgba(255, 255, 255, 0.76);
    border-radius: 22px 50% 22px 22px / 22px 26% 22px 22px;
    background: var(--fq-sage);
    box-shadow: var(--fq-shadow);
}

.fq-hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fq-hero__visual:hover img {
    transform: scale(1.025);
}

.fq-hero__note {
    position: absolute;
    left: -1.25rem;
    bottom: -1.35rem;
    display: grid;
    min-width: 220px;
    padding: 0.95rem 1.15rem;
    border: 1px solid var(--fq-border);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 20px 50px -28px rgba(29, 74, 56, 0.5);
    backdrop-filter: blur(12px);
}

.fq-hero__note strong {
    color: var(--fq-forest);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
}

.fq-hero__note span {
    color: var(--fq-muted);
    font-size: 0.72rem;
}

.fq-transition--hero {
    height: clamp(38px, 5vw, 68px);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--fq-sage);
    transform: translateY(52%);
}

/* FAQ content */
.fq-answers {
    padding-top: calc(var(--fq-section-space) + 0.75rem);
    background:
        radial-gradient(circle at 5% 13%, rgba(232, 242, 237, 0.72), transparent 22rem),
        radial-gradient(circle at 96% 78%, rgba(245, 237, 216, 0.72), transparent 22rem),
        var(--fq-ivory);
}

.fq-answers__dots {
    position: absolute;
    top: 7rem;
    right: 2%;
    width: 245px;
    height: 210px;
    opacity: 0.045;
    background-image: radial-gradient(var(--fq-forest) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.fq-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.fq-heading {
    max-width: 780px;
}

.fq-heading-row > p {
    max-width: 540px;
    margin: 0;
    justify-self: end;
    color: var(--fq-muted);
    line-height: 1.75;
}

.fq-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.fq-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 1rem;
}

.fq-category-nav {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--fq-border);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.86);
    box-shadow: 0 16px 42px -36px rgba(29, 74, 56, 0.44);
}

.fq-category-nav > span {
    padding: 1rem 1.15rem;
    color: var(--fq-gold);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fq-category-nav a {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.95rem 1.15rem;
    border-top: 1px solid var(--fq-border);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.4;
}

.fq-category-nav a i {
    color: var(--fq-gold);
    font-size: 0.66rem;
    font-style: normal;
    letter-spacing: 0.1em;
}

.fq-category-nav a:hover {
    background: var(--fq-sage);
    color: var(--fq-forest);
}

.fq-help-card {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    border-radius: 16px;
    background: var(--fq-forest);
    box-shadow: 0 24px 60px -42px rgba(29, 74, 56, 0.7);
}

.fq-help-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -55px;
    width: 135px;
    aspect-ratio: 1;
    border: 1px solid rgba(245, 237, 216, 0.12);
    border-radius: 50%;
}

.fq-help-card__mark {
    display: grid;
    width: 46px;
    aspect-ratio: 1;
    place-items: center;
    margin-bottom: 1.3rem;
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.1);
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 1.7rem;
}

.fq-help-card__eyebrow {
    margin: 0 0 0.45rem;
    color: var(--gold-light);
    font-size: 0.67rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.fq-help-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 1.2rem;
    color: var(--fq-ivory);
}

.fq-help-card .btn {
    position: relative;
    z-index: 2;
    width: 100%;
    border-color: rgba(255, 253, 249, 0.45);
    color: var(--fq-ivory);
}

.fq-help-card .btn:hover {
    border-color: var(--gold-light);
    background: rgba(255, 253, 249, 0.08);
}

.fq-groups {
    display: grid;
    gap: clamp(3.5rem, 6vw, 5.5rem);
}

.fq-group {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.fq-group__heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.fq-group__heading > span {
    display: grid;
    width: 46px;
    aspect-ratio: 1;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--fq-sage);
    color: var(--fq-forest);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.fq-group__heading p {
    margin: 0 0 0.15rem;
    color: var(--fq-gold);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fq-group__heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 2.7vw, 2.45rem);
}

.fq-accordion {
    display: grid;
    gap: 0.7rem;
}

.fq-item {
    overflow: hidden;
    border: 1px solid var(--fq-border);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.88);
    box-shadow: 0 14px 36px -34px rgba(29, 74, 56, 0.45);
    transition:
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.fq-item:hover {
    border-color: rgba(176, 141, 87, 0.32);
    box-shadow: 0 22px 54px -38px rgba(29, 74, 56, 0.5);
    transform: translateY(-2px);
}

.fq-item[open] {
    border-color: rgba(29, 74, 56, 0.18);
    background: linear-gradient(145deg, rgba(232, 242, 237, 0.72), rgba(255, 253, 249, 0.96) 68%);
    box-shadow: var(--fq-shadow);
}

.fq-item summary {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) 2.7rem;
    gap: 0.8rem;
    align-items: center;
    min-height: 78px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.fq-item summary::-webkit-details-marker {
    display: none;
}

.fq-item__number {
    color: var(--fq-gold);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.fq-item__question {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.7vw, 1.42rem);
    line-height: 1.3;
}

.fq-item__toggle {
    display: grid;
    width: 2.7rem;
    aspect-ratio: 1;
    place-items: center;
    position: relative;
    border-radius: 50%;
    background: var(--fq-sage);
    transition: background 220ms ease, transform 220ms ease;
}

.fq-item__toggle::before,
.fq-item__toggle::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--fq-forest);
    transition: transform 220ms ease;
}

.fq-item__toggle::after {
    transform: rotate(90deg);
}

.fq-item[open] .fq-item__toggle {
    background: var(--fq-forest);
    transform: rotate(180deg);
}

.fq-item[open] .fq-item__toggle::before,
.fq-item[open] .fq-item__toggle::after {
    background: var(--fq-ivory);
}

.fq-item[open] .fq-item__toggle::after {
    transform: rotate(0);
}

.fq-item__answer {
    padding: 0 4.7rem 1.4rem 4.15rem;
}

.fq-item__answer p {
    max-width: 720px;
    margin: 0;
    color: var(--fq-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.fq-item__answer a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    color: var(--fq-forest);
    font-size: 0.86rem;
    font-weight: 500;
}

.fq-item__answer a:hover span {
    transform: translateX(3px);
}

.fq-item__answer a span {
    transition: transform 180ms ease;
}

/* Canonical final CTA */
.fq-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(5.5rem, 10vw, 9rem);
    text-align: center;
    background: linear-gradient(90deg, rgba(29, 74, 56, 0.97), rgba(29, 74, 56, 0.79));
    color: var(--fq-sage);
}

.fq-cta::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -5%;
    left: -5%;
    height: clamp(38px, 5vw, 68px);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: var(--fq-ivory);
    transform: translateY(-50%);
}

.fq-cta__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 70vw);
    aspect-ratio: 1;
    border: 1px solid rgba(245, 237, 216, 0.16);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 237, 216, 0.055), transparent 67%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.fq-cta .eyebrow {
    color: var(--gold-light);
}

.fq-cta h2 {
    max-width: 860px;
    margin-inline: auto;
    color: var(--fq-ivory);
}

.fq-cta p {
    max-width: 660px;
    margin: 1.5rem auto 0;
    color: rgba(255, 253, 249, 0.74);
    line-height: 1.75;
}

.fq-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    margin-top: 2rem;
}

.fq-cta__actions::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -20px -32px;
    border-radius: 999px;
    background: var(--gold-light);
    opacity: 0.06;
    filter: blur(20px);
}

/* Responsive */
@media (max-width: 980px) {
    .fq-hero {
        min-height: auto;
    }

    .fq-hero__copy {
        grid-column: 1 / span 7;
    }

    .fq-hero__visual {
        grid-column: 8 / -1;
    }

    .fq-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 780px) {
    .fq-hero {
        padding-top: 1.5rem;
    }

    .fq-hero__grid,
    .fq-heading-row,
    .fq-layout {
        grid-template-columns: 1fr;
    }

    .fq-hero__copy,
    .fq-hero__visual {
        grid-column: 1;
    }

    .fq-hero__copy {
        max-width: 690px;
    }

    .fq-hero__visual {
        width: min(92%, 580px);
        margin: 1.5rem auto 0;
    }

    .fq-heading-row {
        gap: 2rem;
    }

    .fq-heading-row > p {
        justify-self: start;
    }

    .fq-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .faq-page h1 {
        font-size: clamp(2.5rem, 11vw, 3.45rem);
    }

    .fq-hero__image {
        height: 255px;
    }

    .faq-page h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .fq-hero__actions,
    .fq-cta__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fq-hero__actions .btn,
    .fq-cta__actions .btn {
        width: 100%;
    }

    .fq-text-link {
        align-self: flex-start;
    }

    .fq-hero__visual {
        width: calc(100% - 8px);
    }

    .fq-hero__note {
        left: -0.6rem;
        min-width: 195px;
    }

    .fq-sidebar {
        grid-template-columns: 1fr;
    }

    .fq-item summary {
        grid-template-columns: 1.5rem minmax(0, 1fr) 2.5rem;
        gap: 0.55rem;
        min-height: 72px;
        padding-inline: 0.9rem;
    }

    .fq-item__toggle {
        width: 2.5rem;
    }

    .fq-item__answer {
        padding: 0 1rem 1.2rem 2.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-page *,
    .faq-page *::before,
    .faq-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
