/* =============================================
   El Camino Mexican Cuisine — Custom Styles
   ============================================= */

/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #7B2D3B;
  color: #ffffff;
}

/* =============================================
   Scroll Reveal Animations
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    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-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; }
}

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

#navbar.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

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

.menu-bar {
  display: block;
}

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

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

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

/* =============================================
   Buttons & Links
   ============================================= */
a {
  text-decoration: none;
}

/* =============================================
   Image Hover Effects
   ============================================= */
img {
  display: block;
  max-width: 100%;
}

/* =============================================
   Form Styles
   ============================================= */
input:focus,
textarea:focus {
  outline: none;
}

/* =============================================
   Responsive Utilities
   ============================================= */
@media (max-width: 768px) {
  .font-display {
    word-break: break-word;
  }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
  #navbar,
  #mobile-menu {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
