/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.3
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ==========================================================
 * 123B E-E-A-T SEO 2026 FOOTER
 * Replaces the default Flatsome footer site-wide.
 * Optimized for keyword "123B" + E-E-A-T trust signals.
 * ========================================================== */

/* Remove any default footer visual artefacts left over from Flatsome */
#footer.footer-wrapper:not(#footer-eeat),
.footer-widgets,
.absolute-footer,
.footer-primary,
.footer-secondary,
.copyright-footer,
.footer-nav,
.footer-1,
.footer-2 {
    display: none !important;
}

/* Page-blank / Page Builder templates still emit the outer Flatsome
 * <footer id="footer" class="footer-wrapper"> wrapper. Our E-E-A-T
 * footer is hooked into flatsome_footer so it renders INSIDE that
 * wrapper. Force the wrapper visible only when it actually contains
 * our E-E-A-T footer, otherwise hide it as before. */
#footer.footer-wrapper:has(#footer-eeat) {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 !important;
}
#footer.footer-wrapper:has(#footer-eeat) .absolute-footer,
#footer.footer-wrapper:has(#footer-eeat) .footer-primary,
#footer.footer-wrapper:has(#footer-eeat) .footer-secondary,
#footer.footer-wrapper:has(#footer-eeat) .copyright-footer,
#footer.footer-wrapper:has(#footer-eeat) .footer-widgets,
#footer.footer-wrapper:has(#footer-eeat) .footer-nav,
#footer.footer-wrapper:has(#footer-eeat) .footer-1,
#footer.footer-wrapper:has(#footer-eeat) .footer-2 {
    display: none !important;
}

/* Kill the Flatsome native back-to-top (we render our own inside footer-eeat) */
#back-to-top,
.back-to-top {
    display: none !important;
}

/* ========== 123B E-E-A-T FOOTER ========== */
:root {
    --eeat-bg: #0a0e1a;
    --eeat-bg-2: #111728;
    --eeat-bg-3: #1a2238;
    --eeat-border: rgba(255, 255, 255, 0.08);
    --eeat-text: #e6ebf5;
    --eeat-text-muted: #a3aec5;
    --eeat-accent: #f5b942;
    --eeat-accent-2: #ffd76a;
    --eeat-link: #ffffff;
    --eeat-link-hover: #f5b942;
}

#footer-eeat.eeat-footer {
    background: linear-gradient(180deg, var(--eeat-bg) 0%, var(--eeat-bg-2) 100%);
    color: var(--eeat-text);
    font-size: 14px;
    line-height: 1.65;
    border-top: 3px solid var(--eeat-accent);
    position: relative;
    margin-top: 60px;
}

#footer-eeat .eeat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* TOP BLOCK */
#footer-eeat .eeat-footer__top {
    padding: 56px 0 36px;
    border-bottom: 1px solid var(--eeat-border);
}

#footer-eeat .eeat-footer__top .eeat-container {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
}

#footer-eeat .eeat-col__title {
    color: var(--eeat-accent);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--eeat-accent);
    display: inline-block;
}

/* Brand block */
#footer-eeat .eeat-brand__title {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#footer-eeat .eeat-brand__mark {
    font-size: 36px;
    font-weight: 900;
    color: var(--eeat-accent);
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(245, 185, 66, 0.3);
}

#footer-eeat .eeat-brand__sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--eeat-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#footer-eeat .eeat-brand__intro {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--eeat-text);
    margin: 0 0 18px;
}

#footer-eeat .eeat-brand__intro strong {
    color: var(--eeat-accent-2);
}

/* NAP (Trust) */
#footer-eeat .eeat-nap {
    font-style: normal;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--eeat-accent);
    border-radius: 4px;
}

#footer-eeat .eeat-nap__line {
    display: block;
    font-size: 13px;
    color: var(--eeat-text);
    margin-bottom: 4px;
}

