/* ---------- Design tokens ---------- */
:root {
  --navy: #163a63;
  --navy-2: #0f2947;
  --cream: #faf6ec;
  --white: #ffffff;
  --accent: #1f5c99;
  --accent-light: #6fb8ef;
  --accent-dark: #16456f;
  --gold: #c99a44;
  --card-bg: rgba(22, 58, 99, .05);
  --line: rgba(22, 58, 99, .14);
  --text-head: #12202c;
  --text-body: #48525e;
  --text-muted: #7c8793;
  --max-width: 1120px;

  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'EB Garamond', Georgia, serif;
}

/* Dark/navy surfaces remap the shared tokens so every component rule below
   "just works" on either background without a separate dark variant. */
.site-header, .site-footer, .section-mpi, .section-contact,
.photo-header-content {
  --accent: var(--accent-light);
  --card-bg: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .2);
  --text-head: #ffffff;
  --text-body: #cbdaea;
  --text-muted: #93a9c0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--text-head);
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.12rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-body); }

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.section-lede {
  max-width: 620px;
  font-size: 1rem;
  color: var(--text-body);
}

.kicker {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  color: var(--accent);
  margin: 0 0 12px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  max-width: 100%;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 92, 153, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.btn-large {
  font-size: 1.15rem;
  padding: 18px 34px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(100deg, var(--navy), var(--navy-2) 85%);
  box-shadow: 0 6px 24px rgba(10, 20, 35, .35);
  z-index: 100;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-light), var(--gold) 50%, var(--accent-light));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover {
  background: rgba(255,255,255,.12);
  color: var(--text-head);
}
.site-nav a.active {
  background: var(--accent);
  color: #0f2947;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* ---------- Full-bleed photo header (Home hero + Services/About page headers) ---------- */
.photo-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 3px solid var(--accent);
}
.photo-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.photo-header-bg-low { object-position: center 58%; }
.photo-header-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,41,71,.08) 0%, rgba(15,41,71,.5) 48%, rgba(10,26,46,.92) 100%),
    linear-gradient(100deg, rgba(10,26,46,.88) 0%, rgba(15,41,71,.5) 42%, rgba(15,41,71,.06) 75%);
}
.photo-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 0 44px;
}
.photo-header-content .wrap { max-width: 780px; }

.photo-header-lg { min-height: 540px; }
.photo-header-md { min-height: 400px; }

.photo-header-md .photo-header-content h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.photo-header-lg .photo-header-content h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.photo-header .section-lede { font-size: 1.05rem; }

.hero-sub {
  font-size: 1.02rem;
  color: var(--text-body);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Sections ---------- */
.section {
  padding: 44px 0;
}

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

/* ---------- MPI leadership section ---------- */
.section-mpi {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.mpi-watermark { display: none; }

.mpi-badge {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
}
.mpi-badge img { height: 24px; width: auto; display: block; }

.mpi-inner { position: relative; max-width: 720px; }
.mpi-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.mpi-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--text-head);
  font-size: .88rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
}

/* ---------- Hero split (text + photo) ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---------- Photo captions (used with hero/feature photos) ---------- */
.photo-caption {
  margin: 10px 0 0;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--text-muted);
  font-size: .92rem;
}

/* ---------- MPI leadership split (text + photo) ---------- */
.mpi-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
}
.mpi-photo-caption { color: var(--text-body); }

/* ---------- Feature grid (text + landscape photo) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-photo {
  margin: 0;
  overflow: hidden;
}
.feature-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---------- Testimonials ---------- */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 6px;
  max-width: 760px;
}
.testimonial-item {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
.testimonial-item p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--text-head);
  margin: 0;
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: start;
}

.story-photo {
  margin: 0;
  position: sticky;
  top: 100px;
}
.story-photo img {
  width: 100%;
}

.story-copy { max-width: 640px; }
.story-copy p { font-size: 1.01rem; color: var(--text-body); }
.story-lead {
  font-weight: 600;
  color: var(--text-head) !important;
  font-size: 1.15rem !important;
}
.story-signoff {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 28px;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 22px;
}

.service-card h3 { color: var(--text-head); }
.service-card p { font-size: .96rem; color: var(--text-body); margin: 0; }
.service-card p + p { margin-top: 10px; }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(31, 92, 153, .14);
  color: var(--accent);
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }

