/* ==========================================================================
   SANTRONICS SOLUTIONS — TIER-1 EMS HIGH-TECH COMPACT FOOTER STYLES
   Structured Modular Design System with CSS Custom Properties
   ========================================================================== */

/* --- 0. Brand System CSS Variables --- */
:root {
    --footer-bg: #040B17;
    --footer-bg-secondary: #081220;
    --footer-card-bg: rgba(10, 20, 38, 0.75);
    --footer-cyan: #00CFFF;
    --footer-teal: #00E5C3;
    --footer-lime: #C8D900;
    --footer-red: #FF1E3A;
    --footer-whatsapp: #25D366;
    --footer-white: #FFFFFF;
    --footer-muted: #8FA6BE;
    --footer-border: rgba(0, 207, 255, 0.22);
    --footer-border-subtle: rgba(143, 166, 190, 0.14);
    --footer-glow: rgba(0, 207, 255, 0.3);
    --font-heading: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;600;700;800;900&display=swap');

/* ==========================================================================
   1. BASE FOOTER CONTAINER & ATMOSPHERE (COMPACT & PROPORTIONAL)
   ========================================================================== */
.modern-footer {
    position: relative;
    background-color: var(--footer-bg);
    background-image: 
        radial-gradient(circle at 88% 18%, rgba(0, 207, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 12% 82%, rgba(200, 217, 0, 0.04) 0%, transparent 35%),
        linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-secondary) 100%);
    color: var(--footer-muted);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 0 0 14px 0;
    margin-top: 0;
    overflow: hidden;
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

.modern-footer *,
.modern-footer *::before,
.modern-footer *::after {
    box-sizing: border-box;
}

.modern-footer .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Ambient Background Circuit & Dot Grid Artwork */
.footer-bg-circuits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.circuit-bg-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0.75;
}

.footer-dot-matrix {
    position: absolute;
    top: 80px;
    right: 30px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(rgba(0, 207, 255, 0.18) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.6;
}

/* Top Animated Tech Circuit Accent Line */
.footer-tech-border {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--footer-cyan) 0%, var(--footer-teal) 35%, var(--footer-lime) 70%, var(--footer-cyan) 100%);
    background-size: 200% 100%;
    animation: footerCircuitShimmer 10s linear infinite;
    position: relative;
    will-change: background-position;
}

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

/* ==========================================================================
   2. TOP CTA STRIP (CLEAR, READABLE & SLEEK)
   ========================================================================== */
.footer-cta-strip {
    margin: 18px 0 20px 0;
    padding: 16px 28px;
    background: linear-gradient(135deg, rgba(10, 22, 42, 0.88) 0%, rgba(6, 14, 28, 0.96) 100%);
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-cta-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 207, 255, 0.08), transparent);
    pointer-events: none;
}

.footer-cta-content {
    flex: 1;
    min-width: 0;
}

.footer-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--footer-teal);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pulse-node {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--footer-teal);
    box-shadow: 0 0 8px var(--footer-teal);
}

.footer-cta-heading {
    font-family: var(--font-heading);
    font-size: 1.40rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--footer-white);
    margin: 0 0 4px 0;
    letter-spacing: 0.4px;
}

.footer-cta-heading .highlight-text {
    background: linear-gradient(90deg, var(--footer-cyan) 0%, var(--footer-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-cta-text {
    font-size: 0.90rem;
    color: var(--footer-muted);
    line-height: 1.45;
    margin: 0;
    max-width: 700px;
}

.footer-cta-action {
    flex-shrink: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--footer-white);
    background: rgba(0, 207, 255, 0.06);
    border: 1.5px solid var(--footer-cyan);
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.footer-cta-btn .btn-arrow {
    font-size: 0.84rem;
    color: var(--footer-cyan);
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-cta-btn:hover {
    background: linear-gradient(135deg, var(--footer-cyan) 0%, var(--footer-teal) 100%);
    color: var(--footer-bg);
    border-color: var(--footer-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 207, 255, 0.35);
}

.footer-cta-btn:hover .btn-arrow {
    transform: translateX(4px);
    color: var(--footer-bg);
}

/* ==========================================================================
   3. MAIN FOOTER 4-COLUMN GRID (BALANCED & TIGHTENED)
   ========================================================================== */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.75fr 1.1fr 1.15fr 1.65fr;
    gap: 28px;
    margin-bottom: 16px;
    align-items: start;
}

.footer-col {
    position: relative;
}

/* Technical Column Titles with Accent PCB Underline */
.modern-footer h3::before,
.modern-footer h3::after,
footer.modern-footer h3::before,
footer.modern-footer h3::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
    background: none !important;
}

.footer-col-title {
    font-family: var(--font-heading) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.4px !important;
    color: var(--footer-white) !important;
    text-transform: uppercase !important;
    margin: 0 0 12px 0 !important;
    padding: 0 0 6px 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    line-height: 1.3 !important;
}

.title-pcb-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-cyan), var(--footer-teal));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.footer-col:hover .title-pcb-line {
    width: 52px;
}

