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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  overflow-x: hidden;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #033d66 0%, #005fa3 35%, #C0593A 70%, #a8472e 100%);
}

/* Subtle dot pattern overlay */
.hero-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Nav scroll effect */
#siteNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#siteNav.nav-scrolled {
  background: rgba(253, 249, 243, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Scroll reveal base — content is visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile menu transitions */
#mobileMenu {
  animation: slideDown 0.2s 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, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #C0593A;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(192, 89, 58, 0.2);
  color: #033d66;
}

/* Smooth image loading */
img {
  max-width: 100%;
  height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5E6D3; }
::-webkit-scrollbar-thumb { background: #C0593A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8472e; }
