:root {
  --navy: #062b73;
  --navy-dark: #041f51;
  --header-height: 86px;
  --page-padding: clamp(22px, 5vw, 92px);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--navy-dark);
  background: #fff;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(5, 41, 104, 0.08);
}

.header-inner {
  width: 100%;
  min-height: var(--header-height);
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: clamp(270px, 23vw, 390px);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 3.5vw, 66px);
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  color: var(--navy-dark);
  text-decoration: none;
  font-size: clamp(16px, 1.06vw, 20px);
  line-height: 1;
  padding: 31px 0 29px;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 1px;
  background: var(--navy);
  transition: right 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--navy);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  right: 0;
}

.language-switcher {
  justify-self: end;
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-dark);
  background: #fff;
  border: 1px solid rgba(5, 41, 104, 0.20);
  border-radius: 9px;
  font: 16px/1 var(--serif);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.language-switcher:hover,
.language-switcher:focus-visible {
  border-color: rgba(5, 41, 104, 0.48);
  box-shadow: 0 4px 16px rgba(3, 34, 86, 0.08);
  outline: none;
}

.language-switcher img {
  width: 31px;
  height: auto;
}

.language-switcher svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-left: 4px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0c4d7f;
}

/* The photo is rendered at its natural aspect ratio so the full image is always visible. */
.hero-image {
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 19, 49, 0.03) 0%, rgba(2, 19, 49, 0.08) 45%, rgba(2, 19, 49, 0.14) 100%);
  pointer-events: none;
}

.hero-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  text-align: center;
}

.hero h1 {
  margin: 0;
  max-width: 92vw;
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.2vw, 102px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 18px rgba(0, 23, 57, 0.35);
}

.site-footer {
  min-height: 76px;
  padding: 20px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid rgba(5, 41, 104, 0.08);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #52627b;
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.65;
}

@media (max-width: 1180px) {
  :root {
    --header-height: 78px;
  }

  .header-inner {
    grid-template-columns: minmax(210px, 1fr) auto minmax(176px, 1fr);
    gap: 22px;
  }

  .brand {
    width: clamp(225px, 25vw, 300px);
  }

  .primary-nav {
    gap: 24px;
  }

  .language-switcher {
    font-size: 15px;
    min-height: 42px;
    padding: 0 13px;
  }

  .language-switcher img {
    width: 27px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .brand {
    width: clamp(200px, 41vw, 285px);
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    padding: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    order: 2;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--navy-dark);
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .language-switcher {
    order: 3;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px var(--page-padding) 16px;
    background: rgba(255, 255, 255, 0.99);
    border-top: 1px solid rgba(5, 41, 104, 0.08);
    box-shadow: 0 14px 30px rgba(3, 34, 86, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(5, 41, 104, 0.08);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(34px, 6.4vw, 62px);
  }
}

@media (max-width: 640px) {
  :root {
    --page-padding: 16px;
  }

  .header-inner {
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 6px 8px;
  }

  .brand {
    width: min(67vw, 255px);
  }

  .menu-toggle {
    justify-self: end;
    order: 2;
  }

  .language-switcher {
    grid-column: 1 / -1;
    justify-self: stretch;
    order: 3;
    min-height: 40px;
    justify-content: center;
    border-width: 0 0 1px;
    border-radius: 0;
    margin: 0 calc(-1 * var(--page-padding));
    padding: 0 var(--page-padding) 8px;
  }

  .primary-nav {
    top: 106px;
  }

  .hero-title-wrap {
    padding: 4vw 18px;
  }

  .hero h1 {
    max-width: 94vw;
    font-size: clamp(24px, 7vw, 40px);
    line-height: 1.08;
  }

  .site-footer {
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-footer p {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .brand {
    width: min(65vw, 230px);
  }

  .hero h1 {
    font-size: clamp(21px, 6.8vw, 31px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
