/* Bighorn Cyber Group site styles.
   Fonts are self-hosted (SIL Open Font License, see /assets/fonts/OFL-*.txt) so the
   Content-Security-Policy can stay at font-src 'self'. */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* Layout: summit to base. A navy band holds the name and the ridge line; the page steps down through
   services, process and background on limestone, and ends at a single contact address. */
:root {
  --bg: #F4F5F3;
  --surface: #FFFFFF;
  --fg: #17202A;
  --muted: #56606B;
  --line: #D8DCD7;
  --accent: #7A5A28;
  --cta-bg: #B4532A;
  --cta-fg: #FFFFFF;

  /* Brand band: identical in both themes */
  --navy: #1A2633;
  --navy-deep: #131C26;
  --horn: #C29A5B;
  --on-navy: #ECEDEA;
  --on-navy-muted: #A9B3BD;

  --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F151B; --surface: #16202A; --fg: #E8EAE6; --muted: #A3ACB5; --line: #2A3540;
    --accent: #D3B07A; --cta-bg: #C45F33; --cta-fg: #FFFFFF; --navy-deep: #0B1117;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F151B; --surface: #16202A; --fg: #E8EAE6; --muted: #A3ACB5; --line: #2A3540;
  --accent: #D3B07A; --cta-bg: #C45F33; --cta-fg: #FFFFFF; --navy-deep: #0B1117;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--horn); outline-offset: 3px; border-radius: 2px; }

.inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -0.005em; }
h3 { font-size: 23px; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Navy band: header + hero ---------- */
.band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); }
.lockup svg { width: 34px; height: 36px; flex: none; }
.wm { display: flex; flex-direction: column; line-height: 0.95; }
.wm-main { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: 0.01em; }
.wm-sub { font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--horn); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-navy-muted); }
.nav a:hover { color: var(--on-navy); }
.nav .nav-cta {
  color: var(--on-navy); border: 1px solid rgba(194, 154, 91, 0.6);
  padding: 7px 14px; border-radius: 3px;
}
.nav .nav-cta:hover { border-color: var(--horn); }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

.hero .inner { padding-block: 64px 0; display: grid; gap: 22px; }
.hero h1 {
  font-size: clamp(50px, 9vw, 104px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
  max-width: 11ch;
}
.hero .eyebrow { color: var(--horn); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--on-navy); max-width: 36em; opacity: 0.92; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 16px;
  padding: 13px 20px; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-cta { background: var(--cta-bg); color: var(--cta-fg); }
.btn-cta:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--on-navy); border-color: rgba(236, 237, 234, 0.35); }
.btn-ghost:hover { border-color: var(--on-navy); }

/* Ridge: the Spring Mountains skyline with the summit traced in horn gold */
.ridge { display: block; width: 100%; height: auto; margin-top: 40px; }
.creds {
  background: var(--navy-deep);
  border-top: 1px solid rgba(194, 154, 91, 0.35);
}
.creds .inner {
  display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 16px;
  font-family: var(--mono); font-size: 13.5px; color: var(--on-navy-muted); letter-spacing: 0.02em;
}
.creds b { color: var(--on-navy); font-weight: 500; }

/* ---------- Sections ---------- */
section { padding-block: 88px; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; max-width: 44em; margin-bottom: 44px; }
.sec-head .sub { color: var(--muted); font-size: 18px; }

