/* ==========================================================================
   ARKTRACK INTERNATIONAL — Dedicated Responsive Layout Breakpoints
   ========================================================================== */

/* Large Laptop & Compact Desktop (<= 1180px) */
@media (max-width: 1180px) {
  .primary-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .carousel__slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

/* Tablet & Navigation Switchover (<= 1040px) */
@media (max-width: 1040px) {
  .primary-nav,
  .header-actions .btn--whatsapp {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border-inverse);
  }

  .split-grid,
  .split-grid--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split-media {
    min-height: 300px;
  }

  .product-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leadership-grid--3 {
    grid-template-columns: 1fr;
  }

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

  .pillar-card--featured {
    grid-column: span 2;
  }

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

  .gallery-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal__panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal__media {
    min-height: 220px;
    max-height: 280px;
  }
}

/* Mobile & Small Tablet (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 76px;
  }

  .container {
    padding: 0 18px;
  }

  .section {
    padding: 68px 0;
  }

  .brand-logo {
    height: 42px;
  }

  .footer-brand__logo {
    height: 50px;
  }

  .hero__brand-badge {
    padding: 8px 14px;
    margin-bottom: 14px;
  }

  .hero__brand-badge img {
    height: 44px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
  }

  .hero {
    min-height: 580px;
  }

  .hero__content {
    padding-top: 36px;
    padding-bottom: 84px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .product-grid,
  .contact-grid,
  .pillars-grid,
  .leadership-grid,
  .leadership-grid--3,
  .trade-routes-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .pillar-card--featured {
    grid-column: span 1;
  }

  .carousel__slide,
  .carousel__slide--wide {
    flex: 0 0 100%;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }

  .cta-band__actions {
    width: 100%;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .gallery-preview-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview-card--tall {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .gallery-masonry {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-item__marker {
    left: 3px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float__label {
    display: none;
  }

  .whatsapp-float__btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float__btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Narrow Mobile (<= 480px) */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-inverse);
    padding: 26px 20px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .product-card__actions {
    flex-direction: column;
  }

  .product-card__actions .btn {
    width: 100%;
  }

  .hero__controls-inner {
    flex-direction: row;
  }
}
