:root {
  --navy: #031525;
  --navy2: #072844;
  --blue: #0798f6;
  --ink: #08182b;
  --muted: #657386;
  --line: #dbe5ee;
  --white: #fff;
  --bg: #f4f7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 28px;
}

/* Header & Navigation */
.top {
  background: linear-gradient(90deg, #02111e, #073154);
  color: white;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.logo {
  width: 280px;
  max-width: 31vw;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover,
.footer a:hover {
  color: #49baff;
}

.pill {
  background: var(--blue);
  padding: 15px 20px;
  border-radius: 5px;
}

.menu {
  display: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  user-select: none;
}

/* Hero Section */
.hero {
  min-height: 500px;
  background: linear-gradient(90deg, rgba(0, 10, 20, .92) 0%, rgba(0, 18, 32, .72) 42%, rgba(0, 0, 0, .12) 75%), url('assets/images/hero.jpg') center/cover;
  color: white;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 58px;
  line-height: .98;
  margin: 8px 0 18px;
  max-width: 690px;
  text-transform: uppercase;
}

.blue {
  color: #4abaff;
}

.hero p {
  font-size: 20px;
  line-height: 1.45;
  max-width: 610px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
}

.buttons {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--blue);
  color: white;
}

.btn.alt {
  background: transparent;
  border: 1px solid white;
}

/* Stats Bar */
.stats {
  background: linear-gradient(90deg, #021425, #073457);
  color: white;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 25px;
  padding-bottom: 25px;
}

.stat {
  padding: 5px 28px;
  border-right: 1px solid #2e6286;
}

.stat:last-child {
  border: 0;
}

.stat b {
  display: block;
  font-size: 34px;
}

.stat span {
  font-weight: 800;
  text-transform: uppercase;
}

/* Content Sections & Cards */
.section {
  padding: 52px 0;
}

.section.gray {
  background: var(--bg);
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.section h2 {
  font-size: 38px;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card .body {
  padding: 20px;
}

.tag {
  font-size: 12px;
  font-weight: 800;
  color: #087fcf;
  text-transform: uppercase;
}

.card h3 {
  font-size: 22px;
  margin: 8px 0;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

/* Call to Action */
.cta {
  background: linear-gradient(90deg, rgba(0, 22, 42, .94), rgba(0, 35, 61, .5)), url('assets/images/cta.jpg') center/cover;
  color: white;
  padding: 62px 0;
}

.cta h2 {
  font-size: 45px;
  margin: 0 0 10px;
}

.cta p {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
}

/* Subpages */
.pagehero {
  background: linear-gradient(110deg, #021526, #0a426b);
  color: #fff;
  padding: 70px 0;
}

.pagehero h1 {
  font-size: 48px;
  margin: 0 0 12px;
}

.content {
  max-width: 900px;
}

.content h2 {
  font-size: 30px;
  margin-top: 36px;
}

.content p,
.content li {
  font-size: 18px;
  line-height: 1.65;
  color: #34475a;
}

.gridlinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.gridlinks a {
  padding: 24px;
  background: #f1f6fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

/* Footer */
.footer {
  background: #031524;
  color: white;
  padding: 34px 0 22px;
}

.footer .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer h4 {
  margin: 0 0 12px;
}

.footer a {
  display: block;
  color: #c9d5df;
  margin: 7px 0;
  font-size: 14px;
}

.legal {
  border-top: 1px solid #24516e;
  margin-top: 26px;
  padding-top: 18px;
  color: #9fb0bd;
  font-size: 13px;
}

/* Tablet & Mobile Navigation */
@media (max-width: 850px) {
  .top .wrap {
    position: relative;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 28px;
    gap: 16px;
    z-index: 1000;
    border-top: 1px solid #24516e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  }

  .nav.open {
    display: flex;
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .logo {
    max-width: 230px;
    width: 55vw;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .stats .wrap,
  .cards,
  .gridlinks,
  .footer .cols {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .cards .card:last-child {
    grid-column: 1/-1;
  }
}

/* Small Mobile Screens */
@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }

  .top .wrap {
    min-height: 78px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats .wrap,
  .cards,
  .gridlinks,
  .footer .cols {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid #2e6286;
  }

  .pagehero h1 {
    font-size: 38px;
  }
}
