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

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

  /* Selection color */
  ::selection {
    background: color-mix(in srgb, #047857 80%, transparent);
    color: #fefdf8;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #ecfdf5;
  }
  ::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #065f46;
  }

  /* Mobile menu transitions */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  #mobile-menu.open {
    max-height: 500px;
  }

  /* Scroll-reveal base: always visible (progressive enhancement) */
  .scroll-animate {
    opacity: 1;
    transform: none;
  }

  /* Only apply animation when JS is available and user prefers motion */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-animate {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .scroll-animate.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Focus visible for keyboard users */
  *:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Mobile link hover */
  .mobile-link:hover {
    background: color-mix(in srgb, #047857 8%, transparent);
  }

  /* Hero gradient animation */
  @keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* Subtle image hover for gallery */
  .aspect-square img {
    transition: transform 0.5s ease;
  }

  /* Print styles */
  @media print {
    header, footer, #contact-form, #form-success {
      display: none !important;
    }
    body {
      color: #000;
      background: #fff;
    }
    .scroll-animate {
      opacity: 1;
      transform: none;
    }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .aspect-square img {
      transition: none;
    }
  }
