/* Plumberoos Inc - Custom Styling & Micro-Interactions */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    --brand-aqua: #00A3E0;
    --brand-aqua-dark: #0082B4;
    --brand-aqua-light: #E0F2FE;
    --brand-yellow: #FFA800;
    --brand-yellow-dark: #E69500;
    --brand-yellow-light: #FEF3C7;
    --brand-navy: #0A1C38;
    --brand-navy-dark: #071326;
    --primary-blue: #0A1C38;
    --primary-blue-dark: #071326;
    --brand-red: #00A3E0;
    --brand-red-dark: #0082B4;
    --accent-cyan: #00A3E0;
    --accent-amber: #FFA800;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background-color: #F8FAFC;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    letter-spacing: -0.025em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Pulse Animation for Live Emergency Dispatch */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 163, 224, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 163, 224, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 163, 224, 0);
    }
}

.pulse-badge {
    animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Circular Service Icon Card matching reference */
.service-circle-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-circle-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px -8px rgba(0, 163, 224, 0.25);
}

/* Slider transition effects */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    height: 100%;
}

/* Dashed coupon border styling */
.coupon-dashed-card {
    border: 3px dashed #BAE6FD;
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
    transition: all 0.3s ease;
}
.coupon-dashed-card:hover {
    border-color: #00A3E0;
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 163, 224, 0.15), 0 10px 10px -5px rgba(0, 163, 224, 0.05);
}

/* Brand discount hero card matching aqua & yellow theme */
.red-discount-box,
.aqua-discount-box {
    background: linear-gradient(135deg, #007BB0 0%, #00A3E0 50%, #0284C7 100%);
    box-shadow: 0 15px 30px rgba(0, 163, 224, 0.35);
}

/* Location Serve Part - Map Container & Floating Card */
.location-map-wrap {
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 100%);
    position: relative;
    min-height: 440px;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(10, 46, 99, 0.04) 0%, transparent 60%),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(226, 232, 240, 0.8) 39px, rgba(226, 232, 240, 0.8) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(226, 232, 240, 0.8) 39px, rgba(226, 232, 240, 0.8) 40px);
}

/* Interactive Floating CTA Button */
.floating-cta-pill {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cta-pill:hover {
    transform: scale(1.05);
}

/* Sticky Right Sidebar Booking Drawer */
.sidebar-booking-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-booking-tab:hover {
    right: 4px;
}

#bookingSidebarDrawer {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

#bookingSidebarDrawer.drawer-closed {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

#bookingSidebarDrawer.drawer-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#bookingSidebarBackdrop {
    transition: opacity 0.35s ease;
}

#bookingSidebarBackdrop.backdrop-closed {
    opacity: 0;
    pointer-events: none;
}

#bookingSidebarBackdrop.backdrop-open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Responsive Drawer Optimization */
@media (max-width: 640px) {
    .sidebar-booking-tab button {
        padding: 0.65rem 0.5rem;
    }
    .sidebar-booking-tab button span[writing-mode] {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
    #bookingSidebarDrawer {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* Sticky Header On-Scroll Transition */
#siteHeader {
    transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#siteHeader.scrolled-header {
    background-color: #0A1C38 !important; /* Brand Deep Navy */
    border-bottom: 3px solid #FFA800 !important; /* Kangaroo Golden Yellow Accent */
    box-shadow: 0 10px 25px -5px rgba(10, 28, 56, 0.45), 0 8px 10px -6px rgba(10, 28, 56, 0.3) !important;
}

#siteHeader.scrolled-header .dropdown-menu {
    border-top-color: #FFA800 !important;
}

/* ==========================================
   MOBILE-FIRST PERFECTION & TOUCH ENHANCEMENTS
   ========================================== */

/* Smooth touch scrolling & tap optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Prevent iOS Safari auto-zoom on inputs */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Hide hero arrows on small phones to keep banner clean & tap-friendly */
    #sliderPrev, #sliderNext {
        display: none !important;
    }

    /* Minimum touch target size for accessible tapping */
    button, a {
        min-height: 38px;
    }

    /* Container gutter padding for small mobile screens (320px - 420px) */
    .max-w-7xl, .max-w-6xl, .max-w-5xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Fix table or horizontal card wraps */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure slider image text is fully visible on mobile without cropping */
    #heroSliderContainer {
        height: auto !important;
        min-height: 180px;
        aspect-ratio: 1366 / 463;
    }

    #heroSliderContainer .hero-slide {
        height: 100% !important;
    }

    #heroSliderContainer img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
    }
}

