/* AASD MARKET OLD LTD - small additions to Tailwind utilities */

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #1B232C;
  color: #fff;
  font-weight: 500;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid #E39B2D;
  outline-offset: 3px;
  border-radius: 0.375rem;
}
#main:focus { outline: none; }

.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(227, 155, 45, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(246, 244, 239, 0.08), transparent 60%),
    linear-gradient(135deg, #1F4E79 0%, #173B5C 55%, #1B232C 100%);
}

.nav-link { color: #1B232C; position: relative; }
.nav-link:hover { color: #1F4E79; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.35rem;
  height: 2px;
  background: #E39B2D;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F4E79;
}
.section-title {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1B232C;
}

.card {
  border: 1px solid rgba(27, 35, 44, 0.08);
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(27, 35, 44, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(31, 78, 121, 0.35); }
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.875rem;
  background: rgba(31, 78, 121, 0.08);
  color: #1F4E79;
}
.card-title {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1B232C;
}
.card-text { margin-top: 0.75rem; line-height: 1.7; color: #334155; }

.fact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.fact-value {
  margin-top: 0.4rem;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.footer-link { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.footer-link:hover { color: #fff; text-decoration-color: #E39B2D; }

/* Legal modals */
.legal-modal {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: #1B232C;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.legal-modal::backdrop { background: rgba(27, 35, 44, 0.65); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(27, 35, 44, 0.1);
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: #1B232C;
}
.modal-close:hover { background: rgba(27, 35, 44, 0.06); }
.modal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.75rem; line-height: 1.7; color: #334155; }
.modal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1B232C;
}
.modal-body p + p { margin-top: 0.6rem; }
.modal-body ul { margin: 0.5rem 0 0.6rem 1.25rem; list-style: disc; }

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;
  }
  .card:hover { transform: none; }
}
