@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/f2.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/f4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/f4.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/f10.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/f14.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/f18.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0a1d37;
  --navy-2: #122744;
  --ink: #1a2332;
  --muted: #5a6573;
  --gold: #c4a35a;
  --gold-dark: #8d6a2f;
  --paper: #f7f5f1;
  --line: #e4ddd2;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(10, 29, 55, 0.08);
  --radius: 4px;
  --container: 1180px;
  --sans: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Libre Baskerville", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 8rem; }
figure { margin: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
.hero-media { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--navy); letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--white); padding: .5rem 1rem; }

.staging-bar {
  background: var(--navy);
  color: #d8c9a4;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.45rem 1rem;
}
.staging-bar strong { color: var(--gold); font-weight: 600; }

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}
.topbar-left, .topbar-right { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: var(--navy); }

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.brand-tag { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 0.28em; }
.header-cta { margin-left: 0.5rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40rem; }
.lead.center { margin-inline: auto; }

.hero {
  position: relative;
  color: var(--white);
  min-height: 28rem;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,29,55,.55), rgba(10,29,55,.78));
}
.hero .container { position: relative; z-index: 2; padding: 5.5rem 0 5rem; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  max-width: 16ch;
  margin: 0 0 1.1rem;
  font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: #d7dde6; max-width: 34rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.section { padding: 5rem 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 0 0 0.85rem; font-weight: 400; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.about-photos { position: relative; }
.about-photos img { width: 100%; height: 28rem; object-fit: cover; }
.about-photos .inset {
  position: absolute;
  width: 46%;
  height: 12rem;
  object-fit: cover;
  right: -1.25rem;
  bottom: -1.25rem;
  border: 6px solid var(--white);
}
.badge-year {
  position: absolute;
  left: -1rem;
  top: 1.5rem;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-year strong { font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.badge-year span { font-size: 0.7rem; font-weight: 600; display: block; margin-top: 0.2rem; }

.check-list { margin: 1.25rem 0 1.75rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 0.7rem; height: 0.7rem;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 18%, 84% 6%, 38% 72%);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.45rem 1.5rem;
}
.card h3 { font-size: 1.15rem; margin: 0.85rem 0 0.5rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.95rem; }
.icon {
  width: 3rem; height: 3rem;
  background: var(--paper);
  color: var(--gold-dark);
  display: grid; place-items: center;
}
.icon svg { width: 1.45rem; height: 1.45rem; }

.service-card { transition: border-color 0.15s; }
.service-card:hover { border-color: var(--gold); }
.more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.more:hover { color: var(--gold-dark); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.fact { text-align: center; padding: 0.5rem; }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.fact span { color: #c9d2de; font-size: 0.92rem; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding-top: 0.25rem; }
.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.work-card { position: relative; overflow: hidden; color: var(--white); min-height: 18rem; }
.work-card img { width: 100%; height: 18rem; object-fit: cover; }
.work-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.2rem 1.15rem;
  background: linear-gradient(transparent, rgba(10,29,55,.88));
}
.work-card h3 { color: var(--white); font-size: 1.1rem; margin: 0 0 0.2rem; }
.work-card p { color: #d8c9a4; font-size: 0.82rem; margin: 0; }

.team-card { text-align: left; }
.team-card img { width: 100%; height: 16.5rem; object-fit: cover; margin-bottom: 1rem; }
.team-card h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.team-card p { color: var(--gold-dark); font-size: 0.85rem; font-weight: 600; }

.quote {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
  font-weight: 400;
}
.quote cite { display: block; margin-top: 1.1rem; font-style: normal; font-size: 0.9rem; color: var(--muted); font-weight: 600; }

.blog-card img { width: 100%; height: 13rem; object-fit: cover; margin-bottom: 1rem; }
.blog-card time { color: var(--gold-dark); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.blog-card h3 { font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }

.cta-band {
  background: var(--gold);
  color: var(--navy);
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.4rem 0;
}
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; }
.cta-band p { margin: 0.35rem 0 0; }

.page-hero {
  background-color: var(--navy);
  background-image: image-set(
    url("/images/jamii-audit-bg-sm.webp") type("image/webp"),
    url("/images/jamii-audit-bg-sm.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
  color: var(--white);
  padding: 4.2rem 0 3.4rem;
  position: relative;
}
@media (min-width: 761px) {
  .page-hero {
    background-image: image-set(
      url("/images/jamii-audit-bg.webp") type("image/webp"),
      url("/images/jamii-audit-bg.jpg") type("image/jpeg")
    );
  }
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(10,29,55,.78);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.5rem; font-weight: 400; }
.crumbs { color: #c9d2de; font-size: 0.88rem; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.crumbs a:hover { color: var(--gold); }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.7rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2rem; margin: 0 0 1rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
.contact-item { margin-bottom: 1.4rem; }
.contact-item h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.contact-item p, .contact-item a { color: var(--muted); }

.form { display: grid; gap: 0.9rem; }
.form label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }

.faq-wrap { max-width: 46rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gold-dark); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.7rem 0 0.2rem; color: var(--muted); }

.site-footer {
  background: var(--navy);
  color: #c9d2de;
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.05rem; margin: 0 0 1rem; }
.site-footer p { color: #c9d2de; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height: 44px; background: var(--white); border-radius: 4px; padding: 2px; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-weight: 700; }
.footer-links { display: grid; gap: 0.15rem; }
.footer-links a { display: inline-block; min-height: 44px; padding: 0.55rem 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0 1.2rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-page { text-align: center; padding: 5rem 0 6rem; }
.error-page h1 { font-size: 4rem; margin-bottom: 0.4rem; }

@media (max-width: 1100px) {
  .cards-4, .facts, .process, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav { gap: 1.1rem; }
}
@media (max-width: 980px) {
  .split, .contact-grid, .cards-3, .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-photos .inset { right: 0; }
  .topbar { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.1rem;
    gap: 0;
  }
  .nav.is-open {
    display: flex;
    max-height: calc(100dvh - 7.5rem);
    overflow-y: auto;
  }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.35rem 0;
  }
  .header-cta { margin: 0.4rem 0 0; width: 100%; }
  .site-header .container { position: relative; min-height: 72px; }
}
@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 1.5rem)); }
  .section { padding: 3.2rem 0; }
  .cards-3, .cards-4, .facts, .process, .work-grid, .footer-grid, .form-row, .split, .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-photos img { height: 16rem; }
  .about-photos .inset { display: none; }
  .badge-year { left: 0.5rem; width: 6.2rem; height: 6.2rem; }
  html { scroll-padding-top: 7rem; }
  .hero { min-height: 22rem; }
  .hero .container { padding: 3rem 0 2.8rem; }
  .hero h1 { max-width: none; }
  .page-hero { padding: 2.8rem 0 2.2rem; }
  .cta-band .container { padding: 1.8rem 0; }
  .work-card, .work-card img { min-height: 14rem; height: 14rem; }
  .team-card img { height: 14rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
