/* ============================================
   Jeffrey Garbi Medical — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: #d9a7b8;
  color: #2a1119;
}

/* Navigation scroll state */
.nav-scrolled {
  background: rgba(250, 245, 247, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(111, 44, 67, 0.08);
}

.nav-scrolled .nav-logo {
  color: #6f2c43 !important;
}

.nav-scrolled a:not(.bg-plum-700) {
  color: #6f2c43 !important;
}

/* Mobile menu */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Reveal animations — progressive enhancement, gated behind JS and prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

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

/* Approach item */
.approach-item {
  transition: background-color 0.4s ease;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #d9a7b8;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #faf5f7;
}

::-webkit-scrollbar-thumb {
  background: #d9a7b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c0748e;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #f5e9ed 0%, #ebd0d9 100%);
}

/* Thin decorative line animation */
@keyframes line-expand {
  from { width: 0; }
  to { width: 100%; }
}

/* Print styles */
@media print {
  nav, #mobile-menu, .reveal { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
