/* ========================================
   Boston French Language — Custom Styles
   ======================================== */

/* Scroll-behavior for smooth anchor scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #D4A84B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion — disable all custom animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-bounce {
    animation: none !important;
  }
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   Only applies when JS is enabled AND
   the user hasn't requested reduced motion
   ======================================== */
.reveal {
  /* Default state: fully visible — no JS required */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .reveal {
  /* Hidden state — only when JS runs */
  opacity: 0;
  transform: translateY(24px);
}

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

/* Staggered delays for grid items */
.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   Header scroll state
   ======================================== */
#header {
  /* Header is transparent over hero by default */
}

#header.scrolled #header-bg {
  opacity: 1;
}

/* ========================================
   Mobile menu open state
   ======================================== */
#mobile-menu.open {
  max-height: 400px;
}

/* ========================================
   Custom select arrow
   ======================================== */
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='%231E3A5F' stroke-width='2.5' 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;
}

/* ========================================
   Selection color
   ======================================== */
::selection {
  background-color: #D4A84B;
  color: #0F2138;
}

/* ========================================
   Utility: scroll margin for fixed header
   ======================================== */
[id] {
  scroll-margin-top: 80px;
}
