/* ── Reset & Base ───────────────────────────────── */
*, *::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: #E8735A;
  color: white;
}

/* ── Animations ─────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Navbar ─────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 245, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(45, 45, 45, 0.06);
}

.nav-link {
  position: relative;
}

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

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

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

#mobileMenu.open .mobile-link {
  animation: fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.menu-line.active-1 {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-line.active-2 {
  opacity: 0;
}
.menu-line.active-3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5rem;
}

/* ── Hero Image ─────────────────────────────────── */
.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(232, 115, 90, 0.2);
  border-radius: 2rem;
  z-index: -1;
}

/* ── Menu Cards ─────────────────────────────────── */
.menu-card {
  transform: translateY(0);
}

.menu-card:hover {
  transform: translateY(-4px);
}

/* ── Gallery ────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── Buttons ────────────────────────────────────── */
button, a[role="button"] {
  cursor: pointer;
}

/* ── Focus Styles ───────────────────────────────── */
:focus-visible {
  outline: 2px solid #E8735A;
  outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero-image-wrap::before {
    display: none;
  }

  #hero h1 {
    font-size: 3.5rem;
  }

  #hero h1 br {
    display: none;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }
}
