/* ============================================================
   Inviton FAQ page (Views/NewHome/Faq.cshtml)
   Scoped to .inv-faq. Dark/light driven by the .dark class on <html>
   (same as the rest of the site). Fonts (Inter + Montserrat) are loaded
   by _Layout.cshtml, so no @import here.
   ============================================================ */

.inv-faq {
    --inv-accent: #0284c7;
    --inv-grad: linear-gradient(135deg, #2682c3 0%, #3268ce 50%, #5348de 100%);
    --inv-ink: #101729;
    --inv-muted: #4b576a;
    --inv-soft: #64748b;
    --inv-card: #ffffff;
    --inv-line: #e2e8f0;
    --inv-chip-bg: #f2f5f9;
    --inv-chip-tx: #4a5669;
    --inv-tag-tx: #3268ce;
    --inv-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -16px rgba(15, 23, 42, .18);
    --inv-font-display: "Montserrat", system-ui, -apple-system, sans-serif;
    --inv-font-body: "Inter", system-ui, -apple-system, sans-serif;

    max-width: 1180px;
    margin: 0 auto;
    padding: 6rem 20px 72px;
    background: transparent;
    color: var(--inv-ink);
    font-family: var(--inv-font-body);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.dark .inv-faq {
    --inv-accent: #38bdf8;
    --inv-ink: #f8fafc;
    --inv-muted: #cbd5e1;
    --inv-soft: #94a3b8;
    --inv-card: rgba(255, 255, 255, .04);
    --inv-line: rgba(255, 255, 255, .10);
    --inv-chip-bg: rgba(255, 255, 255, .06);
    --inv-chip-tx: #7dd3fc;
    --inv-tag-tx: #7dd3fc;
    --inv-shadow: 0 20px 50px -28px rgba(0, 0, 0, .7);
}

.inv-faq * {
    box-sizing: border-box;
}

/* ---- Page heading (centered) ---- */
.inv-faq__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 46px;
}

.inv-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--inv-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--inv-chip-tx);
    background: var(--inv-chip-bg);
    border: 1px solid var(--inv-line);
    padding: 7px 14px;
    border-radius: 999px;
    margin: 0;
}

.inv-faq__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, .7);
}

.inv-faq__title {
    font-family: var(--inv-font-display);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.02em;
    margin: 18px 0 14px;
}

.inv-faq__title .grad {
    background: var(--inv-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.inv-faq__head p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--inv-muted);
    margin: 0;
}

.inv-faq__head a {
    color: var(--inv-accent);
    font-weight: 600;
    text-decoration: none;
}

.inv-faq__head a:hover {
    text-decoration: underline;
}

/* ---- Two columns with a divider ---- */
.inv-faq__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.inv-faq__col {
    min-width: 0;
}

.inv-faq__col--left {
    padding-right: 44px;
}

.inv-faq__col--right {
    padding-left: 44px;
    border-left: 1px solid var(--inv-line);
}

.inv-faq__colhead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.inv-faq__coltag {
    font-family: var(--inv-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--inv-tag-tx);
    background: var(--inv-chip-bg);
    border: 1px solid var(--inv-line);
    padding: 6px 12px;
    border-radius: 999px;
}

.inv-faq__colhead h2 {
    font-family: var(--inv-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--inv-ink);
}

/* ---- Search ---- */
.inv-faq__search {
    position: relative;
    margin: 0 0 22px;
}

.inv-faq__search input {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--inv-ink);
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--inv-line);
    border-radius: 12px;
    background: var(--inv-card);
    box-shadow: var(--inv-shadow);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.inv-faq__search input::placeholder {
    color: var(--inv-soft);
}

.inv-faq__search input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .18);
}

.inv-faq__search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--inv-soft);
    pointer-events: none;
}

/* ---- Categories ---- */
.inv-faq__cat {
    font-family: var(--inv-font-display);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--inv-soft);
    margin: 48px 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.inv-faq__cat::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--inv-line);
}

