/* Nexpath Centre for Law, Governance and Policy — site styles
   Colours taken from the Nexpath logo. No external fonts or services. */

:root {
  --navy: #12284c;
  --navy-deep: #0c1c36;
  --navy-soft: #1d3a66;
  --gold: #c9a24a;
  --gold-dark: #8a6a22;      /* gold dark enough for text on white */
  --ink: #1b2330;
  --muted: #4d5869;
  --line: #dfe3ea;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --radius: 10px;
  --max: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .6em 1em; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; letter-spacing: .22em; font-size: 1.05rem; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; font: inherit; color: var(--navy); cursor: pointer; }
.nav-toggle-bars { display: inline-block; width: 20px; height: 2px; background: var(--navy); position: relative; vertical-align: middle; margin-right: .4rem; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav li { margin: 0; position: relative; }
.site-nav a, .sub-toggle { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-size: .97rem; border-radius: 6px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.site-nav a:hover, .sub-toggle:hover { background: var(--mist); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.sub-toggle::after { content: ""; display: inline-block; margin-left: .4rem; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.sub { list-style: none; margin: 0; padding: .4rem; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(18,40,76,.12); display: none; }
.has-sub.open .sub, .has-sub:focus-within .sub { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover .sub { display: block; } }
.nav-cta a { background: var(--navy); color: #fff !important; padding: .6rem 1rem; margin-left: .4rem; }
.nav-cta a:hover { background: var(--navy-soft); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(18,40,76,.1); }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: 0; }
  .site-nav a, .sub-toggle { padding: .8rem .5rem; width: 100%; text-align: left; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .sub-toggle::after { display: none; }
  .nav-cta a { margin: .75rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d8b45f; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #e8edf5; position: relative; overflow: hidden; }
.hero-inner { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.18rem; color: #d3dbe8; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; display: block; }
.hero-art { position: absolute; right: -40px; bottom: -10px; width: min(560px, 55vw); opacity: .9; z-index: 0; pointer-events: none; }
.hero-art .ring { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.hero-art .path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .dot { fill: var(--gold); }
@media (max-width: 760px) { .hero-art { opacity: .35; width: 90vw; right: -30vw; } }

.page-hero { background: var(--navy); color: #d3dbe8; }
.page-hero .wrap { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p { max-width: 720px; font-size: 1.12rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.2rem; }

.statement { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.4; color: var(--navy); max-width: 900px; margin: 0; }
.statement strong { color: var(--gold-dark); font-weight: 600; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; position: relative; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--navy); }
.card .more::after { content: " \2192"; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(18,40,76,.08); transform: translateY(-2px); }
.card-num { font-family: var(--serif); color: var(--gold-dark); font-size: .95rem; letter-spacing: .1em; margin-bottom: .6rem; }

.areas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2.5rem; }
.areas li { border-top: 1px solid var(--line); padding: 1.2rem 0 1.1rem; margin: 0; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .6rem; }
.areas .n { font-family: var(--serif); color: var(--gold-dark); font-size: 1.05rem; grid-row: span 2; }
.areas h3 { font-size: 1.15rem; margin: 0; }
.areas p { margin: .2rem 0 0; color: var(--muted); font-size: .98rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.3rem; border-top: 3px solid var(--gold); margin: 0; box-shadow: 0 1px 0 var(--line); }
.steps li::before { content: "Stage " counter(step); display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--gold-dark); font-weight: 700; margin-bottom: .4rem; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 2px; transform: rotate(45deg); }
.cols-2 { columns: 2 300px; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.values li { margin: 0; padding: 1.2rem; background: var(--mist); border-radius: var(--radius); }
.values strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.15rem; margin-bottom: .25rem; }
.values span { color: var(--muted); font-size: .97rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.leader { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.leader img { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(18,40,76,.15); }
.leader .role { color: var(--gold-dark); font-weight: 600; letter-spacing: .04em; margin-top: -.4rem; }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader img { max-width: 260px; } }

.teaser { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; }
.teaser img { border-radius: var(--radius); }
@media (max-width: 640px) { .teaser { grid-template-columns: 1fr; } .teaser img { max-width: 160px; } }

.note { background: var(--mist); border-left: 4px solid var(--gold); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

.compare { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .98rem; }
.compare th, .compare td { border: 1px solid var(--line); padding: .8rem .9rem; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 600; }
.compare tbody th { background: var(--mist); color: var(--navy); width: 26%; }
.compare.two tbody th { width: 46%; }
.table-scroll { overflow-x: auto; }

.cta-band { background: var(--navy-deep); color: #d3dbe8; }
.cta-band .wrap { padding-top: clamp(2.8rem, 6vw, 4rem); padding-bottom: clamp(2.8rem, 6vw, 4rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Prose pages ---------- */
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.prose dt { font-weight: 600; color: var(--navy); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: .6rem; } }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-dark); font-weight: 700; }
.contact-list a { font-size: 1.1rem; text-decoration: none; color: var(--navy); }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 4vw, 2.2rem); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.form legend { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 600; margin-bottom: .9rem; padding: 0; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); font-size: .97rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .9rem; }
.req { color: #a3271f; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #b9c1cd; border-radius: 8px; padding: .72rem .8rem; min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201,162,74,.55); outline-offset: 0; border-color: var(--navy); }
input[type="file"] { font: inherit; font-size: .95rem; width: 100%; padding: .7rem; border: 1px dashed #b9c1cd; border-radius: 8px; background: var(--mist); }
.hint { display: block; color: var(--muted); font-size: .88rem; margin-top: .3rem; font-weight: 400; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; margin-bottom: .7rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--navy); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error-msg { color: #a3271f; font-weight: 600; margin-top: .4rem; display: none; }
.form-error-msg.show { display: block; }
.form .btn { min-width: 220px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cddc; font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-top: 3.2rem; padding-bottom: 2.4rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--sans); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #e3e9f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand img { width: 52px; height: 52px; border-radius: 6px; margin-bottom: .9rem; }
.footer-brand p { margin: 0; max-width: 300px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; padding-bottom: 1.6rem; font-size: .86rem; color: #a9b6c9; }
.footer-legal p { margin: 0 0 .35rem; }

@media print {
  .site-header, .site-footer, .cta-band, .hero-art, .nav-toggle { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
