/* CCRS website v1 — built on the CCRS Design System tokens (navy / steel /
   concrete / amber; Archivo display, Hanken Grotesk body, IBM Plex Mono labels).
   Amber behaves like safety signage: used, never sprayed. */

:root {
  --navy-950: #06121d;
  --navy-900: #0b1f30;
  --navy-800: #10293f;
  --navy-700: #163654;
  --steel-500: #3b7bae;
  --steel-300: #8fb9d8;
  --steel-100: #e5f0f7;
  --concrete-050: #f5f6f7;
  --concrete-100: #ebedef;
  --concrete-200: #dadde1;
  --concrete-300: #c0c5cb;
  --concrete-500: #767e87;
  --concrete-700: #414850;
  --white: #ffffff;
  --amber-500: #f2a900;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-xs: 0 1px 2px rgba(6, 18, 29, 0.06);
  --shadow-sm: 0 1px 3px rgba(6, 18, 29, 0.08), 0 1px 2px rgba(6, 18, 29, 0.06);
  --font-display: "Archivo", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--concrete-700); background: var(--white); line-height: 1.6; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.1; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.overline {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--steel-500); margin-bottom: 14px;
}
.overline::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--amber-500); margin-right: 10px; vertical-align: middle; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--white);
  display: flex; align-items: center; gap: 28px; padding: 14px 24px;
  border-bottom: 1px solid var(--concrete-200);
}
.topbar .brand img { display: block; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a { color: var(--concrete-700); text-decoration: none; font-weight: 600; font-size: 15px; }
.topbar nav a:hover { color: var(--navy-700); }
.team-top {
  font-family: var(--font-mono); font-size: 13px; white-space: nowrap;
  color: var(--concrete-700); text-decoration: none;
  border: 1px solid var(--concrete-300); padding: 8px 13px; border-radius: var(--radius-md);
}
.team-top:hover { border-color: var(--steel-500); color: var(--navy-700); }

/* Buttons */
.btn {
  display: inline-block; background: var(--navy-700); color: var(--white);
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-800); }
.btn.small { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.btn.big { font-size: 18px; padding: 16px 28px; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--steel-300); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
  padding: 96px 0 104px; color: var(--steel-100);
}
.hero .overline { color: var(--steel-300); }
.hero h1 { color: var(--white); max-width: 720px; margin-bottom: 18px; }
.hero .lede { font-size: 19px; max-width: 640px; color: var(--steel-100); margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Bands */
.band { padding: 72px 0; }
.band.alt { background: var(--concrete-050); }
.band p { margin-bottom: 14px; max-width: 66ch; }

/* Cards: flex + centered wrap, so an odd count (5 services) centers its last
   row instead of leaving a lopsided grid. The .four variant fits one row. */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 26px; }
.card {
  flex: 0 1 320px;
  background: var(--white); border: 1px solid var(--concrete-200);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-xs);
}
.cards.four .card { flex: 1 1 225px; }
.card p { font-size: 15px; margin: 0; }
.fineprint { font-size: 13px; color: var(--concrete-500); margin-top: 18px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 18px; }
.steps li {
  counter-increment: step; background: var(--white); border: 1px solid var(--concrete-200);
  border-radius: var(--radius-lg); padding: 20px 22px 20px 64px; position: relative; box-shadow: var(--shadow-xs);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--navy-700); color: var(--white); border-radius: 50%;
}
.steps strong { display: block; color: var(--navy-900); font-family: var(--font-display); }

/* Contact */
.band.contact { background: var(--navy-900); color: var(--steel-100); text-align: center; padding: 88px 0; }
.band.contact h2 { color: var(--white); }
.band.contact .overline { color: var(--steel-300); }
.band.contact p { margin-left: auto; margin-right: auto; margin-bottom: 26px; }
.band.contact .btn.big { background: var(--amber-500); color: var(--navy-950); }
.band.contact .btn.big:hover { background: #ffbe33; }
.band.contact .team-note { font-size: 14px; margin-top: 26px; margin-bottom: 0; color: var(--steel-300); }
.band.contact .team-note a { color: var(--steel-300); }

/* Footer */
footer { background: var(--navy-950); padding: 26px 0; color: var(--concrete-300); font-size: 14px; }
.footrow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footrow p { flex: 1; min-width: 260px; }
.footrow a { color: var(--steel-300); }
.footrow .team { font-family: var(--font-mono); font-size: 13px; text-decoration: none; border: 1px solid var(--concrete-700); padding: 6px 12px; border-radius: var(--radius-md); }
.footrow .team:hover { border-color: var(--steel-300); }

@media (max-width: 720px) {
  /* Mobile top bar: logo + Team sign-in. The customer CTA lives in the hero
     one thumb-scroll below, so the sign-in button gets the prime spot. */
  .topbar { gap: 12px; padding: 12px 16px; }
  .topbar nav { display: none; }
  .topbar .btn.small { display: none; }
  .topbar .brand img { height: 30px; width: auto; }
  .team-top { margin-left: auto; }
  .hero { padding: 64px 0 72px; }
  .band { padding: 52px 0; }
}
