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

:root {
  --emerald-600: #059669;
  --emerald-700: #047857;
  --cream-50: #FAFAF5;
}

html {
  scroll-behavior: smooth;
}

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

/* Reveal animations — progressive enhancement, only when JS runs */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34D399;
}

/* Selection color */
::selection {
  background: #D1FAE5;
  color: #064E3B;
}

/* Smooth focus outlines */
a:focus-visible, button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobileMenu.open {
  max-height: 400px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Subtle hover lift for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}
