/* ============================================
   MS Logistics — Responsive Stylesheet
   ============================================ */

/* --- Large Desktop (1400px+) --- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}

/* --- Laptop (1024px - 1199px) --- */
@media (max-width: 1199px) {
  :root {
    --section-padding: 80px;
  }

  .header__menu {
    gap: 20px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .timeline__line {
    display: none;
  }

  .stats__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats__item:nth-child(4),
  .stats__item:nth-child(5) {
    grid-column: span 1;
  }
}

/* --- Tablet (768px - 1023px) --- */
@media (max-width: 1023px) {
  :root {
    --section-padding: 70px;
    --header-height: 70px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    padding: 100px 40px 40px;
    transition: right var(--transition);
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__menu li {
    width: 100%;
  }

  .header__link {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    color: var(--color-dark) !important;
    border-bottom: 1px solid var(--color-grey-light);
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__float-card--1 {
    left: 0;
  }

  .hero__float-card--2 {
    left: 0;
  }

  .hero__float-card--3 {
    right: 0;
  }

  .hero__logistics-background {
    opacity: 0.11;
  }

  .hero__route--optional,
  .hero__route-node--optional,
  .hero__route-shipment--three {
    display: none;
  }

  .about__grid,
  .why__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__img--secondary {
    right: 0;
    bottom: -20px;
    width: 160px;
    height: 160px;
  }

  .about__badge {
    left: 0;
  }

  .why__visual-badge {
    right: 0;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form__row {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile (480px - 767px) --- */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
  }

  .container {
    padding: 0 16px;
  }

  .hero__image {
    height: 350px;
  }

  .hero__float-card {
    padding: 10px 14px;
  }

  .hero__float-card strong {
    font-size: 1rem;
  }

  .hero__float-card--2,
  .hero__float-card--3 {
    display: none;
  }

  .hero__logistics-background {
    opacity: 0.08;
  }

  .hero__route--optional,
  .hero__route-node--optional,
  .hero__route-shipment--two,
  .hero__route-shipment--three {
    display: none;
  }

  .stats__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about__mission {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .projects__filters {
    gap: 8px;
  }

  .projects__filter {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .testimonial-slide {
    padding: 24px;
  }

  .contact__form {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .video-section {
    min-height: 350px;
  }

  .cta {
    padding: 60px 0;
  }

  .modal__content--project {
    padding: 24px;
  }

}

/* --- Small Mobile (< 480px) --- */
@media (max-width: 479px) {
  :root {
    --section-padding: 50px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .stats__container {
    grid-template-columns: 1fr 1fr;
  }

  .stats__number {
    font-size: 2rem;
  }

  .about__img--main {
    height: 300px;
  }

  .about__img--secondary {
    width: 120px;
    height: 120px;
  }

  .why__image {
    height: 350px;
  }

  .project-card__image {
    height: 280px;
  }

  .header__nav {
    width: 100%;
    right: -100%;
  }

  .testimonials__btn {
    width: 40px;
    height: 40px;
  }
}
