/* =========================================================
   Canada Immigration — Kenya → Canada
   Brand: Canada red + navy, with a Kenya-flag ribbon accent
   ========================================================= */
:root {
  color-scheme: light;
  --red: #d7261e;
  --red-deep: #a8140f;
  --red-soft: #fde9e7;
  --navy: #0f1e4d;
  --navy-2: #1b2f6e;
  --ink: #0b1330;
  --muted: #55607a;
  --line: #e6e1d8;
  --paper: #fffaf3;
  --white: #ffffff;
  --ke-black: #111111;
  --ke-green: #0b7a3b;
  --wa: #25d366;
  --wa-deep: #128c4a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(15, 30, 77, .35);
  --shadow-sm: 0 6px 18px -8px rgba(15, 30, 77, .25);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Space Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #dfe5f7; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--red); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #b9c3e3; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kenya × Canada ribbon (signature motif) ---------- */
.ribbon {
  height: 7px;
  background: linear-gradient(90deg,
    var(--ke-black) 0 16%, #fff 16% 17%, var(--red) 17% 33%, #fff 33% 34%, var(--ke-green) 34% 50%,
    #fff 50% 51%, var(--red) 51% 100%);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; min-height: 50px;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 22px -12px var(--bg);
}
.btn:hover { transform: translateY(-2px); color: var(--fg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { --bg: var(--wa-deep); }
.btn--navy { --bg: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 50px; height: 50px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; color: var(--red); }
.brand-sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 12px; border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 700; font-size: .95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--red-soft); color: var(--red-deep); }
.nav-cta { padding: 11px 18px; min-height: 44px; font-size: .95rem; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: .2s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 81px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); padding: 14px 16px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
  }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .menu-open .nav-links { transform: none; visibility: visible; }
  .nav-links .mobile-only { display: block; margin-top: 8px; }
}
.nav-links .mobile-only { display: none; }
@media (max-width: 1020px) { .nav-links .mobile-only { display: block; } .nav-links .mobile-only a { background: var(--wa-deep); color: #fff; text-align: center; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  /* soft maple glow */
  content: ""; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(215, 38, 30, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 600; }
.hero-lead { font-size: 1.15rem; color: #333c57; max-width: 560px; }
.karibu {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.karibu .flags { display: inline-flex; }
.karibu .flags span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.karibu .flags span + span { margin-left: -7px; }
.flag-ke { background: linear-gradient(var(--ke-black) 0 30%, #fff 30% 35%, var(--red) 35% 65%, #fff 65% 70%, var(--ke-green) 70%); }
.flag-ca { background: linear-gradient(90deg, var(--red) 0 25%, #fff 25% 75%, var(--red) 75%); position: relative; }
.flag-ca::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font-size: 10px; line-height: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: .93rem; color: var(--navy); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--ke-green); flex: none; }

/* flight arc */
.flight-arc { position: absolute; left: 0; right: 0; bottom: 8px; height: 120px; pointer-events: none; opacity: .9; }
.flight-arc path { stroke-dasharray: 2 9; stroke-linecap: round; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
@media (prefers-reduced-motion: reduce) { .flight-arc path { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Boarding pass form ---------- */
.pass {
  position: relative; background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
.pass-top {
  background: var(--navy); color: #fff; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pass-top .label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.pass-top strong { font-family: var(--f-display); font-size: 1.15rem; }
.pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 22px 6px; }
.pass-route .code { font-family: var(--f-display); font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pass-route .city { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pass-route .to { text-align: right; }
.pass-route .to .code { color: var(--red); }
.pass-route .plane { color: var(--red); display: flex; align-items: center; gap: 6px; }
.pass-route .plane::before, .pass-route .plane::after { content: ""; width: 28px; border-top: 2px dashed #c9cfdf; }
.pass-route .plane svg { width: 26px; height: 26px; }
.pass form { padding: 12px 22px 22px; }
.pass-perf {
  position: relative; height: 26px; margin: 4px 0;
  background: radial-gradient(circle at 0 50%, var(--paper) 12px, transparent 13px) left / 26px 26px no-repeat,
              radial-gradient(circle at 100% 50%, var(--paper) 12px, transparent 13px) right / 26px 26px no-repeat;
}
.pass-perf::after { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--line); }
.pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px 20px; }
.barcode {
  height: 38px; flex: 1; max-width: 220px; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 13px);
}
.pass-foot small { font-family: var(--f-mono); font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-align: right; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label, .field .legend {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; font: 600 1rem var(--f-body); color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fffdf9;
  transition: border-color .15s, box-shadow .15s; min-height: 50px;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1e4d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 30, 77, .1); }
.field.invalid input, .field.invalid select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 30, .12); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--wa-deep); flex: none; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Strip ---------- */
.strip { background: var(--navy); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 26px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.strip-item:first-child { border-left: 0; }
.strip-item b { display: block; font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; color: #fff; }
.strip-item span { font-size: .9rem; color: #b9c3e3; }

/* ---------- Pathway "passport stamp" cards ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  overflow: hidden;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.stamp {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  border: 2.5px dashed var(--red); color: var(--red); transform: rotate(-8deg); margin-bottom: 6px;
  transition: transform .3s ease;
}
.stamp-inner { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--red); display: grid; place-items: center; }
.stamp svg { width: 28px; height: 28px; }
.path-card:hover .stamp { transform: rotate(4deg) scale(1.05); }
.path-card h3 { margin: 0; }
.path-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.path-card .more { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.path-card .tag {
  position: absolute; top: 22px; right: 22px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px;
}

/* ---------- Pathway finder ---------- */
.finder { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.finder-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.finder-progress { height: 6px; background: #edf0f7; border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.finder-progress i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--red), var(--red-deep)); transition: width .3s ease; }
.finder-step { display: none; }
.finder-step.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.finder-step h3 { font-size: 1.4rem; }
.finder-count { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.option {
  text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdf9; cursor: pointer;
  font: 700 .98rem var(--f-body); color: var(--navy); transition: .15s; min-height: 56px; display: flex; align-items: center; gap: 10px;
}
.option:hover { border-color: var(--navy); background: #fff; }
.option[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red-deep); }
.option .ico { font-size: 1.25rem; }
.finder-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.finder-back { background: none; border: 0; font: 700 .95rem var(--f-body); color: var(--muted); cursor: pointer; padding: 10px 4px; }
.finder-back:disabled { visibility: hidden; }
.result-badge { display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; background: var(--ke-green); color: #fff; padding: 5px 10px; border-radius: 6px; margin-bottom: 12px; }
.result h3 { font-size: 1.7rem; }
.result ul { padding-left: 20px; margin: 0 0 18px; }
.result li { margin-bottom: 6px; }
.result .alt { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin-bottom: 18px; }
.finder-side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.finder-side li { display: flex; gap: 14px; align-items: flex-start; }
.finder-side li b { color: #fff; display: block; }
.finder-side .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-family: var(--f-mono); font-size: .8rem; color: #fff; }

/* ---------- Journey (flight path) ---------- */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: step; }
.journey::before { content: ""; position: absolute; top: 31px; left: 8%; right: 8%; border-top: 2px dashed #c9cfdf; }
.journey li { position: relative; text-align: center; padding: 0 6px; }
.journey .dot {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); display: grid; place-items: center; color: var(--navy);
}
.journey li:last-child .dot { background: var(--red); border-color: var(--red); color: #fff; }
.journey .dot svg { width: 26px; height: 26px; }
.journey .stop { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.journey h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.journey p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Checklist ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font: 700 .95rem var(--f-body); color: var(--navy); min-height: 46px;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.checklist-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li + li { border-top: 1px dashed var(--line); }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 12px; cursor: pointer; border-radius: 10px; }
.checklist label:hover { background: var(--paper); }
.checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 2px solid #b8c0d6; border-radius: 7px; display: grid; place-items: center; cursor: pointer; background: #fff; }
.checklist input:checked { background: var(--ke-green); border-color: var(--ke-green); }
.checklist input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist .t { font-weight: 700; color: var(--navy); display: block; }
.checklist .d { font-size: .9rem; color: var(--muted); }
.checklist input:checked + span .t { text-decoration: line-through; text-decoration-color: rgba(11,122,59,.5); }
.meter-card { position: sticky; top: 96px; background: var(--navy); color: #dfe5f7; border-radius: var(--radius); padding: 26px; }
.meter-card h3 { color: #fff; }
.meter { height: 12px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 14px 0 8px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ke-green), #3ecf7a); transition: width .3s ease; }
.meter-num { font-family: var(--f-display); font-size: 2.6rem; color: #fff; line-height: 1; }

/* ---------- Fraud shield ---------- */
.shield { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.shield-badge { position: relative; background: var(--red); color: #fff; border-radius: 26px; padding: 34px; overflow: hidden; }
.shield-badge::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,255,255,.1); }
.shield-badge h2 { color: #fff; }
.shield-badge p { color: #ffe2df; }
.flags-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flags-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 16px 18px; }
.flags-list b { display: block; color: var(--navy); margin-bottom: 2px; }
.flags-list span { font-size: .93rem; color: var(--muted); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.why-item .ic svg { width: 24px; height: 24px; }
.why-item p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Assessment ---------- */
.assess { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.assess-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.contact-lines { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-lines a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; }
.contact-lines a:hover { border-color: var(--navy); }
.contact-lines .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; }
.contact-lines .ci.wa { background: var(--wa-deep); }
.contact-lines .ci svg { width: 20px; height: 20px; }
.contact-lines small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 800; color: var(--navy); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: #3b4462; }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: 28px; padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; background: url("../assets/maple.svg") center / contain no-repeat; opacity: .14; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #ffe2df; margin: 0; font-size: 1.08rem; }
.cta-band .acts { display: flex; flex-direction: column; gap: 10px; position: relative; }

/* ---------- Service page pieces ---------- */
.page-hero { padding: clamp(36px, 6vw, 70px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.page-hero .stamp { width: 110px; height: 110px; border-width: 3px; }
.page-hero .stamp-inner { width: 88px; height: 88px; }
.page-hero .stamp svg { width: 42px; height: 42px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.facts dl { margin: 0; display: grid; gap: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 800; color: var(--navy); text-align: right; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.aside-card { position: sticky; top: 96px; background: var(--navy); color: #dfe5f7; border-radius: 20px; padding: 26px; }
.aside-card h3 { color: #fff; }
.aside-card ul { padding-left: 18px; margin: 0 0 18px; font-size: .95rem; }
.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: s; }
.steps li { position: relative; padding: 0 0 22px 58px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; font-family: var(--f-mono); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; border-left: 2px dashed #d5d9e6; }
.steps li:last-child::after { display: none; }
.steps b { color: var(--navy); display: block; }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .97rem; }
.fee-table th, .fee-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--navy); color: #fff; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td:last-child { font-weight: 800; color: var(--navy); white-space: nowrap; }
.callout { border-left: 4px solid var(--ke-green); background: #eef8f1; padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
.callout.warn { border-color: var(--red); background: var(--red-soft); }
.callout p:last-child { margin: 0; }
.kenya-tip { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.kenya-tip .k { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ke-black); color: #fff; font-family: var(--f-mono); font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.kenya-tip p { margin: 0; font-size: .96rem; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related a { display: block; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 800; color: var(--navy); }
.related a span { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); margin-top: 4px; }
.related a:hover { border-color: var(--red); color: var(--red-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab3cf; padding: 64px 0 110px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #d7dcee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { width: 84px; height: 84px; border-radius: 16px; background: #fff; margin-bottom: 16px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .84rem; display: grid; gap: 8px; }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; padding: 12px 18px 12px 12px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .7); font-weight: 800;
}
.wa-fab:hover { color: #fff; transform: translateY(-2px); }
.wa-fab .ring { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; position: relative; }
.wa-fab .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-fab .ring::after { animation: none; } }
.wa-fab svg { width: 24px; height: 24px; }
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .finder, .shield, .assess, .page-hero-grid, .two-col, .checklist-wrap { grid-template-columns: 1fr; }
  .paths, .why { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { top: 10px; bottom: 10px; left: 31px; right: auto; border-top: 0; border-left: 2px dashed #c9cfdf; }
  .journey li { text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 0 0 24px; }
  .journey .dot { margin: 0; grid-row: span 3; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .aside-card, .meter-card { position: static; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .paths, .why, .flags-list, .grid-2, .grid-3, .strip-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 18px 14px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .strip-item b { font-size: 1.5rem; }
  .options { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pass-route .code { font-size: 1.9rem; }
  .finder-card, .assess-card { padding: 20px; }
  .wa-fab { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -14px rgba(15,30,77,.35);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: .95rem; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 44px; height: 44px; }
  .fee-table { font-size: .9rem; }
  .fee-table th, .fee-table td { padding: 11px 12px; }
  .facts dl div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}

/* Keep grid children from forcing horizontal scroll on small screens */
.hero-grid > *, .finder > *, .shield > *, .assess > *, .page-hero-grid > *, .two-col > *, .checklist-wrap > *, .grid-2 > *, .grid-3 > * { min-width: 0; }

/* WhatsApp send panel (shown when pop-ups are blocked) */
.wa-panel { position: fixed; inset: 0; z-index: 100; background: rgba(11, 19, 48, .55); display: grid; place-items: center; padding: 16px; }
.wa-panel[hidden] { display: none; }
.wa-panel-box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 26px 22px 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.wa-panel-box h3 { margin: 0; }
.wa-panel-box p { margin: 0; color: var(--muted); }
.wa-panel-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.wa-panel-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.wa-panel textarea { width: 100%; min-height: 120px; font: 500 .9rem var(--f-body); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; color: var(--ink); background: #fffdf9; }

/* ---------- Happy clients gallery ---------- */
#clients { padding-top: 0; }
.section--tint + #clients { padding-top: clamp(64px, 9vw, 110px); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 16px; }
.g-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); min-width: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(11, 19, 48, .85));
  color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
}
.g-tag {
  display: table; margin-bottom: 8px; padding: 4px 9px; border-radius: 6px; background: var(--red);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.g-cta {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px;
  background: var(--paper); border: 2px dashed var(--red); color: var(--navy); text-decoration: none;
}
.g-cta:hover { color: var(--navy); background: var(--red-soft); }
.g-cta .stamp { width: 60px; height: 60px; margin-bottom: 4px; }
.g-cta .stamp-inner { width: 46px; height: 46px; }
.g-cta .stamp svg { width: 22px; height: 22px; }
.g-cta b { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.2; }
.g-cta span { font-size: .93rem; color: var(--muted); }
.g-cta .more { color: var(--red); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.g-credit { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }
@media (max-width: 1020px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
}
@media (max-width: 720px) {
  .gallery { grid-auto-rows: 210px; gap: 10px; }
  .g-tall { grid-column: span 2; grid-row: span 2; }
  .g-item figcaption { font-size: 1rem; padding: 30px 12px 12px; }
}

/* ---------- Apply Now order form ---------- */
button.wa-fab, button.g-cta, .link-btn, .contact-btn { font: inherit; cursor: pointer; text-align: left; }
button.wa-fab { border: 0; font-weight: 800; }
button.g-cta { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: #fff; font-weight: 800; text-decoration: underline; display: inline-flex; align-items: center; gap: 6px; }
.link-btn svg { width: 16px; height: 16px; }
.contact-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700;
}
.contact-btn:hover { border-color: var(--navy); }
.contact-btn small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; }
.rules-card { margin-top: 22px; display: grid; gap: 10px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); font-size: .95rem; }
.rules-card p { margin: 0; color: #3b4462; }
.rules-card b { color: var(--navy); }

fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; flex: 1 1 160px; }
.choice input, .check-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fffdf9; font-weight: 700; color: var(--navy); cursor: pointer; text-align: center;
}
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice input:focus-visible + span, .check-card input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.choice-group.invalid .choice span { border-color: var(--red); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-card { position: relative; }
.check-card span {
  display: block; height: 100%; padding: 12px 14px 12px 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fffdf9; cursor: pointer; position: relative;
}
.check-card span::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #b8c0d6; background: #fff;
}
.check-card input:checked + span { border-color: var(--ke-green); background: #eef8f1; }
.check-card input:checked + span::before { background: var(--ke-green); border-color: var(--ke-green); box-shadow: inset 0 0 0 3px #eef8f1; }
.check-card b { display: block; color: var(--navy); font-size: .95rem; }
.check-card small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.notice { margin: -4px 0 16px; padding: 14px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f1d9a6; font-size: .93rem; }
.notice b { display: block; color: var(--navy); margin-bottom: 2px; }
.notice p { margin: 0; color: #4a4f63; }
.notice--stop { background: var(--red-soft); border-color: #f4b8b3; }
.notice--stop b { color: var(--red-deep); }
.file-input { padding: 10px !important; background: #fff !important; }
.pp-preview { max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: 6px; }
.form-error { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red-deep); font-weight: 700; font-size: .93rem; }
.order-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.order-done { margin-top: 14px; padding: 16px; border-radius: 12px; background: #eef8f1; border: 1px solid #bfe3cb; display: grid; gap: 8px; }
.order-done b { color: var(--ke-green); }
.order-done p { margin: 0; font-size: .93rem; }

.order-modal { position: fixed; inset: 0; z-index: 90; background: rgba(11, 19, 48, .6); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.order-modal[hidden] { display: none; }
.order-box { position: relative; width: 100%; max-width: 640px; background: var(--paper); border-radius: 22px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); margin: auto 0; }
.order-box h2 { margin-bottom: .25em; }
.order-rules { font-size: .93rem; color: var(--muted); margin-bottom: 18px; }
.order-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy); }
body.modal-open { overflow: hidden; }
@media (max-width: 720px) {
  .check-grid { grid-template-columns: 1fr; }
  .order-modal { padding: 0; }
  .order-box { border-radius: 0; min-height: 100%; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Hidden always wins over component display rules */
[hidden] { display: none !important; }
/* Choice pills and proof cards use body type, not the small field-label style */
.field label.choice, .field label.check-card { font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink); }

/* Detailed proof sections */
.proof-list { display: grid; gap: 10px; }
.proof-detail { margin-top: 8px; padding: 16px 16px 2px; border-radius: 12px; background: #fff; border: 1.5px solid #bfe3cb; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; margin-top: -6px; padding-top: 20px; }
.proof .check-card span { padding-right: 40px; }
.proof .check-card span::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; font-size: 1.2rem; }
.proof .check-card input:checked + span::after { content: "–"; color: var(--ke-green); }
.proof:last-child .check-card span::after { content: none; }
.check-card { display: block; }
.proof-detail { margin-top: -8px; padding: 22px 16px 4px; }
