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

body {
  overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement, hidden only when JS runs */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
  padding: 0.75rem 0;
}

/* Header shadow on scroll */
#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1d30;
}
::-webkit-scrollbar-thumb {
  background: #273e69;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34518c;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #f0f3f9;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 2px;
  border-radius: 4px;
}
