/* =====================================================
   VISHVAPATH LOGISTICS - RESPONSIVE STYLESHEET
   Mobile-first breakpoints layered on top of style.css
   ===================================================== */

/* -----------------------------------------------------
   LARGE DESKTOP / LAPTOP (below 1200px)
----------------------------------------------------- */
@media (max-width: 1199px) {
  .container { padding: 0 20px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-content h1 { font-size: 2.6rem; }
  .stats-grid { gap: var(--space-sm); }
  .stat-box .stat-number { font-size: 2.4rem; }
  .related-services { grid-template-columns: repeat(2, 1fr); }
}

/* -----------------------------------------------------
   TABLET (below 992px)
----------------------------------------------------- */
@media (max-width: 992px) {
  section { padding: var(--space-xl) 0; }

  /* Navigation */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 85%);
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 110px 32px 32px;
    box-shadow: -12px 0 40px rgba(0,0,0,0.12);
    transition: right var(--transition-med);
    overflow-y: auto;
  }

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

  .nav-menu > li { width: 100%; }

  .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-gray-100);
    justify-content: space-between;
  }

  .nav-actions .btn-outline { display: none; }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
    transition: max-height var(--transition-med);
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
  }

  .nav-item-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 10px;
    margin-bottom: 10px;
  }

  .nav-item-dropdown:hover .dropdown-menu { max-height: 0; padding: 0; }
  .nav-item-dropdown.open:hover .dropdown-menu { max-height: 500px; padding: 10px; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 47, 86, 0.5);
    z-index: 999;
  }

  .nav-overlay.active { display: block; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media-card { position: static; margin-top: -30px; margin-left: 20px; }
  .hero-content p { max-width: 100%; }

  /* Split sections */
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split-media.two-img img:first-child { margin-top: 0; }

  .service-overview-grid { grid-template-columns: 1fr; }
  .service-overview-grid .split-media { order: -1; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .global-grid { grid-template-columns: 1fr; }
  .global-stats { grid-template-columns: repeat(2, 1fr); }
  .related-services { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* CTA banner */
  .cta-banner { flex-direction: column; text-align: center; padding: var(--space-lg); }
  .cta-banner .cta-actions { justify-content: center; }
}

/* -----------------------------------------------------
   MOBILE (below 640px)
----------------------------------------------------- */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
  section { padding: var(--space-lg) 0; }

  .navbar .container { height: 72px; }
  .nav-logo img { height: 36px; }
  .nav-logo .logo-sub { display: none; }

  .hero { padding: 40px 0 var(--space-lg); }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trustbar { gap: var(--space-md); }

  .page-hero { padding: var(--space-lg) 0; }
  .page-hero h1 { font-size: 2rem; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .global-stats { grid-template-columns: 1fr; }
  .related-services { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .contact-cta-box { padding: var(--space-lg); }
  .cta-banner h2 { font-size: 1.5rem; }

  .section-header { padding: 0 4px; }

  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }

  .split-media.two-img { grid-template-columns: 1fr; }

  .map-wrap iframe { height: 300px; }

  .stat-box .stat-number { font-size: 2rem; }
}

/* -----------------------------------------------------
   SMALL MOBILE (below 400px)
----------------------------------------------------- */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-content h1 { font-size: 1.8rem; }
  .btn { padding: 13px 24px; font-size: 0.88rem; }
}
