:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --text: #162033;
  --muted: #4b5a70;
  --primary: #124e96;
  --primary-dark: #0a3568;
  --border: #c8d2df;
  --focus: #ffbf00;
  --max-width: 1160px;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(22, 32, 51, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

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

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

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

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

.narrow { max-width: 820px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

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

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

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  margin-right: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  padding: .65rem .8rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 650;
}

.nav-menu a:hover { background: var(--surface); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: .6rem .8rem;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(18,78,150,.10), rgba(255,255,255,1) 65%);
}

.hero-content { padding-block: 6rem; }

.eyebrow, .section-kicker {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .9rem;
}

.hero h1 {
  max-width: 850px;
  margin: .4rem 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero h1 span { color: var(--primary); }

.hero-text {
  max-width: 720px;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-dark);
  color: #fff;
}

.section { padding-block: 5rem; }

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

h2 {
  margin: .25rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

h3 { font-size: 1.35rem; margin-top: 0; }

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.gallery-card figcaption {
  padding: .85rem 1rem;
  font-weight: 750;
}

.source-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 1rem;
}

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

.media-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.media-card video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #000;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.form-field {
  display: grid;
  gap: .4rem;
}

.form-field label { font-weight: 750; }

input, textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus, textarea:focus {
  border-color: var(--primary);
}

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #a40000;
}

.field-error {
  min-height: 1.2em;
  margin: 0;
  color: #8a0000;
  font-size: .92rem;
  font-weight: 650;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 700;
}

.site-footer {
  padding-block: 2rem;
  background: #111827;
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-content p { margin: 0; }

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

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .35rem; }
  .nav-menu {
    position: absolute;
    inset: 4.5rem 1rem auto;
    display: none;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: grid; }
  .nav-menu a { display: block; }
  .hero-content { padding-block: 5rem; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding-block: 4rem; }
  .footer-content { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
