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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #c9a84c;
  color: #111d30;
}

/* ===== SCROLL REVEAL (Progressive Enhancement) ===== */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  /* Stagger delays handled by inline style-transition-delay on elements */
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(17, 29, 48, 0.15);
}

/* ===== BUTTON RIPPLE / HOVER EFFECTS ===== */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ===== FORM FOCUS STYLES ===== */
input:focus, textarea:focus {
  outline: none;
}

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

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 999px;
}

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

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 639px) {
  .font-serif {
    word-break: keep-all;
  }
}
