/* Custom styles for Middle Georgia Total Health */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fef7f7;
}
::-webkit-scrollbar-thumb {
  background: #d94f4f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b93030;
}

/* Selection color */
::selection {
  background: #fce7e7;
  color: #741c1c;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .service-card:hover {
    transform: translateY(-4px);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(148, 32, 32, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }

/* Pulse animation for the dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Ensure all text is readable */
@media (prefers-reduced-motion: no-preference) {
  .group:hover .group-hover\:text-white {
    color: white;
  }
}

/* Print styles */
@media print {
  header, footer, .no-print {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
