/* ============================================================
   Freight Global — Media Queries
   Loads AFTER style.css. One media query per breakpoint —
   all page/section overrides for that breakpoint live inside it.
   ============================================================ */

/* ========================================
   1399px BREAKPOINT (below container's max-width)
   ======================================== */
@media (max-width: 1399px) {

  /* GLOBAL — SECTION / HEADER / TOPBAR PADDING */
  section{ padding: 2rem 3rem; }
  .header-inner, .topbar .container {
    padding: 1rem 3rem;
  }
}

/* ========================================
   1080px BREAKPOINT
   ======================================== */
@media (max-width: 1080px) {

  /* GLOBAL — TYPOGRAPHY SYSTEM */
  p, li, span, button { font-size: 14px; }
  h2 { font-size: 32px; }

  /* HOME PAGE — MODES / SPECIALIZED SERVICES / WHY CHOOSE US / INDUSTRIES / FOOTER */
  .modes-section-container { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.row2 { grid-template-columns: repeat(3, 1fr); }
  .industries-section-container { grid-template-columns: repeat(3, 1fr); }
  .why-section-container { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat-box { border-left: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  /* ABOUT PAGE — WHO WE ARE / TEAM / ABOUT STATS */
  .who-section-container { grid-template-columns: 1fr; }
  .team-section-container { grid-template-columns: repeat(2, 1fr); }
  .stats-section-container { justify-content: center; }
  .stat-item + .stat-item { border-left: none; padding-left: 0; }
  .stat-icon img { width: 56px; height: 56px; }
  .stat-item h3 { font-size: 1.8rem; }
  .stat-item p { font-size: 0.8rem; }

  /* SERVICES PAGE — WHAT WE OFFER / END-TO-END BANNER / HOW IT WORKS / INDUSTRIES WE SERVE */
  .service-grid-container { grid-template-columns: repeat(2, 1fr); }
  .e2e-grid { grid-template-columns: 1fr; padding: 34px; }
  .e2e-media { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: auto; min-height: 200px; border-radius: 14px; clip-path: none; }
  .e2e-features { grid-template-columns: repeat(2, 1fr); }
  .e2e-feature { border-left: none; padding-left: 0; }
  .timeline-section-container { grid-template-columns: repeat(2, 1fr); }
  .timeline-section-container::before { display: none; }
  .photo-section-container { grid-template-columns: repeat(2, 1fr); }

  /* INDUSTRIES PAGE — DEMAND BANNER / WHY CHOOSE US / SUCCESS STORY */
  .demand-media { position: relative; top: auto; left: auto; bottom: auto; width: 100%; height: auto; min-height: 220px; clip-path: none; }
  .demand-content { padding: 34px 24px; }
  .reasons-section-container { grid-template-columns: repeat(2, 1fr); }
  .reasons-item:not(:last-child) { border-right: none; padding-right: 0; }
  .case-section-container { grid-template-columns: 1fr; }

  /* RESOURCES PAGE — EXPLORE / FEATURED / BLOG / TOOLS / FAQ / NEWSLETTER */
  .explore-section-container { grid-template-columns: repeat(2, 1fr); }
  .featured-section-container { grid-template-columns: 1fr; }
  .blog-section-container { grid-template-columns: repeat(2, 1fr); }
  .tools-section-container { grid-template-columns: repeat(2, 1fr); }
  .faq-section-container { grid-template-columns: 1fr; }
  .newsletter-section-container { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-left { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; }

  /* CONTACT PAGE — SEND MESSAGE / CONNECT TEAM / LOCATION / TRUST STRIP */
  .message-section-container { grid-template-columns: 1fr; }
  .connect-section-container { grid-template-columns: repeat(2, 1fr); }
  .location-section-container { grid-template-columns: 1fr; }
  .location-map { height: 260px; }
  .trust-section-container { justify-content: center; }
  .trust-item:not(:last-child) { border-right: none; padding-right: 0; }

  /* GLOBAL — HEADER / MOBILE NAV (moved up from 860px: nav links were
     wrapping to two lines and looking broken in the 861-1080px range) */
  .logo-img { height: 90px; }
  .topbar .topbar-left span:nth-child(2) { display: none; }
  .topbar .container { flex-wrap: wrap; row-gap: 6px; }
  .topbar-left, .topbar-right { flex-wrap: wrap; gap: 10px 16px; }
  .topbar a, .topbar span { white-space: nowrap; font-size: 0.76rem; }
  .main-nav {
    position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 20px 24px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; gap: 0;
  }
  .main-nav.nav-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav a.nav-link { padding: 16px 0; display: flex; justify-content: space-between; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
}

/* ========================================
   860px BREAKPOINT
   ======================================== */
@media (max-width: 860px) {

  /* HOME PAGE — HERO SECTION */
  .hero-stats-container { flex-direction: column; align-items: flex-start; }
}

/* ========================================
   700px BREAKPOINT
   ======================================== */
@media (max-width: 700px) {

  /* GLOBAL — SECTION / HEADER / TOPBAR PADDING */
  section { padding: 2rem 1.5rem; }
.header-inner, .topbar .container{
  padding: 1rem 1.5rem;
}
  /* GLOBAL — REVEAL ANIMATION (smaller slide distance so near-full-width
     mobile cards don't visibly extend past the screen edge mid-animation) */
  .reveal-left { transform: translateX(-16px); }
  .reveal-right { transform: translateX(16px); }

  /* GLOBAL — BREADCRUMB HERO */
  .breadcrumb-hero-container h1 { font-size: 1.9rem; }
  .breadcrumb-accent { display: none; }
  .breadcrumb-media { clip-path: none; }
  .breadcrumb-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8,20,49,0.95) 0%, rgba(8,20,49,0.75) 55%, rgba(8,20,49,0.5) 100%);
  }

  /* GLOBAL — CTA (SOLID + BANNER) */
  .cta-section-container .cta-inner, .cta-banner-container.cta-inner { flex-direction: column; text-align: center; padding: 34px 24px; }
  .cta-left { flex-direction: column; }

  /* HOME PAGE — HERO / MODES / SPECIALIZED SERVICES / WHY CHOOSE US / INDUSTRIES */
  .hero-container { display: flex; flex-direction: column; padding-left: 24px; }
  .hero-container h1 { font-size: 1.9rem; }
  .slider-dots { position: static; flex-direction: row; justify-content: center; order: 99; margin-top: 20px; }
  .slider-dot.active { width: 26px; height: 9px; }
  .modes-section-container { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid.row2 { grid-template-columns: 1fr; }
  .industries-section-container { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ABOUT PAGE — WHO WE ARE / TEAM */
  .info-grid { grid-template-columns: 1fr; }
  .info-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .info-item:nth-child(even) { padding-left: 0; }
  .team-section-container { grid-template-columns: 1fr; }
  .stat-item { flex-direction: column; text-align: center; }
  .team-header { flex-direction: column; align-items: flex-start; }

  /* SERVICES PAGE — WHAT WE OFFER / END-TO-END BANNER / INDUSTRIES WE SERVE */
  .service-grid-container { grid-template-columns: 1fr; }
  .e2e-features { grid-template-columns: 1fr; }
  .photo-section-container { grid-template-columns: 1fr; }
  .e2e-grid { padding: 24px; }

  /* INDUSTRIES PAGE — DEMAND BANNER / WHY CHOOSE US / SUCCESS STORY */
  .demand-content { padding: 34px 24px; }
  .demand-checklist { grid-template-columns: 1fr; }
  .reasons-section-container { grid-template-columns: 1fr; }
  .case-stats { gap: 20px; }

  /* RESOURCES PAGE — EXPLORE / BLOG / TOOLS / NEWSLETTER */
  .explore-section-container { grid-template-columns: 1fr; }
  .blog-section-container { grid-template-columns: 1fr; }
  .tools-section-container { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; border-radius: 6px; margin-bottom: 10px; }
  .newsletter-form button { border-radius: 6px; justify-content: center; padding: 14px; }

  /* CONTACT PAGE — SEND MESSAGE / CONNECT TEAM / TRUST STRIP */
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .form-card { padding: 28px 22px; }
  .info-card { padding: 28px 22px; }
  .connect-section-container { grid-template-columns: 1fr; }
  .trust-item { flex-direction: column; text-align: center; }
  .trust-item:not(:last-child) { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(11,27,58,0.14); padding-bottom: 20px; }
}
