/* ─── Custom Styles for MCPN Clinic ─── */

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

/* Base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#site-header.scrolled {
  background: rgba(8, 19, 64, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8ee3bc;
  transition: width 0.25s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  position: relative;
}

/* Hero floating animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px) translateX(0); }
  50% { transform: translateY(-10px) translateX(6px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
.hero-float {
  animation-duration: 5s;
}
.float-1 { animation: float-slow 6s ease-in-out infinite; }
.float-2 { animation: float-medium 5s ease-in-out infinite; }

.hero-blob {
  animation: blob-drift 12s ease-in-out infinite alternate;
}
.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -4s; }
.blob-3 { animation-delay: -8s; }

@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* Scroll reveal — progressive enhancement */
.scroll-reveal {
  /* Default: fully visible */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal:nth-child(2) { transition-delay: 80ms; }
.scroll-reveal:nth-child(3) { transition-delay: 160ms; }
.scroll-reveal:nth-child(4) { transition-delay: 240ms; }
.scroll-reveal:nth-child(5) { transition-delay: 320ms; }
.scroll-reveal:nth-child(6) { transition-delay: 400ms; }

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #4fd39c;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(79, 211, 156, 0.3);
  color: #081340;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3ff;
}
::-webkit-scrollbar-thumb {
  background: #b3c2ff;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8aa3ff;
}

/* Print */
@media print {
  #site-header, .hero-float, .scroll-reveal { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
