/* Homepage: static hero and About Us sections (2026-10-14).
   The two motion scripts respect data-motion="static" before creating effects.
   These styles also remove CSS-only movement without affecting navigation,
   modal dialogs, the packages page, or the remaining homepage sections. */

.site-header[data-motion="static"] {
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-scroll: 0px;
  transform: none !important;
  will-change: auto !important;
}

/* Keep the original image crop, but stop background pan and pointer parallax. */
.site-header[data-motion="static"]::before {
  animation: none !important;
  transform: scale(1.08) !important;
  will-change: auto !important;
}

/* The old word-splitting animation coloured these words gold.
   Keep that colour now that the heading remains plain, accessible text. */
.site-header[data-motion="static"] .hero h1 {
  color: var(--gold-bright);
}

.site-header[data-motion="static"] .hero,
.site-header[data-motion="static"] .hero > *,
.custom-travel-section[data-motion="static"],
.custom-travel-section[data-motion="static"] .custom-travel-logo,
.custom-travel-section[data-motion="static"] .custom-travel-copy,
.custom-travel-section[data-motion="static"] .custom-travel-copy > * {
  animation: none !important;
  transform: none !important;
  translate: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  will-change: auto !important;
}

.custom-travel-section[data-motion="static"] .custom-travel-logo img {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* Preserve the About Us accent line in its fully visible, stationary state. */
.custom-travel-section[data-motion="static"] .eyebrow::after {
  width: 42px;
  transition: none;
}

/* Keep hover/focus colour and shadow feedback, without shifting the controls. */
.site-header[data-motion="static"] .hero .button,
.custom-travel-section[data-motion="static"] .button {
  transform: none !important;
  translate: none !important;
  will-change: auto !important;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}

.site-header[data-motion="static"] .hero .button::before,
.custom-travel-section[data-motion="static"] .button::before {
  content: none;
}

@media (max-width: 720px) {
  .site-header[data-motion="static"]::before {
    transform: scale(1.05) !important;
  }
}

/* Later sections keep their reveal effects, but off-screen animation layers
   must not widen the page or make the viewport slide sideways on tablets.
   Unlike overflow: hidden, clip does not introduce a nested scroll container. */
.site-header[data-motion="static"] + #main-content {
  overflow-x: clip;
}

/* An aspect-ratio grid item can otherwise grow wider than its own column
   when the adjacent text makes the row taller (notably around 1024px). */
.custom-travel-section[data-motion="static"] .custom-travel-logo,
.custom-travel-section[data-motion="static"] .custom-travel-copy {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
