/* ---------- Tokens ---------- */
:root {
  --ink: #1C1D1F;
  --paper: #FAFAF7;
  --paper-shade: #F1F0EA;
  --line: #DEDCD3;
  --line-strong: #B8B6AB;
  --slate: #5B6570;
  --red: #A3352C;
  --red-ink: #7A271F;

  --font-display: "Archivo Expanded", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1100px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 24px;
  top: 24px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wordmark-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 14px;
}
.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.mark-svg {
  width: 100%;
  height: auto;
  color: var(--ink);
}
.mark-tick { color: var(--red); stroke: var(--red); }
.mark-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  fill: var(--ink);
}
.mark-text-sm {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  fill: var(--slate);
  letter-spacing: 0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--red-ink); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.text-link, .text-link-sm {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}
.text-link { margin-top: 24px; font-size: 0.98rem; }
.text-link-sm { font-size: 0.9rem; margin-top: 12px; }

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Credentials */
.credentials-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.cred-suffix {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62em;
  color: var(--red-ink);
  vertical-align: middle;
  margin-left: 6px;
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fact-list li span {
  font-family: var(--font-mono);
  color: var(--slate);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Services preview */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.preview-card {
  background: var(--paper);
  padding: 28px;
}
.preview-card h3 { margin-bottom: 10px; }
.preview-card p { margin: 0; color: var(--slate); font-size: 0.94rem; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.why-note {
  background: var(--paper-shade);
  border-left: 3px solid var(--red);
  padding: 24px 28px;
}
.note-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-ink);
  margin-bottom: 10px;
}
.why-note p:not(.note-label) { color: var(--ink); }

/* CTA band */
.cta-band { border-bottom: none; padding: 56px 0 72px; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-band-inner h2 { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--slate);
}
.footer-row nav {
  display: flex;
  gap: 20px;
}
.footer-row nav a { text-decoration: none; color: var(--slate); }
.footer-row nav a:hover { color: var(--ink); }

/* ---------- Generic content page styles (services/articles/contact) ---------- */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 10px; }
.page-header p.lede { margin-top: 12px; }

.service-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.service-block:last-child { border-bottom: none; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-ink);
}
.service-block h2 { margin-top: 8px; }
.service-body ul { padding-left: 20px; color: var(--slate); }
.service-body li { margin-bottom: 6px; }

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}
.article-item:hover h3 { color: var(--red-ink); }
.article-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
}
.article-item h3 { margin-bottom: 6px; }
.article-item p { margin: 0; color: var(--slate); font-size: 0.94rem; }

.article-body {
  padding: 48px 0 72px;
  max-width: 70ch;
}
.article-body h2 { margin-top: 2em; }
.article-body p { color: var(--ink); }
.article-body ul, .article-body ol { color: var(--ink); padding-left: 22px; }
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 8px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
}
.back-link:hover { color: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px 0 72px;
  align-items: start;
}
.contact-info dl {
  margin: 0;
}
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-top: 20px;
}
.contact-info dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

form.enquiry {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
form.enquiry label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 2px;
}
form.enquiry input:focus,
form.enquiry select:focus,
form.enquiry textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
form.enquiry textarea { resize: vertical; min-height: 120px; }
form.enquiry .btn-primary {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .credentials-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark { max-width: 260px; }
  .preview-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 12px; }
  .article-item { grid-template-columns: 1fr; gap: 6px; }
  .site-nav { gap: 16px; }
  .wordmark-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
