  /* Custom styles — overrides and enhancements beyond Tailwind */

  html {
    scroll-behavior: smooth;
  }

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

  /* Selection color */
  ::selection {
    background-color: #d4a843;
    color: #0f2740;
  }

  /* Header scroll state */
  #site-header.scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 58, 92, 0.08);
  }

  /* Mobile menu transitions */
  #mobile-menu {
    animation: slideDown 0.3s ease-out;
  }

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

  /* Scroll reveal animations */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  /* Stagger children */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
  .stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
  .stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
  .stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }

  .stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Image hover zoom */
  .group img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Form 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='%231a3a5c' 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;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #faf8f4;
  }
  ::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #0f2740;
  }
