/* Custom styles for Wilde Chiropractic Center */

/* Smooth scroll offset for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

/* Subtle pattern overlay for cream backgrounds */
.bg-cream-50 {
  background-image: radial-gradient(circle at 1px 1px, rgba(51, 82, 38, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fafaf2;
}
::-webkit-scrollbar-thumb {
  background: #9dbe82;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #55843a;
}

/* Selection color */
::selection {
  background: #c6d9b3;
  color: #111b0c;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #55843a;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #site-header,
  #mobile-menu,
  .animate-bounce {
    display: none !important;
  }
  body {
    color: #1a1a1a;
    background: white;
  }
  .bg-gradient-to-br,
  section:first-of-type {
    background: white !important;
    color: #1a1a1a !important;
  }
}

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

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .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; }
}
