/* ===== Base ===== */
:root {
  --espresso: #1F1410;
  --crema: #F5EFE6;
  --oro: #C8A26A;
  --cafe: #6B4423;
  --humo: #8B7E74;
}

html { scroll-behavior: smooth; }

body {
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--oro);
  color: var(--crema);
}

/* ===== Nav link underline ===== */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .4s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== Reveal animations ===== */
.reveal, .reveal-img {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 1s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--delay, 0s);
}
.reveal-img {
  transform: translateY(20px) scale(0.98);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Scroll indicator ===== */
@keyframes scroll {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
.animate-scroll { animation: scroll 2s ease-in-out infinite; }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 35s linear infinite;
  align-items: center;
}
.marquee-item { white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Menu items ===== */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed rgba(245,239,230,0.15);
  transition: padding .3s ease;
}
.menu-item:hover { padding-left: 0.5rem; }
.menu-item:last-child { border-bottom: none; }

/* ===== Menu tabs ===== */
.menu-tab {
  padding: 0.6rem 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: 1px solid rgba(245,239,230,0.3);
  color: rgba(245,239,230,0.7);
  background: transparent;
  cursor: pointer;
  transition: all .35s ease;
}
.menu-tab:hover { color: var(--crema); border-color: var(--oro); }
.menu-tab.active {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--espresso);
}

/* ===== Form input ===== */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(31,20,16,0.25);
  padding: 0.9rem 0;
  font-size: 0.95rem;
  color: var(--espresso);
  transition: border-color .3s ease;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-bottom-color: var(--oro);
}
.form-input::placeholder { color: rgba(31,20,16,0.4); }

/* ===== Section nav scroll state ===== */
#nav.nav-scrolled {
  background: rgba(245,239,230,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(31,20,16,0.08);
}
#nav.nav-scrolled .text-crema,
#nav.nav-scrolled .text-espresso { color: var(--espresso); }

/* The nav uses cream text on hero; when scrolled it becomes dark */
#nav { color: var(--crema); }
#nav.nav-scrolled { color: var(--espresso); }

/* ===== Smooth image reveal ===== */
.reveal-img {
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}

/* ===== Mobile link ===== */
.mobile-link { padding: 0.5rem 0; }

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}