/* ==========================================================================
   Gordon Joseph & Associates — Design System
   Adapted from the "Mercury" reference (styles.refero.design) — alpine
   banking aesthetic: near-black canvas, single cobalt accent, restrained
   type, pill controls, no shadows. Fonts substituted with free, self-hosted
   Google Fonts equivalents (arcadia -> Inter, arcadiaDisplay -> Bricolage
   Grotesque) since the reference typefaces are proprietary.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;480;500&family=Bricolage+Grotesque:opsz,wght@12..96,400..600&display=swap');

:root {
  /* Colors */
  --color-onyx-canvas: #171721;
  --color-graphite-card: #1e1e2a;
  --color-obsidian-button: #272735;
  --color-slate-border: #70707d;
  --color-mist-border: #e2e3ed;
  --color-ash-text: #c3c3cc;
  --color-ivory-text: #ededf3;
  --color-cobalt: #5266eb;
  --color-cobalt-hover: #6577f0;
  --color-pure-white: #ffffff;

  /* Fonts */
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Type scale */
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-body-lg: 18px;
  --text-subheading: 21px;
  --text-heading-sm: 28px;
  --text-heading: 32px;
  --text-heading-lg: 42px;
  --text-display-sm: 49px;
  --text-display: 65px;

  /* Spacing */
  --sp-4: 4px;   --sp-8: 8px;   --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-32: 32px; --sp-40: 40px;
  --sp-56: 56px; --sp-72: 72px; --sp-112: 112px; --sp-128: 128px;

  /* Radius */
  --radius-default: 4px;
  --radius-cards: 12px;
  --radius-inputs: 32px;
  --radius-buttons: 32px;
  --radius-nav: 40px;
  --radius-tags: 40px;

  --max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-onyx-canvas);
  color: var(--color-ivory-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  color: var(--color-ivory-text);
}
.text-display { font-size: var(--text-display); line-height: 1.1; letter-spacing: -0.01em; }
.text-heading-lg { font-size: var(--text-heading-lg); line-height: 1.15; letter-spacing: 0.42px; }
.text-heading { font-size: var(--text-heading); line-height: 1.15; letter-spacing: 0.48px; }
.text-heading-sm { font-size: var(--text-heading-sm); line-height: 1.2; letter-spacing: 0.42px; }
.text-subheading {
  font-family: var(--font-body); font-weight: 360; font-size: var(--text-subheading);
  line-height: 1.35; color: var(--color-ash-text);
}
.text-body-lg { font-size: var(--text-body-lg); font-weight: 480; line-height: 1.35; }
.text-body-sm { font-size: var(--text-body-sm); line-height: 1.4; }
.text-caption {
  font-size: var(--text-caption); font-weight: 480; line-height: 1;
  letter-spacing: 0.12px; text-transform: uppercase;
}
.text-muted { color: var(--color-ash-text); }

@media (max-width: 720px) {
  .text-display { font-size: 40px; }
  .text-heading-lg { font-size: 32px; }
  .text-heading { font-size: 26px; }
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
}
.section {
  padding: var(--sp-72) 0;
}
@media (max-width: 720px) {
  .section { padding: var(--sp-56) 0; }
}
.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-40);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-cobalt);
  font-size: var(--text-caption);
  font-weight: 480;
  letter-spacing: 0.12px;
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}

.grid {
  display: grid;
  gap: var(--sp-32);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  border-radius: var(--radius-buttons);
  padding: 14px 28px;
  font-size: var(--text-body);
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-cobalt); color: var(--color-pure-white); }
.btn-primary:hover { background: var(--color-cobalt-hover); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-ivory-text);
  color: var(--color-ivory-text);
}
.btn-ghost:hover { background: var(--color-obsidian-button); }
.btn-secondary {
  background: var(--color-obsidian-button);
  color: var(--color-ivory-text);
}
.btn-secondary:hover { background: #313142; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 23, 33, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-obsidian-button);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-20) 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand span { color: var(--color-cobalt); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}
.nav-links a {
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-ivory-text); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-16); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-buttons);
  color: var(--color-ivory-text);
  padding: 8px 14px;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-20);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-onyx-canvas);
    border-bottom: 1px solid var(--color-obsidian-button);
    padding: var(--sp-24);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-128) 0 var(--sp-112);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 65%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23,23,33,0.55) 0%, rgba(23,23,33,0.88) 55%, var(--color-onyx-canvas) 100%);
}
.hero-content { max-width: 700px; }
.hero-content p.text-subheading { margin: var(--sp-24) 0 var(--sp-40); max-width: 560px; }
.hero-ctas { display: flex; gap: var(--sp-16); flex-wrap: wrap; }
.hero-note {
  margin-top: var(--sp-32);
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  color: var(--color-ash-text);
  font-size: var(--text-body-sm);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-cobalt); flex: none; }

