/* =========================================================
   Strategy Blueprint Consulting: site styles
   ========================================================= */

/* ---------- Fonts (self-hosted; see README.md) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0E1A2B;
  --navy-deep: #0A1320;
  --accent: #F5A524;
  --accent-hover: #FFC35C;
  --ink: #0E1A2B;
  --body: #3A4656;
  --muted: #5A6676;
  --on-dark: #C9D3DF;
  --on-dark-muted: #9FB0C3;
  --surface: #F3F5F8;
  --line: #D5DCE4;
  --line-soft: #E3E8EE;
  --input-line: #A9B4C2;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 32px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Blueprint grid background ---------- */
.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(150,180,220,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,180,220,.07) 1px, transparent 1px),
    linear-gradient(rgba(150,180,220,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,180,220,.035) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  color: #FFFFFF;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 14px 24px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-hover); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #FFFFFF; }
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-dark { background: var(--navy); color: #FFFFFF; font-size: 15px; }
.btn-dark:hover { background: #1C2C44; color: #FFFFFF; }
.btn-lg { padding: 16px 28px; }

/* ---------- Header (floating) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,26,43,.96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  color: #FFFFFF;
}
.site-header .container {
  min-height: var(--header-h);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #FFFFFF; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .01em;
}
.brand:hover { color: #FFFFFF; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--on-dark); text-decoration: none; }
.nav a:not(.btn):hover { color: #FFFFFF; }
.nav .btn { padding: 12px 20px; font-size: 15px; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 104px; }
.section-surface { background: var(--surface); }
.eyebrow {
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.blueprint .eyebrow { color: var(--accent); }
.section-title {
  font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15;
  letter-spacing: -.01em; max-width: 760px; margin-bottom: 56px;
}
.section-title.has-lead { margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--body); max-width: 720px; margin-bottom: 56px; }

/* ---------- Hero ---------- */
.hero .container {
  padding-block: 96px 112px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-weight: 700; font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08;
  letter-spacing: -.02em; margin-bottom: 24px;
}
.hero-lead { font-size: 20px; color: var(--on-dark); max-width: 640px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.fit-panel {
  flex: 1 1 340px; min-width: 0; max-width: 420px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,19,32,.75);
  font-size: 15px;
}
.fit-panel-head {
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.28);
  font-family: var(--font-head); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark);
}
.fit-panel dl { margin: 0; }
.fit-row { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.fit-row:last-child { border-bottom: 0; }
.fit-row dt { font-size: 13px; color: var(--on-dark-muted); margin-bottom: 4px; }
.fit-row dd { margin: 0; font-weight: 500; }

/* ---------- Solution cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.card {
  flex: 1 1 440px; min-width: 0;
  background: #FFFFFF; border: 1px solid var(--line); border-top: 4px solid var(--navy);
  padding: 40px; display: flex; flex-direction: column; gap: 22px;
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.card h3 { font-weight: 700; font-size: 30px; }
.card-promise { font-family: var(--font-head); font-size: 21px; font-weight: 600; line-height: 1.35; }
.card-body { font-size: 16px; color: var(--body); }
.card-uses { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.card-uses h4 {
  margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.card-uses ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.card-facts {
  list-style: none; margin: 0; background: var(--surface); padding: 16px 18px;
  font-size: 14px; color: var(--body); display: flex; flex-direction: column; gap: 6px;
}
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.card-actions .text-link { font-weight: 600; font-size: 15px; }

/* ---------- Why us ---------- */
.reasons {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.reason {
  flex: 1 1 220px; min-width: 0; padding: 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.reason-num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.reason h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.reason p { font-size: 15px; color: var(--body); }

/* ---------- How we work ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 300px; min-width: 0; border-top: 2px solid var(--accent); padding-top: 24px; }
.step-num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 16px; color: var(--on-dark); }

/* ---------- Contact ---------- */
.contact .container { display: flex; flex-wrap: wrap; gap: 64px; }
.contact-intro { flex: 1 1 340px; min-width: 0; }
.contact-intro .section-title { margin-bottom: 20px; }
.contact-intro p { font-size: 17px; color: var(--body); }
.contact-intro a { font-weight: 600; }

.contact-form {
  flex: 999 1 520px; min-width: 0;
  background: #FFFFFF; border: 1px solid var(--line); padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--input-line); background: #FFFFFF; color: var(--ink);
  padding: 12px 14px; min-height: 46px; font-weight: 400; font-size: 16px; border-radius: 0;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.form-note { flex: 1 1 260px; font-size: 13px; color: var(--muted); }
.contact-form .btn { padding: 16px 32px; min-height: 48px; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #A3261B; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); padding-block: 48px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-legal { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #FFFFFF; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: #FFFFFF; }

/* ---------- Privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 80px 32px 104px; font-size: 16px; color: var(--body); line-height: 1.65; }
.legal h1 { font-weight: 700; font-size: clamp(34px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 48px 0 12px; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .callout {
  background: var(--surface); border: 1px solid var(--line); padding: 20px 24px;
  font-size: 15px; display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px;
}
.legal .callout-title { font-weight: 600; color: var(--ink); }
.back-link { color: var(--on-dark); text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.back-link:hover { color: #FFFFFF; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .section { padding-block: 72px; }
  .hero .container { padding-block: 64px 80px; gap: 40px; }
  .hero-lead { font-size: 18px; }
  .site-header .container { flex-wrap: nowrap; gap: 12px; }
  .brand { font-size: 17px; gap: 10px; }
  .brand svg { width: 28px; height: 28px; }
  .nav { gap: 18px; flex-wrap: nowrap; }
  .nav .btn { padding: 10px 16px; white-space: nowrap; }
  .nav a:not(.btn) { display: none; }   /* keep only "Talk to us" on phones */
  .card, .contact-form { padding: 28px 22px; }
  .card h3 { font-size: 26px; }
  .card-promise { font-size: 19px; }
  .fit-panel { max-width: none; }
}

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