/* Custom Utilities & Overrides */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Navbar Solid State */
.navbar-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #0f172a; /* Navy 900 */
    border-bottom: 1px solid transparent;
}
.navbar-scrolled .text-white {
    color: #0f172a;
}
.navbar-scrolled button.text-white {
    color: #0f172a;
}
.navbar-scrolled a.text-white {
    color: #0f172a;
}

/* Slider Animations */
.slide {
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
    z-index: 10;
}
.slide:not(.active) {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
    transition: transform 1s ease-out 0.3s, opacity 1s ease-out 0.3s;
}

.slide:not(.active) .slide-content {
    transform: translateY(30px);
    opacity: 0;
}

/* Mega Menu Arrow */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Background image scale animation on active slide */
.slide.active > div:first-child {
    animation: zoomOut 10s ease-out forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1.0);
    }
}

/* Premium Mobile Menu Button */
.premium-menu-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.premium-menu-btn:hover {
    background: #ffffff;
    border-color: rgba(0, 180, 216, 0.45);
    box-shadow: 0 4px 14px -1px rgba(0, 180, 216, 0.22), 0 2px 4px rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
}

.premium-menu-btn:active {
    transform: scale(0.94);
}

.premium-menu-btn .hamburger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.premium-menu-btn .hamburger-bar {
    display: block;
    height: 2px;
    border-radius: 9999px;
    background-color: #0f172a;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, width 0.2s ease, background-color 0.2s ease;
    transform-origin: center;
}

/* Staggered luxury widths */
.premium-menu-btn .bar-top {
    width: 20px;
}

.premium-menu-btn .bar-mid {
    width: 13px;
}

.premium-menu-btn .bar-bot {
    width: 17px;
}

/* Hover effects */
.premium-menu-btn:hover .hamburger-bar {
    background-color: #00b4d8;
}

.premium-menu-btn:hover .bar-mid {
    width: 20px;
}

/* Open / Active state */
.premium-menu-btn.open {
    background: #f0fdfa;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.premium-menu-btn.open .hamburger-bar {
    background-color: #00b4d8;
}

.premium-menu-btn.open .bar-top {
    width: 20px;
    transform: translateY(6px) rotate(45deg);
}

.premium-menu-btn.open .bar-mid {
    opacity: 0;
    transform: scaleX(0);
}

.premium-menu-btn.open .bar-bot {
    width: 20px;
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Action Bar Colors */
.bg-logoblue {
    background-color: #003576 !important;
}

.bg-logoblue:hover {
    background-color: #00285a !important;
}

.bg-logoblue:active {
    background-color: #001f45 !important;
}

.bg-whatsapp-green {
    background-color: #25D366 !important;
}

.bg-whatsapp-green:hover {
    background-color: #20ba59 !important;
}

.bg-whatsapp-green:active {
    background-color: #1da850 !important;
}

/* Foolproof Mobile Bottom Action Bar */
.mobile-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.22) !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

.mobile-bottom-bar a {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

