/* --- PREMIUM COMMAND CENTER FOOTER --- */
.footer {
    background-color: #07070a;
    background-image: radial-gradient(ellipse at top, #111116 0%, #050507 80%);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Futuristic Background Grid */
.footer-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 222, 89, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 222, 89, 0.005) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.85;
    z-index: 1;
}

/* Neon Top Border Scanning Glow */
.footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(255, 222, 89, 0) 0%,
            rgba(255, 222, 89, 0.4) 30%,
            var(--k-accent) 50%,
            rgba(255, 222, 89, 0.4) 70%,
            rgba(255, 222, 89, 0) 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 15px rgba(255, 222, 89, 0.35);
    animation: scanBorder 6s infinite linear;
    z-index: 2;
}

@keyframes scanBorder {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Top Identity & Action Row */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.footer-top-row .f-brand {
    flex: 1.3;
}

.footer-top-row .f-action-panel {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Headers */
.footer h4,
.sitemap-col h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--k-accent);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Brand Section */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 25px;
}

.footer-logo {
    height: 130px;
    width: auto;
    filter: brightness(1.1) contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 222, 89, 0.4));
    transform: scale(1.02);
}

.brand-tagline {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--k-accent);
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
}

.f-about {
    color: var(--k-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 420px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 222, 89, 0.25);
}

/* Social Media Rings */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--k-text-light);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--k-accent), #e6a817);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-links a:hover {
    color: #000;
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(255, 222, 89, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

/* Action Panel (Subscribe & Contact info) */
.f-subscribe p.subscribe-desc {
    color: var(--k-text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.subscribe-form {
    display: flex;
    position: relative;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form:focus-within {
    border-color: var(--k-accent);
    box-shadow: 0 0 12px rgba(255, 222, 89, 0.15);
}

.subscribe-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--k-text-light);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.subscribe-btn {
    background: transparent;
    border: none;
    color: var(--k-accent);
    padding: 0 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-btn:hover {
    color: var(--k-text-light);
    transform: translateX(2px);
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info li {
    color: var(--k-text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

.contact-info i {
    color: var(--k-accent);
    margin-top: 3px;
    font-size: 0.9rem;
}

/* Sitemap Directory Grid */
.footer-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.sitemap-col {
    display: flex;
    flex-direction: column;
}

.sitemap-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.sitemap-col a {
    color: var(--k-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    display: inline-block;
    width: fit-content;
    line-height: 1.4;
}

.sitemap-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--k-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sitemap-col a:hover {
    color: var(--k-accent);
}

.sitemap-col a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Certified Partner Badges Grid */
.footer-partners {
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 3;
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 24px;
    border-radius: 12px;
    opacity: 0.6;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partner-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 222, 89, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.partner-badge:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: rgba(255, 222, 89, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.partner-badge:hover::before {
    opacity: 1;
}

.pb-img {
    height: 32px;
    width: auto;
    filter: grayscale(1) brightness(1.3) opacity(0.8);
    transition: all 0.4s ease;
}

.partner-badge:hover .pb-img {
    filter: grayscale(0) brightness(1) opacity(1);
}

.pb-text {
    display: flex;
    flex-direction: column;
}

.pb-text .type {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--k-accent);
    font-weight: 800;
    margin-bottom: 2px;
}

.pb-text .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--k-text-light);
}

/* System Status Bottom & Legal Row */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--k-text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 3;
}

.legal-links {
    display: flex;
    gap: 25px;
}

.legal-links a {
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--k-accent);
}

/* Responsive Grid Adapters */
@media (max-width: 992px) {
    .footer-top-row {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .footer-top-row .f-brand,
    .footer-top-row .f-action-panel {
        flex: none;
        width: 100%;
    }

    .footer-sitemap-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 80px 0 40px;
    }

    .footer-top-row {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .f-brand,
    .f-about {
        margin: 0;
        text-align: left;
        max-width: 100%;
    }

    .social-links {
        justify-content: flex-start;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .footer-sitemap-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        align-items: flex-start;
    }

    .footer-partners {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        justify-items: start;
        padding: 20px 0 0 0;
        margin-top: 20px;
    }

    .partner-badge {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .footer-partners {
        grid-template-columns: 1fr;
    }
}