/* ─── Base & Typography ─── */
html {
  scroll-behavior: smooth;
}

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

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

/* ─── Navigation ─── */
.nav-link {
  position: relative;
}

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

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

#navbar.scrolled {
  background: rgba(254, 253, 251, 0.92);
  backdrop-blur-xl;
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.06), 0 4px 20px rgba(123, 45, 59, 0.04);
}

#navbar.scrolled .nav-link {
  color: #4a4a4a;
}

/* ─── Mobile Menu ─── */
.mobile-nav-link {
  position: relative;
}

/* ─── Reveal Animations ─── */
.reveal-up,
.reveal-left {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-up.revealed,
.reveal-left.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Stagger children when parent has .stagger */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ─── Custom Select ─── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ─── Smooth image loading ─── */
img {
  background-color: #f5ebe0;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f4;
}
::-webkit-scrollbar-thumb {
  background: #f49aad;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ec6b80;
}

/* ─── Responsive adjustments ─── */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.15;
  }
}
