/* Choi Consulting - small additions to Tailwind */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid #0FA3B1;
  outline-offset: 3px;
  border-radius: 4px;
}

[tabindex="-1"]:focus { outline: none; }

/* Subtle grid pattern behind the hero */
.hero-pattern {
  background-image:
    radial-gradient(ellipse at 80% 10%, rgba(15, 163, 177, 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(27, 42, 65, 0.9), transparent 60%),
    linear-gradient(rgba(244, 247, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 250, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

/* Legal dialogs */
dialog.legal-modal {
  width: calc(100% - 2rem);
  max-width: 44rem;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}

dialog.legal-modal::backdrop {
  background: rgba(13, 19, 33, 0.72);
}

.modal-open { overflow: hidden; }

.legal-body h3 {
  margin-top: 1.5rem;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  color: #1B2A41;
}

.legal-body p,
.legal-body ul { margin-top: 0.5rem; }

.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.legal-body a {
  color: #0B7A86;
  text-decoration: underline;
  text-underline-offset: 2px;
}
