/* ==========================================================================
   FOOTER - Matching CTA Navy Blue Theme with White Logo
   ========================================================================== */

.footer {
    /* Match CTA dark navy gradient */
    background: linear-gradient(135deg, 
        var(--navy-darkest) 0%, 
        var(--navy-dark) 50%, 
        var(--navy-darkest) 100%);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg); /* Using tokens */
    position: relative;
    overflow: hidden;
}

/* Subtle scan lines matching hero/CTA */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px, /* Reduced from 4px */
        rgba(255, 255, 255, 0.015) 3px, /* Reduced opacity from 0.02 */
        rgba(255, 255, 255, 0.015) 4px /* Reduced from 5px */
    );
    opacity: 0.4; /* Reduced from 0.5 */
    z-index: 0;
    pointer-events: none;
}

/* Subtle glow at top */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px; /* Reduced from 800px */
    height: 1.5px; /* Reduced from 2px */
    background: linear-gradient(90deg,
        transparent,
        rgba(91, 163, 208, 0.3), /* Reduced opacity from 0.4 */
        transparent);
    z-index: 1;
    pointer-events: none;
}

/* Main footer content */
.footer-main {
    position: relative;
    z-index: 2;
    margin-bottom: var(--spacing-xxl); /* Using token */
}

/* Brand section */
.footer-brand {
    max-width: 260px; /* Reduced from 300px */
}

.footer-logo {
    margin-bottom: var(--spacing-xl); /* Using token */
}

/* White logo styling - no filter needed, add glow on hover */
.footer-logo-img {
    width: 100px; /* Reduced from 120px */
    height: auto;
    transition: all 0.25s ease; /* Faster transition */
}

.footer-logo-img:hover {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.5)) /* Reduced glow */
            drop-shadow(0 0 30px rgba(91, 163, 208, 0.3)); /* Reduced glow */
    transform: scale(1.04); /* Reduced from 1.05 */
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm); /* Using token */
    line-height: 1.5; /* Reduced from 1.6 */
    margin-bottom: var(--spacing-xxl); /* Using token */
}

/* Social icons matching blue theme */
.social-icons {
    display: flex;
    gap: var(--spacing-lg); /* Using token */
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Reduced from 45px */
    height: 40px; /* Reduced from 45px */
    background: rgba(255, 255, 255, 0.08);
    border: 0.75px solid rgba(255, 255, 255, 0.2); /* Thinner border */
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.25s ease; /* Faster transition */
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); /* Reduced opacity */
    transition: left 0.4s ease; /* Faster transition */
}

.social-link:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    background: linear-gradient(135deg, var(--navy-main), var(--navy-lighter));
    border-color: rgba(255, 255, 255, 0.4); /* Reduced opacity */
    color: white;
    box-shadow: 0 4px 12px rgba(45, 122, 175, 0.3); /* Reduced shadow */
}

.social-link:hover::before {
    left: 100%;
}

.social-tooltip {
    position: absolute;
    bottom: 110%; /* Adjusted for smaller button */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 37, 64, 0.95);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm); /* Using tokens */
    border-radius: 3px; /* Reduced from 4px */
    font-size: var(--font-size-xs); /* Using token */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease; /* Faster transition */
    white-space: nowrap;
    border: 0.75px solid rgba(255, 255, 255, 0.2); /* Thinner border */
}

.social-link:hover .social-tooltip {
    opacity: 1;
}

/* Footer sections */
.footer-section {
    margin-bottom: var(--spacing-sm); /* Using token */
}

.footer-heading {
    color: #ffffff;
    font-size: var(--font-size-base); /* Using token */
    font-weight: 600;
    margin-bottom: var(--spacing-xl); /* Using token */
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Reduced from -8px */
    left: 0;
    width: 24px; /* Reduced from 30px */
    height: 1.5px; /* Reduced from 2px */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent); /* Reduced opacity */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm); /* Using token */
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-sm); /* Using token */
    transition: all 0.25s ease; /* Faster transition */
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -8px; /* Reduced from -10px */
    top: 50%;
    width: 3px; /* Reduced from 4px */
    height: 3px; /* Reduced from 4px */
    background: rgba(255, 255, 255, 0.7); /* Reduced opacity */
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.25s ease; /* Faster transition */
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 12px; /* Reduced from 15px */
    transform: translateX(4px); /* Reduced from 5px */
}

.footer-link:hover::before {
    transform: translateY(-50%) scale(1);
}

/* Contact section */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg); /* Using token */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg); /* Using token */
}

.contact-icon {
    width: 36px; /* Reduced from 40px */
    height: 36px; /* Reduced from 40px */
    background: rgba(255, 255, 255, 0.08);
    border: 0.75px solid rgba(255, 255, 255, 0.2); /* Thinner border */
    border-radius: 6px; /* Reduced from 8px */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease; /* Faster transition */
}

.contact-icon i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--navy-main), var(--navy-lighter));
    border-color: rgba(255, 255, 255, 0.4); /* Reduced opacity */
}

.contact-item:hover .contact-icon i {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* Using token */
}

.contact-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs); /* Using token */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm); /* Using token */
    text-decoration: none;
    transition: color 0.25s ease; /* Faster transition */
}

.contact-value:hover {
    color: #ffffff;
}

/* Footer divider */
.footer-divider {
    position: relative;
    margin: var(--spacing-xxl) 0; /* Using token */
    height: 0.75px; /* Reduced from 1px */
}

.divider-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.75px; /* Reduced from 1px */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); /* Reduced opacity */
}

.divider-glow {
    position: absolute;
    top: -0.75px; /* Adjusted for thinner line */
    left: 50%;
    width: 150px; /* Reduced from 200px */
    height: 2px; /* Reduced from 3px */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); /* Reduced opacity */
    transform: translateX(-50%);
    animation: divider-glow 3s ease-in-out infinite; /* Faster animation */
}

@keyframes divider-glow {
    0%, 100% { opacity: 0.5; } /* Reduced opacity */
    50% { opacity: 0.8; } /* Reduced opacity */
}

/* Footer bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs); /* Using token */
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-sm); /* Using token */
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-xs); /* Using token */
    transition: color 0.25s ease; /* Faster transition */
}

.legal-link:hover {
    color: #ffffff;
}

.legal-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    /* Brand column: fill full width when stacked */
    .footer-brand {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .footer-logo-img {
        width: 85px;
    }

    /* Space between stacked columns */
    .footer-section {
        margin-bottom: 1.75rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
    }

    /* Bottom bar: stack copyright above legal links, both centred */
    .footer-bottom .d-flex,
    .footer-bottom .row > [class*="col"] {
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-legal {
        justify-content: center;
        margin-top: var(--spacing-lg);
    }
}