:root {
  --navy: #0c2340;
  --navy-soft: #143356;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --cream: #f7f5f0;
  --text: #1a2332;
  --muted: #5c6573;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(12, 35, 64, 0.12);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 100;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}

.site-nav a.active:not(.btn) {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(12, 35, 64, 0.15);
  background: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8921f);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.hero {
  position: relative;
  color: var(--white);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(12, 35, 64, 0.94), rgba(20, 51, 86, 0.78)),
    url("../images/hero.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.hero-card li:last-child {
  border-bottom: none;
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

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

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

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
}

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

.small {
  font-size: 0.875rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(12, 35, 64, 0.06);
  border: 1px solid rgba(12, 35, 64, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

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

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

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pillar {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pillar h3 {
  color: var(--gold-light);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.08);
}

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

.team-card .body {
  padding: 1.25rem;
}

.team-card h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.team-card .role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.team-card .creds {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
}

.page-hero h1 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(12, 35, 64, 0.15);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

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

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
}

.alert-error {
  background: #ffebee;
  color: #b71c1c;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.site-footer h3,
.site-footer h4 {
  color: var(--gold-light);
  margin-top: 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Admin */
.admin-body {
  background: #eef1f5;
  min-height: 100vh;
}

.admin-top {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 0;
}

.admin-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-nav a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-nav a:hover {
  color: var(--gold-light);
}

.admin-main {
  padding: 2rem 0 3rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(400px, 100%);
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero .container,
  .split,
  .contact-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1rem;
    border-bottom: 1px solid rgba(12, 35, 64, 0.1);
  }

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

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}
