/* Custom styles for Dr. Robert Mantoni website */

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

/* Mobile menu transitions */
#mobileMenu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Mobile link transitions */
.mobile-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  padding-left: 0.5rem;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-state="hidden"] {
  opacity: 0;
  transform: translateY(30px);
}

/* Staggered delays for service cards */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* Header scroll state */
#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#header.scrolled .text-slate-800 {
  color: #1e293b !important;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal[data-reveal-state="hidden"] {
    opacity: 1;
    transform: none;
  }
  .animate-pulse {
    animation: none;
  }
}

/* Print styles */
@media print {
  #header, #mobileMenu, .reveal { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
