/* AllGoods Outlet: small additions to the Tailwind utilities */

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

section[id],
main[id] {
  scroll-margin-top: 5rem;
}

main:focus,
section:focus {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: #1B1F24;
  color: #ffffff;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Visible focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #F2A541;
  outline-offset: 3px;
  border-radius: 0.375rem;
}

/* Navigation */
.nav-link {
  color: #1B1F24;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  color: #1F4E79;
  border-bottom-color: #F2A541;
}

/* Section labels */
.eyebrow {
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F4E79;
}
.eyebrow-dark {
  color: #F2A541;
}

/* Hero background pattern */
.hero-pattern {
  background-image:
    radial-gradient(circle at 85% 15%, rgba(242, 165, 65, 0.28), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.10), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}

/* Cards */
.card {
  border-radius: 1.5rem;
  background: #F7F5F0;
  padding: 2rem;
  border: 1px solid rgba(27, 31, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(31, 78, 121, 0.25);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: #ffffff;
  color: #1F4E79;
  box-shadow: 0 1px 2px rgba(27, 31, 36, 0.08);
}

/* Key facts */
.fact {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #F2A541;
  box-shadow: 0 1px 2px rgba(27, 31, 36, 0.06);
}
.fact-label {
  font-size: 0.875rem;
  color: #475569;
}
.fact-value {
  margin-top: 0.25rem;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1B1F24;
}

/* Footer */
.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.footer-link:hover {
  color: #ffffff;
  text-decoration-color: #F2A541;
}

/* Legal dialogs */
.legal-modal {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: #ffffff;
  color: #1B1F24;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
}
.legal-modal::backdrop {
  background: rgba(27, 31, 36, 0.65);
}
.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E7E2D6;
}
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  line-height: 1.65;
  color: #334155;
}
.legal-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1B1F24;
}
.legal-body p + p {
  margin-top: 0.75rem;
}
.legal-body ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
  list-style: disc;
}
.legal-body li + li {
  margin-top: 0.25rem;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  color: #1B1F24;
  background: #F7F5F0;
  transition: background 0.15s ease;
}
.modal-close:hover {
  background: #E7E2D6;
}

html.modal-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .legal-head { padding: 1.5rem 2rem; }
  .legal-body { padding: 1.5rem 2rem 2rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html,
  html.scroll-smooth {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover {
    transform: none;
  }
}
