/* Rapid Test Kits Kenya — conversion-first, system-font, mobile-first */

:root {
  --blue: #073b74;
  --blue-dark: #04284f;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --green: #16a34a;
  --white: #fff;
  --bg: #f8fafc;
  --bg-soft: #f0fdfa;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(7, 59, 116, 0.08);
  --radius: 14px;
  --max: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tap: 48px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.container { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0.5rem;
  background: var(--blue); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 300; font-weight: 700;
}
.skip-link:focus { left: 0.5rem; }

/* Urgency bar */
.urgency-bar {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

/* Top bar */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.9);
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 2.25rem; flex-wrap: wrap; padding-block: 0.25rem;
}
.topbar-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-actions a { font-weight: 600; }
.topbar-actions a:hover { color: #99f6e4; }
.topbar-cta {
  background: var(--teal); color: var(--white) !important;
  padding: 0.3rem 0.85rem; border-radius: 999px;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4rem; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1rem; color: var(--blue);
}
.brand img { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.brand small {
  display: block; font-size: 0.65rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  padding: 0.5rem 0.85rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
}
.nav a:hover { color: var(--blue); background: var(--bg); }
.nav .nav-order {
  background: var(--blue); color: var(--white) !important; margin-left: 0.25rem;
}
.nav .nav-order:hover { background: var(--blue-dark); }
.menu-btn {
  display: none; width: var(--tap); height: var(--tap);
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); cursor: pointer; padding: 0.55rem;
}
.menu-btn span {
  display: block; height: 2px; background: var(--blue);
  margin: 5px 0; border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: var(--tap); padding: 0.7rem 1.35rem;
  border-radius: 10px; border: 2px solid transparent;
  font-weight: 800; font-size: 0.9375rem; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-whatsapp { background: var(--green); color: var(--white); }
.btn-whatsapp:hover { background: #15803d; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 2rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 0.75rem;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--teal);
}
h1, h2, h3 { line-height: 1.2; color: var(--blue-dark); margin-top: 0; }
h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem;
}
h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; }
.lead { font-size: 1.0625rem; color: var(--muted); margin-bottom: 1.25rem; max-width: 36rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hero-trust span {
  font-size: 0.75rem; font-weight: 700; color: var(--blue);
  background: var(--white); border: 1px solid var(--border);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.hero-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%; height: auto;
  aspect-ratio: 5/4;
  object-fit: cover;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg); }
.section-intro { max-width: 38rem; margin-bottom: 2rem; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro p { color: var(--muted); margin: 0; }
.section-intro.centered p { max-width: 36rem; margin-inline: auto; }

/* Trust strip */
.trust-strip { padding: 1.25rem 0; background: var(--blue); color: var(--white); }
.trust-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem;
}
.trust-item {
  text-align: center; font-size: 0.75rem; font-weight: 700;
  padding: 0.65rem 0.4rem; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}

/* Conversion banner */
.cta-banner {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: var(--white); padding: 1.5rem 0;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin: 0; font-size: 1.25rem; }
.cta-banner p { margin: 0.25rem 0 0; opacity: 0.9; font-size: 0.9375rem; }
.cta-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cta-banner .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); background: transparent; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Categories */
.category-list { display: grid; gap: 0.85rem; }
.category-card {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.25rem;
  padding: 1.25rem 1.5rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.category-card img { width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.category-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.category-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.category-tags span {
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.55rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; color: var(--muted);
}
.link-go { font-weight: 800; font-size: 0.875rem; color: var(--teal); white-space: nowrap; }
.link-go:hover { color: var(--blue); }

/* Products */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
}
.product-card picture,
.product-card img,
.blog-card picture,
.blog-card img,
.category-card picture,
.category-card img {
  display: block;
}

.product-card img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.product-body { padding: 1.15rem; display: flex; flex-direction: column; flex: 1; }
.product-body > p { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.875rem; }
.best-for {
  font-size: 0.8125rem; font-weight: 700; color: var(--blue);
  background: var(--bg-soft); padding: 0.45rem 0.65rem;
  border-radius: 8px; margin-bottom: 0.75rem;
}
.product-features {
  list-style: none; padding: 0; margin: 0 0 1rem; flex: 1;
}
.product-features li {
  font-size: 0.8125rem; color: var(--muted);
  padding-left: 1.1rem; position: relative; margin-bottom: 0.3rem;
}
.product-features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.price-cta {
  font-size: 0.8125rem; font-weight: 800; color: var(--teal-dark);
  margin-bottom: 0.65rem;
}

/* Why us */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.benefit {
  padding: 1.25rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.benefit strong {
  display: block; font-size: 1.5rem; color: var(--teal);
  margin-bottom: 0.35rem; line-height: 1;
}
.benefit h3 { font-size: 0.9375rem; }
.benefit p { margin: 0; font-size: 0.8125rem; color: var(--muted); }

/* Who we serve */
.serve-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.serve-grid span {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0.85rem 0.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; font-weight: 700; font-size: 0.8125rem; color: var(--blue);
  min-height: var(--tap);
}

/* Buyer guide */
.guide-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.guide-card {
  padding: 1.25rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}
.guide-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.guide-quote {
  margin-top: 1.5rem; padding: 1.5rem;
  background: var(--bg-soft); border-radius: var(--radius);
  font-size: 1.0625rem; font-weight: 700; color: var(--blue-dark);
  text-align: center; line-height: 1.5;
}
.facts-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.875rem; }
.facts-table th, .facts-table td {
  padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border);
}
.facts-table th { width: 34%; font-weight: 800; color: var(--blue); background: var(--bg); }
.facts-table td { color: var(--muted); }

