/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: #7B2D3B;
  color: #fff;
}

/* ========== NAV SCROLLED STATE ========== */
#nav.scrolled {
  background: rgba(254, 252, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

#nav.scrolled .font-display {
  color: #1a1614 !important;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
}

.menu-line {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* ========== MENU TABS ========== */
.menu-tab {
  background: transparent;
  color: #6b5c52;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}

.menu-tab.active {
  background: #7B2D3B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(123, 45, 59, 0.3);
}

.menu-tab:hover:not(.active) {
  background: #fdf0f2;
  color: #7B2D3B;
}

/* ========== SCROLL REVEAL ========== */
.reveal-item {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    transition: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  .menu-tab,
  .group:hover .menu-tab {
    transition: none;
  }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SUBTLE ANIMATIONS ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .font-display {
    line-height: 1.1;
  }
}
