/* ============================================================
   NTC — static build extras
   (state helpers for the vanilla-JS version; the visual design
   lives in styles.css which is the compiled site CSS)
   ============================================================ */

/* hide-anything helper (native [hidden] can be overridden by display utilities) */
[hidden] {
  display: none !important;
}

/* ---------- font variables (next/font equivalent) ---------- */
/* NOTE: the html element carries the generated font classes
   (manrope…__variable / ibm_plex…__variable) which define these vars. */

/* ---------- theme icon swap ---------- */
html:not(.dark) .theme-icon-sun { display: none; }
html.dark .theme-icon-moon { display: none; }

/* ---------- header scrolled state ---------- */
#site-header.is-scrolled {
  background: rgba(23, 20, 15, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- body lock while overlays are open ---------- */
body.no-scroll { overflow: hidden; }

/* ---------- menu overlay ---------- */
.menu-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
body.menu-open .menu-item {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- intro overlay ---------- */
.skip-intro #intro-overlay {
  display: none !important;
}
.intro-title {
  opacity: 0;
  letter-spacing: 0.6em;
  animation: intro-title 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes intro-title {
  to {
    opacity: 1;
    letter-spacing: 0.18em;
  }
}
.intro-fade {
  opacity: 0;
  transform: translateY(12px);
  animation: intro-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes intro-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#intro-overlay.is-leaving {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- tour hotspot markers / card animation ---------- */
.hotspot-marker {
  opacity: 0;
  animation: marker-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes marker-in {
  to {
    opacity: 1;
  }
}
#hotspot-card {
  animation: card-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(var(--card-shift, -14px)) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#hotspot-card.above {
  --card-shift: 14px;
}

/* ---------- custom select (quote form) ---------- */
[data-select] {
  position: relative;
}
.ntc-select-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #1f1a14;
  border: 1px solid rgba(242, 239, 232, 0.15);
  color: #f2efe8;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  animation: card-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ntc-select-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}
.ntc-select-item:hover,
.ntc-select-item:focus-visible,
.ntc-select-item.is-selected {
  background: #a6885a;
  color: #17140f;
}
.ntc-select-trigger[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.7);
}

/* ---------- checkbox check mark ---------- */
[data-slot="checkbox"][data-state="checked"] .checkbox-check {
  display: flex !important;
}

/* ---------- toast ---------- */
#ntc-toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- dialog content bits (injected) ---------- */
#dialog-panel .dlg-media {
  width: 100%;
  object-fit: cover;
}

/* keep native smooth scrolling only when JS-driven states allow */
html {
  -webkit-text-size-adjust: 100%;
}
