*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
}

/* ── Reveal Animations ── */
.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.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal.revealed:nth-child(3) { transition-delay: 0.2s; }

/* ── Section Labels & Titles ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #047857;
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.08), rgba(4, 120, 87, 0.03));
  border: 1px solid rgba(4, 120, 87, 0.15);
  padding: 0.4em 1em;
  border-radius: 100px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

/* ── 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, 240, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-link {
  position: relative;
}

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

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

/* ── Hero ── */
.hero-bg {
  will-change: transform;
}

.hero-bg img {
  will-change: transform;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-badge {
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Menu Cards ── */
.menu-card {
  will-change: transform;
}

.menu-card img {
  will-change: transform;
}

/* ── Gallery ── */
.gallery-item {
  cursor: pointer;
  will-change: transform;
}

.gallery-item img {
  will-change: transform;
}

/* ── Mobile Menu ── */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 1.5rem;
}

.mobile-link {
  transition: transform 0.2s ease;
}

.mobile-link:hover {
  transform: scale(1.05);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34D399;
}

/* ── Selection ── */
::selection {
  background: rgba(4, 120, 87, 0.15);
  color: #064E3B;
}

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

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