#footer-eeat .eeat-nap__line:last-child {
    margin-bottom: 0;
}

#footer-eeat .eeat-nap__label {
    color: var(--eeat-accent);
    font-weight: 600;
    margin-right: 6px;
}

#footer-eeat .eeat-nap a {
    color: var(--eeat-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer-eeat .eeat-nap a:hover {
    color: var(--eeat-accent);
}

/* Trust badges */
#footer-eeat .eeat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#footer-eeat .eeat-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.35);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--eeat-accent-2);
    letter-spacing: 0.3px;
}

#footer-eeat .eeat-badge__dot {
    width: 6px;
    height: 6px;
    background: var(--eeat-accent);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 6px var(--eeat-accent);
}

/* Link columns */
#footer-eeat .eeat-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer-eeat .eeat-links li {
    margin-bottom: 8px;
}

#footer-eeat .eeat-links a {
    color: var(--eeat-text);
    text-decoration: none;
    font-size: 13.5px;
    display: inline-block;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 14px;
}

#footer-eeat .eeat-links a::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--eeat-accent);
    font-weight: 700;
    transition: transform 0.2s ease;
}

#footer-eeat .eeat-links a:hover {
    color: var(--eeat-accent);
    transform: translateX(3px);
}

#footer-eeat .eeat-links a:hover::before {
    transform: translateX(2px);
}

/* MID BLOCK (E-E-A-T) */
#footer-eeat .eeat-footer__mid {
    padding: 40px 0;
    background: var(--eeat-bg-3);
    border-bottom: 1px solid var(--eeat-border);
}

#footer-eeat .eeat-eat {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

#footer-eeat .eeat-eat__item {
    text-align: left;
}

#footer-eeat .eeat-eat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(245, 185, 66, 0.15);
    border: 1px solid rgba(245, 185, 66, 0.4);
    border-radius: 50%;
    color: var(--eeat-accent);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

#footer-eeat .eeat-eat__item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--eeat-accent);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

#footer-eeat .eeat-eat__item p {
    font-size: 12.5px;
    color: var(--eeat-text-muted);
    line-height: 1.65;
    margin: 0;
}

#footer-eeat .eeat-eat__item a {
    color: var(--eeat-accent-2);
    text-decoration: none;
    border-bottom: 1px dotted var(--eeat-accent);
}

#footer-eeat .eeat-eat__item a:hover {
    color: var(--eeat-accent);
}

/* BOTTOM BLOCK */
#footer-eeat .eeat-footer__bottom {
    padding: 22px 0;
    background: rgba(0, 0, 0, 0.35);
}

#footer-eeat .eeat-bottom__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

#footer-eeat .eeat-copyright {
    margin: 0;
    font-size: 12.5px;
    color: var(--eeat-text-muted);
}

#footer-eeat .eeat-copyright strong {
    color: var(--eeat-accent);
}

#footer-eeat .eeat-disclaimer {
    display: block;
    font-size: 11px;
    color: var(--eeat-text-muted);
    opacity: 0.75;
    margin-top: 2px;
}

#footer-eeat .eeat-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

#footer-eeat .eeat-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--eeat-border);
    border-radius: 6px;
    color: var(--eeat-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#footer-eeat .eeat-social a:hover {
    background: var(--eeat-accent);
    color: var(--eeat-bg);
    border-color: var(--eeat-accent);
    transform: translateY(-2px);
}

/* BACK TO TOP */
.eeat-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--eeat-accent);
    color: var(--eeat-bg);
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(245, 185, 66, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.eeat-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.eeat-back-to-top:hover {
    background: var(--eeat-accent-2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 185, 66, 0.6);
}

/* ============================================================
 * RESPONSIVE — TABLET
 * ============================================================ */
@media only screen and (max-width: 980px) {
    #footer-eeat .eeat-footer__top .eeat-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    #footer-eeat .eeat-col--brand {
        grid-column: 1 / -1;
    }

    #footer-eeat .eeat-eat {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    #footer-eeat .eeat-brand__mark {
        font-size: 32px;
    }
}

