/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Hero Background ── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(251,191,36,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(123,63,160,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(91,44,111,0.8) 0%, rgba(45,23,56,0.95) 100%),
    linear-gradient(160deg, #2D1738 0%, #5B2C6F 40%, #7B3FA0 70%, #F59E0B 100%);
  background-size: cover;
}

/* ── Hero Orbs ── */
.hero-orb { opacity: 0.6; }
.hero-orb-1 { animation: orbFloat 8s ease-in-out infinite; }
.hero-orb-2 { animation: orbFloat 10s ease-in-out infinite reverse; }
.hero-orb-3 { animation: orbFloat 12s ease-in-out infinite; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

/* ── Hero Entrance ── */
.hero-badge {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.2s ease forwards;
}
.hero-title {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.4s ease forwards;
}
.hero-subtitle {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.6s ease forwards;
}
.hero-ctas {
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.8s ease forwards;
}
.hero-scroll {
  opacity: 0;
  animation: fadeIn 0.8s 1.2s ease forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Buttons ── */
.cta-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #FBBF24; color: #2D1738;
  font-weight: 700; font-size: 1rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(251,191,36,0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(251,191,36,0.5); background: #FCD34D; }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); color: #FDE68A;
  font-weight: 600; font-size: 1rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.25);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cta-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.45); transform: translateY(-2px); }

.cta-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #2D1738; color: #FBBF24;
  font-weight: 700; font-size: 1rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cta-dark:hover { background: #3B1D48; transform: translateY(-2px); }

.cta-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #2D1738;
  font-weight: 600; font-size: 1rem;
  padding: 0.875rem 2rem; border-radius: 9999px;
  border: 2px solid rgba(45,23,56,0.3);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cta-outline:hover { background: rgba(45,23,56,0.06); border-color: rgba(45,23,56,0.5); transform: translateY(-2px); }

/* ── Cards ── */
.card-plum {
  background: white; border-radius: 1.5rem;
  padding: 2rem; box-shadow: 0 4px 32px rgba(91,44,111,0.08);
  border: 1px solid rgba(91,44,111,0.08);
}
.card-amber {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF3D6 100%); border-radius: 1.5rem;
  padding: 2rem; box-shadow: 0 4px 32px rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.15);
}

/* ── About Orbs ── */
.about-orb, .visit-orb, .cta-orb { animation: orbFloat 10s ease-in-out infinite; }
.orb-2 { animation-delay: -3s; animation-duration: 12s; }

/* ── Gallery ── */
.gallery-item { aspect-ratio: 1; }
.gallery-item div { aspect-ratio: 1; }

/* ── Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
/* When JS is disabled or reduced-motion is preferred, content stays visible */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-badge, .hero-title, .hero-subtitle, .hero-ctas, .hero-scroll { opacity: 1; animation: none; }
  .hero-orb { animation: none; }
  .about-orb, .visit-orb, .cta-orb { animation: none; }
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(45,23,56,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Mobile menu transitions ── */
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
#mobile-menu.open { max-height: 500px; }
.mobile-link { border-radius: 0.75rem; }

/* ── Focus visible ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #FBBF24;
  outline-offset: 2px;
  border-radius: 0.5rem;
}
