/* ============================================
   WindFlower Natural Medicine — Custom Styles
   ============================================ */

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

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

/* Floating card animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 5.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Scroll reveal animations (below the fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom selection color */
::selection {
  background-color: rgb(78 163 120 / 0.3);
  color: rgb(10 31 18);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgb(250 249 246);
}
::-webkit-scrollbar-thumb {
  background: rgb(174 214 190);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(122 191 154);
}

/* Navbar transition states */
.header-scrolled {
  background: rgb(250 249 246 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgb(26 77 46 / 0.08);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Service card hover image effect */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgb(78 163 120);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #site-header,
  #menu-btn,
  #mobile-menu {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