@media (max-width: 720px) {
  .hero { padding: var(--sp-112) 0 var(--sp-72); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-graphite-card);
  border-radius: var(--radius-cards);
  padding: var(--sp-32);
}
.card h3 { margin-bottom: var(--sp-12); }
.card p { color: var(--color-ash-text); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-obsidian-button);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-24);
  color: var(--color-cobalt);
}

/* image card */
.media-card { overflow: hidden; padding: 0; }
.media-card img { width: 100%; height: 260px; object-fit: cover; }
.media-card .media-card-body { padding: var(--sp-24) var(--sp-32) var(--sp-32); }

/* ---------- Stats strip ---------- */
.stat {
  border-top: 1px solid var(--color-obsidian-button);
  padding-top: var(--sp-24);
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: var(--text-heading-lg);
  color: var(--color-cobalt);
  display: block;
  margin-bottom: var(--sp-8);
}
.stat p { color: var(--color-ash-text); font-size: var(--text-body-sm); }
.stat cite { display: block; margin-top: var(--sp-12); font-style: normal; font-size: 12px; color: var(--color-slate-border); }
.stat cite a { color: var(--color-slate-border); text-decoration: underline; }
.stat cite a:hover { color: var(--color-ash-text); }

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-block;
  border: 1px solid var(--color-slate-border);
  border-radius: var(--radius-tags);
  padding: 6px 16px;
  font-size: var(--text-caption);
  text-transform: none;
  color: var(--color-ash-text);
}

/* ---------- Quote / testimonial ---------- */
.quote-block {
  background: var(--color-graphite-card);
  border-radius: var(--radius-cards);
  padding: var(--sp-56) var(--sp-40);
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: var(--text-heading-sm);
  line-height: 1.35;
  max-width: 760px;
  margin: 0 auto var(--sp-24);
}
.quote-block cite { font-style: normal; color: var(--color-ash-text); font-size: var(--text-body-sm); }

/* ---------- Sections with image split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-72);
  align-items: center;
}
.split img {
  border-radius: var(--radius-cards);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-32); }
  .split.reverse .split-media { order: 0; }
  .split img { height: 280px; }
}
.split ul { margin-top: var(--sp-24); display: flex; flex-direction: column; gap: var(--sp-16); }
.split ul li { display: flex; gap: var(--sp-12); align-items: flex-start; color: var(--color-ash-text); }
.split ul li svg { flex: none; margin-top: 3px; color: var(--color-cobalt); }

/* ---------- Divider band ---------- */
.band {
  position: relative;
  padding: var(--sp-112) 0;
  background-size: cover;
  background-position: center;
}
.band::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(23,23,33,0.82);
}
.band .wrap { position: relative; }

/* ---------- Form ---------- */
.field { margin-bottom: var(--sp-20); }
.field label {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--color-ash-text);
  margin-bottom: var(--sp-8);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--color-obsidian-button);
  border: 1px solid var(--color-obsidian-button);
  color: var(--color-ivory-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 14px 20px;
  border-radius: var(--radius-inputs);
}
.field textarea { border-radius: var(--radius-cards); resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-cobalt);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-obsidian-button);
  padding: var(--sp-56) 0 var(--sp-40);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-32);
  margin-bottom: var(--sp-40);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 { font-size: var(--text-body-sm); margin-bottom: var(--sp-16); font-family: var(--font-body); font-weight: 500; }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--sp-12); }
.footer-grid a { color: var(--color-ash-text); font-size: var(--text-body-sm); }
.footer-grid a:hover { color: var(--color-ivory-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-32);
  border-top: 1px solid var(--color-obsidian-button);
  color: var(--color-slate-border);
  font-size: var(--text-caption);
  text-transform: none;
  flex-wrap: wrap;
  gap: var(--sp-16);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: var(--sp-112) 0 var(--sp-56);
  border-bottom: 1px solid var(--color-obsidian-button);
}
.page-header .eyebrow { margin-bottom: var(--sp-16); }
.page-header p.text-subheading { margin-top: var(--sp-20); max-width: 640px; }

/* ---------- Utility ---------- */
.mt-8 { margin-top: var(--sp-8); }
.mt-16 { margin-top: var(--sp-16); }
.mt-24 { margin-top: var(--sp-24); }
.mt-32 { margin-top: var(--sp-32); }
.mt-40 { margin-top: var(--sp-40); }
.mt-72 { margin-top: var(--sp-72); }
.center { text-align: center; }
