/* ============================================
   Footer v2 — Premium Dark Industrial
   Overrides navigation.css footer styles
   ============================================ */

/* --- Gradient glow top border --- */
.site-footer {
    position: relative;
    background: var(--nav-bg);
    padding: 0 0 32px;
    border-top: none;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2563EB 30%, #8B5CF6 50%, #2563EB 70%, transparent 100%);
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 80px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

/* ============================================
   Stats Strip
   ============================================ */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0 36px;
    position: relative;
    z-index: 1;
}

.footer-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-stats__value {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.footer-stats__label {
    font-size: 13px;
    color: var(--nav-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   Top section — Logo + Desc
   ============================================ */
.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 36px;
    border-bottom: 1px solid var(--nav-line);
    position: relative;
    z-index: 1;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-footer__logo:hover {
    opacity: 0.85;
}

.site-footer__logo-img {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.2));
}

.site-footer__desc {
    max-width: 420px;
    font-size: 14px;
    color: var(--nav-dim);
    line-height: 1.6;
    text-align: right;
}

/* ============================================
   Navigation Grid — 5 columns
   ============================================ */
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    padding: 36px 0;
    position: relative;
    z-index: 1;
}

.site-footer__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nav-text);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, transparent);
    border-radius: 1px;
}

.site-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.site-footer__links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nav-soft);
    font-size: 13.5px;
    padding: 5px 0 5px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.site-footer__links li a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 1px;
    background: #3B82F6;
    transition: width 0.2s ease;
    transform: translateY(-50%);
}

.site-footer__links li a:hover {
    color: #F1F5F9;
    transform: translateX(6px);
}

.site-footer__links li a:hover::before {
    width: 8px;
}

.site-footer__links-all {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--nav-line);
}

.site-footer__links-all a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3B82F6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-footer__links-all a:hover {
    color: #60A5FA;
    gap: 8px;
}

.site-footer__links-all a svg {
    transition: transform 0.2s ease;
}

.site-footer__links-all a:hover svg {
    transform: translateX(3px);
}

/* ============================================
   Contact Cards
   ============================================ */
.site-footer__contacts-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 28px 0;
    border-top: 1px solid var(--nav-line);
    border-bottom: 1px solid var(--nav-line);
    position: relative;
    z-index: 1;
}

.site-footer__contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.site-footer__contact:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.12);
}

.site-footer__contact svg {
    color: #3B82F6;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.site-footer__contact:hover svg {
    opacity: 1;
}

.site-footer__contact-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nav-dim);
    margin-bottom: 3px;
}

.site-footer__contact span:not(.site-footer__contact-label),
.site-footer__contact > div > span:not(.site-footer__contact-label) {
    font-size: 14px;
    color: var(--nav-soft);
    line-height: 1.4;
}

.site-footer__contact a {
    color: var(--nav-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer__contact a:hover {
    color: #60A5FA;
}

/* ============================================
   Footer Search — Enhanced
   ============================================ */
.gksc-footer-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.gksc-footer-search-label {
    font-size: 14px;
    color: var(--nav-dim);
    margin-bottom: 12px;
    font-weight: 500;
}

.gksc-footer-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 320px;
    justify-content: center;
}

.gksc-footer-search-bar:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}

.gksc-footer-search-bar svg {
    color: var(--nav-dim);
    flex-shrink: 0;
}

.gksc-footer-search-bar span {
    font-size: 14px;
    color: var(--nav-dim);
}

/* ============================================
   Bottom Bar
   ============================================ */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--nav-line);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.site-footer__bottom p {
    font-size: 12px;
    color: var(--nav-dim);
    line-height: 1.5;
    margin: 0;
    opacity: 0.7;
}

.site-footer__bottom-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-footer__bottom-nav a {
    color: var(--nav-dim);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__bottom-nav a:hover {
    color: #60A5FA;
}

/* Back to top */
.footer-back-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--nav-dim);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.footer-back-top:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: #60A5FA;
}

.footer-back-top svg {
    transition: transform 0.2s;
}

.footer-back-top:hover svg {
    transform: translateY(-2px);
}

/* ============================================
   CTA Strip — Enhanced
   ============================================ */
.cta-strip {
    position: relative;
    background: linear-gradient(135deg, #0F2847 0%, #0C1D3A 50%, #1A1040 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.15);
    border-bottom: none;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-strip::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-stats {
        gap: 32px;
    }

    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .site-footer__desc {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

    .footer-stats__item {
        min-width: 120px;
    }

    .site-footer__contacts-bar {
        grid-template-columns: 1fr;
    }

    .gksc-footer-search-bar {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 479px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .footer-stats {
        gap: 16px;
    }

    .footer-stats__value {
        font-size: 24px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .site-footer__bottom-nav {
        flex-direction: column;
        gap: 8px;
    }
}
