/* ═══════════════════════════════════════════
   DENTAL THEME ANIMATIONS
   Extra animaties specifiek voor tandartspraktijk
═══════════════════════════════════════════ */

/* ── TOOTH ICON PULSE (Subtiel maar opvallend) ────────── */
.hero-tag::before,
.s-label::before {
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

/* ── STAT NUMBERS HIGHLIGHT ────────── */
.stat-num {
  position: relative;
  display: inline-block;
}

.stat-num::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.stat:hover .stat-num::after {
  opacity: 1;
}

/* ── TREATMENT ICON BOUNCE ON SCROLL ────────── */
.treat-icon {
  display: inline-block;
  animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-fill-mode: backwards;
}

.treat-card:nth-child(1) .treat-icon { animation-delay: 0.1s; }
.treat-card:nth-child(2) .treat-icon { animation-delay: 0.2s; }
.treat-card:nth-child(3) .treat-icon { animation-delay: 0.3s; }
.treat-card:nth-child(4) .treat-icon { animation-delay: 0.4s; }
.treat-card:nth-child(5) .treat-icon { animation-delay: 0.5s; }
.treat-card:nth-child(6) .treat-icon { animation-delay: 0.6s; }
.treat-card:nth-child(7) .treat-icon { animation-delay: 0.7s; }
.treat-card:nth-child(8) .treat-icon { animation-delay: 0.8s; }

@keyframes iconBounce {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ── TEAM BADGE - Remove shimmer (te druk) ────────── */
.team-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover .team-badge {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 4px 12px rgba(107, 143, 62, 0.4);
}

/* ── SPARKLE EFFECT ON ICONS ────────── */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.treat-icon::after {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
}

.treat-card:hover .treat-icon::after {
  animation: sparkle 1.2s ease-in-out infinite;
}

/* ── PHONE NUMBER HIGHLIGHT ────────── */
.nav-tel,
.spoed-number,
.bb-call-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-tel::after,
.spoed-number::after {
  content: '📞';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tel:hover::after,
.spoed-number:hover::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* ── SECTION HEADERS UNDERLINE DRAW ────────── */
.about-heading,
.treat-big,
h2 {
  position: relative;
  display: inline-block;
}

.about-heading::after,
.treat-big::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .about-heading::after,
.reveal.visible .treat-big::after {
  width: 60%;
}

/* ── APPOINTMENT CTA PULSE ────────── */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 143, 62, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(107, 143, 62, 0);
  }
}

.appt-cta .btn-g {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

/* ── HERO IMAGE DEPTH EFFECT ────────── */
.hero-img-wrap {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.hero-img-wrap:hover {
  transform: scale(1.02) translateZ(20px);
}

.hero-img-wrap img {
  transition: transform 0.3s ease;
}

.hero-img-wrap:hover img {
  transform: translateZ(10px);
}

/* ── INFO BLOCK ICON ROTATION ────────── */
.info-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-block:hover .info-icon {
  transform: rotate(360deg) scale(1.15);
}

/* ── SCROLL HINT GENTLE BOB ────────── */
.hero-scroll-hint {
  animation: gentleBob 2s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── STAT NUMBERS - Remove animation (te druk) ────────── */
.stat-num em {
  display: inline-block;
}

/* ── CARD NUMBER BADGE GLOW ────────── */
.treat-num {
  position: relative;
  transition: all 0.3s ease;
}

.treat-card:hover .treat-num {
  color: var(--green-light);
  text-shadow: 0 0 8px rgba(107, 143, 62, 0.6);
}

/* ── SMOOTH EMPHASIS ON COLORED TEXT ────────── */
em {
  transition: color 0.3s ease;
}

.reveal.visible em {
  animation: colorPulse 2s ease-in-out infinite;
}

@keyframes colorPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

/* ── DENTAL PROFESSIONAL BADGE ────────── */
.team-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover .team-badge {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 4px 12px rgba(107, 143, 62, 0.4);
}

/* ── ACCESSIBILITY: Emergency info highlight ────────── */
.emergency {
  position: relative;
  overflow: hidden;
}

.emergency::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: emergencyShine 4s ease-in-out infinite;
}

@keyframes emergencyShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ── SMOOTH FOCUS INDICATORS FOR ACCESSIBILITY ────────── */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 4px;
  border-radius: 4px;
  animation: focusPulse 1s ease-in-out;
}

@keyframes focusPulse {
  0%, 100% { outline-color: var(--green-light); }
  50% { outline-color: var(--green); }
}

/* ── DISABLE ANIMATIONS FOR REDUCED MOTION ────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
