/* The Hilt Suite — custom animations (ported from approved design direction) */

/* Hero line-by-line entrance */
.ln { display: block; overflow: hidden; }
.ln > span {
  display: block;
  animation: d1-up 0.9s cubic-bezier(0.2, 0.7, 0, 1) both;
}
.ln:nth-child(2) > span { animation-delay: 0.14s; }

.fade-entry-1 { animation: d1-fade 1s 0.5s cubic-bezier(0.2, 0.7, 0, 1) both; }
.fade-entry-2 { animation: d1-fade 1s 0.7s cubic-bezier(0.2, 0.7, 0, 1) both; }

.photo-wipe { animation: d1-wipe 1.2s 0.2s cubic-bezier(0.7, 0, 0.2, 1) both; }
.photo-drift-img { animation: d1-drift-img 22s ease-in-out infinite alternate; }

/* Marquee */
.mq-track { width: max-content; animation: d1-mq 20s linear infinite; }

/* Amenity marquee (pause on hover / touch) */
.amenity-track { width: max-content; animation: d1-mq 28s linear infinite; }
.amenity-track:hover, .amenity-track:active { animation-play-state: paused; }

/* Navbar brand entry */
.brand-entry { animation: d1-fade-down 0.6s cubic-bezier(0.2, 0.7, 0, 1) both; }

/* Shimmering metallic gold brand text */
.text-shimmer {
  background: linear-gradient(100deg, #B89628 20%, #F3E5AB 40%, #fff8dc 50%, #F3E5AB 60%, #B89628 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: d1-shimmer 3.5s linear infinite;
}

/* Nav link gold underline on hover */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: #D4AF37;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0, 1);
}
.nav-link:hover::after { transform: scaleX(1); }

/* CALL TO BOOK glowing gold border pulse */
.btn-glow { animation: d1-glow 2.4s ease-in-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Gallery filter */
.gallery-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.gallery-item.is-hidden { display: none; }
.active-filter { background: #D4AF37; color: #0a1f18 !important; border-color: #D4AF37; }

/* Modal */
#suite-modal.open, #voice-modal.open { display: flex; animation: d1-fade 0.25s ease both; }
#suite-modal.open .modal-panel, #voice-modal.open .modal-panel { animation: d1-modal 0.35s cubic-bezier(0.2, 0.7, 0, 1) both; }

/* ── FAB dock (always visible) ── */
.fab-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s ease;
}
.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}
.fab-item:hover .fab-btn { transform: scale(1.12); }
.fab-label {
  background: #030c08;
  color: #FDFBF7;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.fab-item:hover .fab-label, .fab-item:focus-visible .fab-label { opacity: 1; transform: translateX(0); }

/* Suites grid: centered 3 + 2 on desktop */
@media (min-width: 1024px) {
  .suites-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .suites-grid > article { width: calc(33.333% - 1rem); }
}

/* Suite cards: staggered entrance, badge pulse, arrow slide */
.suites-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.suites-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.suites-grid .reveal:nth-child(3) { transition-delay: 0.35s; }
.suites-grid .reveal:nth-child(4) { transition-delay: 0.5s; }
.suites-grid .reveal:nth-child(5) { transition-delay: 0.65s; }
.badge-pulse { animation: d1-badge 2s ease-in-out infinite; }
.book-link:hover .book-arrow { transform: translateX(5px); }
@keyframes d1-badge { 0%, 100% { opacity: 0.8; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); } 50% { opacity: 1; box-shadow: 0 0 12px 2px rgba(212, 175, 55, 0.35); } }

/* Mic recording pulse */
#mic-btn.recording { animation: d1-mic 1.2s ease-in-out infinite; background: #dc2626; color: #fff; }
@keyframes d1-mic { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); } 50% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); } }

/* FAQ smooth marker */
details summary::-webkit-details-marker { display: none; }
details[open] { box-shadow: 0 12px 40px -18px rgba(212, 175, 55, 0.25); }

/* Smooth scroll */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

@keyframes d1-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes d1-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes d1-fade-slide { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes d1-fade-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes d1-shimmer { to { background-position: 200% center; } }
@keyframes d1-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45), 0 4px 14px rgba(212, 175, 55, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(212, 175, 55, 0), 0 4px 22px rgba(212, 175, 55, 0.45); }
}
@keyframes d1-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes d1-drift-img { 0% { transform: scale(1.08) translate(0, 0); } 100% { transform: scale(1.18) translate(-2%, -2%); } }
@keyframes d1-mq { to { transform: translateX(-50%); } }
@keyframes d1-modal { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
