/* ==========================================================================
   Surveil Technologies — main stylesheet
   Design tokens are at the top; change colors and type here.
   ========================================================================== */

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy-950: #081529;
  --navy-900: #0d1f3c;
  --navy-800: #13294b;
  --navy-700: #1b365f;
  --charcoal: #2b3038;
  --ink: #1b2433;
  --muted: #4d5767;
  --line: #dce2ea;
  --line-strong: #7f8a9b;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --accent: #1f5bcc;
  --accent-hover: #174aa8;
  --accent-soft: #e7eefb;
  --accent-on-dark: #9ebdf6;
  --on-dark: #ffffff;
  --on-dark-muted: #c3cedf;
  --error: #b42318;
  --error-soft: #fdf1f0;
  --success: #17663a;
  --success-soft: #edf7f1;

  --font-head: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 14px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: inherit;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
.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: -100px;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: calc(780px + var(--gutter) * 2);
}
.center {
  text-align: center;
}

/* Placeholder marker for business details not yet provided */
.placeholder {
  display: inline-block;
  background: #fff4d6;
  color: #6b4200;
  border: 1px dashed #b7791f;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn-sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.95rem;
}
.btn-lg {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 1.05rem;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-secondary:hover {
  background: var(--navy-900);
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
}
.section-navy :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-row-center {
  justify-content: center;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* ---------- Wordmark ---------- */
.brand {
  display: inline-flex;
  text-decoration: none;
  color: var(--navy-900);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(var(--navy-900), var(--navy-900)) padding-box;
  position: relative;
  flex: none;
}
.wordmark-mark::before,
.wordmark-mark::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}
.wordmark-mark::before {
  top: 10px;
}
.wordmark-mark::after {
  top: 17px;
  background: var(--accent-on-dark);
  right: 12px;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wordmark-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.brand-light {
  color: #fff;
}
.brand-light .wordmark-mark {
  background: #fff;
}
.brand-light .wordmark-mark::before {
  background: var(--navy-900);
}
.brand-light .wordmark-mark::after {
  background: var(--accent);
}
.brand-light .wordmark-sub {
  color: var(--on-dark-muted);
}
.logo-img {
  height: 40px;
  width: auto;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a[aria-current='page']:not(.btn) {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle-close {
  display: none;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-close {
  display: inline;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-open {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .site-nav ul {
    display: flex;
    gap: 26px;
  }
  .site-nav a:not(.btn) {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:not(.btn):hover {
    border-bottom-color: var(--line-strong);
  }
  .site-nav a[aria-current='page']:not(.btn) {
    border-bottom-color: var(--accent);
  }
}

@media (max-width: 1023.98px) {
  .js .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    width: 100%;
    padding-bottom: 16px;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(13, 31, 60, 0.12);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav li a:not(.btn) {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 16px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-navy {
  background: var(--navy-900);
  color: var(--on-dark);
}
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2,
.section-head h1 {
  margin-bottom: 0.35em;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow-light {
  color: var(--accent-on-dark);
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.section-navy .lead,
.page-hero .lead {
  color: var(--on-dark-muted);
}
.section-foot {
  margin-top: 40px;
}
.inline-cta {
  margin: 32px 0 0;
  color: var(--muted);
}
.inline-cta a {
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--navy-900);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--navy-800);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-badge .icon {
  color: var(--accent-on-dark);
}
.hero h1 {
  margin-bottom: 20px;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--on-dark-muted);
  max-width: 620px;
  margin-bottom: 32px;
}

/* ---------- Media (photos and illustrations) ---------- */
.media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.media img,
.media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-hero {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.media-rounded {
  border: 1px solid var(--line);
}
.media-portrait {
  aspect-ratio: 4 / 5;
  max-width: 420px;
}
@media (min-width: 960px) {
  .media-sticky {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ---------- Facts strip ---------- */
.facts {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.facts-grid {
  display: grid;
  gap: 0;
}
.facts-grid p {
  margin: 0;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.facts-grid p:last-child {
  border-bottom: 0;
}
.facts-grid strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy-900);
}
.facts-grid span {
  color: var(--muted);
}
@media (min-width: 768px) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts-grid p {
    border-bottom: 0;
    padding: 28px 28px;
    border-left: 1px solid var(--line);
  }
  .facts-grid p:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}
/* Columns adapt to the number of services so no card sits alone in a row:
   2 columns on tablets (an odd last card spans both), 4 then 3 on desktop. */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .card-grid > :last-child:nth-child(odd) .service-card-media {
    aspect-ratio: 32 / 9;
  }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }
  .card-grid > :last-child:nth-child(odd) .service-card-media {
    aspect-ratio: 16 / 9;
  }
  .card-grid:has(> :nth-child(7):last-child) {
    grid-template-columns: repeat(12, 1fr);
  }
  .card-grid:has(> :nth-child(7):last-child) > * {
    grid-column: span 3;
  }
  .card-grid:has(> :nth-child(7):last-child) > :nth-child(n + 5) {
    grid-column: span 4;
  }
}
.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.service-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service-card-media svg {
  width: 100%;
  height: 100%;
}
.service-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card-body p {
  color: var(--muted);
  flex: 1;
}

/* ---------- Customer & audience cards ---------- */
.customer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .customer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .customer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.customer-card,
.audience-card,
.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.customer-card p,
.audience-card p,
.value p {
  color: var(--muted);
  margin-bottom: 0;
}
.audience-card p + p {
  margin-top: 1em;
}
.customer-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.audience-grid,
.values-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.small-note {
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split-top {
  align-items: start;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .split-reverse > :first-child {
    order: 2;
  }
}
.principles {
  display: grid;
  gap: 24px;
}
.principle {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.principle h3 {
  margin-bottom: 6px;
}
.principle p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Veteran block ---------- */
.veteran {
  display: grid;
  gap: 28px;
}
@media (min-width: 768px) {
  .veteran {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }
}
.veteran-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-on-dark);
}
.veteran p:not(.eyebrow) {
  color: var(--on-dark-muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 28px;
}

/* ---------- Process ---------- */
.process,
.coord-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .process,
  .coord-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
  .coord-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.process-step,
.coord-step {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-900);
  border-radius: 4px 4px var(--radius) var(--radius);
  background: #fff;
}
.process-step:first-child {
  border-top-color: var(--accent);
}
.process-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.process-step p,
.coord-step p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-list .icon {
  flex: none;
  margin-top: 4px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  padding: 3px;
  width: 20px;
  height: 20px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy-900);
  color: var(--on-dark);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
}
.page-hero h1 {
  max-width: 880px;
}
.page-hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--on-dark-muted);
  max-width: 760px;
  margin-bottom: 0;
}
.page-hero .btn-row {
  margin-top: 32px;
}
.page-hero-compact {
  padding-bottom: clamp(40px, 6vw, 64px);
}
.jump-links {
  margin-top: 36px;
}
.jump-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.jump-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.jump-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Service detail ---------- */
.service-detail h2 {
  margin-bottom: 16px;
}
.list-heading {
  font-size: 1.1rem;
  margin: 28px 0 14px;
}
.outcome {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.section-alt .outcome {
  background: #fff;
  border: 1px solid var(--line);
}
.outcome h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.outcome p {
  margin: 0;
}
.service-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}
.service-copy .btn {
  margin-top: 8px;
}

/* ---------- Builders page ---------- */
.type-list {
  display: grid;
  gap: 4px;
}
.type-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.type-item:last-child {
  border-bottom: 0;
}
.type-item h3 {
  margin-bottom: 6px;
}
.type-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-800);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .cta-band-inner {
    grid-template-columns: 1.4fr auto;
    gap: 48px;
  }
}
.cta-band h2 {
  margin-bottom: 10px;
}
.cta-band p {
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 640px;
}

/* ---------- Contact blocks ---------- */
.contact-home {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .contact-home {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-card h2,
.contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.contact-card-plain {
  background: var(--bg-alt);
}
.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-details a {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.mini-process {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 12px;
}
.mini-process li::marker {
  font-weight: 700;
  color: var(--accent);
}
.mini-process strong {
  display: block;
}
.mini-process span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact page & form ---------- */
.section-form {
  padding-top: clamp(40px, 6vw, 72px);
}
.contact-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.65fr 1fr;
    gap: 48px;
  }
  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.contact-aside {
  display: grid;
  gap: 24px;
}
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 12px 32px rgba(13, 31, 60, 0.06);
}
.form-title {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.form-intro {
  color: var(--muted);
  margin-bottom: 28px;
}
.field-grid {
  display: grid;
  gap: 0 20px;
}
@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.req {
  color: var(--error);
}
.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.93rem;
}
.field-hint {
  font-size: 0.93rem;
  color: var(--muted);
  margin: -2px 0 8px;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b2433' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field textarea {
  resize: vertical;
  min-height: 150px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field [aria-invalid='true'] {
  border-color: var(--error);
  background-color: var(--error-soft);
}
.field-error {
  color: var(--error);
  font-size: 0.93rem;
  font-weight: 600;
  margin: 6px 0 0;
}
.form-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-soft);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.form-summary h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--error);
  margin-bottom: 8px;
}
.form-summary ul {
  margin: 0;
  padding-left: 1.2em;
}
.form-summary a {
  color: var(--error);
  font-weight: 600;
}
.privacy-note {
  font-size: 0.93rem;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 4px 0 24px;
}
.form-actions .btn {
  width: 100%;
}
@media (min-width: 640px) {
  .form-actions .btn {
    width: auto;
    min-width: 220px;
  }
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.form-status:not(:empty) {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 500;
}
.form-status.is-error {
  background: var(--error-soft);
  border: 1px solid var(--error);
  color: var(--error);
}
.form-status.is-error a {
  color: var(--error);
  font-weight: 700;
}
.form-status.is-pending {
  background: var(--bg-alt);
  color: var(--ink);
}
.form-success {
  text-align: left;
  border-left: 4px solid var(--success);
  background: var(--success-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.form-success h2 {
  color: var(--success);
  font-size: 1.6rem;
}
.form-success:focus {
  outline: 3px solid var(--success);
  outline-offset: 3px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Prose ---------- */
.prose p {
  font-size: 1.1rem;
}
.prose h2 {
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-muted);
  padding: 64px 0 0;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  gap: 36px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.2fr 0.8fr 1.2fr;
    gap: 48px;
  }
}
.footer-brand p {
  margin-top: 18px;
  max-width: 340px;
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer a:not(.btn) {
  color: #fff;
  text-decoration: none;
}
.site-footer a:not(.btn):hover {
  text-decoration: underline;
}
.footer-contact {
  margin-bottom: 20px;
}
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-contact .icon {
  color: var(--accent-on-dark);
  flex: none;
}
.footer-bottom {
  display: flex;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.9rem;
}
.footer-bottom p {
  margin: 0;
}

/* ---------- Mobile contact bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(13, 31, 60, 0.1);
}
.mobile-bar-single {
  grid-template-columns: 1fr;
}
.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-bar-call {
  border: 2px solid var(--navy-900);
  color: var(--navy-900);
}
.mobile-bar-primary {
  background: var(--accent);
  color: #fff;
}
.mobile-bar-primary:hover {
  color: #fff;
}
@media (max-width: 639.98px) {
  .service-card-media {
    aspect-ratio: 2 / 1;
  }
}
@media (max-width: 767.98px) {
  body:not(.no-mobile-bar) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  :root {
    --gutter: 18px;
    --header-h: 64px;
  }
  .hero .btn-row .btn,
  .page-hero .btn-row .btn,
  .cta-band .btn-row .btn,
  .contact-home .btn-row .btn,
  .btn-row-center .btn {
    width: 100%;
  }
  .wordmark-name {
    font-size: 1.3rem;
  }
}
@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

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

@media print {
  .site-header,
  .mobile-bar,
  .site-footer,
  .cta-band {
    display: none;
  }
}

/* ---------- Logo image ---------- */
.logo-img {
  height: 44px;
  width: auto;
  max-width: 100%;
}
.site-footer .logo-img {
  height: 48px;
}
@media (max-width: 767.98px) {
  .site-header .logo-img {
    height: 38px;
  }
}
@media (max-width: 359.98px) {
  .site-header .logo-img {
    height: 32px;
  }
}
