:root {
  --primary-color: #0c354f;
  --secondary-color: #7b293e;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --surface-color: #ffffff;
  --text-color: #1e2a36;
  --muted-text: #445668;
  --border-color: #d7e0e8;
  --focus-ring: #17a2b8;
  --footer-color: #9f2842;
  --neutral-color: #a5adbd;
  --container-max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
  color: var(--text-color);
  background: var(--light-color);
}

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

a:hover {
  color: var(--secondary-color);
}

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

.container {
  width: calc(100% - 2rem);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
  background: var(--surface-color);
  border: 2px solid var(--primary-color);
}

.site-header {
  background: var(--primary-color);
  border-bottom: 4px solid var(--secondary-color);
  max-height: 180px;
  padding: 0.75rem 0;
  overflow: visible;
  position: relative;
  z-index: 10;
  --header-row-height: 132px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
}

.site-header .brand img {
  width: auto;
  max-width: 100%;
  max-height: calc(var(--header-row-height) - 8px);
  height: auto;
  display: block;
}

.nav-wrap {
  display: flex;
  height: var(--header-row-height);
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
  max-height: 160px;
  overflow: visible;
}

.nav-toggle {
  display: none;
  color: var(--surface-color);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-brand-title {
  display: none;
  margin: 0;
}

.primary-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  height: 100%;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--surface-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 0.85rem;
  border-radius: 0.3rem;
  display: inline-block;
}

.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
}

.site-main {
  min-height: calc(100vh - 160px);
}

/* MAP PAGE */
.map-container {
  max-width: 100%;
}

.map-container img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  box-shadow: 0 8px 20px rgba(12, 53, 79, 0.2);
}

/* Keep the hanging-logo effect only on the overview page at desktop widths. */
@media (min-width: 821px) {
  body.page-overview .site-header .brand {
    align-items: flex-start;
    position: relative;
    z-index: 12;
    margin-bottom: -58px;
  }
  body.page-overview .site-header .brand img {
    max-height: 220px;
    filter: drop-shadow(0 8px 14px rgba(12, 53, 79, 0.25));
  }
  body:not(.page-overview) .site-header .brand {
    margin-bottom: 0;
    position: static;
    z-index: auto;
    margin-right: 3.5rem;
  }
  body:not(.page-overview) .site-header .brand img {
    max-height: calc(var(--header-row-height));
    filter: none;
  }
}

.hero {
  background: linear-gradient(120deg, rgba(12, 53, 79, 0.06), rgba(123, 41, 62, 0.12));
  border-bottom: 1px solid var(--border-color);
}

.hero-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: clamp(0.5rem, 1.6vw, 1rem) 1rem;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 8% 50%, rgba(12, 53, 79, 0.3) 0%, rgba(12, 53, 79, 0) 42%), radial-gradient(circle at 92% 50%, rgba(159, 40, 66, 0.32) 0%, rgba(159, 40, 66, 0) 42%), linear-gradient(90deg, #dfe6ee 0%, #eef2f6 45%, #dfe6ee 100%);
}

.hero-image img {
  display: block;
  width: 100%;
  max-width: var(--container-max-width);
  max-height: 370px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(12, 53, 79, 0.24);
  box-shadow: 0 14px 32px rgba(12, 53, 79, 0.18);
}

.hero-grid {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0;
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0.25rem 0 0.75rem;
  color: var(--primary-color);
  line-height: 1.1;
  font-size: clamp(1.8rem, 4.1vw, 3rem);
}

.hero-content p {
  color: var(--muted-text);
  max-width: 58ch;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.btn-primary {
  color: var(--surface-color);
  background: var(--secondary-color);
}

.btn-primary:hover {
  color: var(--surface-color);
  background: #682135;
}

.hero-panel {
  color: var(--surface-color);
  background: linear-gradient(145deg, var(--primary-color), #123f5d);
  border-radius: 0.6rem;
  padding: 1.2rem;
  box-shadow: 0 8px 20px rgba(12, 53, 79, 0.2);
  max-height: fit-content;
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hero-panel p {
  margin-top: 0;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.content-section {
  padding: 2rem 0 3rem;
}

.prose {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0.55rem;
  padding: 1.25rem;
}

.prose h1,
.prose h2 {
  color: var(--primary-color);
}

.site-footer {
  background: #9f2842;
  background: var(--footer-color);
  color: var(--surface-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.25rem;
  padding: 1.1rem 0;
}

.footer-title {
  margin: 0;
  font-weight: 600;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(3, auto);
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  color: var(--surface-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.footer-nav a :hover {
  color: var(--surface-color);
  opacity: 0.85;
}

@media (max-width: 820px) {
  .site-header .brand {
    margin-bottom: 0;
    margin-right: 0;
  }
  .site-header {
    background: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    max-height: 108px;
    padding: 0.45rem 0 0.55rem;
    overflow: visible;
    position: relative;
    z-index: 10;
  }
  .site-header .brand {
    display: inline-flex;
    align-items: center;
  }
  .site-header .brand img {
    width: auto;
    max-width: 128px;
    max-height: 88px;
    height: auto;
    display: block;
  }
  .mobile-brand-title {
    display: block;
    flex: 1 1 auto;
    color: var(--surface-color);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0.45rem 0 0.25rem;
  }
  .nav-wrap {
    height: auto;
    min-height: 0;
    max-height: none;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.45rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .primary-nav {
    order: 4;
    min-width: 200px;
    max-width: 300px;
    display: none;
  }
  .primary-nav.is-open {
    position: absolute;
    right: 0px;
    top: 108px;
    z-index: 11;
    display: block;
    background-color: var(--secondary-color);
    width: 1200px;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0.35rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 1.25rem);
    max-width: 1120px;
  }
  .hero-image {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .hero-image img {
    max-height: 240px;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-nav {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.35rem;
  }
}
