:root {
  --brand-primary: #203341;
  --brand-secondary: #1f77ab;
  --brand-accent: #f1aa3b;
  --text: #17232d;
  --muted: #eef3f7;
  --white: #ffffff;
  --border: #d3e0eb;
  --surface: #f8fbfd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
  color: var(--white);
}

.modern-header {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 18px rgba(12, 29, 44, 0.15);
}

.top-nav {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: clamp(150px, 18vw, 200px);
  height: auto;
  display: block;
  background: var(--white);
  border-radius: 0.6rem;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  margin: 5px;
}

.tagline {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
  opacity: 0.80;
  max-width: 34ch;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 3.5rem 0 3rem;
}

.section.alt {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h1,
h2 {
  margin: 0 0 1rem;
  color: var(--brand-primary);
  line-height: 1.2;
}

h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.45rem, 1.05rem + 1vw, 2rem);
}

h3 {
  margin: 0 0 0.55rem;
}

.hero {
  background:
    radial-gradient(circle at 82% 10%, rgba(241, 170, 59, 0.2), transparent 32%),
    radial-gradient(circle at 8% 30%, rgba(31, 119, 171, 0.25), transparent 27%),
    linear-gradient(160deg, #203341, #1b4f73 62%, #203341);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #d6ecff;
}

.hero-copy {
  max-width: 62ch;
  margin: 0 0 1.2rem;
  color: #e6f2fa;
}

.card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  background: var(--white);
}

a {
  color: var(--brand-primary);
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.92;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.66rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-accent);
  color: #1f2a34;
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.stats-grid,
.feature-grid,
.contact-grid,
.split-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.stat-card h3 {
  margin: 0 0 0.25rem;
  color: var(--brand-accent);
  font-size: 1.7rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.9rem;
  padding: 1rem;
}

.split-grid {
  grid-template-columns: 1.1fr 1fr;
}

.section-link {
  margin-top: 1.25rem;
  font-weight: 500;
}

.map-frame-wrap {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--surface);
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 540px;
  border: 0;
}

.site-footer {
  background: var(--brand-primary);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 31, 0.62);
}

.modal-dialog {
  position: relative;
  width: min(1050px, 94vw);
  margin: 4vh auto;
  background: var(--white);
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 42px rgba(8, 20, 31, 0.36);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.pdf-embed {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  border: 0;
}

@media (max-width: 860px) {
  .top-nav {
    min-height: auto;
    padding: 0.45rem 0 0.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: clamp(128px, 40vw, 170px);
    transform: translateY(6px);
    margin: 0 0 -6px;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .map-embed {
    min-height: 420px;
  }

  .modal-dialog {
    width: 96vw;
    margin: 2vh auto;
  }

  .pdf-embed {
    height: 80vh;
  }
}
