/* Custom styles for Da Lab Customs */

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

/* Base font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — visible by default for progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Only apply hidden state when JS has run and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Floating card animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-float-slow { animation: float-slow 6s ease-in-out infinite; }
.hero-float-medium { animation: float-medium 5s ease-in-out infinite; }
.hero-float-fast { animation: float-fast 4.5s ease-in-out infinite; }

/* Subtle gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #2D5A2D 0%, #5E9B5D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
  background: #BDD6BE;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8FBC8E;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3D7A3C;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
  padding-bottom: 0.5rem;
}

/* Map container */
.rounded-3xl.overflow-hidden {
  position: relative;
}

/* Selection color */
::selection {
  background-color: #BDD6BE;
  color: #1C361C;
}
