:root {
  --ink: #122033;
  --navy: #0b2444;
  --navy-2: #173b68;
  --red: #c72535;
  --red-dark: #991b29;
  --muted: #5f6f82;
  --line: #d9e1ea;
  --soft: #f4f7fb;
  --white: #ffffff;
  --gold: #f2b84b;
  --shadow: 0 18px 46px rgba(18, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 32, 51, 0.08);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.9);
  background: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.top-strip a {
  text-decoration: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 58px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 4px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--navy-2));
  font-weight: 900;
}

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

.brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 12px 10px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
body[data-page="home"] .site-nav [data-nav="home"],
body[data-page="about"] .site-nav [data-nav="about"],
body[data-page="services"] .site-nav [data-nav="services"],
body[data-page="apply"] .site-nav [data-nav="apply"],
body[data-page="contact"] .site-nav [data-nav="contact"] {
  color: var(--red);
  border-color: var(--red);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.nav-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-actions a:last-child {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 27, 50, 0.92), rgba(8, 27, 50, 0.72) 48%, rgba(8, 27, 50, 0.18));
}

.hero-content,
.page-hero,
.section,
.cta,
.hero-panels {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-content {
  padding: 92px 0 150px;
  color: var(--white);
  max-width: 720px;
  margin-left: clamp(18px, 7vw, 92px);
}

.hero-panels {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform: translateX(-50%);
}

.hero-panels a {
  padding: 24px 28px;
  color: var(--white);
  background: var(--red);
  text-decoration: none;
}

.hero-panels a:first-child {
  background: var(--navy-2);
}

.hero-panels strong,
.hero-panels span {
  display: block;
}

.hero-panels strong {
  font-size: 1.35rem;
}

.hero-panels span {
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.55rem, 5.6vw, 5.25rem);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3.1rem);
}

h3 {
  font-size: 1.24rem;
}

.hero p:not(.eyebrow),
.page-hero p,
.section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

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

.page-hero {
  padding: 82px 0 60px;
}

.page-hero p {
  max-width: 780px;
}

.section {
  padding: 78px 0;
}

.intro-grid,
.split,
.contact-grid,
.image-split,
.trust-band {
  display: grid;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.intro-grid,
.split,
.contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.image-split {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.trust-band {
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.stats-panel,
.values-panel,
.contact-card,
.contact-form,
.process-grid article {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  padding: 28px;
  border-top: 5px solid var(--navy-2);
}

.card:nth-child(even) {
  border-top-color: var(--red);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--navy-2);
  font-weight: 900;
}

.card:nth-child(even) .card-icon {
  background: var(--red);
}

.service-card h2 {
  font-size: 1.42rem;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.stats-panel div {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats-panel div:last-child {
  border-right: 0;
}

.stats-panel strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
}

.stats-panel span,
.office-list strong,
.contact-card strong {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.office-list {
  display: grid;
  gap: 12px;
}

.office-list p {
  margin: 0;
  padding: 18px 20px;
  border-left: 5px solid var(--red);
  background: var(--soft);
}

.image-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cbd7e5;
  color: var(--navy);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.process-grid,
.trust-grid {
  display: grid;
  gap: 16px;
}

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

.process-grid article {
  min-height: 245px;
  padding: 26px;
  border-top: 5px solid var(--red);
}

.process-grid article:nth-child(even) {
  border-top-color: var(--navy-2);
}

.process-grid strong {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.9rem;
}

.trust-grid p {
  margin: 0;
  padding: 20px 22px;
  border-left: 5px solid var(--red);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 32, 51, 0.08);
}

.trust-grid p:nth-child(even) {
  border-left-color: var(--navy-2);
}

.trust-grid strong {
  display: block;
  color: var(--ink);
}

.values-panel {
  padding: 30px;
}

.values-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 78px;
  padding: 36px;
  color: var(--white);
  background: var(--navy);
}

.cta h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.cta .eyebrow {
  color: var(--gold);
}

.contact-card,
.contact-form {
  padding: 28px;
}

.contact-card a {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.78);
  background: #07182d;
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.site-footer a {
  display: block;
  text-decoration: none;
  font-weight: 900;
}

.site-footer p {
  margin: 8px 0 0;
}

@media (max-width: 1040px) {
  .nav-actions {
    display: none;
  }
}

@media (max-width: 860px) {
  .top-strip {
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 118px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-bottom: 0;
  }

  .hero {
    min-height: 660px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(8, 27, 50, 0.94), rgba(8, 27, 50, 0.68));
  }

  .hero-content {
    margin-inline: 18px;
    padding-bottom: 190px;
  }

  .hero-panels,
  .intro-grid,
  .split,
  .contact-grid,
  .image-split,
  .trust-band,
  .card-grid.two,
  .card-grid.three,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .stats-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-panel div:last-child {
    border-bottom: 0;
  }

  .cta,
  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .page-hero {
    padding-top: 58px;
  }

  .section {
    padding: 56px 0;
  }

  .button {
    width: 100%;
  }

  .hero-panels a {
    padding: 18px;
  }
}
