/* Route Vision - Responsive Styles */

/* ============================================
   Base Mobile-First Styles
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    position: relative;
}

/* Prevent horizontal overflow on all containers */
.container,
.header-container,
.footer-content,
section {
    max-width: 100%;
    /* overflow-x: hidden; */
}

img, video {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Tablet Styles (981px - 1024px)
   ============================================ */
@media screen and (min-width: 981px) and (max-width: 1024px) {
    .specialties-container {
        grid-template-columns: 280px 1fr;
    }
    
    .specialties-main-title {
        font-size: 2.5rem;
    }
    
    .specialties-subtitle {
        font-size: 2rem;
    }
    
    .dispatching-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .leading-dispatch-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    /* Pricing Section */
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .pricing-card-content {
        min-height: 280px;
    }
    
    .pricing-title {
        font-size: 2rem !important;
    }
    
    /* Dispatch Form Privacy Notice - Tablet */
    .dispatch-form-privacy {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .dispatch-form-privacy input[type="checkbox"] {
        min-width: 18px;
        min-height: 18px;
        width: 18px;
        height: 18px;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }
    
    .dispatch-form-privacy label {
        flex: 1;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================
   Mobile / Hamburger Menu (< 980px)
   ============================================ */
@media screen and (max-width: 980px) {
    /* Prevent horizontal overflow */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure containers don't overflow */
    .header-container,
    .container,
    section,
    .footer-content,
    .content-block-inner,
    .features-container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    :root {
        font-size: 14px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem !important;
        letter-spacing: 0.5px;
    }
    
    h2 {
        font-size: 1.5rem !important;
        letter-spacing: 0.5px;
    }
    
    h3 {
        font-size: 1.25rem !important;
        letter-spacing: 0.5px;
    }
    
    /* Header */
    .header-container {
        padding: 0rem 0;
        grid-template-columns: auto 1fr auto;
        gap: var(--spacing-sm);
        align-items: center;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        padding-left: 1rem !important;
    }
    
    .header-tagline {
        display: none;
    }
    
    .nav-toggle {
        padding-right: 1rem;
    }
    
    .logo img {
        height: 96px;
        max-width: 150px;
        margin-bottom: -36px;
    }
    
    .header.scrolled .logo img {
        height: 30px;
    }
    
    .header-phone {
        display: none;
    }
    
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        order: 3;
        margin: 0;
        margin-right: calc(100vw * -0.65);
        margin-bottom: -10px;
        padding: 0.75rem 70px 0.75rem 0;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        width: auto;
        height: auto;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-primary);
        margin: 4px 0;
        transition: var(--transition-fast);
    }
    
    nav {
        order: 4;
        width: 100%;
        grid-column: 1 / -1;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-normal), top 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        /* Hide scrollbar but keep scrolling functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .header.scrolled .nav-menu {
        top: 37px;
        max-height: calc(100vh - 37px);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
    }
    
    .nav-menu li a {
        display: flex;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: space-between;
        align-items: center;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .nav-menu li a .caret {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-block;
    }
    
    .nav-menu li.has-dropdown.active .caret {
        transform: rotate(180deg);
    }
    
    .nav-dropdown {
        position: static;
        background-color: var(--color-light-gray);
        margin: 0;
        padding: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease 0.1s,
                    transform 0.3s ease 0.1s;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease 0.15s,
                    transform 0.3s ease 0.15s;
    }
    
    .nav-dropdown li {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li:nth-child(4) {
        transition-delay: 0.25s;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li:nth-child(5) {
        transition-delay: 0.3s;
    }
    
    .nav-menu li.has-dropdown.active .nav-dropdown li:nth-child(6) {
        transition-delay: 0.35s;
    }
    
    .nav-dropdown li a {
        padding-left: 3rem;
        color: var(--color-primary);
        font-size: 0.9rem;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    
    .nav-dropdown li a:active {
        background-color: rgba(41, 48, 102, 0.1);
    }
    
    .nav-phone {
        display: block;
        text-align: center;
        padding: 1rem 1.5rem;
        margin-top: 0;
        border-top: 2px solid var(--color-primary);
        background-color: var(--color-light-gray);
        font-size: 1rem;
        font-weight: 600;
        color: var(--color-primary);
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
        min-height: calc(100vh - 70px);
        margin-top: 54px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .header.scrolled ~ .hero {
        margin-top: 37px;
        min-height: calc(100vh - 37px);
    }
    
    .hero-video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }
    
    .hero::before {
        background: linear-gradient(135deg, rgba(41, 48, 102, 0.85) 0%, rgba(41, 48, 102, 0.75) 100%);
    }
    
    .hero-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-sm);
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.6;
    }
    
    .hero-cta-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
        width: auto;
        display: inline-block;
    }
    
    .hero-social {
        margin-top: var(--spacing-md);
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    .hero-social a {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .hero-social a svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-scroll-indicator {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .scroll-arrow {
        width: 20px;
        height: 35px;
    }
    
    /* Dispatching Features Section */
    .dispatching-features {
        padding: var(--spacing-lg) 0;
        background-attachment: scroll !important;
        background-size: cover !important;
        min-height: 100vh;
        background-position: center center;
    }
    
    .dispatching-features.bg-zoomed {
        background-size: 110% !important;
    }
    
    .dispatching-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
    
    .dispatching-left {
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .checkmark-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .checkmark-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .dispatching-title {
        font-size: 1.5rem !important;
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }
    
    .dispatching-description-wrapper {
        text-align: center;
    }
    
    .truck-illustration {
        margin: var(--spacing-md) auto;
        padding-top: 0;
        max-width: 200px;
    }
    
    .truck-svg {
        max-width: 100%;
        height: auto;
        display: none;
    }
    .truck-line {
        display: none;
    }
    
    .dispatching-description {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .dispatching-right {
        width: 100%;
    }
    
    .feature-item {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .feature-header {
        gap: var(--spacing-sm);
    }
    
    .feature-number {
        font-size: 1.3rem;
        min-width: 40px;
        width: 40px;
        height: 40px;
    }
    
    .feature-title {
        font-size: 1rem;
        flex: 1;
    }
    
    .feature-content {
        padding: var(--spacing-sm) 0;
        margin-top: var(--spacing-xs);
    }
    
    .feature-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Specialties Section */
    .specialties-section {
        padding: var(--spacing-lg) 0;
        overflow: hidden;
    }
    
    .specialties-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
        padding: 0;
        position: relative;
    }
    
    /* Right fade gradient on container - stays fixed at container edge */
    .specialties-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        height: 138px;
        z-index: 10;
        pointer-events: none;
        transition: opacity 0.3s ease;
        background: linear-gradient(to left, var(--color-primary) 0%, transparent 100%);
        opacity: 1;
    }
    
    .specialties-container.scrollable-right::after {
        opacity: 1;
    }
    
    .specialties-container.not-scrollable-right::after {
        opacity: 0;
    }
    
    .specialties-sidebar {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: var(--spacing-sm);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        gap: 0;
        scroll-snap-type: x mandatory;
        background-color: var(--color-primary);
        position: relative;
        /* Hide scrollbar on mobile for cleaner look */
        scrollbar-width: none;
    }
    
    .specialties-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    /* Left fade gradient on sidebar - moves with scroll */
    .specialties-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 40px;
        z-index: 10;
        pointer-events: none;
        transition: opacity 0.3s ease;
        background: linear-gradient(to right, var(--color-primary) 0%, transparent 100%);
        opacity: 0;
    }
    
    .specialties-sidebar.scrollable-left::before {
        opacity: 1;
    }
    
    /* Auto-scroll hint animation - subtle hint that content is scrollable */
    .specialties-sidebar.scroll-hint {
        animation: scrollHint 1.2s ease-in-out 2;
        animation-delay: 0.5s;
    }
    
    .truck-type-item {
        min-width: 200px;
        max-width: 200px;
        padding: var(--spacing-sm) var(--spacing-md);
        border-left: none;
        border-bottom: 4px solid transparent;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    .truck-type-item.active {
        border-left: none;
        border-bottom-color: var(--color-accent);
    }
    
    .truck-type-item::before,
    .truck-type-item::after {
        display: none;
    }
    
    .truck-type-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .truck-type-desc {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .specialties-content {
        min-height: 500px;
        position: relative;
    }
    
    .specialties-content-inner {
        padding: var(--spacing-lg) var(--spacing-md);
        max-width: 100%;
    }
    
    .specialties-main-title {
        font-size: 2rem !important;
        margin-bottom: var(--spacing-sm);
        letter-spacing: 1px;
    }
    
    .specialties-subtitle {
        font-size: 1.5rem !important;
        margin: var(--spacing-sm) 0;
    }
    
    .specialties-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-md);
    }
    
    .truck-icon-wrapper {
        margin: var(--spacing-md) 0;
    }
    
    .truck-icon {
        width: 70px;
        height: auto;
    }
    
    .specialties-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .btn-specialties-primary,
    .btn-specialties-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Leading Dispatch Section */
    .leading-dispatch-section {
        padding: var(--spacing-lg) 0;
        overflow: visible;
    }
    
    .leading-dispatch-bg {
        background-attachment: scroll !important;
    }
    
    .why-choose-bg {
        background-attachment: scroll !important;
    }
    
    .leading-dispatch-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .leading-dispatch-title {
        font-size: 1.5rem !important;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .dispatch-timeline {
        padding-left: 45px;
        margin-bottom: var(--spacing-md);
        position: relative;
    }
    
    .timeline-line {
        left: 15px;
        bottom: 60px;
    }
    
    .timeline-line::after {
        left: 15px;
        width: 30px;
    }
    
    .timeline-marker {
        left: -45px;
    }
    
    .marker-number {
        font-size: 1.4rem;
        width: 36px;
        height: 36px;
        line-height: 36px;
    }
    
    .dispatch-point {
        margin-bottom: var(--spacing-md);
    }
    
    .dispatch-point-content {
        padding: var(--spacing-sm);
    }
    
    .dispatch-point-title {
        font-size: 1.05rem !important;
        margin-bottom: var(--spacing-xs);
    }
    
    .dispatch-point-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .leading-dispatch-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: var(--spacing-md);
        padding-left: 0;
        gap: var(--spacing-md);
    }
    
    .timeline-connector {
        display: none;
    }
    
    .dispatch-truck-illustration {
        width: 120px;
        margin: 0 auto;
    }
    
    .btn-dispatch-cta {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Why Choose Section */
    .why-choose-section {
        padding: var(--spacing-lg) 0;
        min-height: auto;
    }
    
    .why-choose-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .why-choose-left {
        text-align: center;
    }
    
    .why-choose-title {
        font-size: 1.5rem !important;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .video-play-btn {
        width: 80px;
        height: 80px;
        margin: 0 auto var(--spacing-md);
    }
    
    .video-play-btn svg {
        width: 30px;
        height: 30px;
    }
    
    .why-choose-content {
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .why-choose-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-sm);
    }
    
    .why-choose-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .btn-why-choose-primary,
    .btn-why-choose-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Video Modal */
    .video-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1rem;
        margin: 2rem auto;
    }
    
    .video-modal-close {
        top: -40px;
        right: 0;
        width: 35px;
        height: 35px;
    }
    
    .video-modal-close svg {
        width: 20px;
        height: 20px;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: var(--spacing-lg) 0;
    }
    
    .pricing-container {
        padding: 0 var(--spacing-sm);
    }
    
    .pricing-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-lg);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 100%;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .pricing-card-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .pricing-card-header h3 {
        font-size: 1.25rem;
    }
    
    .pricing-card-content {
        padding: var(--spacing-md);
        min-height: auto;
    }
    
    .pricing-list li {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: var(--spacing-xs);
    }
    
    .btn-pricing-subscribe {
        padding: 0.875rem var(--spacing-md);
        font-size: 0.95rem;
        min-height: 48px;
        margin-top: var(--spacing-md);
    }
    
    .pricing-checkmark {
        width: 150px;
        height: 150px;
        bottom: -15px;
        right: -15px;
    }
    
    /* Testimonials Section */
    .testimonials-section {
        padding: var(--spacing-lg) 0;
    }
    
    .testimonials-container {
        padding: 0 var(--spacing-sm);
    }
    
    .testimonials-carousel-wrap {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        row-gap: var(--spacing-md);
        column-gap: var(--spacing-sm);
    }
    
    .testimonials-carousel-wrap .testimonials-slider {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    
    .testimonials-carousel-wrap .testimonial-nav-prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin-left: 0;
    }
    
    .testimonials-carousel-wrap .testimonial-nav-next {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-right: 0;
    }
    
    .testimonial-nav {
        width: 44px;
        height: 44px;
        z-index: 30;
    }
    
    .testimonial-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .testimonials-slider {
        min-height: auto;
        padding-bottom: 0;
    }
    
    .testimonial-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }
    
    .testimonial-image-wrapper {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .testimonial-image {
        max-width: 100%;
    }
    
    .testimonial-text-wrapper {
        order: 1;
    }
    
    .testimonial-bubble {
        padding: var(--spacing-md);
        border-radius: 15px;
    }
    
    .testimonial-quotes {
        width: 50px;
        height: 50px;
        top: -26px;
        left: var(--spacing-sm);
    }
    
    .testimonial-quotes svg {
        width: 24px;
        height: 24px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-xs);
    }
    
    .testimonial-progress {
        height: 4px;
    }
    
    /* FAQs Section */
    .faq-section {
        padding: var(--spacing-lg) 0;
    }
    
    .faq-container {
        padding: 0 var(--spacing-sm);
    }
    
    .faq-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .faq-intro {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .faq-question {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .faq-question-text {
        font-size: 1rem;
    }
    
    .faq-toggle {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
    
    .faq-icon {
        font-size: 1.3rem;
    }
    
    .faq-answer {
        padding: 0 var(--spacing-md);
    }
    
    .faq-item.active .faq-answer {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
    
    /* General Sections */
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .section-title h2 {
        font-size: 1.75rem !important;
        text-align: center;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Forms */
    .form-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .form-group {
        margin-bottom: var(--spacing-md);
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    textarea {
        min-height: 120px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: left;
    }
    
    .footer-column {
        margin-bottom: -15px;
    }
    
    .footer-column h4 {
        cursor: pointer;
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .footer-column h4 .chevron {
        transition: transform 0.3s ease;
    }
    
    .footer-column h4.collapsed .chevron {
        transform: rotate(-90deg);
    }
    
    .footer-services-list,
    .footer-column ul {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .footer-column h4:not(.collapsed) + .footer-services-list,
    .footer-column h4:not(.collapsed) + ul {
        max-height: 500px;
        opacity: 1;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-logo img {
        height: 120px;
        max-width: 200px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-bottom-left,
    .footer-bottom-right {
        width: 100%;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .footer-social {
        justify-content: center;
        gap: var(--spacing-sm);
        margin: var(--spacing-md) 0;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        margin: var(--spacing-md) auto 0;
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Dispatch Form Section - Mobile PWA Style */
    .dispatch-form-section {
        padding: var(--spacing-md) 0;
        background-color: #f8f9fa;
    }
    
    .dispatch-form-container {
        padding: 0 var(--spacing-sm);
    }
    
    .dispatch-form-wrapper {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        background-color: var(--color-white);
    }
    
    .dispatch-form-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    /* Stack form rows on mobile */
    .dispatch-form-section .dispatch-form-row {
        display: block !important;
    }
    
    .dispatch-form-section .dispatch-form-group {
        margin-bottom: var(--spacing-md);
        width: 100%;
    }
    
    .dispatch-form-section .dispatch-form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .dispatch-form-section .dispatch-form-group input,
    .dispatch-form-section .dispatch-form-group select {
        padding: 0.75rem 0;
        font-size: 1rem;
        min-height: 48px;
        border: none;
        border-bottom: 1px solid #d0d0d0;
        border-radius: 0;
        width: 100%;
    }
    
    .dispatch-form-section .dispatch-form-group.phone-group {
        display: grid;
        grid-template-columns: 90px 1fr;
    }
    
    .dispatch-form-section .dispatch-form-group .phone-code {
        width: auto;
        padding: 0.75rem 0.5rem 0.75rem 0;
        font-size: 1rem;
        min-height: 48px;
        border: none;
        border-bottom: 1px solid #d0d0d0;
        border-radius: 0;
    }
    
    .dispatch-form-group.contact-preference .radio-options {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .dispatch-form-group.contact-preference .radio-options label {
        padding: 0.5rem 0;
        border: none;
        border-radius: 0;
    }
    
    /* Ensure privacy notice and submit button have proper spacing when inside contact-preference */
    .dispatch-form-group.contact-preference .dispatch-form-privacy {
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .dispatch-form-group.contact-preference .dispatch-form-submit {
        margin-top: var(--spacing-md);
        width: 60%;
    }
    
    /* Form Footer - Stack on mobile */
    .dispatch-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .dispatch-form-submit {
        width: 100%;
        padding: 0.875rem var(--spacing-md);
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 50px;
        margin-top: 0;
    }
    
    .dispatch-form-privacy {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding: 0 var(--spacing-xs);
        font-size: 0.85rem;
        line-height: 1.5;
        width: 100%;
    }
    
    .dispatch-form-privacy input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
        width: 20px;
        height: 20px;
        margin-top: 0.15rem;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    .dispatch-form-privacy label {
        flex: 1;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }
    
    .dispatch-form-privacy a {
        word-break: break-word;
    }
}

/* ============================================
   Small Mobile Styles (< 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .logo {
        padding-left: 0.75rem !important;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header.scrolled .logo img {
        height: 28px;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .dispatching-title {
        font-size: 1.3rem !important;
    }
    
    .specialties-main-title {
        font-size: 1.75rem !important;
    }
    
    .specialties-subtitle {
        font-size: 1.3rem !important;
    }
    
    .leading-dispatch-title {
        font-size: 1.3rem !important;
    }
    
    .dispatch-timeline {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: -40px;
    }
    
    .marker-number {
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    
    .truck-type-item {
        min-width: 180px;
        max-width: 180px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .truck-type-title {
        font-size: 0.95rem;
    }
    
    .truck-type-desc {
        font-size: 0.8rem;
    }
    
    .loader-logo {
        max-width: 300px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .pricing-title {
        font-size: 1.5rem !important;
    }
    
    .pricing-card-header h3 {
        font-size: 1.1rem;
    }
    
    .pricing-list li {
        font-size: 0.9rem;
    }
    
    .pricing-checkmark {
        width: 120px;
        height: 120px;
    }
    
    .pricing-card-content {
        min-height: auto;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .testimonial-image-wrapper {
        max-width: 250px;
    }
    
    .testimonial-bubble {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        z-index: 30;
    }
    
    .testimonial-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .faq-title {
        font-size: 1.5rem !important;
    }
    
    .faq-intro {
        font-size: 0.95rem;
    }
    
    .faq-question-text {
        font-size: 0.95rem;
    }
    
    .faq-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .faq-icon {
        font-size: 1.2rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    /* Dispatch Form Privacy Notice - Small Mobile */
    .dispatch-form-privacy {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding: 0;
        font-size: 0.8rem;
        line-height: 1.6;
        width: 100%;
    }
    
    .dispatch-form-privacy input[type="checkbox"] {
        min-width: 22px;
        min-height: 22px;
        width: 22px;
        height: 22px;
        margin-top: 0.2rem;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    .dispatch-form-privacy label {
        flex: 1;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
        font-size: 0.8rem;
    }
    
    .dispatch-form-privacy a {
        word-break: break-word;
        display: inline;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .nav-menu,
    .footer,
    .btn,
    .page-loader,
    .hero-video,
    .hero-social,
    .hero-scroll-indicator {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
