/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== NAV ===== */
#nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#nav.scrolled {
  background: rgba(253, 249, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}
.nav-logo-path { stroke: currentColor; color: #3D2B1F; transition: color 0.5s ease; }
#nav.scrolled .nav-logo-path { color: #3D2B1F; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C07050;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== MOBILE MENU ===== */
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:first-child { transform: rotate(45deg) translate(3px, 3px); }
#menu-btn.active .menu-line:last-child { transform: rotate(-45deg) translate(2px, -2px); }
#mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-link { transition: opacity 0.3s ease; }

/* ===== HERO ANIMATIONS ===== */
@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}
.animate-slow-zoom {
  animation: slowZoom 20s ease-out forwards;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s ease forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.3s; }
.hero-reveal:nth-child(2) { animation-delay: 0.5s; }
.hero-reveal:nth-child(3) { animation-delay: 0.7s; }
.hero-reveal:nth-child(4) { animation-delay: 0.9s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid #C07050;
  outline-offset: 2px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(192, 112, 80, 0.15);
  color: #3D2B1F;
}

/* ===== DATE INPUTS ===== */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.4) sepia(0.3);
  cursor: pointer;
}

/* ===== SUBTLE PATTERN OVERLAY ===== */
.bg-sand-50 {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(243, 237, 224, 0.5) 0%, transparent 70%);
}
