@import url("./video-theme.css");

/* Keep the original dark three-line icon on its preserved white control.
   Recoloring only the outer lines made them disappear against that control. */
.legacy-header-create { margin-right: var(--hs-space-5); white-space: nowrap; }
@media (max-width: 700px) { .legacy-header-create { display: none; } }

/* The retired banner must not leave a gap above the fixed navigation. */
.navbar2_component { top: 0 !important; }

/* Route options override the pinned homepage positioning, not its CSS bytes.
   The closed header participates in normal flow; only the drawer overlays. */
.hs-site-navigation[data-fixed="false"] .navbar2_component {
  position: relative;
  inset: auto;
}
.hs-site-navigation[data-fixed="false"] .w-nav-overlay {
  position: fixed;
  top: 0;
}

/* Preserve landing geometry when its header becomes the video-input header. */
.navbar2_component { padding-inline: var(--hs-header-inset-inline); }
.navbar2_container { padding-block: var(--hs-header-inset-block); }
.video-flow-header {
  padding: var(--hs-header-inset-block) var(--hs-header-inset-inline);
}

/* Keep the rotating desktop testimonial centered independently of cart width. */
@media (min-width: 992px) {
  .navbar2_container:has(> .nav-testimonial-wrapper) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 24px;
  }
  .navbar2_container > .navbar2_logo-link { justify-self: start; }
  .navbar2_container > .nav-testimonial-wrapper {
    grid-column: 2;
    justify-self: center;
    max-width: 42vw;
    text-align: center;
  }
  .navbar2_container:has(> .nav-testimonial-wrapper) > .navbar2_wrapper {
    grid-column: 3;
    justify-self: end;
  }
}

/* The landing keeps Webflow navigation but no longer loads IX2 for this icon. */
body[data-video-landing-runtime="slim"] .navbar2_menu-button.w--open .menu-icon2_line-top {
  transform: translateY(8px) rotate(45deg);
}
body[data-video-landing-runtime="slim"] .navbar2_menu-button.w--open .menu-icon2_line-middle {
  opacity: 0;
}
body[data-video-landing-runtime="slim"] .navbar2_menu-button.w--open .menu-icon2_line-bottom {
  transform: translateY(-8px) rotate(-45deg);
}
body[data-video-landing-runtime="slim"] .navbar2_menu-button :is(.menu-icon2_line-top, .menu-icon2_line-bottom) {
  transition: transform .4s ease;
}
body[data-video-landing-runtime="slim"] .navbar2_menu-button .menu-icon2_line-middle {
  transition: opacity .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  body[data-video-landing-runtime="slim"] .navbar2_menu-button :is(.menu-icon2_line-top, .menu-icon2_line-middle, .menu-icon2_line-bottom) { transition: none; }
}

/* Reserve the shared PNG's intrinsic box before loading or decoding it. */
.navbar2_logo, .video-flow-home img {
  aspect-ratio: var(--hs-logo-aspect-ratio);
}

/* Decorative testimonials must not intercept open-drawer links on mobile. */
.navbar2_component:has(.navbar2_menu-button.w--open) .nav-testimonial-wrapper { pointer-events: none; }

/* Keep the video homepage's testimonial behind Webflow's open drawer. The
   header action group remains above the drawer so cart and close still work. */
body[data-video-landing-runtime="slim"]:has(.video-home-cart) .navbar2_component:has(.navbar2_menu-button.w--open) .navbar2_container { z-index: auto; }
body[data-video-landing-runtime="slim"]:has(.video-home-cart) .navbar2_component:has(.navbar2_menu-button.w--open) .nav-testimonial-wrapper { z-index: 0; }
.navbar2_component:has(.navbar2_menu-button.w--open) :is(.navbar2_container, .navbar2_wrapper) { z-index: auto; }
.navbar2_component:has(.navbar2_menu-button.w--open) .button.is-nav { z-index: 0; }
.navbar2_component:has(.navbar2_menu-button.w--open) .navbar2_menu-button { z-index: 2; }

/* The homepage drawer runtime measures body height. Long share documents must
   constrain its overlay to the same viewport without changing homepage behavior. */
.hs-site-navigation :is(.navbar2_menu, .w-nav-overlay) { height: 100dvh !important; }

/* One logo size for React flows and the preserved video-site navigation. */
:is(.navbar2_logo, .navbar_logo, .santa-one-logo, header .logo),
:is(.site-logo, .legal-header, .video-flow-home, .legacy-logo-link, .new-letter-header) img {
  display: block;
  width: var(--hs-logo-width) !important;
  height: auto !important;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 479px) {
  /* The full-width white drawer needs the existing red-wordmark artwork.
     Keep the reserved logo box and hat colors; closed/desktop headers stay white. */
  .navbar2_component:has(.navbar2_menu-button.w--open) .navbar2_logo {
    content: url("./uploads/hey-santa-logo.png");
  }
  :is(.navbar2_logo, .navbar_logo, .santa-one-logo, header .logo),
  :is(.site-logo, .legal-header, .video-flow-home, .legacy-logo-link, .new-letter-header) img {
    width: var(--hs-logo-width-small) !important;
  }
}