/* Compact service overview (Home — full detail lives on Services) */
.service-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 16px;
}
.service-tile .service-icon {
  margin-bottom: 0;
}
.service-tile span:last-child {
  font-weight: 600;
  font-size: .94rem;
  color: var(--text-head);
}
a.service-tile {
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
a.service-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Full detail service blocks (services page) */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.service-detail {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
}
.service-detail .service-icon { margin-bottom: 14px; }
.service-detail h3 { font-size: 1.2rem; color: var(--text-head); }
.service-detail p { color: var(--text-body); font-size: 1rem; }
.service-sub {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.service-sub p { margin-bottom: 8px; font-size: .95rem; }
.service-sub strong { color: var(--text-head); }

.service-list-label { margin: 14px 0 4px; }
.service-list-label strong { color: var(--text-head); }
.service-list {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: .95rem;
}
.service-list li { margin-bottom: 5px; }
.service-sub .service-list { margin-top: 2px; margin-bottom: 10px; }
.service-sub .service-list:last-child { margin-bottom: 0; }

.service-feature-photo {
  margin: 40px auto 0;
  max-width: 640px;
  text-align: center;
}
.service-feature-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.service-feature-photo .photo-caption { text-align: center; }

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.cred-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 16px;
}

.cred-stat {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  color: var(--accent);
  margin: 0 0 8px;
  line-height: 1;
}

.cred-label {
  font-size: .93rem;
  color: var(--text-body);
  margin: 0;
}

.cred-wide {
  grid-column: span 3;
  background: var(--card-bg);
  border: 2px solid var(--accent);
}
.cred-wide .cred-label { font-size: 1.02rem; color: var(--text-head); margin: 0; }
.cred-wide strong { color: var(--accent); }

.cred-uga {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cred-uga-logo {
  height: 54px;
  width: auto;
  flex: none;
  background: #fff;
  padding: 5px 9px;
  border-radius: 6px;
}

/* Credentials paired with a photo (About page) */
.cred-feature { align-items: start; }
.cred-grid-tight { grid-template-columns: repeat(2, 1fr); }
.cred-grid-tight .cred-wide { grid-column: span 2; }
.cred-feature .feature-photo { position: sticky; top: 100px; }

/* ---------- Contact ---------- */
.section-contact {
  text-align: center;
  background: var(--navy);
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-hint {
  color: var(--text-muted);
  font-size: .92rem;
  max-width: 480px;
  margin: 18px auto 0;
}

/* Contact page split layout (text + photo) */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  text-align: left;
}
.contact-split .section-lede { margin-left: 0; margin-right: 0; }
.contact-split .contact-hint { margin-left: 0; margin-right: 0; }

/* Contact form */
.contact-form {
  margin-top: 24px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label,
.form-fieldset legend {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 6px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #12202c;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; }
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}
.form-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.form-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 0;
}
.form-checkboxes input { width: auto; }
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .95rem;
}
.form-status p { margin: 0; }
.form-status-success {
  background: rgba(111, 184, 239, .16);
  border: 1px solid var(--accent-light);
  color: var(--text-head);
}
.form-status-error {
  background: rgba(201, 154, 68, .16);
  border: 1px solid var(--gold);
  color: var(--text-head);
}

@media (max-width: 640px) {
  .form-row,
  .form-checkboxes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  background: var(--navy-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.footer-logo { height: 30px; opacity: .85; }
.footer-inner p { margin: 0; font-size: .88rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-wide { grid-column: span 2; }
  .story-grid { grid-template-columns: 220px 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .mpi-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .cred-feature .feature-photo { position: static; }
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    text-align: center;
  }
  .contact-split .section-lede,
  .contact-split .contact-hint { margin-left: auto; margin-right: auto; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 10px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .photo-header-lg { min-height: 420px; }
  .photo-header-md { min-height: 320px; }
  .section { padding: 32px 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 220px; margin: 0 0 8px; }
}

@media (max-width: 560px) {
  .cred-grid { grid-template-columns: 1fr; }
  .cred-wide { grid-column: span 1; }
  .cred-uga { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cred-uga-logo { height: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}
