/* ═══════════════════════════════════════════
   Shellcrest Downtown Memphis — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Scroll-behavior ── */
html {
  scroll-behavior: smooth;
}

/* ── Base typography ── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar scroll state ── */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#nav.scrolled {
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08), 0 4px 24px rgba(0,0,0,0.06);
}

/* ── Hero stat cards ── */
.stat-card {
  animation: floatCard 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -1.5s;
}

.stat-card:nth-child(3) {
  animation-delay: -3s;
}

.stat-card:nth-child(4) {
  animation-delay: -4.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ── Reveal-on-scroll (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* When JS is available, add the initial hidden state via class */
.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.reveal[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Amenity cards ── */
.amenity-card {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ── Mobile menu ── */
#mobilePanel {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: #065f46;
  color: #f5f0e0;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .stat-card {
    animation: none;
  }
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  img {
    transition: none;
  }
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .stat-card {
    animation: none;
  }
}
