/* ======================================================================
   MODERN & FULLY RESPONSIVE STYLES - RA AL FATIN
   ====================================================================== */

/* NAVBAR LOGO SIZE ADJUSTMENT (PERFECT PROPORTION) */
header .logo img,
header .logo a img,
#main-header .logo img,
#main-header .logo a img,
.header-container .logo img,
.header-container .logo a img,
.logo img,
.logo a img {
    max-height: 85px !important;
    height: auto !important;
    width: auto !important;
    max-width: 280px !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
}

/* DISABLE PRELOADER FOR INSTANT 100% RELIABLE ACCESS */
#preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#main-footer {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    padding: 60px 0 24px 0 !important;
    border-top: 5px solid #f3cc0b !important;
    font-family: 'Nunito', 'Open Sans', sans-serif !important;
    position: relative !important;
    z-index: 10 !important;
}

#main-footer .container,
#main-footer .footer-grid-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

#main-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr 1.2fr !important;
    gap: 48px !important;
    align-items: start !important;
    padding-bottom: 40px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 auto !important;
}

#main-footer .footer-grid > div {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Logo Section (NO BACKGROUND) */
.footer-logo-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-logo-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    margin-bottom: 16px !important;
}

.footer-logo-wrapper img,
.footer-logo-section img {
    height: auto !important;
    max-height: 120px !important;
    width: auto !important;
    max-width: 320px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    background: transparent !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)) !important;
}

.footer-moto {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Section Titles */
.footer-links-section h3,
.footer-contact-section h3 {
    color: #f3cc0b !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    position: relative !important;
    padding-bottom: 8px !important;
}

.footer-links-section h3::after,
.footer-contact-section h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 35px !important;
    height: 3px !important;
    background-color: #f3cc0b !important;
    border-radius: 2px !important;
    transform: none !important;
}

/* Links Section */
.footer-links-section ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links-section ul li {
    margin-bottom: 10px !important;
}

.footer-links-section ul li a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    padding-left: 0 !important;
}

.footer-links-section ul li a i {
    font-size: 0.8rem !important;
    color: #f3cc0b !important;
    transition: transform 0.25s ease !important;
}

.footer-links-section ul li a:hover {
    color: #f3cc0b !important;
    transform: translateX(5px) !important;
}

.footer-links-section ul li a:hover i {
    transform: translateX(3px) !important;
}

/* Contact Section */
.footer-contact-section p {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.footer-contact-section p i {
    color: #f3cc0b !important;
    font-size: 1.1rem !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    margin-top: 3px !important;
}

.footer-contact-section p a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}

.footer-contact-section p a:hover {
    color: #f3cc0b !important;
}

/* Social Icons */
.social-icons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: all 0.3s ease !important;
    margin-right: 0 !important;
}

.social-icons a:hover {
    background: #f3cc0b !important;
    color: #0f172a !important;
    border-color: #f3cc0b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(243, 204, 11, 0.35) !important;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center !important;
    padding-top: 24px !important;
}

.footer-bottom p {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* CLICK-TRIGGERED INTERACTIVE WHATSAPP POPUP WIDGET */
.wa-widget-wrapper {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    font-family: 'Nunito', 'Open Sans', sans-serif !important;
}

/* Floating Action Button (Toggle) */
.whatsapp-float,
a.whatsapp-float,
button.whatsapp-float {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 32px !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45) !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: waFloatBounce 3s ease-in-out infinite !important;
    text-decoration: none !important;
}

.whatsapp-float::before,
a.whatsapp-float::before,
button.whatsapp-float::before {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    right: -6px !important;
    bottom: -6px !important;
    border: 2.5px solid #25d366 !important;
    border-radius: 50% !important;
    animation: waPulseRing 2s infinite !important;
    pointer-events: none !important;
}

.whatsapp-float:hover,
a.whatsapp-float:hover,
button.whatsapp-float:hover {
    transform: scale(1.12) rotate(8deg) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65) !important;
    color: #ffffff !important;
}

.whatsapp-badge {
    display: none !important;
}

/* WhatsApp Popup Card Window */
.wa-popup-card {
    position: absolute !important;
    bottom: 78px !important;
    right: 0 !important;
    width: 325px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(7, 94, 84, 0.28), 0 0 20px rgba(37, 211, 102, 0.15) !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.9) !important;
    transform-origin: bottom right !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    z-index: 99999 !important;
}

.wa-popup-card.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: waCardPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.wa-popup-card.show .wa-msg-bubble {
    animation: waMsgSlideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s both !important;
}

.wa-popup-card.show .wa-quick-chips {
    animation: waMsgSlideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.22s both !important;
}

