  /* Custom styles for Wantagh Fire District */

  html {
    scroll-behavior: smooth;
  }

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

  /* Navigation */
  .nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .nav.scrolled {
    background-color: rgba(107, 39, 55, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4A017;
    transition: width 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  /* Buttons */
  .btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }

  .btn-primary:active {
    transform: scale(0.98);
  }

  .btn-secondary {
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .btn-secondary:active {
    transform: scale(0.98);
  }

  /* Cards */
  .card-service {
    transform: translateY(0);
  }

  .card-service:hover {
    transform: translateY(-4px);
  }

  .card-community {
    transform: translateY(0);
  }

  .card-community:hover {
    transform: translateY(-4px);
  }

  /* Reveal animations - progressive enhancement, only when JS runs and motion is preferred */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-hidden {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
  }

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

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

  .mobile-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }

  .mobile-link:last-child {
    border-bottom: none;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }

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

  ::-webkit-scrollbar-thumb {
    background: #944d6b;
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #7a3a54;
  }

  /* Focus styles */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
  }

  /* Selection */
  ::selection {
    background-color: #D4A017;
    color: #2d1319;
  }

  /* Reduce motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html {
      scroll-behavior: auto;
    }
  }
