/* =========================================================
   Novaris Tech Services — Stylesheet
   ========================================================= */

:root {
  /* Color system */
  --navy-950: #060e1f;
  --navy-900: #0a1730;
  --navy-800: #0f2043;
  --navy-700: #16305f;
  --navy-600: #1f3f7a;
  --slate-500: #5c6b85;
  --slate-400: #8592a8;
  --slate-300: #b6bfcf;
  --slate-200: #dde2eb;
  --slate-100: #eef1f6;
  --slate-50:  #f7f9fc;
  --white: #ffffff;
  --surface: #ffffff;
  --teal-500: #c2410c;
  --teal-400: #a8380a;
  --teal-300: #ffc65c;
  --amber-500: #8a5c0a;

  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --text-primary: #101a2e;
  --text-secondary: #4a5670;
  --text-muted: #64708c;
  --border: var(--slate-200);

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 48, 0.06), 0 1px 1px rgba(10, 23, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 23, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 23, 48, 0.14);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1526;
    --bg-alt: #0a1120;
    --text-primary: #eef1f6;
    --text-secondary: #aab4c8;
    --text-muted: #7e8aa3;
    --border: #223050;
    --slate-50: #101a30;
    --slate-100: #16223e;
    --slate-200: #28365a;
    --surface: #131f3a;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1526;
  --bg-alt: #0a1120;
  --text-primary: #eef1f6;
  --text-secondary: #aab4c8;
  --text-muted: #7e8aa3;
  --border: #223050;
  --slate-50: #101a30;
  --slate-100: #16223e;
  --slate-200: #28365a;
  --surface: #131f3a;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --text-primary: #101a2e;
  --text-secondary: #4a5670;
  --text-muted: #64708c;
  --border: #dde2eb;
  --slate-50: #f7f9fc;
  --slate-100: #eef1f6;
  --slate-200: #dde2eb;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 108px 0;
}
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%);
  color: var(--slate-200);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--slate-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal-500);
  display: inline-block;
}
.section-dark .eyebrow { color: var(--teal-300); }
.section-dark .eyebrow::before { background: var(--teal-300); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(225, 89, 28, 0.28);
}
.btn-primary:hover { background: var(--teal-400); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(225,89,28,.34); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-ghost {
  background: var(--slate-100);
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--slate-200); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(6, 14, 31, 0.0);
  backdrop-filter: blur(0px);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition), padding var(--transition);
  padding: 22px 0;
}
.site-header.is-scrolled {
  background: rgba(6, 14, 31, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-300);
  font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-200);
  font-size: 14px;
  font-weight: 500;
}
.header-phone svg { width: 16px; height: 16px; opacity: .8; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel + scrim: hidden by default. Only the >=860px media query
   below turns them on; without this base rule they have no positioning at
   all on desktop and render as a plain, unstyled block in normal document
   flow at the top of the page. */
.mobile-nav { display: none; }
.nav-scrim { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 200px 0 110px;
  background: radial-gradient(ellipse 900px 500px at 15% -10%, rgba(225,89,28,0.35), transparent 60%),
              radial-gradient(ellipse 700px 500px at 100% 0%, rgba(31,63,122,0.55), transparent 60%),
              linear-gradient(170deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--teal-300); font-style: normal; }
.hero-sub {
  font-size: 18px;
  color: var(--slate-300);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 620px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px;
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.hero-stat .label {
  font-size: 12.5px;
  color: var(--slate-400);
  margin-top: 4px;
  line-height: 1.4;
}

.hero-panel {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: var(--white); font-size: 16px; margin-bottom: 18px; display:flex; align-items:center; gap:8px;}
.hero-panel h3 svg { width: 18px; height: 18px; color: var(--teal-300); }
.hero-panel-list { display: flex; flex-direction: column; gap: 14px; }
.hero-panel-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-panel-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-panel-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-400); margin-top: 2px; }
.hero-panel-item strong { display: block; color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.hero-panel-item span { font-size: 13px; color: var(--slate-400); }

/* ---------- Logo strip ---------- */
.strip {
  padding: 20px 0;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 600;
  margin-right: 6px;
}
.strip-chip {
  font-size: 13px;
  color: var(--slate-200);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Cards / Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Service cards */
.service-card { position: relative; }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; color: var(--white); }
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }
.service-index {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-300);
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.about-figure {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  padding: 34px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-figure::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.about-figure-inner { position: relative; z-index: 1; }
.about-figure h3 { color: var(--white); font-size: 15px; letter-spacing:.04em; text-transform:uppercase; margin-bottom:22px; }
.about-metric { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.about-metric:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.about-metric .val { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--teal-300); }
.about-metric .desc { font-size: 13.5px; color: var(--slate-300); margin-top: 4px; }

.about-copy h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.about-copy p { font-size: 16px; }
.about-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.about-list-item { display: flex; gap: 14px; }
.about-list-item svg { width: 20px; height: 20px; color: var(--teal-500); flex-shrink: 0; margin-top: 2px; }
.about-list-item strong { display:block; font-size: 15px; color: var(--navy-900); margin-bottom: 2px;}
.about-list-item span { font-size: 14px; color: var(--text-secondary); }

/* Approach / process */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.approach-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}
.approach-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-500);
  border: 1.5px solid var(--teal-500);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.approach-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.approach-step p { font-size: 14px; margin-bottom: 0; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--surface);
}
.cert-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-500);
  background: rgba(225,89,28,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cert-card h3 { font-size: 16px; margin-bottom: 8px; }
.cert-card p { font-size: 13.75px; margin-bottom: 0; }
.cert-card code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--navy-800);
}