/* ============================================================
 * RESPONSIVE — MOBILE
 * ============================================================ */
@media only screen and (max-width: 640px) {
    #footer-eeat.eeat-footer {
        margin-top: 40px;
    }

    #footer-eeat .eeat-footer__top {
        padding: 36px 0 24px;
    }

    #footer-eeat .eeat-footer__top .eeat-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #footer-eeat .eeat-col--brand {
        grid-column: 1;
    }

    #footer-eeat .eeat-brand__mark {
        font-size: 30px;
    }

    #footer-eeat .eeat-footer__mid {
        padding: 28px 0;
    }

    #footer-eeat .eeat-eat {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #footer-eeat .eeat-eat__item {
        text-align: center;
    }

    #footer-eeat .eeat-eat__icon {
        margin-left: auto;
        margin-right: auto;
    }

    #footer-eeat .eeat-bottom__row {
        flex-direction: column;
        text-align: center;
    }

    #footer-eeat .eeat-copyright {
        text-align: center;
    }

    #footer-eeat .eeat-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    #footer-eeat .eeat-disclaimer {
        text-align: center;
    }

    .eeat-back-to-top {
        width: 42px;
        height: 42px;
        bottom: 18px;
        right: 18px;
        font-size: 18px;
    }
}

/* ============================================================
 * 123B E-E-A-T 2026 — TABLE OF CONTENTS
 * Sticky on scroll via CSS `position: sticky`. Works inside the
 * Flatsome .row / .col / .col-inner flex hierarchy because we set
 * `align-self: flex-start` on the TOC and clear `overflow:hidden`
 * on all ancestor containers (which is the only thing that breaks
 * sticky in modern browsers).
 * ============================================================ */

.eeat-toc {
    --toc-bg: #ffffff;
    --toc-border: rgba(15, 23, 42, 0.08);
    --toc-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --toc-header-from: #0a0e1a;
    --toc-header-to: #1a2238;
    --toc-accent: #f5b942;
    --toc-accent-2: #ffd76a;
    --toc-text: #0f172a;
    --toc-text-muted: #64748b;
    --toc-row-hover: #f8fafc;
    --toc-row-active: rgba(245, 185, 66, 0.08);

    background: var(--toc-bg);
    border: 1px solid var(--toc-border);
    border-radius: 14px;
    box-shadow: var(--toc-shadow);
    margin: 24px auto 28px;
    max-width: 920px;
    overflow: hidden;
    font-family: inherit;
    scroll-margin-top: 100px;

    /* ===== STICKY (CSS-only, no JS) ===== */
    position: sticky;
    top: 16px;
    align-self: flex-start; /* required when sticky is a flex child */
    z-index: 50;
}

/* When the closest flex ancestor has overflow:hidden, sticky breaks.
 * Flatsome does not set overflow on .row / .col / .col-inner by default,
 * but defensive rules below guarantee it. */
.eeat-toc,
.row:has(.eeat-toc),
.col:has(.eeat-toc),
.col-inner:has(.eeat-toc) {
    overflow: visible !important;
}

/* HEADER (gradient bar) */
.eeat-toc__inner {
    padding: 0;
}

.eeat-toc__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--toc-header-from) 0%, var(--toc-header-to) 100%);
    color: #ffffff;
    border-bottom: 3px solid var(--toc-accent);
    position: relative;
}

.eeat-toc__header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(245, 185, 66, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.eeat-toc__icon {
    font-size: 20px;
    font-weight: 700;
    color: var(--toc-accent);
    line-height: 1;
}

.eeat-toc__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    flex: 1;
}

.eeat-toc__badge {
    background: var(--toc-accent);
    color: var(--toc-header-from);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
}

/* LIST */
.eeat-toc__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    counter-reset: toc-section;
    max-height: calc(100vh - 140px); /* leave room for sticky offset + viewport */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

