/* AX Advisory - custom styles (plain CSS, used alongside the Tailwind CDN) */

:root {
  --navy: #1F3A5F;
  --navy-light: #2A4C78;
  --accent: #2BA6A0;
  --accent-dark: #1D7A75;
  --ink: #0F1B2A;
  --paper: #F5F7FA;
  --steel: #8A94A6;
}

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

section[id] { scroll-margin-top: 4.5rem; }

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

/* Focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.375rem;
}
main:focus { outline: none; }

/* Navigation */
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--navy); background: var(--paper); }

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: #1e293b;
}
.mobile-link:hover { background: var(--paper); color: var(--navy); }

/* Hero background */
.hero-bg {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(43, 166, 160, 0.22), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(31, 58, 95, 0.9), transparent 60%),
    linear-gradient(160deg, #0F1B2A 0%, #13253B 55%, #1F3A5F 100%);
}

/* Section headings */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.section-title {
  margin-top: 0.75rem;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 27, 42, 0.04);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover {
  border-color: rgba(43, 166, 160, 0.5);
  box-shadow: 0 12px 30px -12px rgba(15, 27, 42, 0.18);
  transform: translateY(-2px);
}
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.875rem;
  background: rgba(43, 166, 160, 0.12);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.card-title {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.card-text {
  margin-top: 0.75rem;
  line-height: 1.65;
  color: #334155;
}
.card-list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #334155;
}
.card-list li {
  position: relative;
  padding-left: 1.5rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

/* Why section */
.why-item {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.why-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
}
.fact-row {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 0;
}
@media (min-width: 480px) {
  .fact-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }
  .fact-row dd { text-align: right; }
}

/* Footer */
.footer-link {
  color: #cbd5e1;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.footer-link:hover { color: #fff; text-decoration-color: var(--accent); }

/* Legal dialogs */
.legal-dialog {
  width: min(44rem, calc(100% - 2rem));
  max-height: calc(100% - 3rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 25px 60px -15px rgba(15, 27, 42, 0.45);
}
.legal-dialog::backdrop {
  background: rgba(15, 27, 42, 0.65);
}
.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: #334155;
}
.dialog-close:hover { background: var(--paper); color: var(--navy); }
.dialog-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.75rem;
  line-height: 1.65;
  color: #334155;
}
.dialog-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}
.dialog-body p + p { margin-top: 0.75rem; }
.dialog-body ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.dialog-body li + li { margin-top: 0.25rem; }

body.dialog-open { overflow: hidden; }

/* Reduced motion */
@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;
  }
  .service-card:hover { transform: none; }
}
