/* M.A.I.C Holdings – 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;
  }
}

/* Keep section headings clear of the sticky header */
#main > section { scroll-margin-top: 5rem; }
#main:focus { outline: none; }

/* Two-tone focus ring: visible on both light and dark backgrounds */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #D9B46E;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #14202E;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #1F3A5F;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(20, 32, 46, 0.2);
}
.skip-link:focus { top: 1rem; }

/* Hero background: brand gradient with faint vertical rules */
.hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(184, 137, 59, 0.22), transparent 60%),
    linear-gradient(160deg, #1F3A5F 0%, #172A42 45%, #14202E 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

/* Shared components */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8C6420;
}

.nav-link {
  color: #14202E;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { color: #1F3A5F; border-bottom-color: #B8893B; }

.footer-link {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

.card {
  border: 1px solid rgba(20, 32, 46, 0.1);
  border-radius: 1rem;
  background: #F6F3EE;
  padding: 2rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: #1F3A5F;
  color: #D9B46E;
}

/* Modals */
.modal {
  width: calc(100% - 2rem);
  max-width: 42rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  color: #14202E;
  box-shadow: 0 25px 60px rgba(20, 32, 46, 0.35);
}
.modal::backdrop { background: rgba(20, 32, 46, 0.72); }
html.modal-open { overflow: hidden; }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  color: #1F3A5F;
}
.modal-close:hover { background: rgba(31, 58, 95, 0.08); }

.modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  color: #4E5866;
  line-height: 1.65;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .modal-body { padding: 1.5rem 2rem 2rem; }
}
.modal-body h3 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #14202E;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-top: 0.5rem; }
.modal-body a { color: #1F3A5F; text-decoration: underline; text-underline-offset: 3px; }
