:root {
  --blue-950: #07004c;
  --blue-900: #001375;
  --blue-700: #0066bf;
  --blue-600: #066aab;
  --link: #248cc8;
  --link-hover: #d13434;
  --text: #444;
  --muted: #666;
  --line: #e4e4e4;
  --white: #fff;
  --content-width: 1080px;
  --focus: #ffbf47;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--blue-950);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #111;
  background: var(--white);
  box-shadow: 0 3px 12px rgb(0 0 0 / 30%);
  transform: translateY(-180%);
}

.skip-link:focus {
  color: #111;
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 70px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: var(--blue-950);
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 53px;
  align-items: center;
  gap: 15px;
}

.brand {
  display: block;
  flex: 0 1 256.4px;
  padding-block: 10px;
}

.brand img {
  width: 100%;
  max-height: 33px;
  object-fit: contain;
}

.primary-nav {
  flex: 1;
  min-width: 0;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  align-items: stretch;
  list-style: none;
}

.primary-nav a {
  display: flex;
  min-height: 53px;
  padding: 20px 35px;
  align-items: center;
  color: #e2e2e2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--blue-700);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 3px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle__icon {
  position: relative;
  margin-inline: auto;
}

.menu-toggle__icon::before {
  position: absolute;
  top: -7px;
}

.menu-toggle__icon::after {
  position: absolute;
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #161616;
}

.carousel {
  position: relative;
  height: min(60vw, 600px);
}

.carousel__slides {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}

.carousel__slide[aria-hidden="false"] {
  z-index: 1;
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__slide:nth-child(1) img {
  object-position: 97% 82%;
}

.carousel__slide:nth-child(2) img {
  object-position: 51% 62%;
}

.carousel__slide:nth-child(3) img {
  object-position: 50% 50%;
}

.carousel__slide:nth-child(4) img {
  object-position: 53% 72%;
}

.hero__shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 34%), transparent 62%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 2.75rem;
  left: 0;
  pointer-events: none;
}

.hero__title,
.hero__subtitle {
  margin: 0;
  color: var(--white);
  text-shadow: 0 2px 8px rgb(0 0 0 / 45%);
}

.hero__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.2;
}

.hero__subtitle {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.carousel__control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--white);
  background: rgb(0 0 0 / 42%);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel__control:hover,
.carousel__control:focus-visible {
  background: rgb(0 0 0 / 68%);
}

.carousel__control--previous {
  left: 1rem;
}

.carousel__control--next {
  right: 1rem;
}

.carousel__control svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.carousel__status {
  position: absolute;
  z-index: 4;
  right: 1rem;
  bottom: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  color: var(--white);
  background: rgb(0 0 0 / 58%);
  font-size: 0.8rem;
}

.site-main {
  min-height: 48vh;
  padding-block: 35px;
  background: var(--white);
}

.page-image {
  margin-bottom: 35px;
}

.page-title {
  margin: 0 0 20px;
  color: #3b3b3b;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.home-intro {
  color: #000;
  font-size: inherit;
}

.content h2,
.content h3 {
  color: var(--text);
  line-height: 1.5;
}

.content h2 {
  margin: 1em 0;
  font-size: 1.4em;
  font-weight: 500;
}

.content h3 {
  margin: 1em 0;
  font-size: 1.2em;
}

.content p,
.content ul {
  margin-top: 0;
  margin-bottom: 1em;
}

.content > :last-child {
  margin-bottom: 0;
}

.content a {
  text-decoration: none;
}

.content li + li {
  margin-top: 0.45rem;
}

.content hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--line);
}

.text-link {
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 3px;
  color: var(--white);
  background: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  background: var(--link-hover);
}

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

.gallery figure {
  margin: 0;
  background: #f2f2f2;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.65rem 0.8rem 0.8rem;
  color: #555;
  font-size: 0.9rem;
}

.gallery-caption {
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-fieldset {
  margin-inline: 0;
  padding: 0;
  border: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field label,
.form-legend {
  display: block;
  margin-bottom: 0.35rem;
  color: #222;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #999;
  border-radius: 3px;
  color: #222;
  background: var(--white);
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.required {
  color: #b00020;
}

.form-note {
  color: #666;
  font-size: 0.9rem;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form-status:empty {
  display: none;
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-card {
  align-self: start;
  padding: 1.25rem;
  border-left: 4px solid var(--blue-700);
  background: #f3f5f8;
}

.contact-card h2 {
  margin-top: 0;
}

.postal-address {
  margin-bottom: 1.4rem;
  font-style: normal;
}

.site-footer {
  padding-block: 30px;
  color: #d7d7df;
  background: var(--blue-950);
}

.footer-grid {
  width: min(calc(100% - 60px), var(--content-width));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.site-footer h2 {
  margin: 0 0 15px;
  color: var(--white);
  font-size: 15px;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  font-size: 13px;
}

.partner-logo {
  display: block;
  width: 180px;
}

.not-found {
  padding-block: 3rem;
  text-align: center;
}

.not-found p {
  margin-bottom: 2rem;
}

@media (max-width: 1080px) {
  .primary-nav a {
    padding-inline: 20px;
  }
}

@media (max-width: 480px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    z-index: 99;
    top: 53px;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    overflow-y: auto;
    background: var(--blue-950);
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .primary-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav ul {
    display: block;
    padding: 1rem 1.5rem;
  }

  .primary-nav a {
    min-height: 54px;
    padding-inline: 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 14%);
    font-size: 1rem;
  }

}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 40px), var(--content-width));
  }

  .hero__content {
    bottom: 1.3rem;
  }

  .hero__title,
  .hero__subtitle {
    display: none;
  }

  .carousel__control {
    width: 42px;
    height: 42px;
  }

  .gallery,
  .contact-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