/* Header */
.wa-popup-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    padding: 16px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.wa-avatar {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    padding: 3px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.wa-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

.wa-online-dot {
    position: absolute !important;
    bottom: 2px !important;
    right: 2px !important;
    width: 12px !important;
    height: 12px !important;
    background-color: #22c55e !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    animation: pulseDot 2s infinite !important;
}

.wa-header-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.wa-admin-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    font-family: 'Fredoka', 'Nunito', sans-serif !important;
}

.wa-admin-status {
    font-size: 0.73rem !important;
    color: #86efac !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.wa-close-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.wa-close-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: rotate(90deg) !important;
}

/* Body */
.wa-popup-body {
    padding: 16px !important;
    background: #efeae2 !important;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0) !important;
    background-size: 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.wa-chat-date {
    align-self: center !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.wa-msg-bubble {
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 12px 14px !important;
    border-radius: 0 18px 18px 18px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    max-width: 95% !important;
    position: relative !important;
    font-family: 'Nunito', sans-serif !important;
}

.wa-msg-bubble p {
    margin: 0 0 6px 0 !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    color: #334155 !important;
}

.wa-msg-bubble p:last-of-type {
    margin-bottom: 0 !important;
}

.wa-msg-time {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    font-size: 0.65rem !important;
    color: #94a3b8 !important;
    margin-top: 6px !important;
}

/* Quick Chips */
.wa-quick-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.wa-chip {
    background: #ffffff !important;
    color: #075e54 !important;
    border: 1.5px solid #128c7e !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.wa-chip:hover {
    background: #075e54 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(7, 94, 84, 0.2) !important;
}

/* Footer */
.wa-popup-footer {
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.wa-start-chat-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 18px !important;
    border-radius: 30px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Fredoka', 'Nunito', sans-serif !important;
}

.wa-start-chat-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55) !important;
    color: #ffffff !important;
}

.wa-footer-trust {
    font-size: 0.68rem !important;
    color: #94a3b8 !important;
    text-align: center !important;
    font-weight: 600 !important;
}

/* Keyframe Animations */
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes waPulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.28); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

@keyframes waFloatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes waCardPopIn {
    0% { opacity: 0; transform: translateY(24px) scale(0.88); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes waMsgSlideIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
}

/* ======================================================================
   RESPONSIVE MEDIA QUERIES
   ====================================================================== */

@media screen and (max-width: 992px) {
    #main-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 36px !important;
    }

    .footer-logo-section {
        grid-column: 1 / -1 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-logo-wrapper img,
    .footer-logo-section img {
        margin: 0 auto !important;
    }
}

@media screen and (max-width: 768px) {
    header .logo img,
    header .logo a img,
    #main-header .logo img,
    #main-header .logo a img,
    .header-container .logo img,
    .header-container .logo a img,
    .logo img,
    .logo a img {
        max-height: 65px !important;
        max-width: 220px !important;
    }

    #main-footer {
        padding: 40px 0 20px 0 !important;
    }

    #main-footer .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        text-align: center !important;
        align-items: center !important;
        padding-bottom: 30px !important;
    }

    .footer-logo-section {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-logo-wrapper img,
    .footer-logo-section img {
        margin: 0 auto !important;
        max-height: 100px !important;
        max-width: 280px !important;
    }

    .footer-moto {
        text-align: center !important;
        margin-top: 8px !important;
    }

    .footer-links-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-links-section h3,
    .footer-contact-section h3 {
        text-align: center !important;
        width: auto !important;
    }

    .footer-links-section h3::after,
    .footer-contact-section h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-links-section ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links-section ul li a {
        justify-content: center !important;
    }

    .footer-contact-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-contact-section p {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .footer-contact-section p i {
        margin-top: 0 !important;
    }

    .social-icons {
        justify-content: center !important;
        width: 100% !important;
    }

    .footer-bottom p {
        font-size: 0.825rem !important;
        text-align: center !important;
    }

    /* WhatsApp Mobile Adjustment */
    .wa-widget-wrapper {
        bottom: 20px !important;
        right: 18px !important;
    }
}

@media screen and (max-width: 576px) {
    .wa-widget-wrapper {
        bottom: 16px !important;
        right: 16px !important;
    }

    .wa-popup-card {
        position: fixed !important;
        bottom: 84px !important;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        max-width: calc(100vw - 28px) !important;
        border-radius: 22px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35) !important;
    }

    .wa-popup-header {
        padding: 14px 16px !important;
    }

    .wa-admin-name {
        font-size: 0.9rem !important;
    }

    .wa-popup-body {
        padding: 14px !important;
    }

    .wa-msg-bubble p {
        font-size: 0.83rem !important;
    }

    .wa-quick-chips {
        gap: 5px !important;
    }

    .wa-chip {
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
        flex: 1 1 auto !important;
        text-align: center !important;
    }

    .wa-start-chat-btn {
        padding: 11px 16px !important;
        font-size: 0.88rem !important;
    }
}
