/* cotterimpact.com — site stylesheet.
   One file, scoped variables, brand-guide aligned.
   Three pages share this: index, work, contact. */

:root {
  --navy: #1B2A4A;
  --gold: #C9922A;
  --slate: #6B7D90;
  --cream: #FAF6ED;
  --white: #FFFFFF;
  --rule: rgba(27, 42, 74, 0.10);
  --rule-soft: rgba(27, 42, 74, 0.06);
  --font: 'Poppins', 'Century Gothic', Futura, 'Gill Sans', sans-serif;

  --max-w: 1180px;
  --pad-x: clamp(24px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 500; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.022em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.012em; }
h3 { font-size: 19px; line-height: 1.3; }
p  { margin: 0; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
}
.muted { color: var(--slate); }
.gold-dot { color: var(--gold); }

/* ─── Wordmark (used in nav + footer) ───────────────────────────── */
.wm {
  display: inline-flex; flex-direction: column; line-height: 1;
}
.wm .line {
  font-weight: 500; font-size: 18px; letter-spacing: -0.02em;
}
.wm .line .dot { color: var(--gold); }
.wm .sub {
  font-weight: 400; font-size: 8px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--slate);
  margin-top: 6px;
}
.wm.dark { color: var(--white); }
.wm.dark .sub { color: rgba(255,255,255,0.65); }

/* ─── Layout shell ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ─── Top nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--rule-soft);
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px;
}
.site-nav .home {
  display: flex; align-items: center; gap: 12px;
}
.site-nav .home img { width: 28px; height: 28px; display: block; }
.site-nav .home .wm .line { font-size: 16px; }
.site-nav .home .wm .sub  { font-size: 7px; margin-top: 5px; }

.site-nav .links {
  display: flex; align-items: center; gap: 32px;
}
.site-nav .links a {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; color: var(--slate);
  transition: color .15s ease;
}
.site-nav .links a:hover { color: var(--navy); }
.site-nav .links a.active { color: var(--navy); }
.site-nav .links a.active::after {
  content: ''; display: block; height: 2px; width: 100%;
  background: var(--gold); margin-top: 6px;
}
.site-nav .links a.cta {
  background: var(--navy); color: var(--white);
  padding: 9px 18px; border-radius: 999px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.site-nav .links a.cta:hover { background: #14213d; color: var(--white); }

/* ─── Section divider — centered gold line ─────────────── */
.section-divider {
  height: clamp(40px, 5vw, 64px);
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
}
.section-divider::before {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  background: var(--gold);
}
/* When a divider sits adjacent to a navy section, the cream background
   clashes. The .section-divider.dark variant lets the divider sit
   between cream and navy without a visible color break. */
.section-divider.to-navy { background: var(--navy); }
.section-divider.from-navy { background: var(--navy); }

/* ─── Sections ──────────────────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.section:last-of-type { border-bottom: none; }
.section.navy {
  background: var(--navy); color: var(--white);
  border-bottom-color: transparent;
}
.section.navy .eyebrow { color: var(--gold); }
.section.navy .muted   { color: rgba(255,255,255,0.65); }
.section.navy h1, .section.navy h2, .section.navy h3 { color: var(--white); }
.section.navy .three-tile p,
.section.navy .process p { color: rgba(255,255,255,0.72); }
.section.navy .process { border-top-color: rgba(255,255,255,0.12); }

/* ─── Hero (home) ───────────────────────────────────────────────── */
.hero {
  padding-block: clamp(72px, 12vw, 160px);
  position: relative;
}
.hero .lede {
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--slate);
  line-height: 1.55;
  max-width: 580px;
  margin-top: 32px;
}
.hero .cta-row {
  margin-top: 44px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.btn-primary {
  background: var(--navy); color: var(--white);
  padding: 14px 26px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: #14213d; transform: translateY(-1px); }
.btn-secondary {
  color: var(--navy); font-weight: 500;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color .15s ease;
}
.btn-secondary:hover { color: var(--gold); }

/* ─── Two-column rows ───────────────────────────────────────────── */
/* `.split` shares the same 3-col grid as `.threes` below it so the section
   header's left column is literally the same column-width as the first
   three-tile. The H2 lives in column 1, the description spans 2–3. */
.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: flex-start;
}
.split > :first-child { grid-column: 1; }
.split > :last-child  { grid-column: 2 / -1; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split > :first-child, .split > :last-child { grid-column: 1; }
}

/* ─── Three-up grid ─────────────────────────────────────────────── */
.threes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) { .threes { grid-template-columns: 1fr; } }
.three-tile {
  display: flex; flex-direction: column; gap: 14px;
}
.three-tile .num {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: var(--gold);
}
.three-tile h3 { font-size: 21px; }
.three-tile p { color: var(--slate); line-height: 1.6; }

/* ─── Founder card ──────────────────────────────────────────────── */
.founder {
  background: var(--white);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: center;
}
.founder > :first-child { grid-column: 1; }
.founder > :last-child  { grid-column: 2 / -1; }
@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; }
  .founder > :first-child, .founder > :last-child { grid-column: 1; }
}
@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; }
}
.founder .photo {
  width: 100%; max-width: 240px; aspect-ratio: 1; border-radius: 8px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px dashed rgba(27,42,74,0.18);
}
.founder .photo::after {
  content: 'photo of Tom'; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate);
}
.founder h3 { font-size: 22px; }
.founder .role {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-top: 4px;
}
.founder .bio {
  color: var(--slate); line-height: 1.65; margin-top: 16px;
}

/* ─── Process list (Work page) ──────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: baseline;
  padding-block: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--rule);
}
.process:first-of-type { border-top: 1px solid var(--rule); }
.process .step {
  font-size: 36px; font-weight: 500; color: var(--gold);
  letter-spacing: -0.02em; line-height: 1;
}
.process h3 { font-size: 22px; margin-bottom: 10px; }
.process p { color: var(--slate); line-height: 1.65; max-width: 640px; }

/* ─── Quote / pull ──────────────────────────────────────────────── */
.pull {
  max-width: 800px;
  margin-block: clamp(56px, 8vw, 96px);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
  color: var(--navy);
}
.pull::before {
  content: ''; display: block;
  width: 36px; height: 2px; background: var(--gold);
  margin-bottom: 22px;
}

/* ─── Contact page ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 80px);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
}
.contact-card .label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.contact-card h2 { font-size: 26px; color: var(--white); }
.contact-card .value {
  font-size: 18px; font-weight: 500; color: var(--white);
  margin-top: 6px;
}
.contact-card .value a { color: var(--white); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.contact-card .note {
  color: rgba(255,255,255,0.75); line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy); color: var(--white);
  padding-block: clamp(48px, 6vw, 72px);
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-end;
}
@media (max-width: 680px) {
  .site-footer .inner { grid-template-columns: 1fr; align-items: flex-start; }
}
.site-footer .home {
  display: flex; align-items: center; gap: 14px;
}
.site-footer .home img { width: 32px; height: 32px; display: block; }
.site-footer .home .wm .line { font-size: 18px; color: var(--white); }
.site-footer .home .wm .sub  { color: rgba(255,255,255,0.55); }
.site-footer .meta {
  text-align: right;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); line-height: 1.7;
}
@media (max-width: 680px) {
  .site-footer .meta { text-align: left; }
}
.site-footer .meta a {
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.gold-strip {
  height: 4px; background: var(--gold);
}
