/* Artha Capital — arthagroup.ca
   Tokens: brand/tokens.css (inlined here so the site is a single stylesheet).
   Colour split 60 / 30 / 10: Warm Greige + White / Charcoal + Slate / Sage. */

:root {
  --charcoal: #2B3A42;
  --warm-greige: #EAE8E3;
  --sage: #7D8C7A;
  --slate: #3E535E;
  --stone: #D1CFC9;
  --white: #FFFFFF;

  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.25rem;
  --step-3: 1.563rem;
  --step-4: 1.953rem;
  --step-5: 2.441rem;
  --step-6: 3.052rem;
  --h1-mobile: 2.125rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --measure: 38rem;
  --container: 72rem;
  --header-height: 4.5rem; /* 72px */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-2));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--white);
  font-feature-settings: "kern";
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--h1-mobile); font-weight: 700; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }

p { margin: 0; }
p + p { margin-top: var(--space-2); }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100%;
  padding: var(--space-1) var(--space-2);
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-2);
}

.lead {
  font-size: var(--step-2);
  line-height: 1.5;
  max-width: var(--measure);
}

.rule {
  display: block;
  width: var(--space-6);
  height: var(--space-1);
  background: var(--sage);
  margin-bottom: var(--space-3);
}

.text-link {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  font-weight: 500;
}
.text-link:hover { color: var(--slate); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  min-height: 3rem;
  padding: 0.75rem var(--space-3);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.button-primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.button-primary:hover { background: var(--slate); border-color: var(--slate); }

.button-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.button-secondary:hover { color: var(--slate); border-color: var(--slate); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-height);
  flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 1.5rem; } /* 24px lockup = ~216px wide, above the 200px minimum */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 3rem;
  padding: 0 0.75rem;
  background: transparent;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  font: 600 var(--step-0) / 1.5 var(--font-body);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--slate); border-color: var(--slate); }

.nav-toggle-bars {
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: none;
  flex-basis: 100%;
  padding: var(--space-2) 0 var(--space-3);
  border-top: 1px solid var(--stone);
}
.site-nav.is-open { display: block; }

.site-nav ul { display: flex; flex-direction: column; }
.site-nav li a {
  display: block;
  padding: 0.75rem 0;
  font-size: var(--step-0);
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
}
.site-nav li a:hover { color: var(--slate); }

.header-cta { margin-top: var(--space-2); }

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-6) var(--space-8);
  background: var(--white);
}

.hero-grid {
  display: grid;
  gap: var(--space-4);
}

.hero-copy .lead { margin-top: var(--space-3); }

.hero-figure { margin: 0; }
.hero-figure img { width: 100%; }

figcaption {
  margin-top: var(--space-1);
  font-size: var(--step-0);
  color: var(--slate);
}

/* ---------- Proof strip ---------- */
.proof {
  padding-block: var(--space-4);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  background: var(--white);
}

.proof-list {
  display: grid;
  gap: var(--space-3);
}

.proof-item { display: grid; gap: var(--space-1); }

.proof-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.proof-label {
  font-size: var(--step-0);
  color: var(--slate);
}

.fact-date { color: var(--slate); white-space: nowrap; }

/* ---------- Bands ---------- */
.band { padding-block: var(--space-6); }

.band-charcoal { background: var(--charcoal); color: var(--white); }
.band-slate { background: var(--slate); color: var(--white); }

.tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.25;
  max-width: 28ch;
}

.band-heading {
  font-size: var(--step--1);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-2);
}
.band-text { max-width: var(--measure); font-size: var(--step-2); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
.section-greige { background: var(--warm-greige); }

.section h2 { max-width: 22ch; }

/* What we do */
.stages {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  counter-reset: stage;
}

.stage {
  padding-top: var(--space-3);
  border-top: 1px solid var(--stone);
}

.stage-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--sage);           /* large text only: 3.56:1 on white */
  margin-bottom: var(--space-2);
}

.stage h3 { margin-bottom: var(--space-1); }

/* The Horton */
.horton-grid {
  display: grid;
  gap: var(--space-4);
}
.horton-figure { margin: 0; }
.horton-copy > p:not(.eyebrow) { margin-top: var(--space-3); max-width: var(--measure); }
.horton-copy .button { margin-top: var(--space-4); }

.facts {
  margin: var(--space-4) 0 0;
  border-top: 1px solid var(--stone);
}
.fact {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--stone);
}
.fact dt {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--slate);
}
.fact dd { margin: 0; font-size: var(--step-0); }

/* What we bring */
.bring {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.bring li {
  padding-top: var(--space-3);
  border-top: 1px solid var(--stone);
}
.bring h3 { margin-bottom: var(--space-1); }

/* Approach */
.principles {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.principles li {
  padding-top: var(--space-3);
  border-top: 1px solid var(--stone);
}
.principles h3 { margin-bottom: var(--space-1); }

.approach-notes {
  margin-top: var(--space-8);
  max-width: var(--measure);
}
.name-note {
  margin-top: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.35;
}
.name-note .rule { margin-bottom: var(--space-2); }

/* Contact */
.contact-inner .lead { margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding-block: var(--space-6);
}
.site-footer :focus-visible { outline-color: var(--white); }

.footer-inner {
  display: grid;
  gap: var(--space-3);
}
.site-footer .brand img { height: 1.75rem; width: auto; }

.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-links a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  font-size: var(--step-0);
}
.footer-links a:hover { color: var(--stone); }

.copyright { font-size: var(--step-0); color: var(--stone); }

/* ---------- Breakpoints ---------- */
@media (min-width: 48em) {
  .container { padding-inline: var(--space-4); }

  .stages { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .bring { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .proof-list { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .principles { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-8); }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .footer-links { justify-content: flex-start; padding-left: var(--space-4); }
}

@media (min-width: 64em) {
  h1 { font-size: var(--step-6); }

  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-basis: auto;
    padding: 0;
    border-top: 0;
  }
  .site-nav ul { flex-direction: row; gap: var(--space-4); }
  .site-nav li a { padding: var(--space-1) 0; }
  .header-cta { margin-top: 0; }
  .brand img { height: 2rem; } /* 32px = 288px wide */

  .hero { padding-block: var(--space-12); }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }

  .horton-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }

  .section { padding-block: var(--space-12); }
  .band { padding-block: var(--space-8); }
  .tagline { font-size: var(--step-5); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
