/* SpeedTrans Logistics - Responsive Styles */

/* ===========================
   TABLET STYLES (768px - 1024px)
   =========================== */
@media screen and (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .stats-bar {
        gap: 2rem;
        padding: 1.5rem 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid,
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   MOBILE STYLES (max-width: 768px)
   =========================== */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Header & Navigation */
    .header-container {
        padding: 1rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--light-grey);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
        background-color: var(--light-grey);
        margin-top: 0.5rem;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .stats-bar {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 2rem 1.5rem;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Services Section */
    .services,
    .why-us,
    .trusted-by,
    .cta-banner,
    .newsletter {
        padding: 3rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Why Us Section */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Trusted By */
    .logos-container {
        gap: 2rem;
    }
    
    .client-logo {
        height: 50px;
    }
    
    /* CTA Banner */
    .cta-banner h2 {
        font-size: 1.75rem;
    }
    
    .cta-banner p {
        font-size: 1rem;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        min-width: auto;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
}

/* ===========================
   SMALL MOBILE (max-width: 480px)
   =========================== */
@media screen and (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .service-icon,
    .why-icon {
        font-size: 2.5rem;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* ===========================
   LANDSCAPE MOBILE
   =========================== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-bar {
        position: static;
        flex-direction: row;
        margin-top: 2rem;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .header,
    .hamburger,
    .cta-buttons,
    .newsletter,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .why-item {
        border: 2px solid var(--charcoal);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ===========================
   TOUCH DEVICE ADJUSTMENTS
   =========================== */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .btn:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Larger touch targets */
    .nav-menu a,
    .btn,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }
}
