/* ── Base & Typography ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #FAF7F5;
  color: #1C1917;
  line-height: 1.6;
}

::selection {
  background-color: #7B2D3B;
  color: #FAF7F5;
}

/* ── Nav Scroll State ── */
#site-header.scrolled {
  background-color: rgba(250, 247, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #7B2D3B;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #7B2D3B !important;
}

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

.menu-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: #1C1917;
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-nav-link {
  position: relative;
  color: #1C1917;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #7B2D3B;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #7B2D3B;
  transition: width 0.3s ease;
}

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

/* ── 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);
  }
}

/* Default state: always visible for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #FAF7F5;
}

::-webkit-scrollbar-thumb {
  background: #f9d0d9;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f4a8b8;
}

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

/* ── Button focus states ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 3px;
  border-radius: 9999px;
}

/* ── Smooth section transitions ── */
section {
  position: relative;
}
