/* XD LTD - component styles (plain CSS, works alongside the Tailwind CDN) */

:root {
  --navy: #1F3A5F;
  --amber: #E07A1F;
  --amber-light: #F3A35C;
  --amber-dark: #A8540E;
  --ink: #14202E;
  --mist: #F5F7FA;
  --neutral: #8A94A6;
  --muted: #5B6678;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

/* Anchor targets clear the sticky header */
section[id], main {
  scroll-margin-top: 5rem;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* Navigation */
.nav-link {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: var(--mist); color: var(--navy); }

.mobile-link {
  display: block;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid rgba(20, 32, 46, 0.08);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.mobile-link:hover { color: var(--navy); }
#mobile-menu li:last-child .mobile-link { border-bottom: 0; }

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover { background: var(--amber-light); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-primary:focus-visible,
.btn-ghost:focus-visible { outline-color: #fff; }

/* Hero background */
.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(224, 122, 31, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(245, 247, 250, 0.10), transparent 60%),
    linear-gradient(160deg, #1F3A5F 0%, #172C48 60%, #14202E 100%);
}

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.section-title {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

/* Cards */
.card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid rgba(20, 32, 46, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 46, 0.04), 0 8px 24px -12px rgba(20, 32, 46, 0.12);
}
@media (min-width: 768px) { .card { padding: 2rem; } }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.875rem;
  background: var(--navy);
  color: var(--amber-light);
}
.card-title {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
}
.card-text {
  margin-top: 0.625rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}
.card-list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 32, 46, 0.08);
  list-style: none;
}
.card-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  line-height: 1.55;
  color: var(--muted);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* Why us */
.why-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}
.why-mark {
  display: block;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber-dark);
}
.why-title {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.why-text {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Footer */
.footer-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer-link:hover { color: #fff; text-decoration-color: var(--amber); }

/* Legal dialogs */
.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px -16px rgba(20, 32, 46, 0.45);
}
.legal-dialog::backdrop {
  background: rgba(20, 32, 46, 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 rgba(20, 32, 46, 0.1);
}
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 0;
  border-radius: 0.5rem;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}
.dialog-close:hover { background: #E6EAF0; }
.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  line-height: 1.7;
}
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
}
.legal-body p { margin-top: 0.5rem; }
.legal-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-body li { margin-top: 0.25rem; }

body.dialog-open { overflow: hidden; }

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