  /* Custom styles for Rasmussen Sprinkler Specialists */

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Selection color */
  ::selection {
    background-color: #1B5E20;
    color: #faf9f4;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f5f3eb;
  }
  ::-webkit-scrollbar-thumb {
    background: #8fb57e;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #1B5E20;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(250, 249, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
  }

  /* Mobile menu animation */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Hero gradient animation */
  #hero {
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
  }

  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Fade-in animation on scroll */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

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

  .stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
  .stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

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

  /* Playfair Display italic fix */
  .font-serif em {
    font-style: italic;
  }

  /* Focus visible for accessibility */
  *:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Mobile menu link hover */
  .mobile-link {
    position: relative;
  }
  .mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1B5E20;
    transition: width 0.3s ease;
  }
  .mobile-link:hover::after {
    width: 100%;
  }
