/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(107, 47, 91, 0.15);
  color: #491f40;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 245, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #d4A017;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled .nav-logo-text {
  color: #491f40 !important;
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #fff !important;
}

#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

#navbar:not(.scrolled) .nav-link:hover {
  color: #fde68a !important;
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Floating Circles ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.floating-circle {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  border-radius: 50%;
  pointer-events: none;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Menu Card Hover ── */
.bg-white.rounded-2xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
  transform: translateY(-2px);
}

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

/* ── Mobile Toggle Animation ── */
#mobile-toggle.active #bar1 {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-toggle.active #bar2 {
  opacity: 0;
}

#mobile-toggle.active #bar3 {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .font-serif.text-4xl.md\:text-5xl {
    font-size: 2.25rem;
  }
}
