/* Bravitas Security Group — one-page site
   Source of truth: Figma "Security" file, frames 184:5327 (desktop 1440),
   199:419 (mobile 390) and 239:472 (form & button states).
   Every fluid token interpolates linearly from the 390px value to the
   1440px value and clamps outside that range. */

:root {
  /* Colour (exact Figma values) */
  --navy: #030d30;          /* page, criteria cards */
  --slate: #29314f;         /* Company Fit band, form card, hero gradient end */
  --panel: #192344;         /* pillar, team and commitment cards */
  --panel-line: #22305e;    /* pillar card border */
  --blue: #00a3ff;          /* accent, primary button */
  --blue-hover: #3db8ff;
  --blue-pressed: #008ad9;
  --white: #ffffff;
  --text-soft: #e6e6e6;     /* body copy on dark */
  --text-muted: #b8bed1;    /* hints, confidentiality line */
  --input-line: #8089a6;
  --input-line-hover: #a3abc4;
  --error-line: #ff6b6b;
  --error-text: #ff8a8a;
  --footer-text: rgba(255, 255, 255, 0.55);

  /* Type. Gotham is the design face. The live site uses Proxima Nova from
     Adobe Fonts (kit hrh4uhm) as the closest match; Montserrat is the
     fallback and is what the Claude preview link shows (see README). */
  --font: "proxima-nova", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --w-book: 400;
  --w-medium: 500;
  --w-bold: 700;

  /* Fluid spacing and type (390px value -> 1440px value) */
  --padx: clamp(24px, -11.657px + 9.1429vw, 120px);
  --secy: clamp(64px, 43.2px + 5.3333vw, 120px);
  --whyb: clamp(64px, 61.029px + 0.7619vw, 72px);
  --herot: clamp(64px, 58.057px + 1.5238vw, 80px);
  --herob: clamp(64px, 43.2px + 5.3333vw, 120px);
  --gap-pillars: clamp(40px, 34.057px + 1.5238vw, 56px);
  --gap-section: clamp(40px, 37.029px + 0.7619vw, 48px);
  --h1: clamp(40px, 29.6px + 2.6667vw, 68px);
  --h1-lh: clamp(44px, 32.857px + 2.8571vw, 74px);
  --h2: clamp(32px, 26.057px + 1.5238vw, 48px);
  --h3: clamp(26px, 22.286px + 0.9524vw, 36px);
  --lead: clamp(18px, 16.886px + 0.2857vw, 21px);
  --lead-lh: clamp(29px, 27.143px + 0.4762vw, 34px);
  --pillar-title: clamp(24px, 22.514px + 0.381vw, 28px);
  --card-py: clamp(28px, 25.029px + 0.7619vw, 36px);
  --card-px: clamp(24px, 19.543px + 1.1429vw, 36px);
  --foot-y: clamp(40px, 37.029px + 0.7619vw, 48px);
  --gap-pillar-row: clamp(20px, 18.514px + 0.381vw, 24px);
  --gap-grid: clamp(16px, 13.029px + 0.7619vw, 24px);
  --band-h: clamp(96px, 81.143px + 3.8095vw, 136px);
  --nav-pad: clamp(20px, 15.543px + 1.1429vw, 32px);
  --hero-gap: clamp(40px, 31.086px + 2.2857vw, 64px);

  --content: 1200px;
  --shadow-lg: 0 12px 16px -4px rgba(10, 13, 18, 0.08), 0 4px 6px -2px rgba(10, 13, 18, 0.03), 0 2px 2px -1px rgba(10, 13, 18, 0.04);
  --shadow-team: 0 8px 24px 0 rgba(3, 13, 48, 0.08);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-weight: var(--w-book);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--navy);
  font-weight: var(--w-bold);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- Shared section frame ---------- */