.inv-faq__cat:first-of-type {
    margin-top: 6px;
}

/* ---- Items / accordion ---- */
.inv-faq__item {
    border: 1px solid var(--inv-line);
    border-radius: 14px;
    background: var(--inv-card);
    box-shadow: var(--inv-shadow);
    margin: 0 0 10px;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease;
}

.inv-faq__item:hover {
    transform: translateY(-1px);
}

.inv-faq__item[open] {
    border-color: #0ea5e9;
}

.inv-faq__q {
    width: 100%;
    font-family: var(--inv-font-display);
    font-weight: 700;
    font-size: .99rem;
    text-align: left;
    color: var(--inv-ink);
    padding: 16px 48px 16px 18px;
    cursor: pointer;
    display: block;
    line-height: 1.4;
    list-style: none;
    position: relative;
}

.inv-faq__q::-webkit-details-marker {
    display: none;
}

.inv-faq__q:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: -3px;
    border-radius: 14px;
}

.inv-faq__q::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 20px;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--inv-accent);
    border-bottom: 2.5px solid var(--inv-accent);
    transform: rotate(45deg);
    transition: transform .22s ease;
}

.inv-faq__item[open] .inv-faq__q::after {
    transform: rotate(-135deg);
    top: 24px;
}

.inv-faq__a {
    padding: 0 18px 18px;
    color: var(--inv-muted);
    font-size: .96rem;
    line-height: 1.62;
}

.inv-faq__a p {
    margin: 0 0 .65em;
}

.inv-faq__a p:last-child {
    margin-bottom: 0;
}

.inv-faq__a a {
    color: var(--inv-accent);
    font-weight: 600;
    text-decoration: none;
}

.inv-faq__a a:hover {
    text-decoration: underline;
}

.inv-faq__a strong {
    color: var(--inv-ink);
    font-weight: 600;
}

.inv-faq__a ul {
    margin: .5em 0 0;
    padding-left: 1.15em;
}

.inv-faq__a li {
    margin: .28em 0;
}

.inv-faq__a li::marker {
    color: #0ea5e9;
}

.inv-faq__empty {
    display: none;
    text-align: center;
    color: var(--inv-soft);
    padding: 28px 0;
    font-size: .96rem;
}

.inv-faq__empty.is-active {
    display: block;
}

.inv-faq__empty a {
    color: var(--inv-accent);
    font-weight: 600;
    text-decoration: none;
}

/* ---- Shared CTA ---- */
.inv-faq__cta {
    margin-top: 48px;
    border: 1px solid var(--inv-line);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    justify-content: space-between;
    background: var(--inv-card);
    box-shadow: var(--inv-shadow);
}

.inv-faq__cta p {
    margin: 0;
    font-family: var(--inv-font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--inv-ink);
}

.inv-faq__cta span {
    display: block;
    font-family: var(--inv-font-body);
    font-weight: 400;
    color: var(--inv-muted);
    font-size: .95rem;
    margin-top: 4px;
}

.inv-faq__btn {
    display: inline-block;
    background: var(--inv-grad);
    color: #fff;
    font-family: var(--inv-font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 10px 26px -10px rgba(99, 102, 241, .6);
}

.inv-faq__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 32px -10px rgba(99, 102, 241, .7);
    color: #fff;
    text-decoration: none;
}

.inv-faq__btn:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

/* ---- Responsive: stack, divider on top ---- */
@media (max-width: 860px) {
    .inv-faq__cols {
        grid-template-columns: 1fr;
    }

    .inv-faq__col--left {
        padding-right: 0;
    }

    .inv-faq__col--right {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--inv-line);
        padding-top: 36px;
        margin-top: 40px;
    }

    /* The "left / right" intro hint is meaningless once the columns stack — hide it. */
    .inv-faq__head-cols {
        display: none;
    }
}

@media (max-width: 520px) {
    .inv-faq {
        padding: 5.5rem 16px 52px;
    }

    .inv-faq__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inv-faq * {
        transition: none !important;
    }
}
