:root {
  --navy: #0b2545;
  --navy-dark: #06152a;
  --maroon: #8d1c2e;
  --gold: #c9a227;
  --ink: #1a1f2b;
  --muted: #5a6475;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e3e7ef;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 37, 69, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
  font-family: "Merriweather", Georgia, serif;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--maroon);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: #71162a; box-shadow: var(--shadow); }

.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: #b5901f; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(201, 162, 39, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(141, 28, 46, 0.22), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 5rem 0 5.5rem;
}

.hero h1 { color: #fff; }
.hero-inner { max-width: 760px; }
.hero p { font-size: 1.15rem; color: #d9e0ee; margin-bottom: 1.8rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.3rem; }
.page-hero p { color: #c9d2e3; max-width: 720px; margin: 0; }

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title .eyebrow { color: var(--maroon); }
.section-title h2 { margin-bottom: 0.4rem; }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0.75rem; }
.card a { font-weight: 600; }

/* ---------- Feature two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.media-placeholder {
  background: linear-gradient(135deg, #e9eef7, #f5f7fb);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Updates feed ---------- */
.updates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 720px) { .updates { grid-template-columns: 1fr; } }

.update {
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.update .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.update h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.update time { color: var(--muted); font-size: 0.85rem; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.team-member {
  text-align: center;
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--navy), var(--maroon));
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 800;
  font-family: "Merriweather", Georgia, serif;
}
.team-member h3 { margin-bottom: 0.25rem; }
.team-member .role {
  display: block;
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

/* ---------- Values list ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.value {
  padding: 1.5rem;
  background: #fff;
  border-top: 4px solid var(--maroon);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.value:nth-child(2) { border-top-color: var(--navy); }
.value:nth-child(3) { border-top-color: var(--gold); }
.value h3 { margin-top: 0; }

/* ---------- AI Query Box ---------- */
.query-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.query-box form {
  display: flex;
  gap: 0.6rem;
}
.query-box input[type="text"] {
  flex: 1;
  padding: 0.95rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.query-box input[type="text"]:focus {
  outline: none;
  border-color: var(--maroon);
}
@media (max-width: 560px) {
  .query-box form { flex-direction: column; }
}

.examples {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.examples span { color: var(--muted); font-size: 0.9rem; margin-right: 0.25rem; }
.chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
}
.chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Search & Filters ---------- */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.filters input,
.filters select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr; }
}

/* ---------- Lists / Resources ---------- */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.link-list li {
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link-list li:hover { border-color: var(--maroon); }
.link-list .arrow { color: var(--maroon); font-weight: 700; }

/* Glossary */
.glossary {
  display: grid;
  gap: 0.5rem;
}
.glossary dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
}
.glossary dd {
  margin: 0.2rem 0 0 0;
  color: var(--muted);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.form label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--maroon);
}
.form textarea { min-height: 140px; resize: vertical; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--maroon);
}
.contact-info p { margin-bottom: 0.5rem; }
.contact-info strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ecd9dc; max-width: 620px; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #c9d2e3;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.site-footer a { color: #c9d2e3; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* ---------- Misc helpers ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(201, 162, 39, 0.15);
  color: #8a6d10;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}