.section {
  padding-block: var(--secy);
  padding-inline: var(--padx);
}
.section__inner {
  max-width: var(--content);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: var(--w-medium);
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h2 {
  font-weight: var(--w-bold);
  font-size: var(--h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* ---------- Primary button (state sheet 239:691) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--navy);
  font-weight: var(--w-bold);
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn img { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--blue-hover); }
.btn:active { background: var(--blue-pressed); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 0; box-shadow: 0 0 0 3px var(--white); }
.btn--cta { width: 100%; max-width: 240px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]:hover { background: var(--blue); }
.btn .spinner { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--navy);
  height: var(--band-h);
  display: flex;
  align-items: center;
}
.site-header__bar {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--nav-pad);
  height: 80px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 5.4px;
  flex: none;
  text-decoration: none;
}
.logo__mark { width: 75px; height: 75px; }
.logo__words { display: flex; flex-direction: column; gap: 4.3px; }
.logo__bravitas { width: 104.2px; height: 19.86px; margin-left: 0.33px; }
.logo__group { width: 105.68px; height: 7.9px; }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 16px; }
.nav__link {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: var(--w-medium);
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.nav__link:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--white);
  transition: transform 200ms ease, opacity 200ms ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(to bottom, var(--navy), var(--slate));
  padding: var(--herot) var(--padx) var(--herob);
}
.hero__row {
  max-width: var(--content);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--hero-gap);
}
.hero__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__title {
  font-weight: var(--w-bold);
  font-size: var(--h1);
  line-height: var(--h1-lh);
  letter-spacing: -0.02em;
}
.hero__lead {
  display: flex;
  flex-direction: column;
  gap: var(--lead-lh);
  color: var(--text-soft);
  font-size: var(--lead);
  line-height: var(--lead-lh);
}

/* ---------- Form card (state sheet 239:543) ---------- */
.form-card {
  flex: none;
  width: 520px;
  max-width: 100%;
  scroll-margin-top: 24px;
  background: var(--slate);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: var(--card-py) var(--card-px);
}
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label {
  color: var(--text-soft);
  font-weight: var(--w-medium);
  font-size: 14px;
  line-height: normal;
}
.field__control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 16px;               /* 16px keeps iOS from zooming on focus */
  line-height: normal;
  caret-color: var(--blue);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea.field__control {
  height: auto;
  min-height: 96px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.4;
}
.field__control::placeholder { color: rgba(255, 255, 255, 0.45); }
.field__control:hover { border-color: var(--input-line-hover); }
.field__control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(0, 163, 255, 0.3);
}
.field__control[aria-invalid="true"] {
  border-color: var(--error-line);
  box-shadow: inset 0 0 0 1px var(--error-line);
}
.field__control[aria-invalid="true"]:focus {
  box-shadow: inset 0 0 0 1px var(--error-line), 0 0 0 3px rgba(255, 107, 107, 0.25);
}
.field__control[readonly] {
  border-color: rgba(128, 137, 166, 0.4);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.field__hint, .field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: normal;
}
.field__hint { color: var(--text-muted); }
.field__error { color: var(--error-text); }
.field__error img { width: 14px; height: 14px; flex: none; }

.form__assurance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.form__assurance img { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.12);
}
.alert:focus { outline: none; }
.alert img { width: 20px; height: 20px; flex: none; }
.alert__title { font-weight: var(--w-medium); font-size: 15px; line-height: normal; }
.alert__text { margin-top: 4px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }

.text-link {
  align-self: flex-start;
  color: var(--blue);
  font-weight: var(--w-medium);
  font-size: 15px;
  line-height: normal;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Success state (239:597) */
.success { display: flex; flex-direction: column; gap: 20px; }
.success:focus { outline: none; }
.success__icon { width: 48px; height: 48px; }
.success__title { font-weight: var(--w-bold); font-size: 24px; line-height: 1.3; }
.success__text { color: var(--text-soft); font-size: 16px; line-height: 1.55; }
.success__rule { height: 1px; background: rgba(255, 255, 255, 0.15); }
.success__label {
  color: var(--blue);
  font-weight: var(--w-medium);
  font-size: 13px;
  line-height: normal;
  letter-spacing: 0.08em;
}
.steps { display: flex; flex-direction: column; gap: 20px; counter-reset: step; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 13px;
  background: rgba(0, 163, 255, 0.15);
  color: var(--blue);
  font-weight: var(--w-bold);
  font-size: 13px;
  line-height: 1;
}

/* ---------- Service lines (184:5404) ---------- */
.pillars { background: var(--navy); }
.pillars .section__inner { gap: var(--gap-pillars); }
.pillar-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-pillar-row);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: var(--card-py) var(--card-px);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background: var(--panel);
}
.pillar__icon { width: 66px; height: 66px; }
.pillar__title {
  font-weight: var(--w-bold);
  font-size: var(--pillar-title);
  line-height: 1.2;
}
.pillar__text { color: var(--text-soft); font-size: 16px; line-height: 26px; }

