/* =============================================================
   Tiger Schema Markup — Visual FAQ Accordion
   Default colours / typography are plain CSS values.
   Elementor Global Kit connections are made via the PHP
   `global` parameter in each control — not via CSS variables.
   ============================================================= */

/* ── Wrapper ─────────────────────────────────────────────────── */
.tg-sm-faq-wrap { width: 100%; }

.tg-sm-faq {
    width: 100%;
    max-width: 860px;
    font-family: inherit;
}

/* ── Heading ─────────────────────────────────────────────────── */
.tg-sm-faq-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    font-family: inherit;
    color: #1a1a2e;
    margin: 0 0 32px;
    line-height: 1.3;
}

/* ── Item card ───────────────────────────────────────────────── */
.tg-sm-faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.25s ease;
}

.tg-sm-faq-item:last-child { margin-bottom: 0; }

.tg-sm-faq-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

/* ── Active / open state ─────────────────────────────────────── */
.tg-sm-faq-item.tg-sm-open {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-1px);
    border-left: 4px solid #F37F2B;
    border-color: rgba(0, 0, 0, 0.08);
}

/* ── Header row ──────────────────────────────────────────────── */
.tg-sm-faq-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    outline: none;
    transition: background 0.2s ease;
}

.tg-sm-faq-header:hover  { background: rgba(0, 0, 0, 0.02); }

.tg-sm-faq-header:focus-visible {
    outline: 2px solid #F37F2B;
    outline-offset: -2px;
}

/* ── Number badge ────────────────────────────────────────────── */
.tg-sm-faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #F37F2B;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-sm-faq-item.tg-sm-open .tg-sm-faq-number {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* ── Question text ───────────────────────────────────────────── */
.tg-sm-question {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #1a1a2e;
    line-height: 1.45;
    margin: 0;
    transition: color 0.2s ease;
}

.tg-sm-faq-item.tg-sm-open .tg-sm-question {
    color: #F37F2B;
}

/* ── Toggle button wrapper ───────────────────────────────────── */
.tg-sm-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: rgba(243, 127, 43, 0.12);
    border: 1.5px solid rgba(243, 127, 43, 0.30);
    transition: background-color 0.25s ease, border-color 0.25s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tg-sm-faq-item.tg-sm-open .tg-sm-toggle-wrap {
    background-color: #F37F2B;
    border-color: #F37F2B;
    transform: rotate(180deg);
}

/* ── Toggle icons ────────────────────────────────────────────── */
.tg-sm-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F37F2B;
    line-height: 1;
}

.tg-sm-faq-item.tg-sm-open .tg-sm-toggle-icon {
    color: #ffffff;
}

.tg-sm-toggle-icon i {
    font-size: 14px;
    color: inherit;
    display: block;
    line-height: 1;
}

.tg-sm-toggle-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5px;
    display: block;
}

/* Elementor icon wrapper overrides */
.tg-sm-toggle-icon .elementor-icon {
    color: inherit !important;
    font-size: 14px;
    line-height: 1;
}

.tg-sm-toggle-icon .elementor-icon i,
.tg-sm-toggle-icon .elementor-icon svg {
    color: inherit;
    fill: currentColor;
}

/* ── Body / Answer (collapsed by default, JS drives max-height) ─ */
.tg-sm-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.tg-sm-faq-item.tg-sm-open .tg-sm-faq-body {
    overflow: visible;
}

/* ── Answer text ─────────────────────────────────────────────── */
.tg-sm-answer {
    padding: 20px 24px 24px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.75;
    color: #555555;
}

.tg-sm-answer p:last-child { margin-bottom: 0; }
.tg-sm-answer ul, .tg-sm-answer ol { padding-left: 1.4em; }
.tg-sm-answer a {
    color: #F37F2B;
    text-decoration: underline;
}

/* ── Editor placeholder ──────────────────────────────────────── */
.tg-sm-editor-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff9f5;
    border: 1.5px dashed #F37F2B;
    border-radius: 10px;
    color: #555555;
    font-size: 0.88rem;
    line-height: 1.5;
}

.tg-sm-editor-notice svg {
    color: #F37F2B;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .tg-sm-faq-header { padding: 16px 18px; gap: 10px; }
    .tg-sm-answer { padding: 16px 18px 20px; }
    .tg-sm-question { font-size: 0.95rem; }
}
