/* La Finca Restaurant — Custom Styles */

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #070504;
  color: #e5e5e5;
  font-family: 'Raleway', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(7, 5, 4, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

/* Mobile link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #d4a853;
  transition: width 0.3s ease;
}

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

/* Hamburger animation */
.menu-line {
  transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Selection */
::selection {
  background-color: #7f1e39;
  color: #fdf8f6;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d4a853;
  outline-offset: 4px;
  border-radius: 4px;
}

/* 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;
  }

  .float-anim {
    animation: none !important;
  }

  .gold-shimmer {
    animation: none;
    background: #d4a853;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }
}

/* Small mobile */
@media (max-width: 360px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
