/* DSX Consulting - small additions to Tailwind */

html {
  scroll-padding-top: 5.5rem;
}

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

/* Hero background: navy to ink gradient with a faint grid */
.hero-bg {
  background-color: #1F3A5F;
  background-image:
    radial-gradient(ellipse at 85% 15%, rgba(200, 150, 62, 0.18), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #1F3A5F 0%, #172C48 55%, #121C2B 100%);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

#main:focus {
  outline: none;
}

/* Service cards */
.service-card:hover {
  border-color: rgba(200, 150, 62, 0.55);
  box-shadow: 0 18px 40px -24px rgba(18, 28, 43, 0.45);
}

/* Legal modals */
.legal-modal {
  margin: auto;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.legal-modal::backdrop {
  background: rgba(18, 28, 43, 0.72);
}

.legal-body h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #121C2B;
}

.legal-body p + p {
  margin-top: 0.6rem;
}

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

.legal-body li + li {
  margin-top: 0.25rem;
}

body.modal-open {
  overflow: hidden;
}

@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;
  }
}
