@media (max-width: 1199px) {
    .hero-grid { grid-template-columns: 1fr 420px; gap: 35px; }
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .popular-grid { grid-template-columns: repeat(2, 1fr); }
    .rate-grid { grid-template-columns: repeat(2, 1fr); }
    .service-choices { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { gap: 35px; }
}

@media (max-width: 991px) {
    body { padding-top: 84px; }
    .section { padding: 85px 0; }
    .site-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
    }
    .site-header .navbar { min-height: 84px; }
    .site-header .navbar > .container { min-width: 0; flex-wrap: nowrap; gap: 12px; }
    .site-header .navbar-brand { min-width: 0; margin-right: auto; }
    .site-header .navbar-toggler { display: inline-grid; place-items: center; }
    .brand-logo { height: 66px; max-width: min(76vw, 310px); }
    .footer-about .brand-logo { height: 48px; max-width: min(68vw, 210px); }
    .hero-grid { padding-top: 72px; padding-bottom: 64px; gap: 28px; }
    .quick-booking { margin-top: 0; padding: 22px 18px; }
    .site-header .nav-drawer {
        display: flex !important;
        position: fixed;
        z-index: 1200;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        width: min(92vw, 400px);
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #fff !important;
        box-shadow: 18px 0 50px rgba(4, 12, 24, .22);
        transform: translateX(-105%);
        transition: transform .34s cubic-bezier(.2, .7, .2, 1);
        visibility: visible;
    }
    .site-header .nav-drawer.show { transform: translateX(0); }
    /* backdrop-filter would make the header a containing block for the fixed drawer; drop it on mobile */
    .site-header { backdrop-filter: none; }
    body.nav-open .site-header { z-index: 1300; }
    body.nav-open .nav-backdrop { z-index: 1190; }
    .nav-drawer-head {
        display: flex !important;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-between;
        padding: 18px 18px 14px;
        padding-top: max(18px, env(safe-area-inset-top, 0px));
        border-bottom: 1px solid var(--line);
        background: #fff;
    }
    .nav-drawer-title { color: var(--charcoal); font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; }
    .nav-drawer-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--charcoal); background: #fff; font-size: 1rem; }
    .nav-drawer-body {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }
    .site-header .nav-drawer .navbar-nav { width: 100%; margin: 0; padding: 6px 18px 0; }
    .site-header .nav-link { padding: 14px 8px; border-bottom: 1px solid rgba(226, 232, 240, .7); font-size: 1rem; }
    .site-header .nav-link::after { display: none; }
    .site-header .nav-drawer .btn { width: calc(100% - 36px); margin: 16px 18px 0 !important; flex-shrink: 0; }
    .nav-drawer-map { display: block !important; margin: 20px 18px 0; flex-shrink: 0; }
    .nav-drawer-map .location-map-frame { aspect-ratio: 4 / 3; }
    .nav-drawer-map .location-map-head { padding: 14px 16px; }
    .hero-grid { grid-template-columns: 1fr; padding-top: 90px; padding-bottom: 90px; }
    .hero-copy { min-width: 0; max-width: 760px; }
    .quick-booking { max-width: 760px; }
    .page-hero-inner { grid-template-columns: 1fr; }
    .page-hero-visual { max-width: 520px; min-height: 280px; }
    .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coverage-city-grid, .locality-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Mobile/tablet trust strip — card list instead of cramped grid */
    .trust-strip { padding: 18px 0 22px; }
    .trust-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 0;
        gap: 10px;
    }
    .trust-grid span {
        justify-content: flex-start;
        gap: 12px;
        min-height: auto;
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: linear-gradient(135deg, #f8fbff, #fff);
        box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
        text-align: left;
    }
    .trust-grid span:last-child { grid-column: auto; }
    .trust-grid i {
        display: grid;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        place-items: center;
        border-radius: 11px;
        background: rgba(0, 110, 232, .1);
        font-size: 1.05rem;
    }

    /* Hero trust bullets — stacked pills on smaller screens */
    .hero-trust {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 28px;
    }
    .hero-trust span {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 14px;
        background: rgba(255, 255, 255, .08);
        font-size: .92rem;
    }
    .hero-trust i { margin-right: 0; flex-shrink: 0; font-size: 1.12rem; }

    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .driver-apply-inner { grid-template-columns: 1fr; }
    .driver-apply-inner .btn { justify-self: start; }
    .form-entry-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .split-layout { grid-template-columns: 1fr; gap: 55px; }
    .safety-band-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-visual { min-height: 430px; }
    .faq-layout { grid-template-columns: 1fr; gap: 35px; }
    .faq-intro { position: static; }
    .final-cta-inner, .compact-cta-inner { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .booking-shell { grid-template-columns: 1fr; }
    .booking-shell,
    .booking-shell > *,
    .booking-sidebar,
    .booking-form-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .booking-sidebar { position: relative; top: 0; padding: 20px; }
    .booking-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .booking-steps li { min-width: 0; padding: 5px; }
    .booking-steps li > div { display: none; }
    .booking-steps li > span { width: 32px; height: 32px; margin: auto; }
    .booking-help { display: none; }
    .choice-grid, .service-choices { grid-template-columns: repeat(3, 1fr); }
    .safety-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px));
    }
    main, section, .container, .page-hero-inner, .page-hero-copy, .section-heading, .detail-columns { min-width: 0; max-width: 100%; }
    h1, h2, h3, p, a, span { overflow-wrap: break-word; }
    .container { width: min(100% - 28px, 1180px); }
    .section { padding: 70px 0; }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.15rem; }
    .hero, .hero-grid { min-height: auto; }
    .hero-grid { padding-top: 70px; padding-bottom: 70px; }
    .hero-lead { font-size: 1rem; }
    .quick-booking { padding: 24px 20px; }
    .answer-card { padding: 25px; flex-direction: column; }
    .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
    .service-grid { grid-template-columns: 1fr; }
    .driver-apply-band { padding: 42px 0; }
    .form-entry-grid { grid-template-columns: 1fr; }
    .form-entry-card { min-height: 0; }
    .popular-grid { grid-template-columns: 1fr; }
    .route-card-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 235px; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { min-height: auto; }
    .area-grid { grid-template-columns: 1fr; }
    .coverage-city-grid, .locality-directory-grid { grid-template-columns: 1fr; }
    .route-card { min-height: 0; }
    .cta-grid { grid-template-columns: 1fr; }
    .needs-grid { grid-template-columns: 1fr; }
    .image-cta { min-height: 390px; padding: 32px; }
    .image-cta h2 { margin-top: 55px; font-size: 1.9rem; }
    .page-hero, .booking-hero { padding: 70px 0 120px; }
    .page-hero h1, .booking-hero h1 { font-size: 2.7rem; }
    .page-hero-grid { grid-template-columns: 1fr; }
    .service-hero-icon { display: none; }
    .detail-columns, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-hero-card { grid-template-columns: 1fr; padding: 28px; }
    .rate-grid { grid-template-columns: 1fr; }
    .distance-rate-panel { padding: 22px; }
    .related-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid-dual { grid-template-columns: 1fr; }
    .contact-form-card { padding: 28px 22px; }
    .booking-section { margin-top: -75px; padding-bottom: 75px; }
    .booking-form-card { min-height: 0; padding: 28px 20px; }
    .form-step-heading { gap: 13px; }
    .form-step-icon { width: 45px; height: 45px; flex-basis: 45px; }
    .form-step-heading h2 { font-size: 1.45rem; }
    .choice-grid, .service-choices, .trip-choices { grid-template-columns: repeat(2, 1fr); }
    .choice-card { min-height: 84px; padding: 11px; }
    .trip-choices .choice-card, .preference-choices .choice-card { min-height: 52px; }
    .booking-summary { grid-template-columns: 1fr; }
    .booking-summary > div { border-right: 0; }
    .success-card { padding: 38px 22px; }
    .success-card h1 { font-size: 2.1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding-bottom: 12px; }
    .footer-bottom-actions { display: none; }
    .floating-whatsapp-wrap,
    .floating-contact-wrap {
        inset: 0;
        z-index: 1095;
    }
    .floating-contact,
    .floating-whatsapp {
        width: 54px;
        height: 54px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        font-size: 1.35rem;
    }
    .floating-call { left: 16px; }
    .floating-whatsapp { right: 16px; }
    .site-footer { padding-bottom: 86px; }
    .mobile-cta-bar { display: none !important; }
}