.reg-table {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.reg-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--border);
}
.reg-row:last-child { border-bottom: none; }
.reg-row .k {
  padding: 16px 22px;
  background: var(--slate-50);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
  display: flex;
  align-items: center;
}
.reg-row .v {
  padding: 16px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}
.reg-row .v .placeholder {
  color: var(--amber-500);
  font-weight: 600;
}

/* Past Performance */
.pp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pp-stat {
  text-align: center;
  padding: 30px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}
.pp-stat .num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--teal-500);
  display: block;
  font-variant-numeric: tabular-nums;
}
.pp-stat .label {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.45;
}

.pp-systems {
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(225,89,28,0.08), rgba(225,89,28,0.02));
  border: 1px solid rgba(225,89,28,0.24);
}
.pp-systems-label {
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 16px;
}
.pp-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-tags span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
}
.pp-cta {
  text-align: center;
  max-width: 640px;
  margin: 36px auto 0;
}
.pp-cta p { font-size: 15px; margin-bottom: 20px; }

/* Differentiators */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.diff-card {
  padding: 28px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.diff-card svg { width: 24px; height: 24px; color: var(--teal-300); margin-bottom: 14px; }
.diff-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.diff-card p { font-size: 13.5px; margin-bottom: 0; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); color: var(--teal-500); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-a-inner { padding: 0 4px 24px; font-size: 14.75px; color: var(--text-secondary); max-width: 680px; }

/* Careers */
.career-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.career-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
}
.career-card h3 { font-size: 16px; margin-bottom: 6px; }
.career-card p { font-size: 13.75px; margin-bottom: 0; }
.career-meta { font-size: 12px; color: var(--teal-500); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }

