/* ============================================
   Dos Marias Grill & Cantina — Custom Styles
   ============================================ */

/* Base & Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* Selection Color */
::selection {
  background-color: #D4A843;
  color: #0A1628;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 33, 64, 0.06);
}

.nav.scrolled {
  background: rgba(250, 246, 240, 0.98);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
#mobileMenu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  position: relative;
}

/* Hamburger Animation */
#menuToggle[aria-expanded="true"] #bar1 {
  transform: translateY(4px) rotate(45deg);
}

#menuToggle[aria-expanded="true"] #bar2 {
  opacity: 0;
  transform: scaleX(0);
}

#menuToggle[aria-expanded="true"] #bar3 {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
}

.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .animate-bounce {
    animation: none;
  }
  
  img {
    transition: none;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   Utility
   ============================================ */
@media (max-width: 359px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

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

/* Smooth image loading */
img {
  background-color: #152E58;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF6F0;
}

::-webkit-scrollbar-thumb {
  background: #152E58;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0F2140;
}
