/* Custom styles for Harmony Dental website */

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

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Header shadow on scroll */
#header.scrolled {
  box-shadow: 0 4px 20px -4px rgb(0 0 0 / 0.08);
}

/* Service cards subtle lift */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Form input polish */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Success state animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#form-success {
  animation: fadeInUp 0.4s ease-out;
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles (basic) */
@media print {
  header,
  #mobile-menu,
  footer,
  #contact-form button {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .service-card,
  #header {
    transition: none;
  }
}