.careers-note {
  margin-top: 30px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px dashed var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.careers-note p { margin: 0; font-size: 14.5px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.contact-info-card h3 { color: var(--white); font-size: 19px; margin-bottom: 10px; }
.contact-info-card > p { color: var(--slate-300); font-size: 14.5px; margin-bottom: 28px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-line:first-of-type { border-top: none; }
.contact-line svg { width: 19px; height: 19px; color: var(--teal-300); flex-shrink: 0; margin-top: 2px; }
.contact-line strong { display: block; font-size: 13.5px; color: var(--white); margin-bottom: 2px;}
.contact-line span, .contact-line a { font-size: 13.75px; color: var(--slate-300); }
.contact-line a:hover { color: var(--teal-300); }
.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.social-row a:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.social-row svg { width: 16px; height: 16px; color: var(--white); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(225,89,28,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg {
  display: none;
  font-size: 12.5px;
  color: #c0392b;
  margin-top: 6px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #c0392b;
}
.field.has-error .error-msg { display: block; }

.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(225,89,28,0.1);
  border: 1px solid rgba(225,89,28,0.3);
  margin-top: 18px;
  font-size: 14px;
  color: var(--navy-900);
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 54px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 13.75px; color: var(--slate-400); max-width: 300px; margin: 14px 0 20px; }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13.75px; color: var(--slate-400); transition: color var(--transition); }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}
.footer-bottom .ids span { margin-right: 18px; }
.footer-bottom a:hover { color: var(--teal-300); }

.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 850;
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; color: var(--white); }

/* ---------- Capability Statement modal ---------- */
.cap-modal-scrim {
  position: fixed; inset: 0;
  background: rgba(6, 14, 31, 0.6);
  backdrop-filter: blur(2px);
  z-index: 980;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.cap-modal-scrim.is-open { opacity: 1; visibility: visible; }

.cap-modal {
  position: fixed;
  top: 4vh; left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(760px, 92vw);
  max-height: 92vh;
  z-index: 990;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.cap-modal.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cap-modal[hidden] { display: flex; }

.cap-modal-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cap-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cap-modal-print {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background var(--transition);
}
.cap-modal-print:hover { background: var(--slate-200); }
.cap-modal-print svg { width: 15px; height: 15px; }
.cap-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  flex-shrink: 0;
  transition: background var(--transition);
}
.cap-modal-close:hover { background: var(--slate-200); }
.cap-modal-close svg { width: 16px; height: 16px; }

.cap-doc {
  overflow-y: auto;
  padding: 12px 40px 44px;
}
.cap-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-bottom: 3px solid var(--teal-500);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.cap-doc-kicker {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 6px;
}
.cap-doc-header h2 { font-size: 24px; margin-bottom: 0; }
.cap-doc-mark { width: 46px; height: 46px; flex-shrink: 0; }

.cap-doc-idbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-variant-numeric: tabular-nums;
}
.cap-doc-idbar strong { color: var(--navy-900); }

.cap-doc-section { margin-bottom: 30px; }
.cap-doc-section h3 {
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: var(--teal-500);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cap-doc-section p { font-size: 14.5px; margin-bottom: 10px; }
.cap-doc-section p:last-child { margin-bottom: 0; }
.cap-doc-subhead { font-weight: 700; color: var(--navy-900); font-size: 13.5px; margin-bottom: 6px; }
.cap-doc-tight { margin-bottom: 0 !important; line-height: 1.7; }

.cap-doc-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.cap-doc-list li { list-style: disc; }
.cap-doc-list-tight { margin-top: 6px; }

.cap-doc-naics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.cap-doc-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .cap-modal { top: 0; max-height: 100vh; height: 100vh; border-radius: 0; width: 100vw; }
  .cap-doc { padding: 12px 20px 44px; }
  .cap-doc-naics { grid-template-columns: 1fr; }
  .cap-doc-footer { grid-template-columns: 1fr; gap: 20px; }
}

@media print {
  body > *:not(.cap-modal) { display: none !important; }
  .cap-modal-scrim { display: none !important; }
  .cap-modal {
    position: static; transform: none; width: auto; max-height: none;
    box-shadow: none; border-radius: 0; opacity: 1; visibility: visible;
  }
  .cap-modal-toolbar { display: none !important; }
  .cap-doc { overflow: visible; padding: 0; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--teal-500);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .pp-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header .header-actions .btn-primary.btn-sm,
  .site-header .header-actions .header-cap-btn { display: none; }

  .mobile-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: var(--navy-950);
    z-index: 950;
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 320ms ease;
    box-shadow: -20px 0 50px rgba(0,0,0,0.3);
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav a {
    color: var(--slate-200);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-nav .btn { margin-top: 20px; }
  .nav-scrim {
    display: block;
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 940; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .hero { padding: 150px 0 80px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat .num { font-size: 19px; }
  .grid-2, .grid-3, .grid-4, .diff-grid, .cert-grid, .pp-stats { grid-template-columns: 1fr; }
  .pp-systems { padding: 24px 22px; }
  .approach-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .career-card { flex-direction: column; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .reg-row { grid-template-columns: 1fr; }
  .reg-row .k { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
