*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --navy: #0f233d;
  --teal: #0d5c63;
  --sky: #f2f7fb;
  --sand: #f7f3ee;
  --text: #1b1f24;
  --muted: #4d5b6a;
  --white: #ffffff;
  --focus: #f5b700;
  --radius: 18px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--focus);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10;
}

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.hero {
  background:
    linear-gradient(120deg, rgba(15, 35, 61, 0.88), rgba(13, 92, 99, 0.75)),
    url("img/hero.jpg")
      center/cover no-repeat;
  color: var(--white);
  padding: 4.5rem 0 5rem;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero__nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.hero__nav a {
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.hero__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero__nav a:hover::after,
.hero__nav a:focus-visible::after {
  opacity: 1;
}

.hero__content {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
  text-align: center;
  justify-items: center;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 1rem;
}

.hero__logo {
  max-width: min(360px, 80vw);
  height: auto;
  margin: 0;
}

.hero__tagline {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero__content .button {
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--sky);
}

.section-intro {
  margin-top: 0;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2rem;
}

.media-card {
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 35, 61, 0.12);
}

.media-card figcaption {
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.tagline {
  font-weight: 600;
  color: var(--teal);
}

address {
  font-style: normal;
  margin-bottom: 1rem;
}

.label {
  font-weight: 600;
  color: var(--navy);
}

.table-wrapper {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 12px 30px rgba(15, 35, 61, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

th {
  color: var(--navy);
  font-size: 0.95rem;
}

td {
  color: var(--muted);
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}

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

.footer__content {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.footer__logo {
  width: 140px;
  height: auto;
}

.footer__info {
  display: grid;
  gap: 0.5rem;
}

.attribution {
  margin: 0;
  opacity: 0.85;
}

.not-found {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  margin: 2rem auto;
  max-width: 560px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 35, 61, 0.12);
}

.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.not-found__logo {
  width: min(260px, 70vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: invert(1) brightness(0.95);
}

.not-found__code {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.not-found__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.75rem 0;
}

.not-found__text {
  margin: 0 0 2rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

@media (max-width: 599px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero__top {
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
  }

  .hero__nav {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .table-wrapper {
    padding: 0.75rem;
  }

  .footer__content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
