:root {
  color-scheme: light;
  --ink: #0f1b2b;
  --muted: #526173;
  --paper: #f7fafc;
  --white: #ffffff;
  --blue-900: #072b53;
  --blue-700: #0d4f8b;
  --sky: #33a6d8;
  --red: #b3312d;
  --gold: #d5a52a;
  --line: #d9e2ec;
  --shadow: 0 20px 60px rgba(7, 43, 83, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: var(--blue-900);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--blue-900);
  border: 3px solid var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-700);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  padding: clamp(4rem, 8vh, 6rem) clamp(1rem, 4vw, 4rem) 4rem;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 43, 83, 0.96) 0%, rgba(7, 43, 83, 0.9) 48%, rgba(7, 43, 83, 0.68) 100%),
    #072b53;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 6rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin: 1.25rem 0 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.32rem;
}

.hero-actions,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 28px rgba(179, 49, 45, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #992723;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary {
  color: var(--blue-900);
  border-color: #b9dced;
  background: #e8f5fb;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--sky);
  background: #d8eef8;
}

.button-wide {
  width: 100%;
}

.integrity-line {
  max-width: 680px;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.hero-visual {
  position: absolute;
  right: clamp(-4rem, -2vw, 1rem);
  bottom: 1.5rem;
  z-index: 1;
  width: min(46vw, 680px);
  min-width: 420px;
  margin: 0;
  opacity: 0.98;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.34));
}

.hero-visual figcaption {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  text-align: center;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.band {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-copy h2,
.integrity-section h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: 1.25rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.result-panel,
.contact-card,
.integrity-grid article,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(7, 43, 83, 0.07);
}

.service-card {
  min-height: 210px;
  padding: 1.25rem;
}

.card-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  color: var(--blue-900);
  background: #e8f5fb;
  border: 1px solid #b9dced;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3,
.result-panel h3,
.integrity-grid h3 {
  margin: 1rem 0 0.55rem;
  color: var(--blue-900);
  font-size: 1.25rem;
  line-height: 1.15;
}

.service-card p,
.result-panel p,
.integrity-grid p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.diagnostic {
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef6fb 100%);
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}

.selector-panel {
  display: grid;
  gap: 1rem;
}

fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

legend {
  padding: 0 0.35rem;
  color: var(--blue-900);
  font-weight: 900;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.choice {
  min-height: 48px;
  padding: 0.75rem 0.6rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.choice:hover,
.choice:focus-visible,
.choice.is-selected {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.result-panel {
  position: sticky;
  top: 96px;
  padding: 1.25rem;
}

.route-summary {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0;
}

.route-summary div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f4f8fb;
  border-radius: 6px;
}

.route-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.route-summary dd {
  margin: 0;
  color: var(--blue-900);
  font-weight: 850;
}

.matrix-section {
  background: var(--white);
}

.work-matrix {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.work-matrix [role="row"] {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1.3fr;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.work-matrix [role="row"]:last-child {
  border-bottom: 0;
}

.work-matrix span {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.matrix-head {
  color: var(--white);
  background: var(--blue-900);
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: #edf6fb;
}

.contact-copy {
  max-width: 580px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.6rem 0.8rem;
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.privacy-note {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
}

.contact-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.contact-card h3 {
  margin: 0;
  color: var(--blue-900);
}

.response-script {
  margin: 0;
  padding: 1rem;
  color: var(--ink);
  background: #f4f8fb;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.integrity-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 1.5rem;
  background: var(--blue-900);
  color: var(--white);
}

.integrity-section h2,
.integrity-section .eyebrow {
  color: var(--white);
}

.integrity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.integrity-grid article {
  background: rgba(255, 255, 255, 0.96);
  padding: 1.25rem;
}

.faq {
  display: grid;
  gap: 0.8rem;
  background: var(--white);
}

.faq details {
  padding: 1rem;
}

.faq summary {
  color: var(--blue-900);
  font-weight: 900;
  cursor: pointer;
}

.faq p {
  padding-top: 0.7rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: rgba(255, 255, 255, 0.82);
  background: #061f3c;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 620px);
    min-width: 0;
    margin: 2rem auto 0;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .section-heading h2,
  .contact-copy h2,
  .integrity-section h2 {
    font-size: 2.45rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-layout,
  .contact-band,
  .integrity-section {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    gap: 0.85rem;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 0;
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .section-heading h2,
  .contact-copy h2,
  .integrity-section h2 {
    font-size: 2rem;
  }

  .service-grid,
  .choice-row,
  .integrity-grid {
    grid-template-columns: 1fr;
  }

  .work-matrix {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .work-matrix [role="row"] {
    grid-template-columns: 1fr;
  }

  .matrix-head {
    display: none;
  }

  .work-matrix span {
    padding: 0.75rem 1rem;
  }
}
