/* ============================================================
   Gscore LLP — design tokens
   Concept: a compliance ledger/register, not a SaaS card grid.
   ============================================================ */
:root {
  --ink: #12213F;
  --ink-soft: #22335A;
  --paper: #F7F5F0;
  --paper-raised: #FFFFFF;
  --gold: #B98B2E;
  --gold-deep: #93701F;
  --slate: #4A5568;
  --slate-light: #7C879A;
  --line: #D8D2C4;
  --line-dark: #35446B;
  --verified: #2F6F5E;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;

  --max: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.35rem); }
h3 { font-size: 1.3rem; }

p { max-width: 62ch; margin: 0 0 1em; }

a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.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: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { color: var(--gold-deep); display: flex; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-suffix { font-size: 0.68rem; color: var(--slate-light); letter-spacing: 0.12em; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--slate);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
}

/* ============================================================
   Hero — seal motif
   ============================================================ */
.hero {
  background: var(--ink);
  color: #EDEFF6;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede {
  color: #C7CCDC;
  font-size: 1.1rem;
  max-width: 46ch;
  margin-top: 18px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.seal-figure { display: flex; justify-content: center; }
.seal-figure svg { width: 100%; max-width: 320px; height: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #C79A3F; }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 76px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head .kicker {
  font-family: var(--serif); font-style: italic; color: var(--gold-deep);
  display: block; margin-bottom: 10px; font-size: 1rem;
}
.alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============================================================
   Ledger rows — the service list, register-style not cards
   ============================================================ */
.ledger { border-top: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.ledger-row .num {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.1rem;
  padding-top: 2px;
}
.ledger-row h3 { margin-bottom: 6px; }
.ledger-row p { margin: 0; color: var(--slate); }
.ledger-row .go {
  color: var(--slate-light);
  align-self: center;
  font-size: 1.3rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.ledger-row:hover .go { color: var(--gold-deep); transform: translateX(3px); }

/* ============================================================
   Stat strip
   ============================================================ */
.stat-strip {
  background: var(--ink);
  color: #fff;
}
.stat-strip .wrap {
  display: flex;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 200px;
  padding: 40px 28px;
  border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: none; }
.stat .figure {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
}
.stat .label { color: #B7BEd2; font-size: 0.92rem; }

/* ============================================================
   Two-column feature block
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.doc-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.doc-card h4 {
  font-size: 1rem;
  text-transform: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.doc-card ul { margin: 0; padding-left: 20px; color: var(--slate); }
.doc-card li { margin-bottom: 8px; }

/* ============================================================
   Verified badge / list
   ============================================================ */
.verified-list { list-style: none; margin: 0; padding: 0; }
.verified-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.verified-list li:last-child { border-bottom: none; }
.verified-list .mark { color: var(--verified); flex-shrink: 0; }

/* ============================================================
   CTA band — gold seal
   ============================================================ */
.cta-band {
  background: var(--gold);
  color: var(--ink);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--ink); margin-bottom: 6px; }
.cta-band p { color: #4A3B14; margin: 0; }
.cta-band .btn-dark:hover { background: #000; }

/* ============================================================
   Cards (used sparingly — solutions groupings only)
   ============================================================ */
.solution-card {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: 30px;
  border-top: 3px solid var(--gold-deep);
}
.solution-card h3 { margin-bottom: 10px; }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   Forms
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--slate-light); margin-top: -6px; }

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info dl {
  margin: 0;
}
.contact-info dt {
  font-family: var(--serif);
  color: var(--ink);
  margin-top: 22px;
  font-size: 1rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 4px 0 0;
  color: var(--slate);
}

.alert {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.94rem;
}
.alert-success { background: #EAF2EE; border: 1px solid var(--verified); color: #1F4B3F; }
.alert-error { background: #FBEAEA; border: 1px solid #B24444; color: #7A2626; }

/* ============================================================
   Page hero (interior pages — quieter than home)
   ============================================================ */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 60px 0 50px;
}
.page-hero .kicker {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  display: block; margin-bottom: 10px;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: #C7CCDC; max-width: 56ch; margin-top: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #C7CCDC;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-name { font-family: var(--serif); color: #fff; font-size: 1.2rem; }
.footer-brand p { color: #99A1B8; margin-top: 10px; font-size: 0.92rem; }
.footer-col h3 {
  color: #fff; font-family: var(--sans); font-size: 0.85rem;
  letter-spacing: 0.04em; margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a { color: #C7CCDC; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 30px; font-size: 0.85rem; color: #7C879A;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 46px; }
  .seal-figure { order: -1; max-width: 200px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .solution-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-row { height: 66px; }
  .site-nav ul {
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 28px 18px;
    display: none;
  }
  .site-nav ul.open { display: flex; }
  .site-nav li { border-bottom: 1px dashed var(--line); }
  .site-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: flex; }
  section { padding: 52px 0; }
  .ledger-row { grid-template-columns: 40px 1fr; }
  .ledger-row .go { display: none; }
  .stat { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
