/* ==========================================================================
   RESPONSIVE STYLING (Breakpoints: 480px, 768px, 1024px, 1280px)
   ========================================================================== */

/* Max Width for Navigation Menu Layout Adjustments */
@media (max-width: 1023px) {
  .header {
    padding: 1rem 0;
  }
  
  .header-scrolled {
    padding: 0.8rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8rem 3rem 3rem;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1005;
    border-left: 3px solid var(--accent);
  }

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

  .nav-link {
    font-size: 1.1rem;
    color: var(--white);
    display: block;
    width: 100%;
  }

  .nav-cta {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1rem;
  }
  
  .nav-cta .btn {
    width: 100%;
  }

  /* Overlay for when menu is active */
  .nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 31, 24, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   BREAKPOINT: 1280px (Laptops / Small Desktops)
   ========================================================================== */
@media (max-width: 1280px) {
  html {
    font-size: 15px;
  }
}

/* ==========================================================================
   BREAKPOINT: 1024px (Tablets Landscape)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5rem;
  }
  
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.6rem; }
  
  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .services-grid {
    gap: 1.5rem;
  }
  
  .contact-grid {
    gap: 2.5rem;
  }
}

/* ==========================================================================
   BREAKPOINT: 768px (Tablets Portrait)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  
  .hero {
    height: auto;
    min-height: calc(100vh - 60px);
    padding: 8rem 0 6rem;
    display: flex;
    align-items: center;
  }

  .scroll-indicator {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h1 span {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }
  
  .hero-subtext {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Stats Section Collapsing */
  .trust-bar {
    margin-top: -3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }

  /* Grids Collapsing to 1 Column */
  .routes-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .drivers-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .fleet-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .split-image-container {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .icon-list {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }
  
  .cta-banner p {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-bottom-links {
    justify-content: center;
  }
  
  /* Diagonal adjustments */
  .diagonal-top-dark {
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -6vw;
    padding-top: calc(6vw + var(--section-padding));
  }

  .diagonal-bottom-dark {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
    margin-bottom: -6vw;
    padding-bottom: calc(6vw + var(--section-padding));
  }
  
  .custom-route-box {
    padding: 2.5rem 1.5rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .info-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   BREAKPOINT: 480px (Mobile Devices)
   ========================================================================== */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
    height: 42px;
  }
  
  .logo-img {
    height: 73px;
  }
  
  .logo-icon {
    font-size: 1.3rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .stat-card {
    padding: 1.25rem;
  }

  /* Touch-friendly buttons (Ensuring minimum 44px tap targets) */
  .btn,
  .nav-link,
  .social-link,
  .back-to-top,
  .hamburger {
    min-height: 44px;
  }
  
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }
  
  .header-scrolled .logo {
    font-size: 1.4rem;
    height: 35px;
  }
  
  .header-scrolled .logo-img {
    height: 61px;
  }
  
  .route-card {
    height: 300px;
  }
  
  .route-name {
    font-size: 1.5rem;
  }
  
  .service-card {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
  }
  
  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
  
  .driver-card {
    padding: 1.75rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
  
  /* Diagonal adjustments */
  .diagonal-top-dark {
    clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -8vw;
    padding-top: calc(8vw + var(--section-padding));
  }

  .diagonal-bottom-dark {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-bottom: -8vw;
    padding-bottom: calc(8vw + var(--section-padding));
  }
}
