/* Responsive Design */

/* Narrow desktop / small laptop: the full nav (logo + 6 links + Apply button)
   is too tight at these widths for its default spacing — tighten it up
   before the mobile breakpoint takes over entirely. */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 0.6rem;
        font-size: 0.75rem;
    }

    .btn-apply {
        padding: 0.75rem 0.85rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile navbar is shorter (~90px total) than desktop's 154px */
    .home {
        margin-top: 90px;
        min-height: calc(100vh - 90px);
    }

    .logo-image {
        height: 70px;
    }

    /* Keep the language switcher reachable on mobile; the social links and
       phone/email cards are dropped to save space (both are still available
       in the footer, and the "Apply Now" CTA moves into the mobile menu below). */
    .social-links,
    .navbar .contact-info {
        display: none;
    }

    .navbar-top .nav-container {
        height: 50px;
    }

    .navbar-bottom .nav-container {
        height: 40px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px; /* Adjusted for smaller navbar */
        flex-direction: column;
        background: #0a0a0a;
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid rgba(245, 41, 42, 0.2);
        transform: translateX(-100%);
    }

    .nav-menu.active {
        left: 0;
        transform: translateX(0);
    }

    .nav-item {
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }

    .nav-link {
        padding: 1rem 2rem;
        margin: 0 1rem;
        border-radius: 12px;
        font-size: 1.1rem;
        background: transparent;
        border: none;
        color: #ffffff;
    }

    .nav-link:hover {
        background: linear-gradient(135deg, var(--brand-red), var(--brand-red));
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(245, 41, 42, 0.4);
        color: #ffffff;
    }
    
    .btn-apply {
        display: none; /* the desktop pill button is replaced by .nav-item-apply below */
    }

    .nav-item-apply {
        display: block;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-link-apply {
        background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
        color: #ffffff !important;
    }

    .home h1 {
        font-size: 2.5rem;
    }

    .home p {
        font-size: 1.1rem;
    }

    .home-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon i {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 45px;
    }

    .home h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon i {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-description {
        font-size: 0.9rem;
    }

    .service-card,
    .fleet-card {
        padding: 1.5rem;
    }
}