@media (max-width: 480px) {
    body { padding-top: 82px; }
    .site-header .navbar { min-height: 82px; }
    .brand-logo { height: 64px; max-width: min(78vw, 295px); }
    .site-header .nav-drawer { width: 100%; max-width: 100%; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .trust-matrix-grid { grid-template-columns: 1fr; }
    .value-banner-grid { grid-template-columns: 1fr; }
    .wa-flow-shell { grid-template-columns: 1fr; padding: 22px; }
    .choice-grid, .service-choices { grid-template-columns: 1fr; }
    .route-card { gap: 15px; padding: 22px 20px; }
    .route-card-head { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; }
    .route-card-icon { width: 46px; height: 46px; border-radius: 13px; }
    .route-card .btn { width: 100%; }
    .area-grid .area-card { min-height: 98px; grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 13px; padding: 17px; }
    .area-grid .area-card > i:first-child { width: 42px; height: 42px; border-radius: 12px; }
    .driver-query-visual { min-height: 260px; }
    .hud-status.status-a { bottom: 48px; font-size: .62rem; }
    .hud-status.status-b { font-size: .62rem; }
    .shield-plate { width: 108px; height: 108px; }
    .safety-shield { font-size: 3.4rem; }
    .choice-card, .compact-choices .choice-card { min-height: 96px; }
    .form-navigation .btn { padding-right: 14px; padding-left: 14px; font-size: .82rem; }
    .success-summary { grid-template-columns: 1fr; }
    .success-summary div { border-right: 0; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Laptop / desktop / TV: trim bulky hero CTAs and make trust bullets clearly visible */
@media (min-width: 992px) {
    .hero-actions { gap: 14px; }
    .hero-actions .btn.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
    .hero-actions .btn.btn-lg i { font-size: 1.02rem; }

    .hero-trust { gap: 12px 14px; margin-top: 32px; }
    .hero-trust span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 9px 16px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 999px;
        background: rgba(255, 255, 255, .07);
        font-size: .95rem;
        font-weight: 700;
    }
    .hero-trust i { margin-right: 0; font-size: 1.1rem; }
}

@media (min-width: 1400px) {
    .hero-actions .btn.btn-lg { font-size: 1.05rem; padding: 13px 26px; }
    .hero-trust span { font-size: 0.9rem; padding: 7px 14px; }
    .hero-trust i { font-size: 1.18rem; }
}
