/* ============================================================
   GeoTrack — Footer (Premium v3 — Dark)
   ============================================================ */

.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border-top: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Subtle gradient glow */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(11,44,92,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer__main {
    padding: 80px 0 56px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px)  { .footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__main { grid-template-columns: 1.6fr 1fr 1.6fr; gap: 48px; } }

/* ── Brand ──────────────────────────────────────────────────── */
.footer__brand { max-width: 360px; }

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 16px;
}
.footer__logo-img {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.footer__logo-fallback { display: inline-flex; align-items: center; gap: 10px; }
.footer__logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-brand);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(11,44,92,0.3);
}
.footer__logo-icon svg { width: 17px; height: 17px; color: #fff; }
.footer__logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: #fff;
}
.footer__logo-text span { color: #4ade80; }

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Newsletter */
.footer__newsletter-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}
.footer__newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    transition: border-color 0.25s, box-shadow 0.25s;
    min-width: 0;
}
.footer__newsletter-form:focus-within {
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 0 3px rgba(11,44,92,0.1);
}
.footer__newsletter-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 0.875rem;
    color: #fff;
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.footer__newsletter-btn {
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}
.footer__newsletter-btn:hover { background: var(--accent-hover); }

/* Social */
.footer__social { display: flex; gap: 8px; margin-top: 22px; }
.footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
}
.footer__social-link svg { width: 15px; height: 15px; }
.footer__social-link:hover {
    background: rgba(11,44,92,0.15);
    border-color: rgba(59,130,246,0.3);
    color: #4ade80;
    transform: translateY(-2px);
}

/* ── Columns ────────────────────────────────────────────────── */
.footer__col-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer__link:hover { color: #fff; transform: translateX(3px); }

/* Contact items */
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--text-on-dark-muted);
}
.footer__contact-item svg { width: 14px; height: 14px; color: #4ade80; flex-shrink: 0; margin-top: 3px; }
.footer__contact-item a { color: var(--text-on-dark-muted); text-decoration: none; transition: color 0.2s; }
.footer__contact-item a:hover { color: #fff; }

/* ── Bottom Bar ─────────────────────────────────────────────── */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; gap: 24px; }
}
.footer__copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.3); flex: 1; }

/* GMS logo center */
.footer__gms {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s var(--ease-out);
    flex-shrink: 0;
}
.footer__gms:hover { opacity: 1; }
.footer__gms-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.footer__gms-logo {
    height: 28px;
    width: auto;
    display: block;
}

.footer__bottom-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; flex: 1; justify-content: flex-end; }
@media (max-width: 767px) { .footer__bottom-links { justify-content: center; } }
.footer__bottom-link { font-size: 0.8125rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer__bottom-link:hover { color: rgba(255,255,255,0.7); }

/* Override divider inside footer */
.footer .divider { background: rgba(255,255,255,0.06); }
