/*
 * Modern Cab Booking Template - Responsive Stylesheet
 * Handles Breakpoints: Mobile (320px+), Tablet (768px+), Laptop (1024px+), Desktop (1440px+)
 */

/* ----------------------------------
   Breakpoint: Desktop/Laptop (1024px)
---------------------------------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .booking-card {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ----------------------------------
   Breakpoint: Tablet (768px)
---------------------------------- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Header & Navigation Drawer */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 24px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        transition: right var(--transition-normal);
        z-index: 105;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 12px;
    }

    .nav-actions {
        display: none; /* Action buttons moved or hidden on small screens */
    }

    .nav-menu .btn-primary {
        width: 100%;
        margin-top: 10px;
    }

    /* Process Flow Connectors Hidden on Tablet/Mobile */
    .process-grid::before {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Mobile Bottom Sticky CTA */
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--dark);
        display: grid;
        grid-template-columns: 1fr 1fr;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
        z-index: 995;
    }

    .mobile-cta-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-family: var(--font-title);
        font-weight: 700;
        font-size: 0.9rem;
        color: var(--dark);
        height: 100%;
    }

    .mobile-cta-call {
        background-color: var(--primary);
    }

    .mobile-cta-call:hover {
        background-color: var(--primary-hover);
    }

    .mobile-cta-whatsapp {
        background-color: #25D366;
        color: #FFFFFF;
    }

    .mobile-cta-whatsapp:hover {
        background-color: #128C7E;
    }

    /* Push body padding to prevent sticky CTA overlap on footer */
    body {
        padding-bottom: 60px;
    }

    /* Shift floating back-to-top to avoid overlapping sticky footer */
    .float-back-to-top {
        bottom: 80px;
    }

    .float-whatsapp {
        bottom: 140px;
    }
}

/* ----------------------------------
   Breakpoint: Mobile (576px)
---------------------------------- */
@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }

    .booking-card {
        padding: 24px 20px;
    }

    .booking-card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .modal-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ----------------------------------
   Breakpoint: Small Mobile (360px)
---------------------------------- */
@media (max-width: 360px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }
}
