/* Keep the same layout while reducing off-screen rendering and motion work on phones. */
@media (max-width: 740px) {
  html {
    scroll-behavior: auto !important;
  }

  .section:not(.hero),
  .catalog-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 820px;
  }

  .price-nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .catalog-card,
  .catalog-photo img,
  .price-card,
  .combo-card,
  .step,
  .service,
  .service img {
    transition: none !important;
  }

  .catalog-card,
  .price-card,
  .combo-card,
  .step {
    box-shadow: none;
  }

  .catalog-card:hover,
  .price-card:hover,
  .combo-card:hover,
  .step:hover,
  .service:hover {
    transform: none !important;
    box-shadow: none;
  }

  .catalog-photo img {
    transform: none !important;
  }

  .service img {
    filter: none;
  }

  .mobile-dock-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  a[href*="zalo.me"]:not(.laundry-main-cta),
  a[href*="wa.me"],
  a[href*="m.me"],
  a[href^="tel:"],
  .btn.price-cta,
  .service-price-cta {
    animation: none !important;
  }
}

.latusa-static-hero .hero-background-video {
  display: none !important;
}

.latusa-static-hero .hero-background-motion {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 46%;
  pointer-events: none;
  background: #151515 url("hero-clip2-poster.webp") center 46% / cover no-repeat;
}

/* Keep the mobile header controls and LATUSA mark in separate columns. */
@media (max-width: 650px) {
  .nav {
    justify-content: flex-start;
    gap: 6px;
  }

  .nav .menu-cluster {
    flex: 0 1 auto;
    order: 1;
    min-width: 0;
    gap: 5px;
    z-index: 12;
  }

  .nav .menu {
    padding: 8px 11px;
    font-size: 14px;
    white-space: nowrap;
  }

  .nav .language-switch {
    flex: 0 0 auto;
  }

  .nav .language-switch summary {
    min-height: 36px;
    padding: 7px 8px;
    gap: 5px;
  }

  .nav .language-switch summary .language-switch-current {
    font-size: 11px;
  }

  .nav .price-cta {
    order: 2;
    flex: 0 1 auto;
    min-height: 36px;
    gap: 5px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .nav .price-cta .arrow {
    width: 21px;
    height: 21px;
    font-size: 14px;
  }

  .nav .logo {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    order: 3;
    margin-left: auto;
    flex: 0 0 58px;
    width: 58px;
    z-index: 11;
  }

}

@media (max-width: 380px) {
  .nav .menu {
    padding-right: 8px;
    padding-left: 8px;
  }

  .nav .language-switch summary {
    padding-right: 6px;
    padding-left: 6px;
    gap: 4px;
  }

  .nav .logo {
    flex-basis: 50px;
    width: 50px;
  }

  .nav .price-cta {
    display: none;
  }
}

/* Keep the LATUSA mark in its own mobile header column. */
@media (max-width: 650px) {
  .header .nav {
    display: grid;
    grid-template-columns: max-content minmax(58px, 1fr) max-content;
    justify-content: initial;
    column-gap: 6px;
  }

  .header .menu-cluster {
    grid-column: 1;
    grid-row: 1;
    order: initial;
    min-width: max-content;
  }

  .header .language-switch-globe,
  .header .language-switch-label,
  .header .language-quick-link {
    display: none !important;
  }

  .header .logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    order: initial;
  }

  .header .price-cta {
    grid-column: 3;
    grid-row: 1;
    order: initial;
  }

  .site-header .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    justify-content: initial;
    column-gap: 8px;
  }

  .site-header .brand {
    grid-column: 1;
    min-width: 0;
    gap: 8px;
  }

  .site-header .brand img {
    flex: 0 0 42px;
  }

  .site-header .brand span {
    min-width: 0;
    line-height: 1.2;
    white-space: normal;
  }

  .site-header .nav-actions {
    grid-column: 2;
    min-width: max-content;
    gap: 5px;
  }

  .site-header .nav-actions .language-switch-globe,
  .site-header .nav-actions .language-switch-label,
  .site-header .nav-actions .language-quick-link {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .header .nav {
    grid-template-columns: max-content minmax(50px, 1fr);
  }

  .header .price-cta {
    display: none;
  }

  .header .logo {
    grid-column: 2;
    flex-basis: 50px;
    width: 50px;
  }

  .site-header .nav {
    column-gap: 5px;
  }

  .site-header .brand {
    gap: 6px;
  }

  .site-header .brand img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .site-header .brand span {
    font-size: 10px;
  }
}