/* Services: a 2x2 grid split by hairlines */
.services {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.svc { padding: 30px 32px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.svc:nth-child(even) { padding: 30px 0 32px 32px; border-left: 1px solid var(--line); }
.svc p { color: var(--muted); }
.svc .fit { font-family: var(--mono); font-size: 13.5px; color: var(--fg); margin-top: 6px; }
.svc .fit span { color: var(--accent); }
.svc .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc:nth-child(even) { padding: 26px 0; border-left: 0; }
}

/* Process: a real sequence, so the steps are numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--fg); min-width: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--accent);
}
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Background */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about .copy { display: grid; gap: 18px; }
.about .copy > p:not(.eyebrow) { font-size: 18px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
.why {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; border-radius: 4px; margin-top: 8px;
}
.why svg { width: 30px; height: 32px; }
.why p { font-size: 15.5px; color: var(--muted); }
.why strong { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 420px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Contact */
.contact { background: var(--surface); }
.contact .inner { display: grid; gap: 22px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail {
  font-family: var(--display); font-weight: 600; font-size: clamp(28px, 5vw, 48px);
  color: var(--fg); text-decoration: none; overflow-wrap: anywhere; line-height: 1.1;
  border-bottom: 2px solid var(--horn);
}
.mail:hover { color: var(--accent); }
.copy-btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 12px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--fg); }
.contact .sub { color: var(--muted); font-size: 18px; max-width: 40em; }
.area { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

footer { background: var(--navy); color: var(--on-navy-muted); }
footer .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 26px; font-size: 14px;
}
footer .lockup .wm-main { font-size: 19px; }
footer .lockup svg { width: 24px; height: 26px; }

/* ---------- Additions (v2) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--horn); color: var(--navy); padding: 10px 14px; border-radius: 3px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.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;
}
.nav { gap: 22px; }
@media (max-width: 960px) { .nav { gap: 16px; font-size: 14.5px; } }

/* Price line on the checkup card */
.svc .price {
  font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--fg);
  border-left: 3px solid var(--horn); padding-left: 10px; margin-top: 4px;
}
.svc .note { font-size: 15px; }

/* Sample findings */
.findings { margin-top: 64px; display: grid; gap: 18px; }
.findings h3 { font-size: 25px; }
.findings .sub { color: var(--muted); max-width: 44em; }
.finding-list {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.finding-list li {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cta-bg);
  border-radius: 4px; padding: 16px 18px; display: grid; gap: 6px; min-width: 0;
}
.finding-list .sev {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.finding-list strong { font-weight: 600; }
.finding-list p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .finding-list { grid-template-columns: minmax(0, 1fr); } }

/* MSP / partner section: a navy panel so it reads as a different audience */
.partners { background: var(--navy); color: var(--on-navy); }
section.partners + section, section + section.partners { border-top: 0; }
.partners .eyebrow { color: var(--horn); }
.partners .sec-head .sub { color: var(--on-navy-muted); }
.partner-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.partner-grid article {
  border-top: 2px solid var(--horn); padding-top: 18px; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.partner-grid h3 { font-size: 22px; }
.partner-grid p { color: var(--on-navy-muted); font-size: 16px; }
.partner-terms {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(236, 237, 234, 0.18);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
}
.partner-terms ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-family: var(--mono); font-size: 13.5px; color: var(--on-navy-muted);
}
.partner-terms li::before { content: "› "; color: var(--horn); }
@media (max-width: 900px) { .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Contact: form + direct options */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 10px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--bg);
  border: 1px solid #8A949E; border-radius: 3px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--horn); outline-offset: 1px; border-color: var(--horn);
}
.field .hint { font-size: 14px; color: var(--muted); }
.form .btn-cta { justify-self: start; border: 0; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.direct { display: grid; gap: 22px; }
.direct h3 { font-size: 23px; }
.direct .mail { font-size: clamp(24px, 3vw, 32px); }
.direct p { color: var(--muted); }
.btn-outline { color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.direct .block { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.direct .block:first-child { border-top: 0; padding-top: 0; }

footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--on-navy-muted); }
footer a:hover { color: var(--on-navy); }

/* Thank-you page */
.thanks .inner { padding-block: 72px 96px; display: grid; gap: 22px; }
.thanks h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 700; line-height: 0.95; max-width: 14ch; }
.thanks .lead { font-size: clamp(18px, 2vw, 21px); max-width: 36em; opacity: 0.92; }
.direct .btn { justify-self: start; }

/* ---------- Additions (v3) ---------- */
.hero .focus {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: 0.01em; line-height: 1.5;
  color: var(--on-navy-muted); max-width: 46em; padding-left: 12px; border-left: 2px solid var(--horn);
}
.btn-sm { font-size: 15px; padding: 9px 14px; }
.svc .svc-link { margin-top: 6px; }
.text-link {
  justify-self: start; font-weight: 600; font-size: 15px; color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--horn); text-underline-offset: 3px;
}
.text-link:hover { color: var(--fg); }
