/* ═══════════════════════════════════════════════
   Lock & Code — Shared Visual Enhancements
   Layers on top of existing inline styles.
   ═══════════════════════════════════════════════ */

/* ── Animated Starfield Background ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(212,175,55,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(212,175,55,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(212,175,55,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(212,175,55,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(212,175,55,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(212,175,55,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 45%, rgba(212,175,55,0.15) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 15%, rgba(212,175,55,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(212,175,55,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(212,175,55,0.12) 0%, transparent 100%);
  animation: lc-stars-drift 60s linear infinite;
}

@keyframes lc-stars-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none !important; }
  .lc-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 3px;
}

/* ── Scroll Reveal ── */
.lc-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.lc-reveal.lc-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delays applied via JS data-delay attribute */
.lc-reveal[data-delay="1"] { transition-delay: 0.1s; }
.lc-reveal[data-delay="2"] { transition-delay: 0.2s; }
.lc-reveal[data-delay="3"] { transition-delay: 0.3s; }
.lc-reveal[data-delay="4"] { transition-delay: 0.4s; }
.lc-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ── Hero Title Entrance ── */
.page-hero h1,
.hero .section-title {
  animation: lc-title-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-hero p,
.page-hero .location-sub,
.hero .grid-3 {
  animation: lc-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.page-hero .taunton-hero-logo,
.hero .hero-logo-img {
  animation: lc-logo-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lc-title-in {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes lc-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lc-logo-in {
  from { opacity: 0; transform: scale(0.95); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ── Enhanced Card Hovers ── */
.glass-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.4s ease;
}
.glass-card:hover {
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.room-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
.room-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.06);
}

.exp-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Enhanced Buttons ── */
.btn-gold,
.btn.btn-gold {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold::before,
.btn.btn-gold::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transform: translateX(-100%);
  transition: none;
}

.btn-gold:hover::before,
.btn.btn-gold:hover::before {
  animation: lc-shimmer 0.6s ease forwards;
}

@keyframes lc-shimmer {
  to { transform: translateX(100%); }
}

/* ── Nav Glow Enhancement ── */
.nav-tabs {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Gold Separator Glow ── */
.location-info {
  position: relative;
  transition: box-shadow 0.4s ease;
}
.location-info:hover {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.08);
}

/* ── FAQ Item Enhancements ── */
.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-item:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 #D4AF37;
}
.faq-item.open {
  box-shadow: -4px 0 0 #D4AF37, 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ── Contact Items ── */
.contact-item {
  transition: transform 0.3s ease;
}
.contact-item:hover {
  transform: translateX(4px);
}

/* ── Image Hover Polish ── */
.room-img img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.room-card:hover .room-img img {
  filter: brightness(1.05) saturate(1.1);
}

/* ── Gold Gradient Text Shimmer ── */
.gold-gradient-text {
  background-size: 200% auto;
  animation: lc-gold-shimmer 4s ease infinite;
}
@keyframes lc-gold-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ── Smooth Scroll Padding for Fixed Nav ── */
html {
  scroll-padding-top: 100px;
}

/* ── Footer Enhancement ── */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

/* ── Better Room Stats ── */
.room-stats .stat {
  transition: color 0.2s ease;
}
.room-card:hover .room-stats .stat {
  color: #D4AF37;
}

/* ── Price Box Enhancement ── */
.price-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.price-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
}

/* ── Gift Image Enhancement ── */
.gift-image-container img {
  transition: box-shadow 0.5s ease, filter 0.5s ease;
}
.gift-image-container:hover img {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.15);
  filter: brightness(1.03);
}

/* ── Highlight Box Enhancement ── */
.highlight-box {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  border-radius: 4px;
}
.highlight-box:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.06);
}

/* ── Responsive Enhancements ── */
@media (max-width: 900px) {
  .room-card {
    overflow: hidden;
    border-radius: 8px;
  }
}