/* ==========================================================================
   4. COLUMN 1: BRAND (PROPORTIONAL & HIGH CONTRAST)
   ========================================================================== */
.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-brand-logo .logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
}

.footer-brand-logo .logo-box img {
    height: 36px;
    width: auto;
    max-width: 130px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 207, 255, 0.25));
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-group .brand-title {
    font-family: var(--font-heading);
    font-size: 1.30rem;
    font-weight: 900;
    color: var(--footer-white);
    letter-spacing: 1.2px;
    line-height: 1;
    margin-bottom: 2px;
}

.logo-text-group .brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--footer-cyan);
    letter-spacing: 3.2px;
    text-transform: uppercase;
    line-height: 1;
}

.footer-brand-desc {
    font-size: 0.90rem;
    line-height: 1.50;
    color: var(--footer-muted);
    margin: 0 0 10px 0;
    max-width: 340px;
}

/* Brand Micro-Label Badge */
.footer-tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    background: rgba(0, 207, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 16px;
    margin-bottom: 12px;
    user-select: none;
}

.footer-tech-tag .tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--footer-lime);
    box-shadow: 0 0 6px var(--footer-lime);
}

.footer-tech-tag .tag-text {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--footer-muted);
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

/* Social Section */
.footer-social-wrapper {
    margin-top: 2px;
}

.social-heading {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--footer-muted);
    margin-bottom: 6px;
}

.footer-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(143, 166, 190, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.social-btn:hover {
    color: var(--footer-cyan);
    border-color: var(--footer-cyan);
    background: rgba(0, 207, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px var(--footer-glow);
}

/* ==========================================================================
   5. COLUMN 2: QUICK LINKS (TIGHT VERTICAL FLOW, LARGER TEXT)
   ========================================================================== */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.35;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 2px 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav-link .nav-arrow {
    font-size: 0.86rem;
    color: var(--footer-cyan);
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-nav-link:hover {
    color: var(--footer-white);
    transform: translateX(3px);
}

.footer-nav-link:hover .nav-arrow {
    color: var(--footer-teal);
}

/* ==========================================================================
   6. COLUMN 3: OUR SERVICES (TIGHT VERTICAL FLOW, LARGER TEXT)
   ========================================================================== */
.footer-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-service-list li {
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.35;
}

.footer-service-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 2px 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Circular Circuit Target Node ◎ */
.circuit-target-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--footer-cyan);
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.circuit-target-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.5px;
    height: 2.5px;
    background-color: var(--footer-cyan);
    border-radius: 50%;
    transition: background-color 0.25s ease;
}

.footer-service-link:hover {
    color: var(--footer-white);
    transform: translateX(3px);
}

.footer-service-link:hover .circuit-target-dot {
    border-color: var(--footer-teal);
    box-shadow: 0 0 8px var(--footer-teal);
    transform: scale(1.15);
}

.footer-service-link:hover .circuit-target-dot::after {
    background-color: var(--footer-teal);
}

/* ==========================================================================
   7. COLUMN 4: CONTACT US CARD (BALANCED & READABLE)
   ========================================================================== */
.footer-contact-card {
    background: var(--footer-card-bg);
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    width: 100%;
}

/* Left/Bottom Neon Gradient Border Accent */
.contact-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--footer-cyan) 0%, var(--footer-teal) 60%, var(--footer-lime) 100%);
}

.contact-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
}

.contact-entry:last-child {
    margin-bottom: 0;
}

.contact-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(0, 207, 255, 0.08);
    border: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-cyan);
    font-size: 0.84rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-entry-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-entry-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    color: var(--footer-cyan);
    text-transform: uppercase;
    margin-bottom: 1px;
}

