/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 168, 75, 0.3);
  color: #FDF9F3;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0B09;
}
::-webkit-scrollbar-thumb {
  background: #3A2F24;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A84B;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .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);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
  background: rgba(13, 11, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 75, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .menu-line {
  background: #F2DFBD;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hamburger Animation ── */
body.menu-open #menu-btn .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open #menu-btn .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.menu-open #menu-btn .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* ── Gold Shimmer on Hover ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Image Lazy Load Fallback ── */
img {
  background-color: #2A2219;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D4A84B;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Map Container ── */
iframe[src*="google.com/maps"] {
  border-radius: 0 0 1rem 1rem;
}

/* ── Smooth Image Loading ── */
img {
  transition: opacity 0.3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ── Product Card Tilt ── */
.reveal.group:hover .aspect-\[4\/3\] img {
  transform: scale(1.05);
}

/* ── Subtle Noise Texture on Sections ── */
.bg-dark-800::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}