/* Order */
.order-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; }
.order-aside {
  padding: 1.5rem; background: var(--blue); color: var(--white);
  border-radius: var(--radius);
}
.order-aside h2 { color: var(--white); }
.order-aside > p { color: rgba(255,255,255,.85); margin-bottom: 1.25rem; }
.contact-links { display: grid; gap: 0.6rem; }
.contact-links a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.9rem; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  font-weight: 700; font-size: 0.875rem;
}
.contact-links a:hover { background: rgba(255,255,255,.16); }
.order-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.85rem; }
.form-field { margin-bottom: 0.85rem; }
.form-field.full { grid-column: 1 / -1; }
.order-form label {
  display: block; font-size: 0.8125rem; font-weight: 800;
  color: var(--blue); margin-bottom: 0.35rem;
}
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); outline: none;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { margin-top: 0.6rem; font-size: 0.75rem; color: var(--muted); }
.form-message {
  display: none; margin-top: 0.75rem; padding: 0.75rem;
  border-radius: 10px; font-weight: 700; font-size: 0.875rem;
  background: var(--bg-soft); color: var(--teal-dark);
  border: 1px solid rgba(13,148,136,.25);
}
.form-message.visible { display: block; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.1rem; font-weight: 800; font-size: 0.9rem;
  color: var(--blue); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 0.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 1.1rem 1rem; font-size: 0.875rem; color: var(--muted); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  content-visibility: auto; contain-intrinsic-size: auto 280px;
}
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }
.blog-body { padding: 1.1rem; }
.blog-body p { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--muted); }
.blog-body a { font-weight: 800; font-size: 0.875rem; color: var(--teal); }
.blog-body a:hover { color: var(--blue); }
.blog-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--teal); margin-bottom: 0.4rem;
}

/* Footer */
.footer {
  background: var(--blue-dark); color: rgba(255,255,255,.8);
  padding: 3rem 0 6rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; }
.footer .brand { color: var(--white); margin-bottom: 0.75rem; }
.footer-about { font-size: 0.875rem; line-height: 1.65; }
.footer h4 {
  color: var(--white); font-size: 0.8125rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem;
}
.footer-links { display: grid; gap: 0.4rem; font-size: 0.875rem; }
.footer-links a:hover { color: #99f6e4; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.8125rem;
}
.footer-disclaimer {
  margin-top: 1.5rem; padding: 1rem;
  background: rgba(255,255,255,.04); border-radius: var(--radius);
  font-size: 0.7rem; line-height: 1.6; color: rgba(255,255,255,.55);
}

/* Floating actions */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 120;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(22,163,74,.4);
}
.wa-float svg { width: 1.4rem; height: 1.4rem; }
.wa-float:hover { background: #15803d; }

.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  padding: 0.5rem; background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem;
}
.mobile-bar a {
  display: grid; place-items: center; min-height: var(--tap);
  border-radius: 10px; font-weight: 800; font-size: 0.8125rem; color: var(--white);
}
.mobile-bar a:nth-child(1) { background: var(--blue); }
.mobile-bar a:nth-child(2) { background: var(--teal); }
.mobile-bar a:nth-child(3) { background: var(--green); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .order-grid, .guide-layout { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { grid-template-columns: 1fr; text-align: center; }
  .category-card img { margin: 0 auto; }
  .category-tags { justify-content: center; }
}

@media (max-width: 640px) {
  body { padding-bottom: 4.25rem; }
  .urgency-bar { font-size: 0.75rem; }
  .topbar-loc { display: none; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: fixed; top: 4rem;
    left: 0.75rem; right: 0.75rem; flex-direction: column;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.75rem;
    box-shadow: var(--shadow); z-index: 99;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: 0.75rem; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 1.5rem 0 2rem; }
  .hero-btns .btn { flex: 1 1 100%; }
  .product-grid, .faq-grid, .form-row { grid-template-columns: 1fr; }
  .trust-row, .benefits, .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { width: 100%; }
  .cta-banner-actions .btn { flex: 1; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}