:root {
  --navy: #085185;
  --blue: #0068b3;
  --blue-hover: #408ec6;
  --stripe: #256ea2;
  --line: #c2c2c2;
  --card: #e1e1e1;
  --ink: #2b2b2b;
  --sheet: #ffffff;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { background: var(--navy); }

.boot {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 0 1.25rem;
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--sheet);
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

a:focus-visible,
button:focus-visible,
.nav-button:focus-visible {
  outline: 3px solid #f3c14b;
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: Montserrat, Roboto, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-button { display: none; }

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  padding-top: 16px;
}

.header-top { text-align: center; }

.logo { display: inline-block; }

.logo img {
  width: min(350px, 78vw);
  height: auto;
  background: #fff;
  padding: 8px 12px 6px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  padding: 8px 14px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--line);
  color: #fff;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  color: #fff;
  background: #123a56 center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.38) 100%);
}

.hero-home { min-height: 560px; }

.hero-page { min-height: 320px; }

.hero-shade {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 170px 0 40px;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.stripe {
  height: 8px;
  background: var(--stripe);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.sheet { background: var(--sheet); }

.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.page h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.7rem;
}

.page p { margin: 0 0 16px; }

.page ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.page li { margin: 0.35rem 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--line);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 2px solid var(--line);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.card h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.35rem;
}

.card p {
  flex: 1;
  margin: 0 0 16px;
}

.more {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
}

.more:hover,
.more:focus-visible {
  background: var(--blue-hover);
  color: #fff;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 28px;
}

.logo-grid figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.logo-grid img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.contact-card {
  max-width: 520px;
  margin-top: 8px;
  padding: 22px 24px;
  background: var(--card);
  border: 2px solid var(--line);
}

.contact-card p { margin: 0 0 10px; }

.contact-card p:last-child { margin-bottom: 0; }

.contact-card a { font-weight: 500; }

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 36px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.footer-links {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.footer-links li:not(:last-child)::after {
  content: "|";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a { color: #fff; }

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

.cards-accepted {
  width: 172px;
  height: auto;
  background: #fff;
  padding: 4px;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 2px solid var(--line);
    padding: 8px 0;
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .logo img {
    width: 210px;
    padding: 0;
    background: transparent;
  }

  .nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid var(--line);
    padding: 8px 12px;
    background: #fafafa;
  }

  .nav-button::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #333;
    box-shadow: 0 -6px 0 #333, 0 6px 0 #333;
  }

  .site-nav { display: none; }

  .nav-toggle:checked ~ .site-nav {
    display: block;
    background: #fafafa;
    border-top: 2px solid var(--line);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 0 12px;
  }

  .site-nav a {
    color: #333;
    font-size: 20px;
    padding: 12px 4px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a[aria-current="page"] {
    background: var(--blue-hover);
    border-color: transparent;
    color: #fff;
  }

  .hero-shade { padding-top: 28px; }

  .hero-home { min-height: 380px; }

  .hero-page { min-height: 220px; }

  .cards,
  .logo-grid { grid-template-columns: 1fr; }

  .footer-grid { flex-direction: column; }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .site-nav a { padding: 8px 10px; font-size: 16px; }
}