.contact-entry-value {
    font-size: 0.86rem;
    line-height: 1.40;
    color: var(--footer-muted);
    margin: 0;
    text-decoration: none;
    display: block;
}

.contact-entry-value.contact-link {
    color: var(--footer-muted);
    transition: color 0.25s ease;
}

.contact-entry-value.contact-link:hover {
    color: var(--footer-white);
}

/* ==========================================================================
   8. FEATURE HIGHLIGHTS STRIP (LARGER TEXT & CLEAN SEPARATORS)
   ========================================================================== */
.footer-features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 14px 0 12px 0;
    padding: 10px 0;
    position: relative;
    border-top: 1px solid var(--footer-border-subtle);
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 14px;
    position: relative;
}

.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--footer-border-subtle);
}

.feature-icon-wrap {
    flex-shrink: 0;
    color: var(--footer-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease;
}

.feature-item:hover .feature-icon-wrap {
    transform: scale(1.08);
    color: var(--footer-teal);
}

.feature-svg {
    width: 30px;
    height: 30px;
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: var(--footer-white);
    margin: 0 0 2px 0;
    text-transform: uppercase;
}

.feature-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--footer-muted);
    margin: 0;
}

/* ==========================================================================
   9. NEON GRADIENT HORIZONTAL DIVIDER & BOTTOM BAR
   ========================================================================== */
.footer-neon-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--footer-cyan) 0%, var(--footer-teal) 35%, var(--footer-lime) 75%, transparent 100%);
    box-shadow: 0 0 6px rgba(0, 207, 255, 0.35);
    margin-bottom: 10px;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    padding-top: 0;
}

.footer-copyright {
    color: var(--footer-muted);
}

.copyright-brand {
    color: var(--footer-teal);
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-link {
    color: var(--footer-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.legal-link:hover {
    color: var(--footer-cyan);
}

.legal-sep {
    color: var(--footer-border-subtle);
    font-size: 0.75rem;
    user-select: none;
}

/* ==========================================================================
   10. FIXED FLOATING ACTION BUTTONS (Independent from footer flow)
   ========================================================================== */
.floating-btn {
    position: fixed;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-white);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background-color 0.25s ease;
    will-change: transform;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--footer-whatsapp);
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 5px 16px rgba(37, 211, 102, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:hover {
    color: var(--footer-white);
    background-color: #1EBE57;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
}

/* Enquiry Tab Button (Docked right edge) */
.enquiry-btn {
    top: 50%;
    right: 0;
    background-color: var(--footer-red);
    padding: 9px 18px;
    border-radius: 6px 6px 0 0;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: bottom right;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 -3px 14px rgba(255, 30, 58, 0.45);
}

.enquiry-btn:hover {
    color: var(--footer-white);
    background-color: #E6002A;
    transform: translateY(-50%) rotate(-90deg) translateY(-2px);
    box-shadow: 0 -5px 18px rgba(255, 30, 58, 0.6);
}

/* ==========================================================================
   11. ACCESSIBILITY & FOCUS STATES
   ========================================================================== */
.modern-footer a:focus-visible,
.modern-footer button:focus-visible,
.floating-btn:focus-visible {
    outline: 2px solid var(--footer-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-tech-border,
    .footer-cta-btn,
    .social-btn,
    .footer-nav-link,
    .footer-service-link,
    .whatsapp-btn,
    .enquiry-btn,
    .feature-item,
    .title-pcb-line {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .footer-cta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 20px;
    }

    .footer-cta-action {
        width: 100%;
    }

    .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 18px;
    }

    .footer-features-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 8px 0;
    }

    .feature-item:nth-child(2)::after {
        display: none;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .modern-footer {
        padding: 0 0 14px 0;
    }

    .footer-cta-strip {
        margin: 14px 0 16px 0;
        padding: 14px 16px;
    }

    .footer-cta-heading {
        font-size: 1.15rem;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 16px;
    }

    .footer-brand-desc {
        max-width: 100%;
    }

    .footer-contact-card {
        padding: 12px;
    }

    .footer-features-strip {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 14px 0;
        padding: 8px 0;
    }

    .feature-item {
        padding: 4px 0;
    }

    .feature-item::after {
        display: none !important;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .enquiry-btn {
        padding: 7px 14px;
        font-size: 0.70rem;
    }

    .footer-nav-link,
    .footer-service-link {
        min-height: 32px;
        display: flex;
        align-items: center;
    }
}
