/* Hearing Aids Kenya — B2C, conversion-first, system fonts */

:root {
  --blue: #073b74;
  --blue-dark: #04284f;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --warm: #fff7ed;
  --green: #16a34a;
  --white: #fff;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 32px rgba(7, 59, 116, 0.09);
  --radius: 16px;
  --max: 1120px;
  --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.65; color: var(--text); background: var(--white); }
body.nav-open { overflow: hidden; }
img { 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: .5rem; background: var(--blue); color: var(--white); padding: .6rem 1rem; border-radius: 8px; z-index: 300; font-weight: 700; }
.skip-link:focus { left: .5rem; }

.urgency { background: var(--teal); color: var(--white); text-align: center; font-size: .8125rem; font-weight: 700; padding: .5rem 1rem; }

.topbar { background: var(--blue-dark); color: rgba(255,255,255,.9); font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.25rem; flex-wrap: wrap; padding-block: .25rem; }
.topbar-actions { display: flex; 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: .3rem .85rem; border-radius: 999px; }

.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: .6rem; font-weight: 800; font-size: 1rem; color: var(--blue); }
.brand img { width: 2.5rem; height: 2.5rem; }
.brand small { display: block; font-size: .65rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { padding: .5rem .85rem; border-radius: 8px; font-size: .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; }
.menu-btn { display: none; width: var(--tap); height: var(--tap); border: 1px solid var(--border); border-radius: 10px; background: var(--white); cursor: pointer; padding: .55rem; }
.menu-btn span { display: block; height: 2px; background: var(--blue); margin: 5px 0; border-radius: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); padding: .7rem 1.35rem; border-radius: 10px; border: 2px solid transparent; font-weight: 800; font-size: .9375rem; cursor: pointer; text-align: center; }
.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 { padding: 2rem 0 3rem; background: linear-gradient(135deg, var(--warm) 0%, var(--white) 55%, #eff6ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.eyebrow { display: inline-block; margin: 0 0 .75rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .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.65rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: .6rem; }
h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.lead { font-size: 1.0625rem; color: var(--muted); margin-bottom: 1.25rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.hero-pills span { font-size: .75rem; font-weight: 700; color: var(--blue); background: var(--white); border: 1px solid var(--border); padding: .35rem .7rem; border-radius: 999px; }

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

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.trust-card { text-align: center; padding: 1.1rem .75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.trust-card strong { display: block; font-size: 1.35rem; color: var(--teal); margin-bottom: .2rem; }
.trust-card span { font-size: .8125rem; font-weight: 700; color: var(--blue); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.cat-card img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; border: 3px solid var(--bg); }
.cat-card p { margin: 0 0 .75rem; font-size: .875rem; color: var(--muted); }
.cat-card a { font-weight: 800; font-size: .875rem; color: var(--teal); }

.cta-band { background: var(--blue); color: var(--white); padding: 1.5rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0; font-size: 1.2rem; }
.cta-band p { margin: .2rem 0 0; opacity: .9; font-size: .9375rem; }
.cta-band-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cta-band .btn-outline { color: var(--white); border-color: rgba(255,255,255,.45); background: transparent; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.product-card { 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 400px; }
.product-card picture, .product-card img, .blog-card picture, .blog-card img { display: block; }
.product-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--border); }
.product-body { padding: 1.15rem; display: flex; flex-direction: column; flex: 1; }
.best-for { font-size: .8125rem; font-weight: 700; color: var(--blue); background: var(--warm); padding: .45rem .65rem; border-radius: 8px; margin-bottom: .75rem; }
.product-features { list-style: none; padding: 0; margin: 0 0 1rem; flex: 1; }
.product-features li { font-size: .8125rem; color: var(--muted); padding-left: 1rem; position: relative; margin-bottom: .3rem; }
.product-features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.price-line { margin-bottom: .65rem; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--blue); line-height: 1.2; }
.product-price small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); margin-top: .2rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { padding: 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.step-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 800; font-size: .875rem; margin-bottom: .5rem; }
.step p { margin: 0; font-size: .875rem; color: var(--muted); }

.serve-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.serve-tags span { padding: .65rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: .8125rem; color: var(--blue); min-height: 2.5rem; display: inline-flex; align-items: center; }

.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.guide-item { padding: 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); border-top: 4px solid var(--teal); }
.guide-item p { margin: 0; font-size: .9375rem; color: var(--muted); }
.guide-quote { margin-top: 1.5rem; padding: 1.5rem; background: var(--warm); border-radius: var(--radius); font-weight: 700; color: var(--blue-dark); text-align: center; }

.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.order-side { padding: 1.5rem; background: var(--blue); color: var(--white); border-radius: var(--radius); }
.order-side h2 { color: var(--white); }
.order-side > p { color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.contact-links { display: grid; gap: .55rem; }
.contact-links a { display: block; padding: .7rem .9rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-weight: 700; font-size: .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 .85rem; }
.form-field { margin-bottom: .85rem; }
.form-field.full { grid-column: 1 / -1; }
.order-form label { display: block; font-size: .8125rem; font-weight: 800; color: var(--blue); margin-bottom: .35rem; }
.order-form input, .order-form select, .order-form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); 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: .6rem; font-size: .75rem; color: var(--muted); }
.form-message { display: none; margin-top: .75rem; padding: .75rem; border-radius: 10px; font-weight: 700; font-size: .875rem; background: #f0fdfa; color: var(--teal-dark); border: 1px solid rgba(13,148,136,.25); }
.form-message.visible { display: block; }

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

.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; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-body { padding: 1.1rem; }
.blog-body p { margin: 0 0 .75rem; font-size: .875rem; color: var(--muted); }
.blog-body a { font-weight: 800; font-size: .875rem; color: var(--teal); }
.blog-tag { font-size: .65rem; font-weight: 800; text-transform: uppercase; color: var(--teal); }

.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: .75rem; }
.footer-about { font-size: .875rem; line-height: 1.65; }
.footer h4 { color: var(--white); font-size: .8125rem; font-weight: 800; text-transform: uppercase; margin: 0 0 .75rem; }
.footer-links { display: grid; gap: .4rem; font-size: .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: .8125rem; }
.footer-note { margin-top: 1.25rem; padding: 1rem; background: rgba(255,255,255,.04); border-radius: var(--radius); font-size: .7rem; color: rgba(255,255,255,.55); line-height: 1.6; }

.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; }
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; padding: .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: .4rem; }
.mobile-bar a { display: grid; place-items: center; min-height: var(--tap); border-radius: 10px; font-weight: 800; font-size: .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); }

@media (max-width: 960px) {
  .hero-grid, .order-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .cat-grid, .steps { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { padding-bottom: 4.25rem; }
  .topbar-loc { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: fixed; top: 4rem; left: .75rem; right: .75rem; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); z-index: 99; }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: .75rem; }
  .section { padding: 2.5rem 0; }
  .hero-btns .btn { flex: 1 1 100%; }
  .product-grid, .faq-grid, .guide-grid, .form-row { grid-template-columns: 1fr; }
  .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }