/* ==========================================================================
   VRINDAA LOGISTICS — Responsive
   Desktop → tablet → mobile intentional layouts
   ========================================================================== */

/* Large desktop fine-tuning */
@media (min-width: 1440px) {
  :root {
    --container: 1400px;
  }
}

/* Laptop / small desktop */
@media (max-width: 1280px) {
  .stats-scale__item {
    min-height: 240px;
    padding: var(--space-7) var(--space-4);
  }

  .why-item {
    grid-template-columns: 4rem 10rem 1fr;
  }
}

/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  .nav__links {
    gap: var(--space-4);
  }

  .grid-2,
  .intro-block,
  .services-head,
  .services-layout,
  .fleet-intro,
  .fleet-stage,
  .shipment-split,
  .network__grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .find-us__intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro-block__media,
  .float-stage {
    aspect-ratio: auto;
    margin-top: 0;
    order: -1;
    min-height: 380px;
  }

  .services-preview {
    position: relative;
    top: auto;
    aspect-ratio: 16 / 10;
    max-height: 360px;
    order: -1;
  }

  .fleet-visual {
    min-height: 360px;
    order: -1;
  }

  .stats-scale__list {
    grid-template-columns: 1fr 1fr;
    padding-inline: var(--container-pad);
  }

  .stats-scale__item {
    border-bottom: 1px solid var(--color-border);
  }

  .stats-scale__item:nth-child(2n) {
    border-right: none;
  }

  .stats-scale__item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

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

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

  .portfolio-scope {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .portfolio-capability {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .about-facts {
    grid-template-columns: 1fr 1fr;
  }

  .founder__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .founder__portrait {
    position: static;
    max-width: 420px;
  }

  .founder__frame {
    aspect-ratio: 5 / 4;
  }

  .journey__item {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.35rem;
  }

  .journey__label {
    grid-column: 2;
    grid-row: 1;
  }

  .journey__body {
    grid-column: 2;
    grid-row: 2;
  }

  .journey__marker {
    grid-row: 1 / span 2;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    order: -1;
  }

  .why-item {
    grid-template-columns: 3.5rem 1fr;
  }

  .why-item__text {
    grid-column: 2;
  }

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

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .map-wrap {
    max-width: 640px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --header-h: 4rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 10050;
  }

  .logo {
    z-index: 10050;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    z-index: 10040;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(2rem, 6vh, 3.5rem);
    padding: calc(var(--header-h) + 1.5rem) var(--container-pad) 2.5rem;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.35s var(--ease-out),
      visibility 0.35s,
      transform 0.35s var(--ease-out);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* backdrop-filter on header traps position:fixed — kill it while menu is open */
  .site-header:has(.nav.is-open),
  body.nav-open .site-header {
    height: var(--header-h);
    background: #fff;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
    border-bottom-color: transparent;
    overflow: visible;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1rem, 3vh, 1.75rem);
    width: 100%;
  }

  .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.1;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    padding: 1rem 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero--video {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero--video .hero__copy,
  .hero__copy--video {
    order: unset;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: var(--space-8);
  }

  .hero--video .hero__scroll {
    display: flex;
  }

  .hero__copy {
    order: 2;
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .hero__media-col {
    order: 1;
    min-height: 58vh;
    margin-top: var(--header-h);
  }

  .hero__media {
    top: -24%;
    height: 148%;
  }

  .parallax-band,
  .parallax-band--tall {
    height: 88vh;
    height: 88dvh;
    min-height: 28rem;
  }

  .parallax-band__bg {
    top: -34%;
    height: 168%;
  }

  .parallax-band--video .parallax-band__bg {
    top: -8%;
    height: 116%;
  }

  .parallax-band--scale .parallax-band__bg {
    top: -6%;
    height: 112%;
  }

  .hero__float--b {
    display: none;
  }

  .hero__scroll {
    display: none;
  }

  .float-stage {
    min-height: 420px;
  }

  .float-stage__main {
    width: 78%;
    right: 0;
  }

  .float-stage__secondary {
    width: 48%;
    left: 0;
  }

  .float-stage__accent {
    display: none;
  }

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

  .gallery-slide {
    width: min(85vw, 720px);
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: none;
  }

  .hero--video .hero__stats {
    gap: var(--space-5);
  }

  .hero__stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
  }

  .hero__stat:last-child {
    border-bottom: none;
  }

  .hero__stat-value {
    margin-bottom: 0;
    min-width: 5.5rem;
  }

  .page-hero--media {
    min-height: 60svh;
  }

  .service-row {
    grid-template-columns: 3rem 1fr auto;
  }

  .service-row__desc {
    max-height: none;
    opacity: 1;
    margin-top: var(--space-2);
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .client-tile__logo {
    padding: 1rem;
    aspect-ratio: 1.1;
  }

  .client-tile__logo img {
    max-height: 5.5rem;
  }

  .client-tile__name {
    font-size: 0.625rem;
    padding: 0.7rem 0.65rem 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .footer-col--nav .footer-links,
  .footer-col--contact .footer-contact-list {
    align-items: center;
  }

  .footer-col--contact {
    text-align: center;
  }

  .footer-col--contact .footer-contact-list {
    align-items: center;
  }

  .whatsapp-fab {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }

  .phone-copy-toast {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
  }

  .footer-contact-list .phone-row {
    justify-content: center;
  }

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

  .footer-marquee__track span {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

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

  .lightbox__nav--prev,
  .lightbox__nav--next {
    display: none;
  }

  .stats-scale__list,
  .shipment-grid,
  .approach-grid,
  .about-facts {
    grid-template-columns: 1fr;
  }

  .founder__portrait {
    max-width: none;
  }

  .founder__frame {
    aspect-ratio: 4 / 5;
  }

  .stats-scale__list {
    padding-inline: var(--container-pad);
  }

  .stats-scale__item {
    border-right: none;
    min-height: auto;
    padding: var(--space-6) 0;
  }

  .stats-scale__item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .stats-scale__item:last-child {
    border-bottom: none;
  }

  .shipment-card {
    min-height: 160px;
  }

  .why-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .why-item__text {
    grid-column: 1;
  }

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

  .fleet-item {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .fleet-item__size {
    min-width: 0;
  }

  .cta-band__content {
    max-width: none;
  }

  .heading-display,
  .heading-xl {
    font-size: clamp(2.4rem, 11vw, 3.25rem);
  }
}

/* Very small phones */
@media (max-width: 360px) {
  :root {
    --container-pad: 1rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo__img {
    height: 2.35rem;
  }

  .logo__est {
    font-size: 0.5625rem;
  }
}
