/* Custom styles for Function First Integrative Health */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #c4c4cc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0a0aa;
}

/* Selection color */
::selection {
  background: #f06040;
  color: #fff;
}

/* Mobile menu animations */
#mobile-menu.open {
  max-height: 400px;
}

#bar1.open {
  transform: translateY(4px) rotate(45deg);
}

#bar2.open {
  opacity: 0;
}

#bar3.open {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* Subtle hover effects on service cards */
#services .group:hover h3 {
  color: #f06040;
  transition: color 0.3s ease;
}

/* Input focus animations */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(240, 96, 64, 0.1);
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Thin decorative line animation on scroll */
@keyframes lineGrow {
  from { width: 0; }
  to { width: 3rem; }
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Navbar scroll state */
nav.scrolled {
  box-shadow: 0 1px 20px rgba(26, 26, 31, 0.06);
}

/* Image hover zoom */
.overflow-hidden img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overflow-hidden:hover img {
  transform: scale(1.02);
}

/* Ensure all text meets WCAG AA contrast */
/* Charcoal 900 (#1a1a1f) on white: ~15:1 ✓ */
/* Charcoal 700 (#3a3a44) on white: ~11:1 ✓ */
/* Charcoal 600 (#4a4a55) on white: ~9:1 ✓ */
/* Charcoal 600 (#4a4a55) on charcoal 900 (#1a1a1f): ~7:1 ✓ */
/* Coral 500 (#f06040) on charcoal 900 (#1a1a1f): ~5.5:1 ✓ */
/* Coral 500 (#f06040) on white: ~3.5:1 — used for accents only, not body text */
/* Coral 400 (#ff8a6e) on charcoal 900: ~7:1 ✓ */
/* Coral 600 (#e04a28) on white: ~4.8:1 ✓ */
</style>
