/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

/* ===== MARQUEE ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

/* ===== NAV ===== */
.nav-logo-text {
  transition: color 0.3s;
}

#nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

#nav.scrolled .nav-logo-text {
  color: #1E1E1E;
}

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

#menu-toggle.active #bar1 {
  transform: translateY(9px) rotate(45deg);
}
#menu-toggle.active #bar2 {
  opacity: 0;
}
#menu-toggle.active #bar3 {
  transform: translateY(-9px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== MENU CARDS ===== */
.menu-card {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== GALLERY ===== */
.gallery-item {
  cursor: pointer;
}

/* ===== FORM INPUTS ===== */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e0d0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #1E1E1E;
  background: #FDF8F0;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: #a89880;
}

.form-input:focus {
  border-color: #c43a2a;
  box-shadow: 0 0 0 4px rgba(196, 58, 42, 0.1);
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    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; }
}

/* Mobile link hover */
.mobile-link {
  opacity: 1;
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c43a2a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: #c43a2a;
  color: #fff;
}
