/* ==========================================================================
   TenderMitra — FAQ
   Loads on top of modern.css. Only FAQ-specific components live here.
   Scoped to .tm-faq or prefixed .fq-*.

   The accordion is built on native <details>/<summary>: keyboard accessible
   and fully functional with no JavaScript at all.
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */

/* Shell and atmosphere come from modern.css; only the padding is local */
.fq-hero {
    padding-top: clamp(3rem, 2rem + 4vw, 5rem);
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.fq-hero > .hm-wrap { position: relative; z-index: 1; }

.fq-crumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: .8125rem;
    /* Sits on the coloured field, so one step darker than body muted */
    color: var(--s-ink-2);
}

.fq-crumbs a { color: var(--s-ink-2); text-decoration: none; transition: color .2s var(--tm-ease); }
.fq-crumbs a:hover { color: var(--s-ink); }
.fq-crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--s-line-2); }
.fq-crumbs [aria-current="page"] { color: var(--s-ink); }

/* ==========================================================================
   LAYOUT — sticky intro beside the accordion
   ========================================================================== */

.fq-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
    align-items: start;
}

@media (max-width: 991.98px) { .fq-layout { grid-template-columns: 1fr; } }

.fq-sticky { position: sticky; top: calc(var(--tm-header-h) + 2rem); }

@media (max-width: 991.98px) { .fq-sticky { position: static; } }

/* ==========================================================================
   ACCORDION
   ========================================================================== */

.fq-list { display: grid; gap: .85rem; }

.fq-item {
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color .25s var(--tm-ease), box-shadow .25s var(--tm-ease);
}

.fq-item:hover { border-color: var(--s-line-2); }

.fq-item[open] {
    border-color: transparent;
    box-shadow: 0 1px 2px rgb(11 18 32 / .04),
                0 10px 22px -10px rgb(11 18 32 / .12),
                0 24px 48px -24px rgb(11 18 32 / .2);
}

/* Question row */
.fq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.0313rem;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.4;
    color: var(--s-ink);
    transition: background-color .2s var(--tm-ease);
}

/* Remove the native disclosure triangle in every engine */
.fq-q::-webkit-details-marker { display: none; }
.fq-q::marker { content: ""; }

.fq-q:hover { background: var(--s-off); }

.fq-q:focus-visible {
    outline: 3px solid var(--s-orange);
    outline-offset: -3px;
    border-radius: 18px;
}

/* Plus / minus toggle */
.fq-ico {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--t-cream);
    transition: background-color .25s var(--tm-ease), transform .35s var(--tm-ease);
}

.fq-ico::before,
.fq-ico::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--s-orange-d);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: opacity .25s var(--tm-ease), transform .35s var(--tm-ease);
}

.fq-ico::before { width: 11px; height: 1.5px; }
.fq-ico::after { width: 1.5px; height: 11px; }

.fq-item[open] .fq-ico { background: var(--s-ink); transform: rotate(180deg); }
.fq-item[open] .fq-ico::before { background: #fff; }
.fq-item[open] .fq-ico::after { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }

/* Answer */
.fq-a {
    padding: 0 1.4rem 1.35rem;
    font-size: .9375rem;
    line-height: 1.72;
    color: var(--s-ink-2);
}

.fq-a p { margin: 0 0 .9rem; }
.fq-a p:last-child { margin-bottom: 0; }

.fq-a::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--s-line);
    margin-bottom: 1.1rem;
}

/* Content fades in when the item opens */
.fq-item[open] .fq-a { animation: fq-open .38s var(--tm-ease-out); }

@keyframes fq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   SUPPORT CARD
   ========================================================================== */

.fq-help {
    padding: 1.6rem;
    border-radius: 20px;
    background: var(--t-cream);
}

.fq-help-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.018em;
    color: var(--s-ink);
    margin: 0 0 .5rem;
}

.fq-help-text { font-size: .875rem; line-height: 1.65; color: var(--s-ink-2); margin: 0 0 1.25rem; }

.fq-contact { display: grid; gap: .55rem; margin-bottom: 1.25rem; }

.fq-contact a {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--s-ink-2);
    text-decoration: none;
    transition: color .2s var(--tm-ease);
}

.fq-contact a:hover { color: var(--s-ink); }
.fq-contact i { color: var(--s-orange); }

/* ==========================================================================
   TOPIC LINKS
   ========================================================================== */

.fq-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

@media (max-width: 767.98px) { .fq-topics { grid-template-columns: 1fr; } }

.fq-topic {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.25rem 1.4rem;
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 18px;
    text-decoration: none;
    transition: transform .3s var(--tm-ease), box-shadow .3s var(--tm-ease), border-color .3s var(--tm-ease);
}

.fq-topic:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 2px 4px rgb(11 18 32 / .04),
                0 12px 24px -10px rgb(11 18 32 / .12),
                0 28px 56px -24px rgb(11 18 32 / .24);
}

.fq-topic-ico {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 13px;
    font-size: 1.05rem;
    color: var(--s-orange-d);
    background: var(--t-cream);
}

.fq-topic:nth-child(2) .fq-topic-ico { color: var(--s-indigo-d); background: var(--t-lilac); }
.fq-topic:nth-child(3) .fq-topic-ico { color: var(--s-teal); background: var(--t-mint); }

.fq-topic-name { font-size: .9375rem; font-weight: 600; color: var(--s-ink); margin: 0; line-height: 1.3; }
.fq-topic-sub { font-size: .8125rem; color: var(--s-ink-3); margin: .15rem 0 0; line-height: 1.35; }

.fq-topic-go { margin-left: auto; color: var(--s-ink-3); font-size: .85rem; transition: transform .22s var(--tm-ease), color .2s var(--tm-ease); }
.fq-topic:hover .fq-topic-go { transform: translateX(3px); color: var(--s-orange); }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.fq-empty {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px;
    background: var(--t-cream);
}

.fq-empty i { font-size: 1.75rem; color: var(--s-orange); }
.fq-empty p { margin: .85rem 0 0; font-size: .9063rem; color: var(--s-ink-2); line-height: 1.6; }

/* ==========================================================================
   CTA
   ========================================================================== */

.fq-cta { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }

.fq-cta > .hm-wrap { position: relative; z-index: 1; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .fq-item[open] .fq-a { animation: none !important; }
    .fq-ico, .fq-ico::before, .fq-ico::after { transition: none !important; }
}