/* When non-sticky (top of page), allow taller list (up to natural reading length) */
@media (min-height: 800px) {
    .eeat-toc__list { max-height: 540px; }
}

.eeat-toc__list::-webkit-scrollbar { width: 6px; }
.eeat-toc__list::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.18); border-radius: 3px; }
.eeat-toc__list::-webkit-scrollbar-track { background: transparent; }

.eeat-toc__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eeat-toc__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 22px;
    color: var(--toc-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    border-left: 3px solid transparent;
    transition: all 0.18s ease;
    position: relative;
}

.eeat-toc__link:hover {
    background: var(--toc-row-hover);
    border-left-color: var(--toc-accent);
    color: #1e293b;
    padding-left: 26px;
}

.eeat-toc__link.is-active {
    background: var(--toc-row-active);
    border-left-color: var(--toc-accent);
    color: var(--toc-header-from);
    font-weight: 600;
}

/* animated red dot (matches design ref) */
.eeat-toc__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    background: linear-gradient(135deg, #fff5e0 0%, #fff 100%);
    border: 1px solid rgba(245, 185, 66, 0.4);
    border-radius: 6px;
    color: var(--toc-header-from);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
    position: relative;
    flex-shrink: 0;
}

.eeat-toc__num::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: toc-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes toc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); transform: scale(1.15); }
}

.eeat-toc__text {
    flex: 1;
    min-width: 0;
}

/* hierarchy indent */
.eeat-toc__item--h3 .eeat-toc__link {
    padding-left: 42px;
    font-size: 13.5px;
    color: var(--toc-text-muted);
    font-weight: 500;
}
.eeat-toc__item--h3 .eeat-toc__link:hover {
    padding-left: 46px;
    color: #1e293b;
}
.eeat-toc__item--h3 .eeat-toc__num {
    min-width: 28px;
    height: 22px;
    font-size: 10px;
}

.eeat-toc__item--h4 .eeat-toc__link {
    padding-left: 60px;
    font-size: 13px;
    color: var(--toc-text-muted);
    font-weight: 400;
}
.eeat-toc__item--h4 .eeat-toc__link:hover {
    padding-left: 64px;
    color: #1e293b;
}
.eeat-toc__item--h4 .eeat-toc__num {
    min-width: 26px;
    height: 20px;
    font-size: 10px;
}

/* FOOTER */
.eeat-toc__footer {
    padding: 10px 22px;
    background: #f8fafc;
    border-top: 1px solid var(--toc-border);
    text-align: center;
}

.eeat-toc__footer-text {
    font-size: 11.5px;
    color: var(--toc-text-muted);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ===== STICKY BEHAVIOR =====
 * Implemented in CSS via `position: sticky` above. No class toggling required.
 * The TOC naturally stays at top:16px while its parent (.col-inner) is in view.
 * Once the user scrolls past the parent's bottom edge, the TOC scrolls away
 * with the rest of the content — exactly the UX users expect.
 */

/* Placeholder no longer needed (sticky doesn't break layout) */
.eeat-toc-placeholder { display: none !important; }

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 768px) {
    .eeat-toc {
        margin: 18px auto 22px;
        border-radius: 12px;
        top: 8px;
    }
    .eeat-toc__header { padding: 12px 16px; }
    .eeat-toc__title { font-size: 13px; letter-spacing: 1px; }
    .eeat-toc__badge { font-size: 10px; padding: 3px 8px; }
    .eeat-toc__link { padding: 8px 16px; font-size: 13px; }
    .eeat-toc__item--h3 .eeat-toc__link { padding-left: 32px; font-size: 12.5px; }
    .eeat-toc__item--h4 .eeat-toc__link { padding-left: 48px; font-size: 12px; }
    .eeat-toc__list { max-height: 360px; }
}

/* ===== Smooth scroll for anchor links (respects TOC sticky offset) ===== */
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
