:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #121820;
  --muted: #5a6570;
  --line: #e2e6eb;
  --navy: #0f1c2e;
  --navy-soft: #1a2b42;
  --gold: #c4a35a;
  --gold-dark: #9a7d3a;
  --focus: #2a6f97;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(15, 28, 46, 0.08);
  --max: 1120px;
  --header-h: 72px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-dark);
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand img,
.brand svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.hero {
  position: relative;
  color: #f4f6f8;
  overflow: hidden;
  min-height: clamp(460px, 78vh, 680px);
  display: flex;
  align-items: flex-end;
  background: #0f1c2e;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture,
.topic-media picture,
.visual-band picture,
.page-visual picture,
.page-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 28, 46, 0.78) 0%, rgba(15, 28, 46, 0.45) 42%, rgba(15, 28, 46, 0.18) 100%),
    linear-gradient(to top, rgba(15, 28, 46, 0.55) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
  animation: rise 0.8s ease both;
}

.hero .brand-mark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.85rem;
  color: #fff;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.hero p {
  margin: 0 0 1.6rem;
  color: rgba(244, 246, 248, 0.82);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #d4b56d;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.topic {
  padding: 0;
}

.topic-media {
  margin: 0 0 0.95rem;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #dfe3e8;
}

.topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.topic:hover .topic-media img {
  transform: scale(1.04);
}

.topic h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy);
  padding-left: 0.85rem;
  border-left: 3px solid var(--gold);
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.visual-band {
  position: relative;
  min-height: clamp(240px, 38vw, 360px);
  overflow: hidden;
  background: var(--navy);
}

.visual-band img {
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 38vw, 360px);
  object-fit: cover;
  object-position: center;
}

.visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 28, 46, 0.55), transparent 60%);
  pointer-events: none;
}

.page-visual {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dfe3e8;
}

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

.page-hero.has-media {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-hero-media {
  margin-top: 1.75rem;
  overflow: hidden;
  max-height: 280px;
  border-bottom: 1px solid var(--line);
}

.page-hero-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.accordion {
  display: grid;
  gap: 0.65rem;
}

.acc-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}

.acc-btn .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.acc-item.is-open .acc-btn .chev {
  transform: rotate(-135deg);
}

.acc-panel {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.acc-item.is-open .acc-panel {
  display: block;
  animation: fade 0.25s ease;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.info-block {
  padding: 0.25rem 0;
}

.info-block h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
}

.info-block p,
.info-block li {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.info-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.info-block li + li {
  margin-top: 0.35rem;
}

.info-block a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.info-block a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th,
.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  font-weight: 500;
}

.hours-table th {
  color: var(--ink);
  width: 45%;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--navy);
}

.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--navy);
}

.prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.job-list,
.partner-list {
  display: grid;
  gap: 0.85rem;
}

.job,
.partner {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.job:last-child,
.partner:last-child {
  border-bottom: 0;
}

.job h3,
.partner h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--navy);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

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

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-success {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: #edf7f0;
  border: 1px solid #c6e2cf;
  color: #1f5a34;
}

.form-success.is-visible {
  display: block;
  animation: fade 0.25s ease;
}

.site-footer {
  background: var(--navy);
  color: rgba(244, 246, 248, 0.78);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(244, 246, 248, 0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.35s ease;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.55);
}

.modal-dialog {
  position: relative;
  width: min(100%, 480px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.35rem;
  animation: rise 0.3s ease;
}

.modal-dialog h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy);
}

.modal-dialog p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .topic-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3.2rem 0 2.6rem;
  }

  .section {
    padding: 3rem 0;
  }
}

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