/*
Theme Name: swift airport taxi
Author: 
Description: Your description goes here
Version: 1.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* ================================================================
   MOBILE VIEWPORT & HORIZONTAL OVERFLOW STABILITY
   ================================================================ */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
    -webkit-text-size-adjust: 100% !important;
}

/* ================================================================
   SMOOTH STICKY HEADER (Zero Jumping & Pure Smooth Transition)
   ================================================================ */
#masthead {
    display: block !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 9999 !important;
    background: #222D37 !important;
}

@media (min-width: 768px) {
    #masthead {
        height: 68px !important;
        min-height: 68px !important;
    }
}

.sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #222D37 !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
    animation: none !important;
    transform: none !important;
}

.sticky-header > .elementor-container,
.sticky-header > .e-con,
.sticky-header .elementor-container:first-child,
.sticky-header .e-con:first-child {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    transition: none !important;
}

.sticky-header.sticky-active {
    position: fixed !important;
    background-color: rgba(34, 45, 55, 0.96) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
    animation: none !important;
    transform: none !important;
}

.sticky-header.sticky-active > .elementor-container,
.sticky-header.sticky-active > .e-con,
.sticky-header.sticky-active .elementor-container:first-child,
.sticky-header.sticky-active .e-con:first-child {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    transition: none !important;
}

/* ================================================================
   COOKIES ALERT & WHATSAPP COORDINATION
   Ensure cookie banner and action buttons are always rendered on top
   of the WhatsApp widget so visitors can review, click Accept, and close.
   ================================================================ */
.modal-cacsp-backdrop {
    z-index: 9999990 !important;
}

.modal-cacsp-position,
.modal-cacsp-box,
.modal-cacsp-box-info,
.modal-cacsp-box-settings,
.modal-cacsp-box-bottom {
    z-index: 10000005 !important;
}

.modal-cacsp-btns,
.modal-cacsp-btns .modal-cacsp-btn,
.modal-cacsp-btn-accept,
.modal-cacsp-btn-settings,
.modal-cacsp-btn-refuse,
.modal-cacsp-box-close {
    position: relative !important;
    z-index: 10000007 !important;
    pointer-events: auto !important;
}

/* ================================================================
   MODERN WHATSAPP FLOATING WIDGET
   ================================================================ */
@keyframes waEntrance {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 5px 20px rgba(0, 0, 0, 0.22);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 5px 20px rgba(0, 0, 0, 0.22);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 5px 20px rgba(0, 0, 0, 0.22);
    }
}

@keyframes waDotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

.whatsapp-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999990 !important; /* Above content, below cookie consent banner */
    text-decoration: none !important;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    animation: waEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Message Bubble */
.whatsapp-message {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
    line-height: 1.2;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
}

/* Bubble Arrow */
.whatsapp-message::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}

/* Main Text */
.whatsapp-message strong {
    color: #075e54;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

/* Sub Text with Status Dot */
.whatsapp-message small {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-message .wa-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25D366;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
    animation: waDotPulse 2s infinite ease-in-out;
    flex-shrink: 0;
}

/* WhatsApp Circle */
.whatsapp-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
    animation: waPulse 2.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
}

/* Local WhatsApp SVG */
.whatsapp-icon img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    display: block;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

/* Hover Interactions */
.whatsapp-widget:hover {
    text-decoration: none !important;
}

.whatsapp-widget:hover .whatsapp-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 6px 20px rgba(0, 0, 0, 0.25);
    animation-play-state: paused;
}

.whatsapp-widget:hover .whatsapp-message {
    transform: translateX(-4px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

/* Responsive: Mobile */
@media (max-width: 767px) {
    .whatsapp-widget {
        right: 15px;
        bottom: 15px;
        gap: 9px;
    }

    .whatsapp-message {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .whatsapp-message strong {
        font-size: 13px;
    }

    .whatsapp-message small {
        margin-top: 3px;
        font-size: 11px;
    }

    .whatsapp-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
    }

    .whatsapp-icon img {
        width: 33px !important;
        height: 33px !important;
        max-width: 33px !important;
        max-height: 33px !important;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 420px) {
    .whatsapp-widget {
        right: 12px;
        bottom: 12px;
        gap: 7px;
    }

    .whatsapp-message {
        padding: 7px 10px;
    }

    .whatsapp-message strong {
        font-size: 12px;
    }

    .whatsapp-message small {
        font-size: 10px;
    }

    .whatsapp-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .whatsapp-icon img {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
}
