/* Track'em website. One stylesheet, mobile-first. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #FF9800;
  --black: #000000;
  --grey: #202020;
  --blue: #2096F3;
  --blue-deep: #1976D2;
  --mint: #20C997;
  --white: #ffffff;
  --paper: #f5f5f3;
  --line: #e2e2de;
  --text: #202020;
  --muted: #55554f;
  --heading: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--heading);
  color: var(--black);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--blue-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--black); }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.section.alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.lead { font-size: 1.125rem; color: var(--muted); }

.eyebrow {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 4px;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: middle;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--black); color: var(--white);
  padding: 10px 14px; z-index: 10; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 6px 24px; padding-block: 14px;
}
.brand { display: inline-flex; padding: 4px 0; }
.brand img { width: 150px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px;
}
.site-nav a {
  display: inline-block; padding: 8px 0;
  font-family: var(--heading); font-weight: 600; font-size: 0.82rem;
  color: var(--black); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav .nav-cta a { background: var(--orange); color: var(--black); padding: 8px 14px; border: 0; border-radius: 4px; }
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: var(--black); color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px;
  font-family: var(--heading); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; border-radius: 4px;
}
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--white); color: var(--black); border-color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--white); color: var(--black); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { background: var(--grey); color: var(--white); padding-block: 64px; border-bottom: 6px solid var(--orange); }
.hero h1 { color: var(--white); max-width: 15em; }
.hero .eyebrow { color: var(--orange); }
.hero .lead { color: #d8d8d4; max-width: 40em; }

.page-head { background: var(--grey); color: var(--white); padding-block: 48px; border-bottom: 6px solid var(--orange); }
.page-head h1 { color: var(--white); font-size: clamp(1.9rem, 5vw, 2.8rem); max-width: 18em; }
.page-head .eyebrow { color: var(--orange); }
.page-head .lead { color: #d8d8d4; max-width: 42em; margin-bottom: 0; }

/* Stats */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.stats strong {
  display: block; font-family: var(--heading); font-weight: 800;
  font-size: clamp(1.55rem, 5vw, 2.6rem); line-height: 1.1; color: var(--black);
}
.stats span { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.stats li { border-top: 4px solid var(--orange); padding-top: 14px; }

/* Cards */
.cards { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body p:last-child { margin-bottom: 0; }
.card img { width: 100%; border-bottom: 1px solid var(--line); }
.card .more { margin-top: auto; font-family: var(--heading); font-weight: 700; font-size: 0.9rem; }
.card .tag {
  font-family: var(--heading); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.meta { margin: 0 0 14px; font-size: 0.9rem; }
.meta div { display: flex; gap: 8px; }
.meta dt { font-weight: 700; color: var(--black); flex: none; }
.meta dd { margin: 0; color: var(--muted); }

.people-group { display: grid; gap: 28px; }
.people-group h2 { margin-bottom: 0; }
.people-list { list-style: none; margin: 0; padding: 0; }
.person { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding-block: 28px; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person:last-child { padding-bottom: 0; }
.person img { width: 84px; height: 84px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; filter: grayscale(1); }
.person h3 { margin-bottom: 2px; }
.person .tag {
  font-family: var(--heading); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.person p { color: var(--muted); max-width: 62ch; }
.person p:last-child { margin-bottom: 0; }

/* Logos */
.section-head.centered { max-width: 900px; margin-inline: auto; text-align: center; }
.section-head.centered h2 { text-transform: uppercase; font-weight: 800; }
.kicker { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin: 0 0 8px; }
.logos { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; align-items: center; }
.logos li { display: flex; justify-content: center; }
.logos img { width: 150px; height: 104px; object-fit: contain; mix-blend-mode: multiply; }

/* Reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 28px; }
.reasons li { border-left: 4px solid var(--orange); padding-left: 16px; }
.reasons strong { display: block; font-family: var(--heading); color: var(--black); }
.reasons span { color: var(--muted); }

/* Split rows */
.split { display: grid; gap: 24px; align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.split:first-of-type { border-top: 0; padding-top: 0; }
.split img { border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.split .photo { aspect-ratio: 1 / 1; object-fit: cover; }
.split .photo.low { object-position: 50% 85%; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 6px;
  border-left: 3px solid var(--mint); border-bottom: 3px solid var(--mint);
  transform: rotate(-45deg);
}

/* Definition grid and steps */
.facts { display: grid; gap: 16px; margin: 0; }
.facts div { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: 6px; padding: 18px; }
.facts dt { font-family: var(--heading); font-weight: 700; color: var(--black); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; min-height: 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: var(--black);
  font-family: var(--heading); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; font-family: var(--heading); color: var(--black); }
.steps span { color: var(--muted); }

/* Statements, offices, contact */
.statements { display: grid; gap: 20px; }
.statement { border-left: 6px solid var(--orange); padding: 4px 0 4px 20px; }
.statement p { font-family: var(--heading); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; color: var(--black); margin: 0; }
.prose { max-width: 720px; }

.offices { display: grid; gap: 20px; }
.office { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--white); }
.office address { font-style: normal; margin-bottom: 10px; }
.office p:last-child { margin-bottom: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 6px; }
.big-link { font-family: var(--heading); font-weight: 700; font-size: clamp(1.2rem, 4.4vw, 1.7rem); overflow-wrap: anywhere; }

.contact-grid { display: grid; gap: 40px; }
.contact-form { min-width: 0; }
.form-crop { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.form-frame { display: block; width: 100%; height: 1700px; border: 0; margin-top: -44px; }
.form-fallback { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.contact-block { padding-block: 22px; border-top: 1px solid var(--line); }
.contact-block:first-child { border-top: 0; padding-top: 0; }
.contact-block h2 { font-size: 1.05rem; margin: 14px 0 4px; }
.contact-block address { font-style: normal; }
.contact-block p:last-child, .contact-block ul:last-child { margin-bottom: 0; }
.contact-aside .big-link { font-size: 1.3rem; }
.case-cover { border-radius: 6px; margin-bottom: 24px; }
.contact-aside .meta { margin: 0; font-size: 1rem; }
.card .more { padding-top: 14px; }

/* CTA band */
.cta { background: var(--orange); color: var(--black); padding-block: 48px; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { margin: 0; max-width: 40em; }
.cta .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta :focus-visible { outline-color: var(--black); }

/* Legal */
.legal { max-width: 800px; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.legal td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* Footer */
.site-footer { background: var(--grey); color: #d8d8d4; font-size: 0.92rem; padding-block: 48px 32px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer h2 {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 170px; margin-bottom: 10px; }
.footer-legal { border-top: 1px solid #444; margin-top: 36px; padding-top: 22px; font-size: 0.8rem; color: #b9b9b4; }
.footer-legal p { margin-bottom: 0.7em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 800px) {
  .people-group { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .person { grid-template-columns: 124px minmax(0, 1fr); gap: 28px; padding-block: 36px; }
  .person img { width: 124px; height: 124px; }
  .contact-grid { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 72px; align-items: start; }
  .form-frame { height: 1600px; }
  .section { padding-block: 84px; }
  .hero { padding-block: 104px; }
  .page-head { padding-block: 72px; }
  .brand img { width: 180px; }
  .site-nav ul { gap: 28px; }
  .site-nav a { font-size: 0.95rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
  .logos img { width: 180px; height: 124px; }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 56px; }
  .split.flip > :first-child { order: 2; }
  .facts { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { padding-left: 0; padding-top: 58px; }
  .statements { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.4fr 1fr; }
}