/* ---------- Company fit (184:5488) ---------- */
.fit { background: var(--slate); }
.fit .section__inner,
.why .section__inner { gap: var(--gap-section); }
.criteria {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.note__icon { width: 28px; height: 28px; flex: none; }
.note__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 2px;
}
.note__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--w-medium);
  text-transform: uppercase;
  text-wrap: balance;
}
.note__figures {
  display: grid;
  /* Labels shrink and wrap when space runs short; the figures never wrap. */
  grid-template-columns: minmax(min-content, 138px) max-content;
  column-gap: 16px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.note__figures dt { font-weight: var(--w-medium); }
.note__figures dd { margin: 0; white-space: nowrap; }

/* ---------- Why us (184:5541) ---------- */
.why { background: var(--navy); padding-bottom: var(--whyb); }
.team {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-team);
}
.person__intro { display: flex; flex-direction: column; gap: 8px; }
.person__head { display: flex; align-items: flex-start; gap: 14px; }
.person__photo {
  position: relative;
  flex: none;
  width: 64px; height: 64px;
}
.person__photo img {
  position: absolute;
  top: -1px; left: -1px;
  width: 66px; height: 66px;
  max-width: none;
}
.person__names { padding-top: 4px; max-width: 227px; min-width: 0; }
.person__name {
  font-weight: var(--w-medium);
  font-size: 22px;
  line-height: 18px;
  padding-block: 4px 5px;
}
.person__role { color: var(--blue); font-size: 16px; line-height: 24px; }
.person__summary { font-size: 16px; line-height: 24px; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks img { width: 24px; height: 24px; flex: none; margin-top: 0; }
.ticks span { flex: 1; min-width: 0; }

.commitment {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.h3 {
  font-weight: var(--w-bold);
  font-size: var(--h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}
.commitment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
}
.commitment .note { background: var(--panel); }

/* ---------- Footer (185:649) ---------- */
.site-footer {
  padding: var(--foot-y) var(--padx);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
}
.footer-brand {
  position: relative;
  width: 100%;
  max-width: var(--content);
  display: flex;
  justify-content: center;
}
.footer-brand::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 35px;
  height: 4px;
  background: var(--blue);
}
.footer-logo {
  position: relative;
  width: 93px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(var(--navy), var(--navy)) top / 100% 69px no-repeat;
}
.footer-logo__mark { width: 66px; height: 66px; }
.footer-logo__bravitas { width: 91.7px; height: 17.48px; margin-top: 6px; }
.footer-logo__group { width: 93px; height: 6.95px; margin-top: 3.76px; }
.site-footer__copy {
  color: var(--footer-text);
  font-size: 14px;
  line-height: normal;
  text-align: center;
}

/* ---------- Responsive reflow ---------- */
@media (min-width: 1100px) {
  .footer-brand { width: calc(100% + 24px); max-width: 1224px; }
}

@media (max-width: 1099px) {
  .hero__row { flex-direction: column; align-items: stretch; }
  .form-card { width: 100%; }
  .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .pillar-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid var(--panel-line);
    border-bottom: 1px solid var(--panel-line);
    padding: 8px var(--nav-pad) 16px;
  }
  .nav[data-open="false"] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { height: 48px; padding-inline: 0; }
  .menu-toggle { display: grid; place-items: center; }
  .commitment__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .form { gap: 20px; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* One column a little earlier than the form, so the Financials figures
   always fit on one line beside their labels. */
@media (max-width: 679px) {
  .criteria { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
