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

/* ── Nav scroll state ── */
nav.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26, 18, 9, 0.08);
}

/* ── Mobile menu ── */
.mobile-link {
  transition: opacity 0.3s, transform 0.3s;
}
#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ── Hamburger bars ── */
#menuBtn.open .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menuBtn.open .bar:nth-child(2) { opacity: 0; }
#menuBtn.open .bar:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Selection card hover tilt ── */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #C0603A; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #A84E2C; }

/* ── Focus visible ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C0603A;
  outline-offset: 2px;
  border-radius: 4px;
}
</style>
