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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(123, 45, 59, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
}

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

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

.btn-nav {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-nav:hover {
  background: white;
  color: #7B2D3B;
  border-color: white;
}

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* Hamburger */
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* ===== HERO ===== */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(44, 24, 16, 0.75) 0%,
    rgba(123, 45, 59, 0.65) 50%,
    rgba(44, 24, 16, 0.7) 100%
  );
}

/* Scroll line animation */
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* Floating shapes */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatDelay {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: floatDelay 8s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  background: #7B2D3B;
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.4);
  border: 2px solid #7B2D3B;
}

.btn-cta-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-cta-light {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #7B2D3B;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  background: #FFF8F6;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-cta-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== MENU CARDS ===== */
.menu-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123, 45, 59, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
}

/* ===== VISIT CARDS ===== */
.visit-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.visit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

/* ===== FORM ===== */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #f0e0dc;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: #2C1810;
  background: #FFF9F6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: #b56660;
  opacity: 0.6;
}

.input-field:focus {
  border-color: #7B2D3B;
  box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.1);
  background: white;
}

.input-field:hover:not(:focus) {
  border-color: #ec749a;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7B2D3B;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
}

.btn-submit:hover {
  background: #622430;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 45, 59, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .font-playfair {
    line-height: 1.1;
  }

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

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

  .menu-card {
    padding: 1.5rem;
  }

  .visit-card {
    padding: 1.5rem;
  }
}
