/* FOOTER STYLES */
.site-footer {
    position: relative;
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

/* Background Pattern (inspired by Moringa) */
.footer-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23f2b14a' fill-opacity='0.07' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 400px;
    opacity: 0.6;
    z-index: 1;
}

.footer-overlay {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    z-index: 2;
}

.footer-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 70px 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
    gap: 60px;
    z-index: 3;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    gap: 3px;
}

.footer-brand-line-1,
.footer-brand-line-2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: left;
    filter: brightness(0) invert(1);
}

.footer-brand-line-1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.footer-brand-line-2 {
    font-size: 0.83rem;
    font-weight: 600;
    opacity: 0.9;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 10px 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #e2e8f0;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* .social-link:hover {
    background: #f2b14a;
    color: #0f172a;
    transform: translateY(-3px);
    border-color: #f2b14a;
} */

/* Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #f2b14a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    /* padding-bottom: 10px; */
}

/* .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f2b14a;
    border-radius: 2px;
} */

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
}

/* .footer-links a:hover {
    color: #f2b14a;
    transform: translateX(5px);
} */

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.contact-icon {
    color: #f2b14a;
    font-size: 1rem;
    width: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-detail {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-decoration-style: dotted;
    text-underline-offset: 5px;
}

.contact-detail:hover {
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-decoration-style: dotted;
    text-underline-offset: 5px;
}

/* Map */
.footer-map-column {
    display: flex;
    flex-direction: column;
}

.footer-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    display: block;
    filter: grayscale(20%) contrast(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 70px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #f2b14a;
}

.separator {
    color: #64748b;
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN */
/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1.2fr 1fr 1.2fr;
        gap: 50px;
    }
    
    .footer-map-column {
        grid-column: span 2;
        max-width: 400px;
    }
    
    .footer-map iframe {
        height: 180px;
    }
    
    .footer-brand-line-1 {
        font-size: 1.3rem;
    }
    
    .footer-brand-line-2 {
        font-size: 0.85rem;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 60px 30px 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-map-column {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-brand-line-1 {
        font-size: 1.4rem;
    }
    
    .footer-brand-line-2 {
        font-size: 0.9rem;
    }
}

/* Mobile Phones */
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px 30px;
    }
    
    .footer-brand,
    .footer-map-column {
        grid-column: span 1;
    }
    
    .footer-map iframe {
        height: 160px;
    }
    
    .footer-bottom {
        padding: 20px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .separator:last-child {
        display: none;
    }
    
    .footer-logo-link {
        gap: 12px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-brand-line-1 {
        font-size: 1.2rem;
    }
    
    .footer-brand-line-2 {
        font-size: 0.8rem;
    }
}

/* Small Phones */
@media (max-width: 400px) {
    .footer-container {
        padding: 40px 15px 25px;
        gap: 35px;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-logo-link {
        gap: 10px;
    }
    
    .footer-brand-line-1 {
        font-size: 1rem;
    }
    
    .footer-brand-line-2 {
        font-size: 0.75rem;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .footer-links a,
    .contact-detail {
        font-size: 0.9rem;
    }
    
    .footer-map iframe {
        height: 140px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000000;
        border-top: 2px solid #ffffff;
    }
    
    .footer-title,
    .footer-links a:hover,
    .contact-detail:hover,
    .social-link:hover {
        color: #ffffff;
    }
    
    .footer-brand-line-1,
    .footer-brand-line-2 {
        color: #ffffff;
        filter: none;
    }
    
    .footer-logo {
        filter: brightness(0) invert(1);
    }
    
    .footer-bottom {
        border-top: 2px solid #ffffff;
        background: #000000;
    }
    
    .footer-legal a:hover {
        color: #ffffff;
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .social-link,
    .footer-links a,
    .contact-detail,
    .footer-logo-link {
        transition: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Increased z-index */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: visible; /* Changed from hidden to visible */
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 32px;
    color: white;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover .whatsapp-icon {
    transform: scale(1.1);
}

/* WhatsApp Tooltip - FIXED */
.whatsapp-tooltip {
    position: absolute;
    right: 80px; /* Position to the left of the button */
    top: 50%;
    transform: translateY(-50%) translateX(10px); /* Added initial translateX */
    background: #25D366;
    color: #363C4F;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease 0.1s; /* Added delay */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 10000; /* Higher than button */
    backdrop-filter: blur(5px);
    border: 1px solid #25D366;
    max-width: 450px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #25D366;
}

.whatsapp-link:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Removed translateX on hover */
    transition-delay: 0s; /* No delay on hover */
}

/* Pulse Animation */
.whatsapp-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    animation: whatsapp-pulse-animation 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Close Button (for mobile) */
.whatsapp-close {
    display: none;
    background: #25D366;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.whatsapp-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Responsive Design for WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        font-size: 28px;
    }
    
    .whatsapp-pulse {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip {
        white-space: normal;
        width: 180px;
        right: 65px;
        font-size: 0.8rem;
        padding: 10px 14px;
        max-width: 180px;
    }
    
    .whatsapp-tooltip::after {
        right: -5px;
        border-left: 5px solid #363C4F;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        font-size: 26px;
    }
    
    .whatsapp-pulse {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-tooltip {
        width: 160px;
        right: 60px;
        font-size: 0.75rem;
        padding: 8px 12px;
        max-width: 160px;
    }
    
    /* Show tooltip on mobile when active/focused */
    .whatsapp-link:active .whatsapp-tooltip,
    .whatsapp-link:focus .whatsapp-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
    }
}

/* Optional: Add a notification badge for new messages */
.whatsapp-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF3B30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: whatsapp-notification-pulse 1.5s infinite;
    border: 2px solid white;
}

@keyframes whatsapp-notification-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: rgba(255, 255, 255, 0.95);
        color: #000;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .whatsapp-tooltip::after {
        border-left-color: #363C4F;
    }
}

/* Accessibility improvements */
.whatsapp-link:focus {
    outline: 2px solid #25D366;
    outline-offset: 4px;
}

/* Fix for any potential overflow issues */
* {
    max-height: 1000000px; /* Prevents weird rendering issues */
}