/* ========== BASE & UTILITIES ========== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #f3bda8;
  color: #7d2718;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
}

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

#navbar.scrolled .font-serif {
  color: #1c1917 !important;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  position: relative;
}

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

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

/* ========== HERO ========== */
#hero {
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(244, 184, 130, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(228, 110, 74, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ========== SCROLL ANIMATIONS ========== */
.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.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== MENU CARDS ========== */
.bg-white.rounded-3xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========== BUTTONS ========== */
a[href="#menu"], a[href="#about"], a[href="#gallery"], a[href="#visit"] {
  position: relative;
}

/* ========== GALLERY ========== */
.aspect-square.rounded-2xl {
  cursor: pointer;
}

/* ========== INPUTS ========== */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(229, 107, 74, 0.15);
}

/* ========== FORM SUCCESS ========== */
#formSuccess {
  animation: fadeInUp 0.5s ease forwards;
}

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

/* ========== DECORATIVE PATTERN ========== */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #f3bda8, #eac99a, #f3bda8, transparent);
  border: none;
  border-radius: 2px;
  margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .font-serif.text-5xl {
    font-size: 2.75rem;
    line-height: 1.1;
  }

  .font-serif.text-4xl {
    font-size: 2.25rem;
  }

  .bg-white.rounded-3xl.p-8 {
    padding: 1.5rem;
  }

  .bg-gradient-to-br.p-10 {
    padding: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .font-serif.text-5xl {
    font-size: 3.5rem;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .aspect-square.rounded-2xl img {
    transition: none;
  }

  .aspect-square.rounded-2xl:hover img {
    transform: none;
  }
}
