/* Custom styles for Lake Cumberland Primary Care */

:root {
  --emerald-950: #052e16;
  --emerald-900: #14532d;
  --emerald-800: #166534;
  --emerald-700: #15803d;
  --emerald-600: #16a34a;
  --emerald-500: #22c55e;
  --emerald-300: #86efac;
  --emerald-200: #bbf7d0;
  --emerald-100: #dcfce7;
  --emerald-50: #f0fdf4;
  --cream-50: #fdfcf8;
  --cream-100: #faf8f0;
}

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

/* Selection color */
::selection {
  background-color: rgba(21, 128, 61, 0.15);
  color: var(--emerald-900);
}

/* Mobile menu animation */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Scroll reveal animations (below the fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  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(20px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

/* Service card hover */
.service-card {
  transition: background-color 0.5s ease;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fdfcf8 inset !important;
  -webkit-text-fill-color: #14532d !important;
}
