/* IMI Frank's Carwash - small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid #0B5FA5;
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: #19C3E6;
}

/* Modals */
dialog::backdrop {
  background: rgba(15, 30, 46, 0.72);
}

html:has(dialog[open]) {
  overflow: hidden;
}

/* Gentle foam movement in the hero illustration */
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bubble {
  transform-box: fill-box;
  animation: bubble-float 6s ease-in-out infinite;
}

.bubble-delay-1 { animation-delay: -2s; }
.bubble-delay-2 { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
