/* ═══════════════════════════════════════════════════════════
   Learnovate Qatar — Custom Footer
   ═══════════════════════════════════════════════════════════ */

/* Theme footer container reset */
#colophon.site-footer {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ── Top accent bar ─────────────────────────────────────────── */
.lq-footer-topbar {
    background: #d0202e;
    padding: 10px 0;
}
.lq-footer-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.lq-footer-tagline {
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    font-style: italic;
    letter-spacing: .3px;
}
.lq-footer-topbar-links {
    display: flex;
    gap: 24px;
}
.lq-footer-topbar-links a {
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    opacity: .9;
    transition: opacity .2s;
}
.lq-footer-topbar-links a:hover { opacity: 1; text-decoration: underline; }

/* ── Main body ──────────────────────────────────────────────── */
.lq-footer-body {
    background: #0f172a;
    padding: 64px 0 48px;
}

.lq-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr 1.3fr;
    gap: 48px 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .lq-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .lq-footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .lq-footer-topbar-inner { justify-content: center; text-align: center; }
}

/* ── Brand column ───────────────────────────────────────────── */
.lq-footer-logo img {
    max-height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 18px;
    display: block;
}
.lq-footer-logo-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 16px;
}
.lq-footer-about {
    color: #94a3b8;
    font-size: .88rem;
    line-height: 1.75;
    margin: 0 0 24px;
}

/* Social icons */
.lq-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.lq-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    color: #94a3b8;
    transition: background .2s, color .2s, transform .2s;
    text-decoration: none;
}
.lq-social-link svg { width: 17px; height: 17px; }
.lq-social-link:hover {
    background: #d0202e;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Headings ───────────────────────────────────────────────── */
.lq-footer-heading {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d0202e;
    display: inline-block;
}

/* ── Link lists ─────────────────────────────────────────────── */
.lq-footer-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.lq-footer-links a {
    color: #94a3b8;
    font-size: .875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .2s, gap .2s;
    line-height: 1.4;
}
.lq-footer-links a::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #d0202e;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .2s;
}
.lq-footer-links a:hover {
    color: #fff;
    gap: 10px;
}
.lq-footer-links a:hover::before { opacity: 1; }

/* ── Contact column ─────────────────────────────────────────── */
.lq-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.lq-contact-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(208,32,46,.15);
    display: flex; align-items: center; justify-content: center;
    color: #d0202e;
}
.lq-contact-icon svg { width: 15px; height: 15px; }

.lq-contact-item address {
    font-style: normal;
    color: #94a3b8;
    font-size: .875rem;
    line-height: 1.7;
}
.lq-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lq-phones a,
.lq-contact-item > a {
    color: #94a3b8;
    font-size: .875rem;
    text-decoration: none;
    transition: color .2s;
    display: block;
}
.lq-phones a:hover,
.lq-contact-item > a:hover { color: #fff; }

.lq-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d0202e;
    color: #fff !important;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    margin-top: 6px;
}
.lq-footer-cta:hover {
    background: #a81820;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(208,32,46,.4);
}

/* ── Copyright bar ──────────────────────────────────────────── */
.lq-footer-bottom {
    background: #080f1e;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.lq-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.lq-copyright,
.lq-powered {
    margin: 0;
    font-size: .8rem;
    color: #475569;
}
.lq-copyright strong { color: #64748b; }
.lq-powered { color: #64748b; }

@media (max-width: 600px) {
    .lq-footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ── Admin bar gap fix ──────────────────────────────────────── */
/* Prevent any top margin/padding on the Thim EL Kit header wrapper
   from creating a white strip below the WordPress admin bar. */
.admin-bar .thim-ekit__header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Ensure no gap between admin bar and page for non-Thim-header pages */
.admin-bar body > *:first-child:not(#wpadminbar) {
    margin-top: 0 !important;
}

/* ── Sticky header whitespace fix ───────────────────────────── */
/*
 * Thim EL Kit preserves header space automatically via parent height when
 * the header goes fixed on scroll. Any padding-top on the first page section
 * meant to compensate for the fixed header is redundant and creates a large
 * white gap at the top before scrolling. Remove it here.
 */
.thim-ekit__header + .elementor-location-single > .elementor-section:first-child,
.thim-ekit__header + .elementor-location-single > .e-con:first-child,
.thim-ekit__header ~ .elementor-location-single > .elementor-section:first-child,
.thim-ekit__header ~ .elementor-location-single > .e-con:first-child,
.thim-ekit__header + * > .elementor-section:first-child,
.thim-ekit__header + * > .e-con:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Elementor inner container / direct section after Thim header */
.thim-ekit__header ~ .elementor > .elementor-section:first-child,
.thim-ekit__header ~ .elementor > .e-con:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Zero out top margin/padding on the Elementor root inside the header itself */
.thim-ekit__header__inner > .elementor,
.thim-ekit__header__inner > .elementor > .elementor-section:first-child,
.thim-ekit__header__inner > .elementor > .e-con:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* When admin bar is visible, keep sticky header below it */
.admin-bar .thim-ekits__sticky--is-sticky {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar .thim-ekits__sticky--is-sticky {
        top: 46px !important;
    }
}
