/* ==========================================================================
   Afrispan AI Assurance, shared design system
   Colors: Deep Navy #0D2B5B (primary), Emerald Green #00A651 (accent),
   Sunrise Orange #FF7A00 (accent). Headlines: Manrope. Body: Inter.
   Long-form: Source Serif 4.
   ========================================================================== */

:root {
  --navy: #0D2B5B;
  --navy-dark: #081b3d;
  --navy-mid: #163c78;
  --green: #00A651;
  --orange: #FF7A00;
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --paper: #EEF2F8;
  --ink: #101828;
  --ink-soft: #3C4658;
  --ink-muted: #667085;
  --line: #E3E8F0;
  --status-proven-bg: #E7F6ED;
  --status-proven-fg: #0B7A38;
  --status-building-bg: #FFF1E0;
  --status-building-fg: #B25A00;
  --status-planned-bg: #EEF1F7;
  --status-planned-fg: #47506B;
  --max-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(13,43,91,0.06), 0 8px 24px -12px rgba(13,43,91,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }

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

.serif {
  font-family: 'Source Serif 4', Georgia, serif;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Top banner (status strip) ---------- */
.status-banner {
  background: var(--navy-dark);
  color: #C9D6EC;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}
.status-banner strong { color: var(--white); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line), 0 4px 16px -8px rgba(13,43,91,0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img.wordmark {
  height: 38px;
  width: auto;
  display: block;
}

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

nav.primary-nav a {
  color: var(--ink-soft);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

nav.primary-nav a:hover {
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
}

nav.primary-nav a.active {
  background: var(--paper);
  color: var(--navy);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  margin-left: 6px;
}
.nav-cta:hover {
  background: #e66d00 !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
    display: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px -12px rgba(13,43,91,0.2);
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 65%, var(--navy) 100%);
  color: var(--white);
  padding: 76px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,166,81,0.16) 0%, rgba(0,166,81,0) 70%);
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFD9B3;
  background: rgba(255,122,0,0.14);
  border: 1px solid rgba(255,122,0,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.hero h1 { color: var(--white); max-width: 820px; }
.hero .lede {
  color: #D7E0F2;
  font-size: 1.15rem;
  max-width: 680px;
  margin-top: 18px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-page {
  padding: 56px 0 60px;
}
.hero-page .lede { color: #D7E0F2; max-width: 720px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: #e66d00; color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--off-white); color: var(--navy); }

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

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-alt { background: var(--off-white); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p { color: #D7E0F2; }

.section-head {
  max-width: 760px;
  margin: 0 0 40px 0;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card-flat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Status tags ---------- */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }

.status-proven { background: var(--status-proven-bg); color: var(--status-proven-fg); }
.status-proven::before { background: var(--status-proven-fg); }

.status-building { background: var(--status-building-bg); color: var(--status-building-fg); }
.status-building::before { background: var(--status-building-fg); }

.status-planned { background: var(--status-planned-bg); color: var(--status-planned-fg); }
.status-planned::before { background: var(--status-planned-fg); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  border-left: 3px solid var(--green);
  padding-left: 16px;
}
.stat .num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy);
  display: block;
}
.stat .label {
  font-size: 0.86rem;
  color: var(--ink-muted);
}
.section-navy .stat .label { color: #B9C7E5; }
.section-navy .stat .num { color: var(--white); }

/* ---------- Callout boxes ---------- */
.callout {
  border: 1px solid var(--line);
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 28px 0;
}
.callout.callout-green { border-color: #BFE7CE; background: var(--status-proven-bg); }
.callout.callout-orange { border-color: #FFD3A6; background: #FFF6EC; }
.callout-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline {
  border-left: 2px solid var(--line);
  margin-left: 8px;
  padding-left: 30px;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
}
.timeline-item.is-gap::before { border-color: var(--orange); }
.timeline-date {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.timeline-item.is-gap .timeline-date { color: var(--orange); }

/* ---------- Service line blocks ---------- */
.service-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.service-block:last-child { border-bottom: none; }
.service-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- FAQ ---------- */
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; }
.faq-item summary::after {
  content: "+";
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { margin-top: 16px; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.form-field label .optional {
  font-weight: 400;
  color: var(--ink-muted);
}
.form-field input, .form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,43,91,0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.form-submit { align-self: flex-start; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--line); }
table.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.92rem;
}
table.data-table th, table.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.data-table th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:nth-child(even) td { background: var(--off-white); }

/* ---------- Anchor quick-nav (Services / on-page contents) ---------- */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.jump-nav a {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
}
.jump-nav a:hover { background: var(--paper); text-decoration: none; }
.section-navy .jump-nav a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: var(--white); }
.section-navy .jump-nav a:hover { background: rgba(255,255,255,0.14); }

/* ---------- Pricing / engagement tiers ---------- */
.tier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-card);
}
.tier-name { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.tier-for { font-size: 0.88rem; color: var(--ink-muted); }
.tier-price {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.tier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier-list li { padding-left: 26px; position: relative; font-size: 0.94rem; color: var(--ink-soft); }
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--status-proven-bg);
  border: 1px solid var(--status-proven-fg);
}

/* ---------- Founder / people ---------- */
.founder-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.founder-badge {
  width: 116px; height: 116px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow-card);
}
.founder-badge img { width: 100%; height: 100%; object-fit: cover; }
.founder-content { flex: 1; min-width: 260px; }
.founder-role { color: var(--green); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 52px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D7E0F2; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }
@media (max-width: 640px) {
  .cta-band { padding: 36px 22px; border-radius: 16px; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #AAB9D6;
  padding: 52px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li { display: flex; align-items: center; gap: 8px; }
.footer-grid a { color: #AAB9D6; display: inline-flex; align-items: center; gap: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-icon { width: 15px; height: 15px; flex-shrink: 0; }
.footer-wordmark img { height: 30px; margin-bottom: 14px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand span {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.3;
}
.footer-brand span small {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #9FB1D6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #7E8FB3;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.small-note { font-size: 0.85rem; color: var(--ink-muted); }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: none; }
.badge-inline {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.badge-inline img { width: 100%; height: 100%; object-fit: cover; }
