/* Urban Pathways — public site styles
   Brand: Navy #0a1628, Blue #1a6fc4, Teal #0d9488
   Type: DM Sans (body), Instrument Serif (display)
   Contrast pairs verified against WCAG AA — see delivery notes. */

:root {
  --navy: #0a1628;
  --blue: #1a6fc4;
  --teal: #0d9488;       /* decorative use: borders, icons, badge backgrounds paired with --navy text */
  --teal-deep: #0b7a70;  /* text-safe teal: white text on this background passes AA */
  --ink: #0a1628;
  --muted: #3d4c5f;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --border: #dbe3ea;
  --accent-light-teal: #7fe0d3;
  --accent-light-blue: #9cc9f2;
  --focus: #f2b705;

  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 72rem;
  --radius: 0.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-top: 1.75rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; }

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--teal-deep); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: var(--accent-light-teal); }

.brand-mark {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}
.brand-mark svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-family {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light-teal);
  font-weight: 700;
}

.brand-product {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.15s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: #eef2f6;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent-light-teal);
}

.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--accent-light-teal);
  color: #fff;
}

.cta-button {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.cta-button:hover,
.cta-button:focus-visible {
  background: var(--teal-deep);
  color: #fff !important;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .cta-button { text-align: center; }
}

/* ---------- Hero / sections ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #10233d 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hero .container { max-width: 52rem; }
.hero h1 { color: #fff; }
.hero .lede {
  font-size: 1.15rem;
  color: #dbe6f0;
  max-width: 46rem;
}
.hero .cta-button { margin-top: 1.25rem; font-size: 1.02rem; padding: 0.75rem 1.4rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}
.hero .eyebrow { color: var(--accent-light-teal); }

section.block {
  padding: 3rem 0;
}
section.block.soft {
  background: var(--bg-soft);
}
section.block.navy {
  background: var(--navy);
  color: #fff;
}
section.block.navy h2,
section.block.navy h3 { color: #fff; }
section.block.navy a:not(.cta-button) { color: var(--accent-light-blue); }
section.block.navy .eyebrow { color: var(--accent-light-teal); }

.block .container { max-width: 50rem; }
.block.wide .container { max-width: var(--container); }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
section.block.soft .card { background: #fff; }

.card h3 { margin-top: 0; }
.card .tagline {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.faq {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.25rem;
}
.faq p { font-style: italic; color: var(--muted); }

/* ---------- Table (five-factor method) ---------- */

.factor-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

table.factor-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}

table.factor-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

table.factor-table th,
table.factor-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

table.factor-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

table.factor-table tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

.weight-cell {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ---------- Badges (confidence tier) ---------- */

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.callout {
  border-left: 4px solid var(--teal);
  background: var(--bg-soft);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p { color: var(--navy); }
.callout.warn {
  border-left-color: var(--blue);
}

.corridor-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.corridor-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.corridor-list strong { color: var(--navy); }

/* ---------- Persona grid (Who it's for) ---------- */

.persona {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  background: #fff;
}
.persona h3 { margin-top: 0; }
.persona .tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

/* ---------- Request page form-like block ---------- */

.request-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.request-panel .cta-button {
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #eef2f6;
  padding: 2.75rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.footer-family {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-nav a {
  color: var(--accent-light-blue);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent-light-teal); }

.footer-legal p {
  font-size: 0.9rem;
  color: #c8d3dd;
}

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #c8d3dd;
}

/* ---------- Utility ---------- */

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.source-tag {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
