/* ============================================
   Ddn Medical — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
  background: #d4c4b5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b91d46;
}

/* Selection */
::selection {
  background: #fce7eb;
  color: #3d0f17;
}

/* Reveal animations — progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
  .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-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Service card stagger */
.service-card {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .service-card[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(61, 15, 23, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Button focus rings */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #f4a0b5;
  outline-offset: 2px;
}

/* Smooth image loading */
img {
  background-color: #f9eddb;
  transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
  nav, #contact-form, #form-success, footer {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
