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

html {
  scroll-behavior: smooth;
}

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

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

/* ===== SCROLL-REVEAL (progressive enhancement — content visible without JS) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVBAR SCROLLED STATE ===== */
#navbar.scrolled {
  background: rgba(250, 245, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(80, 35, 58, 0.08);
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5f7;
}
::-webkit-scrollbar-thumb {
  background: #d7a9c4;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a85580;
}
