/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }

/* ── Navigation ── */
#nav {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(93, 58, 90, 0.06);
}
#nav.scrolled {
  background: rgba(250, 250, 248, 0.95);
  box-shadow: 0 1px 20px rgba(93, 58, 90, 0.06);
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger ── */
.menu-line { display: block; }
body.menu-open .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
body.menu-open .menu-line:nth-child(2) { opacity: 0; }
body.menu-open .menu-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); width: 16px; }

/* ── Card Hover ── */
.card-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(93, 58, 90, 0.1);
}
.card-hover img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reveal Animations ── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  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-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Button Focus ── */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #D4A04A;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: rgba(93, 58, 90, 0.12);
  color: #382237;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAFAF8; }
::-webkit-scrollbar-thumb { background: #D9BDD9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #C08FBF; }
