/* Custom styles for Chaguitos Mariscos */

:root {
  --navy-900: #1a2744;
  --navy-800: #243352;
  --navy-700: #2e4060;
  --gold-500: #c9a84c;
  --gold-600: #b8943f;
  --gold-400: #d4b965;
  --stone-50: #faf9f7;
  --stone-100: #f5f4f0;
  --stone-200: #e8e6e0;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-800: #292524;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--stone-50);
  color: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

.font-lato {
  font-family: 'Lato', sans-serif;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background: rgba(250, 249, 247, 0.97);
  box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
  backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s ease;
}

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

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

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

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

/* No-reveal fallback: content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--navy-900);
}

/* Image hover effects */
section img {
  transition: transform 0.6s ease;
}

section img:hover {
  transform: scale(1.02);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Selection color */
::selection {
  background: var(--gold-500);
  color: var(--navy-900);
}
