/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* ── Navigation ──────────────────────────────────── */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 108, 0.1);
}
#header-bg {
  background: rgba(26, 20, 16, 0);
  transition: background 0.5s ease;
}
#site-header.scrolled #header-bg {
  background: rgba(26, 20, 16, 0.95);
}

/* ── Mobile Menu ─────────────────────────────────── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}
.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #e8d5c0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-link:hover {
  color: #c9a86c;
}

/* ── Nav Links ───────────────────────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a86c;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Hero ────────────────────────────────────────── */
.hero-section {
  position: relative;
}

/* ── Button Hover Glow ───────────────────────────── */
button:hover,
a:hover {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Custom Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1410;
}
::-webkit-scrollbar-thumb {
  background: #5c5047;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a86c;
}

/* ── Selection ────────────────────────────────────── */
::selection {
  background: rgba(201, 168, 108, 0.3);
  color: #f7f0e8;
}

/* ── Input Autofill ──────────────────────────────── */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a1410 inset !important;
  -webkit-text-fill-color: #e8d5c0 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Map Invert Fix ──────────────────────────────── */
iframe[style*="invert"] {
  border-radius: 0 0 4px 4px;
}
