/* Polish layer (25 Oct 2026): loaded last on every public page, so it refines the
   page's own styles without changing any words. Fonts stay Arial, Tahoma and Georgia. */

/* Reading comfort */
body { line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { max-width: 66ch; }
p + p { margin-top: 0.85rem; }
.head p, section > p, .in > p { font-size: 1.05rem; }
h2 { letter-spacing: -0.015em; }
h3 { line-height: 1.25; }
main a:not(.btn):not([class]) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--copper-soft); color: var(--ink); }

/* Even rhythm between sections */
section { padding-block: clamp(2.5rem, 6vw, 4rem); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 640px) { .head { gap: 0.6rem; } }

/* Eyebrows become a small, tidy label */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.02rem; letter-spacing: 0.01em; }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.55; flex: none; }

/* One button system: same height, same corners, clear press feedback */
.btn { min-height: 48px; padding: 0.8rem 1.35rem; border-radius: 10px; justify-content: center; line-height: 1.2; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn-primary, .btn-wa { box-shadow: 0 6px 18px -8px rgba(59, 29, 110, .55); }
.btn-wa { box-shadow: 0 6px 18px -8px rgba(18, 140, 74, .6); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
@media (max-width: 520px) { .ctas .btn, .cta-band .btn, .hero .btn { flex: 1 1 100%; } }
#copy { min-height: 40px; padding: 0.45rem 0.9rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: inherit; font: 600 0.9rem var(--body); cursor: pointer; }
#copy:hover { background: rgba(255, 255, 255, .2); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* One icon weight everywhere */
main svg[viewBox="0 0 24 24"][stroke], .svc svg[stroke] { stroke-width: 2; }

/* Promise strip: bold figures that never break mid-number */
.promise { border-radius: 16px; box-shadow: 0 10px 30px -22px rgba(59, 29, 110, .45); }
.promise li { padding: 1.15rem 1.2rem; gap: 0.3rem; }
.promise b { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.promise span { font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 1180px) and (min-width: 761px) { .promise { grid-template-columns: repeat(3, minmax(0, 1fr)); } .promise li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); } .promise li:nth-child(3n) { border-right: 0; } .promise li:nth-last-child(-n+3) { border-bottom: 0; } }

/* "Why" lists become a grid of small cards */
.why { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.8rem; }
.why li { padding: 1rem 1.1rem 1rem 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.55; }
.why li::before { left: 1rem; top: 1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: color-mix(in srgb, var(--wa) 14%, transparent); }

/* Link lists ("We also do", "From our blog") become tidy chips */
.svc-links { gap: 0.5rem; align-items: center; line-height: 1.4; color: var(--muted); }
.svc-links a { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9rem; transition: border-color .2s, color .2s, background-color .2s; }
.svc-links a:hover { border-color: var(--copper); color: var(--copper); background: var(--copper-soft); }

/* "Brands we repair" and similar short lists sit in a highlighted card */
section[aria-labelledby="brands-h"] > p { max-width: 70ch; padding: 1rem 1.2rem 1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: 12px; }

/* Contact details as cards */
dl.visit { gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
dl.visit > div { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
dl.visit dt { text-transform: none; color: var(--copper); }

/* Price tables: roomy rows, and stacked cards on phones */
.pr-tbl { border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface); }
.pr-tbl th { background: var(--copper-soft); color: var(--ink); font-size: 0.9rem; }
.pr-tbl tr:last-child td { border-bottom: 0; }
.pr-tbl td:last-child { white-space: nowrap; }
@media (max-width: 560px) {
  .pr-tbl td:last-child { white-space: normal; }
  .pr-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pr-tbl, .pr-tbl tbody, .pr-tbl tr, .pr-tbl td { display: block; width: 100%; }
  .pr-tbl tr { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
  .pr-tbl tr:last-child { border-bottom: 0; }
  .pr-tbl td { padding: 0; border: 0; }
  .pr-tbl td:first-child { font-weight: 700; }
  .pr-tbl td + td { color: var(--muted); margin-top: 0.15rem; }
}

/* Questions: softer cards */
details { border-radius: 12px; }
details summary { cursor: pointer; }

/* Footer: calm columns, no underline clutter */
footer { padding-block: 2.5rem 3.5rem; }
footer a { text-decoration: none; color: var(--muted); transition: color .2s; }
footer a:hover { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
footer .foot-cols ul { gap: 0.5rem; }
footer .foot-h { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
footer .foot-about { line-height: 1.6; }
footer .socials { font-size: 0; display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
footer .socials a { font-size: 0.85rem; padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
footer .socials a:hover { border-color: var(--copper); text-decoration: none; }

/* Cards everywhere get the same soft lift on hover */
.more a, .svc { transition: border-color .2s, box-shadow .2s, transform .2s; }
.more a:hover { box-shadow: 0 10px 24px -18px rgba(59, 29, 110, .6); }
@media (hover: hover) { .svc:hover { box-shadow: 0 10px 24px -18px rgba(59, 29, 110, .6); } }

/* Kiswahili menu words are longer: one tidy line from 1440px, the Menu button below that */
@media (min-width: 1440px) { html[lang^="sw"] .top nav { gap: 1rem; flex-wrap: nowrap; white-space: nowrap; } }
@media (min-width: 1100px) and (max-width: 1439px) {
  html[lang^="sw"] .menu-btn { display: inline-flex; }
  html[lang^="sw"] .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 10, 40, .12); padding: 0.5rem 16px 1rem; }
  html[lang^="sw"] .top nav.open { display: flex; }
  html[lang^="sw"] .top nav a { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
}
