/* Design Forty — "legacy" layout (Nov 2026).
 * Recreates the layout, type sizes and proportions of the original design40.com /
 * design40.co.tz sites (header, footer, country landing pages, group selector),
 * coloured with the chosen d4 palette tokens from styles.css.
 * Old colour -> d4 token:
 *   purple bars/headings #782677  -> --purple / --band / --footer-bg
 *   yellow buttons #ffff00         -> --gold (dark text)
 *   light purple bands #ebe3eb/#d8c7d7 -> --tint / --cta-bg
 *   TZ violet band #c880ce, TZ plum gallery #774772 -> --band
 */
:root {
  --lg-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --lg-roboto: "Roboto", "Open Sans", system-ui, Arial, sans-serif;
  --lg-poppins: "Poppins", "Open Sans", system-ui, Arial, sans-serif;
  --lg-serif: "Gelasio", Georgia, "Times New Roman", serif; /* Gelasio is metric-compatible with Georgia */
  --lg-head: var(--purple);
  --lg-bar: var(--band);
  --lg-bar-text: var(--on-band);
  --lg-yellow: var(--gold);
  --lg-yellow-text: var(--heading);
  --lg-soft: var(--tint);
  --lg-body: #000;
  --lg-grey: #54595f;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; display: inline-block; vertical-align: -0.125em; }
.lg-container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 0; }
body.lg-site { background: #fff; }
body.lg-site .preview-banner { position: relative; }

/* ---------- Top bar ---------- */
.lg-topbar { background: var(--lg-bar); color: var(--lg-bar-text); font-family: var(--lg-sans); font-size: 14px; font-weight: 300; line-height: 28px; }
.lg-topbar a { color: inherit; text-decoration: none; }
.lg-topbar a:hover { text-decoration: underline; }
.lg-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 1rem; }
.lg-topbar-contact { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.lg-topbar-contact li { display: flex; align-items: center; }
.lg-topbar-contact .ico { font-size: 14px; margin-right: 13px; }
.lg-topbar-right { display: flex; align-items: center; gap: 22px; }
.lg-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.lg-social a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; font-size: 15px; }
.lg-topbar-mail { display: inline-flex; align-items: center; gap: 6px; font-family: var(--lg-roboto); font-size: 16px; font-weight: 400; }

/* ---------- Header ---------- */
.lg-header { background: #fff; position: sticky; top: 0; z-index: 70; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.lg-header-inner { position: relative; display: flex; align-items: center; min-height: 106px; max-width: 1200px; }
.lg-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; line-height: 0; }
.lg-logo img { height: 68px; width: auto; }
.lg-nav { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.lg-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 50px; align-items: center; }
.lg-menu > li { position: relative; }
.lg-menu > li > a, .lg-sub-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lg-sans); font-size: 15px; font-weight: 400; line-height: 20px; color: #000;
  text-decoration: none; padding: 13px 0; background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.lg-page-home .lg-menu > li > a, .lg-page-home .lg-sub-btn { font-size: 15px; }
.lg-sub-btn .caret { font-size: 11px; }
.lg-menu > li > a:hover, .lg-sub-btn:hover, .lg-menu > li > a[aria-current="page"], .lg-sub-btn.is-current { border-bottom-color: var(--lg-head); color: #000; }
.lg-sub {
  list-style: none; margin: 0; padding: 0; position: absolute; left: -16px; top: 100%; min-width: 240px;
  background: #fff; box-shadow: 0 10px 30px rgba(47,42,56,0.14); z-index: 5;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover > .lg-sub, .has-sub:focus-within > .lg-sub, .has-sub.is-open > .lg-sub { opacity: 1; visibility: visible; transform: none; }
.lg-sub a { display: block; padding: 13px 20px; font-family: var(--lg-sans); font-size: 15px; color: #000; text-decoration: none; }
.lg-sub a:hover, .lg-sub a:focus-visible, .lg-sub a[aria-current="page"] { background: var(--lg-soft); color: var(--heading); }
.lg-menu-btn, .lg-call { display: none; }
.lg-menu-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: #000; font-size: 24px; line-height: 0; }
.lg-menu-btn .ico-close { display: none; }
.lg-menu-btn[aria-expanded="true"] .ico-open { display: none; }
.lg-menu-btn[aria-expanded="true"] .ico-close { display: inline-block; }
.lg-call { color: #000; font-size: 20px; padding: 8px; line-height: 0; }

/* ---------- Section headings ---------- */
.lg-h { font-family: var(--lg-sans); font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--lg-head); text-align: center; letter-spacing: 0; margin: 0; }
.lg-h-spaced, .lg-services .lg-h, .lg-featured .lg-h, .lg-cta .lg-h, .lg-blogs .lg-h { letter-spacing: 2px; }
.lg-h-dark { color: #000; }
.lg-center { text-align: center; margin: 0; }

/* ---------- Hero slider ---------- */
.lg-hero { position: relative; height: clamp(585px, 62.5vw, 900px); overflow: hidden; background: var(--hero-fallback); color: #fff; }
.lg-hero-slides, .lg-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-hero-img { object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity 1s ease-in-out; max-width: none; }
.lg-hero-img.is-active { opacity: 1; }
.lg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Soft veil: keep the top of the photo bright, darken the band where the title, button and tagline sit. */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.10) 14%,
    rgba(0,0,0,0.32) 26%,
    rgba(0,0,0,0.42) 48%,
    rgba(0,0,0,0.36) 70%,
    rgba(0,0,0,0.16) 88%,
    rgba(0,0,0,0.10) 100%
  );
}
.lg-hero-copy { position: absolute; inset: 0; z-index: 2; text-align: center; }
.lg-hero-title, .lg-hero-btns, .lg-hero-tagline { position: absolute; left: 0; right: 0; transform: translateY(-50%); margin: 0; padding: 0 12px; }
.lg-hero-title { top: 30%; font-family: var(--lg-serif); font-weight: 400; font-size: clamp(16px, 3.47vw, 50px); line-height: 1.5; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 16px rgba(0,0,0,0.45); }
.lg-hero-btns { top: 50%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; row-gap: 56px; }
.lg-page-home .lg-hero-btns:has(.lg-break) { top: 46%; }
.lg-break { flex-basis: 100%; height: 0; }
.lg-hbtn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--lg-roboto); font-size: 14px; font-weight: 700;
  line-height: 30px; letter-spacing: 1px; text-transform: uppercase; color: #fff; text-decoration: none;
  padding: 10px 35px; border: 2px solid #fff; border-radius: 5px; background: transparent; transition: background .2s, color .2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.lg-hbtn .ico { font-size: 14px; }
.lg-hbtn:hover, .lg-hbtn:focus-visible { background: #fff; color: var(--heading); text-shadow: none; }
.lg-hbtn-solid { background: var(--purple-deep); border-color: color-mix(in srgb, var(--band) 60%, transparent); text-transform: capitalize; font-family: var(--lg-sans); }
.lg-hbtn-solid.is-lower { text-transform: lowercase; font-family: var(--lg-roboto); }
.lg-hbtn-solid:hover, .lg-hbtn-solid:focus-visible { background: var(--band); color: var(--heading); border-color: var(--band); }
.lg-hero-tagline { top: 67%; font-family: var(--lg-serif); font-style: italic; font-size: clamp(12px, 1.39vw, 20px); line-height: 75px; letter-spacing: 1px; text-transform: capitalize; text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 14px rgba(0,0,0,0.4); }
.lg-hero-fab { position: absolute; right: 107px; top: 65%; z-index: 3; display: flex; flex-direction: column; gap: 31px; }
.lg-fab { width: 61px; height: 61px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.lg-fab-1 { background: var(--purple-deep); color: #fff; }
.lg-fab-2 { background: var(--gold); color: var(--heading); }
.lg-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: 0; background: rgba(0,0,0,0.5); color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lg-hero-prev { left: 0; } .lg-hero-next { right: 0; }
.lg-hero-nav:hover { background: rgba(0,0,0,0.75); }
.lg-hero-dots { display: none; position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; justify-content: center; gap: 8px; }
.lg-hero-dots button { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,0.4); padding: 0; cursor: pointer; }
.lg-hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- Stats ---------- */
.lg-stats { padding: 40px 0 40px; }
.lg-stats-grid { display: grid; grid-template-columns: repeat(4, 265px); justify-content: center; gap: 20px; }
.lg-stat { text-align: center; }
.lg-stat-num { font-family: var(--lg-roboto); font-size: 40px; font-weight: 600; line-height: 40px; color: var(--lg-head); margin: 0; }
.lg-stat-label { font-family: var(--lg-sans); font-size: 15px; font-weight: 400; line-height: 37.5px; color: var(--lg-grey); margin: 0; letter-spacing: 0; }
.lg-stat-label::after { content: ""; display: block; width: 100px; height: 2px; background: var(--lg-yellow); margin: 3px auto 0; }

/* ---------- Clients ---------- */
.lg-clients { padding: 40px 0 70px; overflow: hidden; }
.lg-clients .lg-h { margin-bottom: 9px; }
.lg-marquee { overflow: hidden; }
.lg-marquee-track { display: flex; gap: 21px; list-style: none; margin: 0; padding: 0; width: max-content; animation: lg-marquee 90s linear infinite; }
.lg-marquee:hover .lg-marquee-track { animation-play-state: paused; }
.lg-marquee-track li { flex: 0 0 auto; width: 159px; height: 105px; border: 2px solid var(--lg-head); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lg-marquee-track img { width: 100%; height: 100%; object-fit: contain; padding: 6px 8px; }
.lg-clients--square .lg-marquee-track { gap: 39px; animation-duration: 40s; }
.lg-clients--square .lg-marquee-track li { width: 56px; height: 36px; border-width: 1.5px; border-radius: 6px; }
.lg-clients--square .lg-marquee-track img { padding: 3px; }
.lg-clients--square { padding: 40px 0 50px; }
.lg-clients--square .lg-h { font-size: 30px; margin-bottom: 40px; letter-spacing: 0; }
@keyframes lg-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10.5px)); } }
@media (prefers-reduced-motion: reduce) {
  .lg-marquee { overflow-x: auto; }
  .lg-marquee-track { animation: none; }
  .lg-marquee-track li[aria-hidden="true"] { display: none; }
  .lg-hero-img { transition: none; }
}

/* ---------- Services ---------- */
.lg-services { padding: 0 0 100px; }
.lg-services > .lg-h { margin-bottom: 50px; }
.lg-svc { padding: 0; }
.lg-svc + .lg-svc { margin-top: 110px; }
.lg-svc-inner { max-width: 1220px; display: grid; grid-template-columns: 600px 600px; gap: 20px; align-items: center; }
.lg-svc:first-of-type .lg-svc-inner { grid-template-columns: 568px 568px; gap: 84px; }
.lg-svc.is-flipped .lg-svc-img { order: 2; }
.lg-svc-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lg-svc:first-of-type .lg-svc-img { aspect-ratio: 568 / 319; }
.lg-svc-title { font-family: var(--lg-sans); font-size: 20px; font-weight: 500; line-height: 22px; letter-spacing: 3px; color: var(--lg-head); margin: 0 0 21px; }
.lg-svc-copy p { font-family: var(--lg-sans); font-size: 16px; font-weight: 300; line-height: 28px; color: var(--lg-body); margin: 0 0 20px; }
.lg-btn-yellow { display: inline-flex; align-items: center; gap: 6px; background: var(--lg-yellow); color: var(--lg-yellow-text); font-family: var(--lg-sans); font-size: 15px; font-weight: 700; line-height: 15px; letter-spacing: 1px; padding: 12px 16px 12px 24px; border-radius: 3px; text-decoration: none; }
.lg-btn-yellow .ico { font-size: 15px; }
.lg-btn-yellow:hover, .lg-btn-yellow:focus-visible { background: var(--gold-soft); color: var(--lg-yellow-text); }
.lg-svc.is-band { background: var(--band); padding: 20px 0; }
.lg-svc.is-band + .lg-svc { margin-top: 90px; }
.lg-svc.is-wide .lg-svc-inner { max-width: none; padding: 20px 10px 10px 20px; grid-template-columns: 690px 1fr; }
.lg-svc.is-wide { margin-top: 90px; }

/* ---------- Featured projects ---------- */
.lg-featured { padding: 0 0 0; }
.lg-featured .lg-h { margin-bottom: 40px; }
.lg-featured-band { background: var(--lg-soft); padding: 6px 6px 6px; }
.lg-featured-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.lg-featured-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lg-featured li a { display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.lg-featured-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 15px; background: rgba(47,42,56,0.55); font-family: var(--lg-roboto); font-size: 18px; font-weight: 600; line-height: 1; opacity: 0; transition: opacity .25s; }
.lg-featured li a:hover .lg-featured-title, .lg-featured li a:focus-visible .lg-featured-title { opacity: 1; }
.lg-featured--masonry .lg-featured-band { background: var(--band); padding: 10px; }
.lg-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.lg-masonry-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.lg-masonry img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lg-masonry .is-tall img { aspect-ratio: 2 / 3; }
.lg-btn-soft { display: inline-block; margin-top: 7px; background: var(--lg-soft); color: var(--lg-head); font-family: var(--lg-roboto); font-size: 15px; font-weight: 500; line-height: 15px; padding: 12px 24px; border-radius: 3px; text-decoration: none; }
.lg-featured--masonry .lg-btn-soft { margin-top: 35px; }
.lg-btn-soft:hover, .lg-btn-soft:focus-visible { background: var(--band); color: var(--heading); }

/* ---------- Reviews (static, no third-party widget) ---------- */
.lg-reviews { padding: 90px 0 37px; font-family: var(--lg-poppins); color: #000; }
.lg-reviews-inner { display: grid; grid-template-columns: 345px 1fr; gap: 26px; align-items: center; padding: 0 0 0 10px; }
.lg-reviews-summary { display: flex; gap: 15px; align-items: flex-start; }
.lg-reviews-logo { width: 65px; height: 65px; object-fit: contain; background: var(--lg-soft); padding: 6px; }
.lg-reviews-name { font-family: var(--lg-poppins); font-size: 15px; font-weight: 600; line-height: 21px; color: #000; margin: 0 0 4px; letter-spacing: 0; }
.lg-stars { display: flex; gap: 1px; color: #f6bb06; font-size: 20px; margin: 0; line-height: 1; }
.lg-reviews-count { font-size: 14px; margin: 6px 0 0; }
.lg-reviews-write { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 14px; color: #000; text-decoration: none; border: 1px solid #767676; border-radius: 5px; padding: 9.5px 17.5px; background: #fff; }
.lg-reviews-write:hover { background: #f3f3f3; }
.lg-review-scroller { position: relative; min-width: 0; }
.lg-review-list { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 333px; gap: 17px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lg-review-list::-webkit-scrollbar { display: none; }
.lg-review { scroll-snap-align: start; background: #fff; border: 1px solid #e4e0e6; border-radius: 14px; padding: 20px; min-height: 235px; box-shadow: 0 2px 10px rgba(47,42,56,0.05); display: flex; flex-direction: column; }
.lg-review-head { display: flex; gap: 15px; align-items: flex-start; }
.lg-review-head > div { flex: 1; min-width: 0; }
.lg-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 18px; flex-shrink: 0; overflow: hidden; }
img.lg-avatar { object-fit: cover; padding: 0; background: var(--tint); display: block; }
.lg-g-logo { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.lg-review-name { font-size: 15px; font-weight: 600; line-height: 21px; margin: 0; }
.lg-review-when { font-size: 13px; line-height: 18.2px; color: #6b6b6b; margin: 0; }
.lg-g { font-size: 20px; color: #4285f4; }
.lg-stars-sm { font-size: 17px; margin: 11px 0 11px; align-items: center; }
.lg-verified { color: #4a90e2; font-size: 15px; margin-left: 6px; }
.lg-review-text { font-size: 15px; line-height: 21.75px; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lg-review.is-expanded .lg-review-text { -webkit-line-clamp: unset; display: block; }
.lg-review-more { background: none; border: 0; padding: 0; margin-top: 8px; font: inherit; font-size: 13.5px; color: #6b6b6b; cursor: pointer; }
.lg-review-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d9d9d9; background: #fff; color: #000; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.lg-review-prev { left: -13px; } .lg-review-next { right: 8px; }

/* ---------- SEO text ---------- */
.lg-seo { padding: 0 0 80px; }
.lg-seo .lg-h { margin-bottom: 20px; }
.lg-seo p { font-family: var(--lg-roboto); font-size: 16px; font-weight: 300; line-height: 28px; color: var(--lg-body); margin: 0; }
.lg-seo a { color: inherit; }

/* ---------- CTA band ---------- */
.lg-cta { background: var(--cta-bg); padding: 60px 0 32px; text-align: center; }
.lg-cta .lg-h { margin-bottom: 19px; }
.lg-cta p { font-family: var(--lg-sans); font-size: 16px; line-height: 28px; color: var(--on-band-muted); margin: 0; }

/* ---------- Blogs ---------- */
.lg-blogs { padding: 20px 0 80px; }
.lg-blogs .lg-h { margin-bottom: 69px; }
.lg-blog-grid { list-style: none; margin: 0 auto; padding: 0 30px; max-width: 1440px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
.lg-blog { background: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.15); border-radius: 3px; display: flex; flex-direction: column; overflow: hidden; }
.lg-blog-thumb { display: block; overflow: hidden; }
.lg-blog-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.lg-blog:hover .lg-blog-thumb img { transform: scale(1.03); }
.lg-blog-body { padding: 35px 30px 0; flex: 1; }
.lg-blog-title { font-family: var(--lg-roboto); font-size: 21px; font-weight: 600; line-height: 23.1px; margin: 0 0 25px; letter-spacing: 0; }
.lg-blog-title a { color: var(--lg-grey); text-decoration: none; }
.lg-blog-title a:hover { color: var(--lg-head); }
.lg-blog-more { display: inline-block; font-family: var(--lg-roboto); font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--lg-head); text-decoration: none; margin-bottom: 20px; }
.lg-blog-meta { margin: 0; padding: 15px 30px; border-top: 1px solid #eaeaea; font-family: "Roboto Slab", var(--lg-serif); font-size: 12px; color: #6f6f6f; }

/* ---------- Footer ---------- */
.lg-footer { background: var(--footer-bg); color: var(--footer-text); font-family: var(--lg-sans); padding: 30px 0 22px; }
.lg-footer a { color: var(--footer-text); text-decoration: none; }
.lg-footer a:hover { text-decoration: underline; }
.lg-footer-grid { display: grid; grid-template-columns: 285px 1fr 285px; gap: 20px; padding: 0 20px; }
.lg-footer-col { padding: 0 10px; }
.lg-footer-services { padding-left: 20px; }
.lg-footer-h { font-family: var(--lg-sans); font-size: 18px; font-weight: 500; line-height: 19.8px; letter-spacing: 1px; color: var(--footer-heading); margin: 0 0 13px; }
.lg-footer-services .lg-footer-h { font-weight: 700; }
.lg-footer ul:not(.lg-social) { list-style: none; margin: 0; padding: 0; }
.lg-footer-col li { font-size: 16px; line-height: 28px; margin-bottom: 10px; }
.lg-footer-contact { text-align: center; padding: 0 30px; }
.lg-footer-title { font-family: var(--lg-sans); font-size: 30px; font-weight: 600; line-height: 30px; color: var(--gold-text); margin: 0 0 18px; letter-spacing: 0; }
.lg-footer-contact p { font-size: 16px; line-height: 28px; margin: 0 0 10px; }
.lg-social-footer { justify-content: center; gap: 4px; margin: 14px 0 8px; }
.lg-social-footer a { font-size: 14px; }
.lg-copy { color: var(--footer-muted); }
.lg-wa { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; font-family: var(--lg-sans); font-size: 12px; padding: 8px 18px 8px 12px; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.lg-wa .ico { font-size: 22px; }
.lg-wa:hover { color: #fff; background: #1ebe5b; }
.wa-float { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .lg-container { padding-inline: 20px; }
  .lg-svc-inner, .lg-svc:first-of-type .lg-svc-inner, .lg-svc.is-wide .lg-svc-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .lg-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .lg-menu { gap: 32px; }
}
@media (max-width: 1024px) {
  .lg-topbar-inner { flex-direction: column; justify-content: center; padding-block: 8px; gap: 0; }
  .lg-topbar-contact { flex-direction: column; align-items: center; gap: 0; }
  .lg-topbar { font-size: 13px; line-height: 24px; text-align: center; }
  .lg-topbar-mail { font-size: 14px; }
  .lg-header-inner { min-height: 76px; justify-content: space-between; }
  .lg-logo img { height: 52px; }
  .lg-menu-btn, .lg-call { display: inline-flex; }
  .lg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 24px rgba(47,42,56,0.14); flex-direction: column; align-items: stretch; max-height: calc(100vh - 76px); overflow-y: auto; }
  .lg-header.is-open .lg-nav { display: flex; }
  .lg-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .lg-menu > li { border-top: 1px solid var(--line); }
  .lg-menu > li > a, .lg-sub-btn { width: 100%; justify-content: space-between; padding: 15px 20px; font-size: 16px; border-bottom: 0; }
  .lg-menu > li > a[aria-current="page"], .lg-sub-btn.is-current { background: var(--lg-soft); }
  .lg-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: var(--paper); min-width: 0; }
  .has-sub:hover > .lg-sub, .has-sub:focus-within > .lg-sub { display: none; }
  .has-sub.is-open > .lg-sub { display: block; }
  .lg-sub a { padding: 13px 20px 13px 36px; }
  .lg-sub-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
}
@media (max-width: 767px) {
  .lg-h { font-size: 30px; padding: 0 8px; }
  .lg-hero-title { top: 32%; }
  .lg-hero-btns { top: 58%; row-gap: 14px; gap: 10px 10px; }
  .lg-page-home .lg-hero-btns:has(.lg-break) { top: 62%; }
  .lg-hbtn { font-size: 11px; line-height: 20px; padding: 7px 18px; }
  .lg-hero-tagline { top: 67%; line-height: 33px; }
  .lg-hero-nav { display: none; }
  .lg-hero-dots { display: flex; }
  .lg-hero-fab { right: auto; left: 0; right: 0; top: auto; bottom: 66px; flex-direction: row; justify-content: center; gap: 46px; }
  .lg-fab { width: 40px; height: 40px; font-size: 16px; }
  .lg-stats { padding: 0 0 20px; }
  .lg-stats-grid { grid-template-columns: 1fr; gap: 6px; }
  .lg-stat { display: flex; flex-direction: column-reverse; align-items: center; }
  .lg-stat-label { line-height: 22px; font-size: 13px; }
  .lg-stat-label::after { display: none; }
  .lg-stat::before { content: ""; order: 3; display: block; width: 100px; height: 2px; background: var(--lg-yellow); margin: 0 auto 6px; }
  .lg-stat { flex-direction: column; }
  .lg-stat-num { order: 1; } .lg-stat-label { order: 2; }
  .lg-stat::before { order: 0; }
  .lg-clients { padding: 50px 0 40px; }
  .lg-clients .lg-h { margin-bottom: 30px; }
  .lg-marquee-track li { width: 290px; height: 190px; border-radius: 16px; }
  .lg-marquee-track { gap: 40px; animation-duration: 120s; }
  .lg-clients--square .lg-marquee-track li { width: 160px; height: 100px; }
  .lg-services { padding-bottom: 60px; }
  .lg-services > .lg-h { margin-bottom: 30px; }
  .lg-svc-inner, .lg-svc:first-of-type .lg-svc-inner, .lg-svc.is-wide .lg-svc-inner { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .lg-svc.is-flipped .lg-svc-img { order: 0; }
  .lg-svc + .lg-svc, .lg-svc.is-band + .lg-svc, .lg-svc.is-wide { margin-top: 50px; }
  .lg-svc-title { font-size: 14px; line-height: 18px; text-align: center; margin-bottom: 14px; }
  .lg-svc-copy p { font-size: 14px; line-height: 26px; }
  .lg-svc-copy { text-align: left; }
  .lg-btn-yellow { display: flex; width: max-content; margin: 0 auto; font-size: 13px; }
  .lg-featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .lg-featured-band { padding: 12px; }
  .lg-masonry { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lg-masonry-col { gap: 8px; }
  .lg-masonry-col:nth-child(3) { display: contents; }
  .lg-featured--masonry .lg-featured-band { padding: 8px; }
  .lg-featured-title { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(47,42,56,0.7)); align-items: flex-end; font-size: 14px; }
  .lg-reviews { padding: 50px 0 30px; }
  .lg-reviews-inner { grid-template-columns: 1fr; padding: 0 6px; gap: 30px; }
  .lg-review-list { grid-auto-columns: 100%; gap: 12px; scroll-snap-type: x mandatory; }
  .lg-review-nav { display: none; }
  .lg-reviews-inner { justify-items: center; }
  .lg-reviews-summary { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .lg-reviews-name { font-size: 18px; line-height: 24px; }
  .lg-review-scroller { width: 100%; }
  .lg-review-dots { display: flex; }

  .lg-seo .lg-h { margin-bottom: 14px; }
  .lg-seo p { padding: 0 6px; font-size: 15px; }
  .lg-cta { padding: 40px 0 16px; }
  .lg-blogs .lg-h { margin-bottom: 30px; }
  .lg-blog-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 30px; }
  .lg-footer-grid { grid-template-columns: 1fr; text-align: center; padding: 0 16px; gap: 24px; }
  .lg-footer-col { padding: 0; }
  .lg-footer-col li { margin-bottom: 4px; }
  .lg-footer-services { padding-left: 0; }
  .lg-footer-contact { padding: 0; }
  /* compact icon-only WhatsApp control is defined at the end of this file */
}

/* ---------- Group country selector (/) ---------- */
.lg-page-group { --lgg-text: var(--purple-text); }
.lgg { position: relative; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--lg-poppins); color: var(--ink); overflow: hidden; background: var(--bg); }
.lgg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; max-width: none; z-index: 0; }
.lgg::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.78); z-index: 1; }
.lgg-page { position: relative; z-index: 2; flex: 1; display: flex; }
.lgg-hub { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 0 32px clamp(8px, 2vh, 20px); max-width: 1180px; }
.lgg-brand { position: relative; text-align: center; }
.lgg-brand img { height: clamp(130px, 23vh, 220px); width: auto; margin: 0 auto; }
.lgg-topbar { position: absolute; top: clamp(6px, 1.4vh, 14px); right: 0; margin: 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; color: #3a3340; }
.lgg-cards-title { text-align: center; color: #000; font-family: var(--lg-poppins); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1.5; margin: clamp(14px, 3vh, 30px) 0 0; }
.lgg-cards { display: flex; justify-content: center; gap: clamp(40px, 7vw, 90px); margin: clamp(14px, 3vh, 34px) 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.lgg-card { display: flex; flex-direction: column; align-items: center; text-align: center; width: 200px; padding: 18px 14px 20px; border-radius: 12px; background: rgba(255,255,255,0.82); box-shadow: 0 8px 22px rgba(47,42,56,0.10); transition: transform .25s ease, box-shadow .25s ease; text-decoration: none; color: inherit; }
a.lgg-card:hover, a.lgg-card:focus-visible { transform: translateY(-6px) scale(1.06); box-shadow: 0 18px 36px rgba(47,42,56,0.18); color: inherit; }
.lgg-flag { width: 86px; height: 57px; border-radius: 5px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.18); margin-bottom: 16px; display: block; }
.lgg-flag img { width: 100%; height: 100%; object-fit: cover; }
.lgg-label { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--ink); line-height: 1.5; }
.lgg-country { font-weight: 700; font-size: 1.5rem; color: var(--purple); letter-spacing: 0.02em; margin-top: 6px; line-height: 1.5; }
.lgg-uline { width: 86px; height: 2px; background: var(--gold); border-radius: 2px; margin: 8px 0 12px; display: block; }
.lgg-city { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.lgg-soon { font-size: 0.95rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.lgg-arrow { margin-top: 14px; color: var(--purple); font-size: 1.15rem; line-height: 1; transition: transform .2s; }
a.lgg-card:hover .lgg-arrow { transform: translateX(5px); }
.lgg-mission { text-align: center; max-width: 760px; margin: clamp(22px, 4.5vh, 56px) auto 0; color: var(--lgg-text); font-weight: 500; font-size: 0.88rem; line-height: 1.65; }
.lgg-mission strong { font-weight: 700; }
.lgg-disciplines { text-align: center; margin: clamp(14px, 2.6vh, 26px) 0 0; padding-top: clamp(12px, 2.2vh, 22px); color: var(--ink); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; }
.lgg-disciplines::before { content: ""; display: block; width: 120px; height: 1px; background: color-mix(in srgb, var(--purple) 35%, transparent); margin: 0 auto clamp(12px, 2.2vh, 22px); }
.lgg-disciplines .dot { color: var(--purple); margin: 0 8px; }
.lgg-pillars { position: relative; z-index: 2; flex-shrink: 0; background: var(--band); color: var(--on-band); padding: clamp(16px, 3vh, 30px) 0; }
.lgg-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-inline: 32px; max-width: 1180px; }
.lgg-pillar { display: flex; align-items: flex-start; gap: 16px; }
.lgg-pillar .ico { font-size: 1.9rem; margin-top: 2px; opacity: 0.95; }
.lgg-pillar h2 { font-family: var(--lg-poppins); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; margin: 0 0 4px; color: var(--on-band); line-height: 1.5; }
.lgg-pillar p { font-size: 0.85rem; color: var(--on-band-muted); line-height: 1.45; margin: 0; }
@media (max-width: 820px) { .lgg-cards { gap: clamp(20px, 4vw, 48px); } }
@media (max-width: 768px) {
  .lgg-brand { display: flex; flex-direction: column; align-items: center; }
  .lgg-topbar { position: static; order: -1; text-align: center; margin: 12px 0 1px; font-size: 0.7rem; letter-spacing: 0.06em; }
  .lgg-brand img { height: clamp(100px, 17vh, 150px); }
  .lgg-cards { gap: 20px; margin-top: 18px; }
  .lgg-card { width: 160px; padding: 14px 10px 16px; }
  .lgg-flag { width: 76px; height: 50px; }
  .lgg-country { font-size: 1.3rem; }
  .lgg-mission { margin-top: 22px; font-size: 0.8rem; line-height: 1.55; }
  .lgg-hub { padding-bottom: 16px; }
}
@media (max-width: 520px) {
  .lgg-hub, .lgg-pillars-grid { padding-inline: 12px; }
  .lgg-cards { flex-wrap: nowrap; gap: 8px; justify-content: space-between; }
  .lgg-cards li { flex: 1 1 0; min-width: 0; display: flex; }
  .lgg-card { width: auto; flex: 1; min-width: 0; padding: 10px 4px 12px; }
  .lgg-flag { width: 58px; height: 39px; margin-bottom: 10px; }
  .lgg-label { font-size: 0.6rem; letter-spacing: 0.02em; }
  .lgg-country { font-size: 0.95rem; }
  .lgg-uline { width: 48px; }
  .lgg-city, .lgg-soon { font-size: 0.72rem; }
  .lgg-arrow { font-size: 1rem; margin-top: 8px; }
  .lgg-pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .lgg-pillar { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .lgg-pillar .ico { font-size: 1.5rem; margin-top: 0; }
  .lgg-pillar p { font-size: 0.8rem; }
  .lgg-disciplines { white-space: nowrap; font-size: 0.72rem; letter-spacing: 0; }
  .lgg-disciplines .dot { margin: 0 4px; }
}
body.lg-page-group main { padding: 0; flex: 1; display: flex; flex-direction: column; }
.lg-page-group .lgg { flex: 1; }
.lg-hero-btns:has(.lg-break) { row-gap: 28px; }
.lg-clients--square .lg-marquee-track { animation: none; width: auto; max-width: 1440px; margin: 0 auto; justify-content: center; flex-wrap: wrap; gap: 20px 57px; }
.lg-clients--square .lg-marquee-track li[aria-hidden="true"] { display: none; }
.lg-clients--square .lg-marquee-track li { width: 86px; height: 54px; }
@media (max-width: 767px) {
  .lg-hero-btns:has(.lg-break) { row-gap: 7px; }
  .lg-clients--square .lg-marquee-track { gap: 14px; padding: 0 12px; }
  .lg-clients--square .lg-marquee-track li { width: calc((100% - 28px) / 3); height: 64px; }
}
@media (max-width: 767px) {
  .lg-page-home .lg-hero-btns:has(.lg-break) { top: 57%; }
  .lg-hero-btns:has(.lg-break) ~ .lg-hero-tagline { top: 80%; }
  .lg-hero-btns:has(.lg-break) + .lg-hero-tagline { top: 80%; }
  .lg-hero-title { letter-spacing: 0; }
  .lg-hero-fab { bottom: 40px; }
  .lg-masonry { display: block; columns: 2; column-gap: 8px; }
  .lg-masonry-col, .lg-masonry-col:nth-child(3) { display: contents; }
  .lg-masonry li { break-inside: avoid; margin-bottom: 8px; }
}
@media (max-width: 767px) {
  .lg-hero-copy:has(.lg-break) .lg-hero-title { top: 33%; }
}
/* Group page: exact values from the original landing page (body background, active card, topbar strut). */
.lgg { background-color: #f7f4f9; }
.lgg-topbar { line-height: 24px; }
.lgg-card.is-active { background: #fff; transform: translateY(-6px) scale(1.06); box-shadow: 0 18px 36px rgba(47,42,56,0.18); }
.lgg-card.is-active .lgg-country { color: var(--purple-deep); }
a.lgg-card.is-active:hover, a.lgg-card.is-active:focus-visible { transform: translateY(-8px) scale(1.07); }
@media (prefers-reduced-motion: reduce) { .lgg-card, .lgg-arrow { transition: none; } }

/* ===== Inner-page title banner (original: 300px, bg photo, ::before black 0.5, Open Sans 50/500 white, 1px tracking) ===== */
.lg-pagehead { position: relative; height: 300px; display: flex; align-items: center; background-image: var(--ph-img-m); background-size: var(--ph-size); background-position: 0 0; background-repeat: repeat; color: #fff; }
.lg-pagehead::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .5; }
.lg-pagehead .lg-container { position: relative; width: 100%; }
.lg-pagehead-title { font-family: var(--lg-sans); font-size: 50px; font-weight: 500; letter-spacing: 1px; line-height: 1.1; color: #fff; margin: 0; padding: 0 10px; text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 16px rgba(0,0,0,0.3); }
@media (min-width: 1025px) { .lg-pagehead { background-image: var(--ph-img); background-size: var(--ph-size); background-position: var(--ph-pos); } }
@media (max-width: 767px) { .lg-pagehead-title { padding: 0 20px 0 10px; } }
/* The page's own intro follows the banner: drop the duplicate small kicker and give it the old section spacing. */
.lg-pagehead + .page-hero { padding-top: 50px; }
.lg-pagehead + .page-hero .section-kicker { display: none; }

/* ===== Inner-page CTA band (original: 150px, #d8c7d7 → d4 tint, Open Sans 36/700 heading, 16/200 line) ===== */
.lg-cta-inner { background: var(--tint); padding: 30px 0 32px; text-align: center; font-family: var(--lg-sans); }
.lg-cta-inner-h { font-family: var(--lg-sans); font-size: 36px; font-weight: 700; line-height: 40px; color: var(--heading); margin: 0 0 20px; letter-spacing: 0; }
.lg-cta-inner p { font-size: 16px; font-weight: 300; line-height: 28px; color: var(--on-band-muted); margin: 0; }
.lg-cta-inner .lg-btn-yellow { margin-top: 18px; }
@media (max-width: 767px) { .lg-cta-inner-h { font-size: 26px; line-height: 32px; } }
.lg-pagehead-title { font-weight: var(--ph-weight, 500); } /* the original About banner renders bold, the others regular */

/* ===== Country switch (Kenya / Tanzania / USA soon + link to /) ===== */
.lg-region { display: inline-flex; align-items: center; gap: 2px; border: 1px solid color-mix(in srgb, var(--on-band) 30%, transparent); border-radius: 999px; padding: 2px; font-family: var(--lg-sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.lg-region a, .lg-region-soon { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; color: var(--on-band); text-decoration: none; white-space: nowrap; }
.lg-topbar .lg-region a:hover { text-decoration: none; background: color-mix(in srgb, #fff 45%, transparent); }
.lg-region a.is-active { background: #fff; color: var(--heading); }
.lg-region-soon { color: var(--on-band-muted); opacity: .75; cursor: default; }
.lg-region-all { padding: 6px 8px !important; }
.lg-region-all .ico { font-size: 13px; }
.lg-region-menu { display: none; }
@media (max-width: 1240px) { .lg-topbar-contact { gap: 24px; } .lg-topbar-right { gap: 16px; } }
@media (max-width: 1024px) {
  .lg-region-top { display: none; }
  .lg-region-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 14px 20px 18px; padding: 4px; border-color: var(--line); background: var(--paper); font-size: 13px; }
  .lg-region-menu a, .lg-region-menu .lg-region-soon { min-height: 44px; padding: 0 16px; color: var(--heading); }
  .lg-region-menu .lg-region-soon { color: var(--muted); }
  .lg-region-menu a.is-active { background: var(--purple); color: #fff; }
}
/* Room for the country switch in the desktop top bar */
@media (min-width: 1025px) {
  .lg-topbar .lg-container { max-width: 1340px; padding-inline: 20px; }
  .lg-topbar-contact li, .lg-topbar-mail { white-space: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1339px) { .lg-topbar-contact li:nth-child(2) { display: none; } }
/* FAQ: small top-bar link on desktop, secondary link at the foot of the mobile panel */
.lg-topbar-faq { font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 6px 4px; }
.lg-topbar-faq[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.lg-menu-secondary { display: none; }
@media (max-width: 1024px) {
  .lg-topbar-faq { display: none; }
  .lg-menu-secondary { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 20px 16px; font-family: var(--lg-sans); font-size: 14px; color: var(--on-band-muted); text-decoration: underline; text-underline-offset: 3px; }
  .lg-menu-secondary[aria-current="page"] { color: var(--heading); font-weight: 600; }
}

/* ===== Mobile tap-target and WhatsApp-button fixes (audit at 390 / 360 px) ===== */
@media (max-width: 767px) {
  /* footer links: full 44px rows */
  .lg-footer-col li { margin-bottom: 0; }
  .lg-footer-col li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .lg-footer-contact a { display: inline-block; padding: 4px 0; }
  /* keep the floating WhatsApp button clear of the last footer lines */
  .lg-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* top bar phone/email links */
  .lg-topbar-contact a, .lg-topbar-mail { display: inline-flex; align-items: center; min-height: 28px; }
  /* hero dots: 13px dot inside a 28px hit area */
  .lg-hero-dots { gap: 2px; bottom: 10px; }
  .lg-hero-dots button { width: 28px; height: 28px; border: 0; background: none; position: relative; }
  .lg-hero-dots button::before { content: ""; position: absolute; inset: 7.5px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,0.4); }
  .lg-hero-dots button[aria-current="true"] { background: none; }
  .lg-hero-dots button[aria-current="true"]::before { background: #fff; }
  .lg-review-more { padding: 6px 0; min-height: 32px; }
  /* contact facts, breadcrumbs, Student Hub "All" links */
  .facts dd a { display: inline-block; padding: 4px 0; }
  .crumbs a { display: inline-block; padding: 4px 2px; }
}
@media (max-width: 767px) { .dash-head a { display: inline-block; padding: 4px 8px; margin-right: -8px; } }

/* ===== Mobile (≤767px): spacing and type matched to the original design40.com mobile pages at 390px ===== */
@media (max-width: 767px) {
  /* top bar 124px: phones / address / social + email rows, 12px on 28px lines */
  .lg-topbar { font-size: 12px; line-height: 28px; }
  .lg-topbar-inner { padding: 15px 0 15px; min-height: 124px; }
  .lg-topbar-contact li { min-height: 28px; }
  .lg-topbar-right { margin-top: 10px; gap: 14px; }
  .lg-topbar-mail { font-size: 16px; min-height: 28px; }
  /* header 116px with the logo centred */
  .lg-header-inner { min-height: 116px; }
  .lg-logo img { height: 54px; }
  .lg-nav { max-height: calc(100vh - 116px); }
  /* section headings: 36px Open Sans bold, 39.6px lines, 10px side padding */
  .lg-h { font-size: 36px; line-height: 39.6px; padding: 0 10px; }
  /* stats: 40px numbers, 15px labels on 37.5px lines, 96px pitch */
  .lg-stats { padding: 30px 0 0; }
  .lg-stats-grid { gap: 18px; }
  .lg-stat-label { font-size: 15px; line-height: 37.5px; }
  .lg-stat::before { margin-bottom: 6px; }
  /* clients: heading then one 300×198 logo card in view */
  .lg-clients { padding: 89px 0 70px; }
  .lg-clients .lg-h { margin-bottom: 10px; }
  .lg-clients--wide .lg-marquee-track { gap: 91px; padding-left: 45px; }
  .lg-clients--wide .lg-marquee-track li { width: 300px; height: 198px; }
  /* services: 350px images, 15px/28px text, 15px buttons, 110px between rows */
  .lg-services .lg-h { margin-bottom: 49px; }
  .lg-svc + .lg-svc, .lg-svc.is-band + .lg-svc, .lg-svc.is-wide { margin-top: 110px; }
  .lg-svc h3 { margin-bottom: 18px; }
  .lg-svc p { font-size: 15px; line-height: 28px; margin-bottom: 20px; }
  .lg-svc .lg-btn-yellow { font-size: 15px; }
  /* featured: 374×249 tiles, 7px edges, 15px gaps, centred 18px titles */
  .lg-featured .lg-h { margin-bottom: 47px; }
  .lg-featured--grid .lg-container { padding-inline: 7px; }
  .lg-featured-grid { gap: 15px; }
  .lg-featured-grid .lg-featured-title { align-items: center; font-size: 18px; background: rgba(47,42,56,0.28); }
  .lg-featured .lg-btn-soft { margin-top: 18px; }
  /* SEO text: 36px heading, 16px/28px Roboto light, 10px edges */
  .lg-seo .lg-container { padding-inline: 10px; }
  .lg-seo .lg-h { margin-bottom: 20px; padding: 0; }
  .lg-seo p { padding: 0; font-size: 16px; }
  /* CTA band 215px */
  .lg-cta { padding: 60px 0 40px; }
  .lg-cta .lg-h { padding: 0; }
}
@media (max-width: 767px) {
  .lg-topbar-contact { gap: 0; }
  .lg-topbar .lg-social { height: 28px; align-items: center; }
  .lg-stats-grid { gap: 11px; }
  .lg-clients .lg-h, .lg-cta .lg-h { padding: 0; }
  .lg-cta .lg-container { padding-inline: 0; }
  .lg-cta p { padding-inline: 20px; }
  .lg-featured--grid .lg-featured-band { padding: 0 7px; }
}
@media (max-width: 767px) {
  .lg-services { padding-bottom: 100px; }
  .lg-featured--grid .lg-featured-band { padding: 0 8px; }
  .lg-cta { padding-bottom: 30px; }
}
/* Tanzania mobile, as on the original design40.co.tz at 390px */
@media (max-width: 767px) {
  .lg-r-tanzania .lg-stats-grid { gap: 0; }
  .lg-r-tanzania .lg-stat { position: relative; }
  .lg-r-tanzania .lg-stat::before { position: absolute; top: 40px; left: 50%; margin: 0 0 0 -50px; }
  .lg-r-tanzania .lg-stats { padding-top: 38px; }
  .lg-r-tanzania .lg-clients { padding: 59px 0 30px; }
  .lg-r-tanzania .lg-clients .lg-h { font-size: 30px; line-height: 33px; margin-bottom: 0; }
  /* one client card in view at a time, sliding, like the original carousel */
  .lg-clients--square .lg-marquee { overflow: hidden; padding: 120px 0; }
  .lg-clients--square .lg-marquee-track { flex-wrap: nowrap; width: max-content; max-width: none; padding: 0 0 0 77px; gap: 154px; justify-content: flex-start; animation: lg-marquee-sq 60s linear infinite; }
  .lg-clients--square .lg-marquee-track li, .lg-clients--square .lg-marquee-track li[aria-hidden="true"] { display: flex; width: 236px; height: 150px; border-width: 2px; border-radius: 12px; }
  .lg-clients--square .lg-marquee-track img { padding: 14px; }
  @keyframes lg-marquee-sq { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 77px)); } }
  /* services: full-width photos, text inset 20px */
  .lg-r-tanzania .lg-services .lg-h { margin-bottom: 20px; }
  .lg-r-tanzania .lg-svc-inner, .lg-r-tanzania .lg-svc.is-wide .lg-svc-inner { padding: 0; gap: 10px; }
  .lg-r-tanzania .lg-svc-img { width: 100%; border-radius: 0; }
  .lg-r-tanzania .lg-svc-copy { padding: 0 20px; }
  .lg-r-tanzania .lg-svc.is-band { padding: 0 0 20px; }
  .lg-r-tanzania .lg-svc + .lg-svc, .lg-r-tanzania .lg-svc.is-band + .lg-svc, .lg-r-tanzania .lg-svc.is-wide { margin-top: 50px; }
  .lg-r-tanzania .lg-services { padding-bottom: 0; }
  /* photo wall: two 185px columns, 20px gutter, no frame */
  .lg-featured--masonry .lg-container { padding-inline: 0; }
  .lg-featured--masonry .lg-featured-band { padding: 0; }
  .lg-masonry { column-gap: 20px; }
  .lg-masonry li { margin-bottom: 20px; }
  .lg-r-tanzania .lg-featured .lg-h { margin-bottom: 31px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .lg-clients--square .lg-marquee { overflow-x: auto; }
  .lg-clients--square .lg-marquee-track { animation: none; }
  .lg-clients--square .lg-marquee-track li[aria-hidden="true"] { display: none; }
}
@media (max-width: 767px) {
  .lg-r-tanzania .lg-svc:first-of-type .lg-svc-inner { padding: 0; }
  .lg-r-tanzania .lg-svc-copy { padding: 0 10px; }
  .lg-r-tanzania .lg-stats { padding-top: 18px; }
}

/* ===== Inner pages (About, Projects, Services, Contact, FAQ, project pages): original design40.com type ===== */
.lg-inner main h1, .lg-inner main h2 { font-family: var(--lg-sans); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--lg-head); line-height: 1.2; }
.lg-inner main h1 { font-size: 36px; max-width: none; }
.lg-inner main h2 { font-size: 30px; line-height: 33px; }
.lg-inner main h3 { font-family: var(--lg-sans); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--lg-head); }
.lg-inner main p, .lg-inner main li, .lg-inner main dd { font-family: var(--lg-sans); font-size: 16px; line-height: 28px; }
.lg-inner main .rule { display: none; }
.lg-inner main .lg-cta-inner-h, .lg-inner .lg-cta-inner-h { color: var(--heading); }
.lg-inner .values .value { background: var(--paper, #f6f3f9); border-top: 0; border-radius: 0; text-align: center; padding: 30px 24px; }
.lg-inner .values .value h3 { margin-bottom: 8px; }
.lg-inner .values .value p { color: var(--muted, #534e54); }
.lg-inner main details summary { font-family: var(--lg-sans); }
@media (max-width: 767px) {
  .lg-inner main .wrap { width: calc(100% - 20px); }
  .lg-inner main h1 { font-size: 30px; }
  .lg-inner main h2 { font-size: 26px; }
  .lg-inner .values { grid-template-columns: 1fr; gap: 12px; }
  .lg-inner .page-hero { padding-top: 34px; }
}
.lg-inner main .lg-pagehead-title { font-size: 50px; line-height: 1.2; }
.lg-inner main h2:has(+ .values) { text-align: center; }
.lg-inner .values .value { background: color-mix(in srgb, var(--tint) 45%, #fff); }
@media (max-width: 767px) { .lg-pagehead .lg-container { padding-inline: 0; } }
@media (max-width: 767px) { .lg-inner .project-hero-media { margin-inline: -10px; } }
@media (max-width: 389px) {
  .lg-topbar-right { gap: 8px; }
  .lg-topbar .lg-social { gap: 10px; }
  .lg-topbar-mail { font-size: 14px; }
}

/* ---- Desktop QA: legacy typography across every inner page incl. Student Hub ---- */
.lg-inner main :is(h1,h2,h3,h4,h5,h6,summary,.eyebrow,.tag,legend,label,button,.btn) { font-family: var(--lg-sans); }
.lg-inner main :is(h2,h3,h4).h3 { font-size: 24px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.lg-inner main :is(h2,h3,h4).h4, .lg-inner main h4 { font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3; color: var(--lg-head); }
/* headings that title a card / list item / form panel are item titles, not section titles */
.lg-inner main :is(li, .event, .work-tile, .q-mini, form, .card, [class*="-card"], details, .answer, .opening) :is(h2,h3) {
  font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.3;
}
/* long-form article copy: sentence-case section headings read better */
.lg-inner main :is(.prose, .article-body, .rich) h2 { font-size: 26px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.lg-inner main :is(.prose, .article-body, .rich) h3 { font-size: 21px; }
.lg-inner { --serif: var(--lg-sans); }
.lg-inner .stats-grid b, .lg-inner .countdown-units b, .lg-inner .event-date b { font-family: var(--lg-roboto); font-weight: 600; }
.lg-inner .hub-nav-brand { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }
/* article heroes: sources are ~1024px wide, so keep them on the 1140 content grid instead of full-bleed */
@media (min-width: 1025px) { .lg-inner .article-hero-img { display: block; max-width: 1140px; width: calc(100% - 40px); margin-inline: auto; } }


/* Kenya/Tanzania home hero: stronger text-band veil on phones so the white title stays readable. */
@media (max-width: 767px) {
  .lg-hero::after {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0.14) 18%,
      rgba(0,0,0,0.46) 36%,
      rgba(0,0,0,0.55) 58%,
      rgba(0,0,0,0.50) 76%,
      rgba(0,0,0,0.22) 90%,
      rgba(0,0,0,0.12) 100%
    );
  }
}

@media (hover: none) {
  .lg-featured-title { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(47,42,56,0.7)); align-items: flex-end; font-size: 14px; }
}
/* ===== Mobile WhatsApp: compact icon in the bottom-right so it does not cover page content ===== */
@media (max-width: 767px) {
  .lg-wa {
    left: auto;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  }
  .lg-wa .ico { font-size: 26px; vertical-align: 0; }
  .lg-wa span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* ===== Student Hub hero: white heading over a soft dark overlay, matching legacy page heads ===== */
.lg-inner .hub-hero { color: #fff; background: #1a1418; }
.lg-inner .hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.68) 100%);
  z-index: 0;
  pointer-events: none;
}
.lg-inner main .hub-hero h1,
.lg-inner main .hub-hero h2,
.lg-inner main .hub-hero p,
.lg-inner main .hub-hero .lead,
.lg-inner main .hub-hero .eyebrow { color: #fff; }
.lg-inner main .hub-hero .lead { color: rgba(255,255,255,0.92); }
.lg-inner main .hub-hero .eyebrow { color: #f0e6c8; }
@media (max-width: 767px) {
  /* keep hero actions clear of the compact WhatsApp icon */
  .lg-inner .hub-hero-copy { padding-bottom: 80px; }
}


/* ===== Reviews carousel: dots, equal cards, mobile one-at-a-time ===== */
.lg-review-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 0; padding: 0; }
.lg-review-dots button {
  width: 22px; height: 4px; padding: 0; border: 0; border-radius: 999px;
  background: #d4d0d6; cursor: pointer;
}
.lg-review-dots button[aria-current="true"] { background: var(--purple-deep, #4a3f5c); width: 32px; }
.lg-review-text { flex: 1; }
@media (min-width: 768px) {
  .lg-review-dots { display: flex; }
  .lg-review-list { scroll-snap-type: x mandatory; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-review-list { scroll-behavior: auto; }
}

/* ===== About / Services: text–image balance, matching the old 50/50 + side-by-side photos ===== */
@media (min-width: 900px) {
  .lg-inner .split { align-items: center; gap: 3rem; }
  .lg-inner .split .shot-stack:has(.project-shot:nth-child(2)) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-self: stretch;
  }
  /* Three photographs: one large tile, two stacked beside it — no orphan on the last row. */
  .lg-inner .split .shot-stack:has(.project-shot:nth-child(3)):not(:has(.project-shot:nth-child(4))) {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .lg-inner .split .shot-stack:has(.project-shot:nth-child(3)):not(:has(.project-shot:nth-child(4))) .project-shot:first-child {
    grid-row: 1 / 3;
  }
  .lg-inner .split .shot-stack .project-shot { height: 100%; }
  .lg-inner .split .shot-stack .project-shot img {
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
    object-fit: cover;
  }
}

/* ===== Mission / Vision: two equal columns, as on the original About pages ===== */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.mv-card {
  background: color-mix(in srgb, var(--tint) 55%, #fff);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mv-icon {
  width: 52px; height: 52px; margin: 0 0 16px;
  color: var(--lg-head, var(--purple));
}
.mv-icon svg { width: 52px; height: 52px; display: block; }
.mv-card h2 { margin: 0 0 14px; }
.mv-card p { margin: 0 0 10px; color: var(--heading); }
.mv-card p:last-child { margin-bottom: 0; }
.mv-card p strong { color: var(--lg-head, var(--purple)); }
@media (max-width: 767px) {
  .mv-grid { grid-template-columns: 1fr; gap: 16px; }
  .mv-card { padding: 24px 20px; }
}

/* ===== Inner-page intro under the photo banner: a subtitle, not a second shouty title ===== */
.lg-pagehead + .page-hero h1 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 28ch;
  color: var(--lg-head);
}
@media (max-width: 767px) {
  .lg-pagehead + .page-hero h1 { font-size: 24px; }
}

/* ===== Portfolio tiles: captions stay crisp over photographs ===== */
.lg-inner .project-card .caption {
  background: linear-gradient(180deg, transparent 0%, rgba(22,18,20,0.55) 40%, rgba(22,18,20,0.92) 100%);
  padding: 3.2rem 1.15rem 1.1rem;
}
.lg-inner .project-card h3 { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.55); }
.lg-inner .project-card p { color: #f0e6c8; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }

/* Mobile client logos: compact strip, about 3 in view, light frames so the logo fills its card */
@media (max-width: 767px) {
  .lg-clients { padding-top: 50px; padding-bottom: 40px; }
  .lg-r-tanzania .lg-clients { padding-top: 50px; padding-bottom: 44px; }
  .lg-clients .lg-h, .lg-r-tanzania .lg-clients .lg-h { margin-bottom: 24px; }
  .lg-clients--wide .lg-marquee, .lg-clients--square .lg-marquee { overflow: hidden; padding: 6px 0; }
  .lg-clients--wide .lg-marquee-track, .lg-clients--square .lg-marquee-track {
    flex-wrap: nowrap; width: max-content; max-width: none; justify-content: flex-start;
    padding: 0; gap: 14px; animation: lg-marquee-m 45s linear infinite;
  }
  .lg-clients--wide .lg-marquee-track li, .lg-clients--square .lg-marquee-track li,
  .lg-clients--square .lg-marquee-track li[aria-hidden="true"] {
    display: flex; width: 112px; height: 74px; border: 1px solid #e6e1ec; border-radius: 10px;
    background: #fff; box-shadow: 0 2px 8px rgba(47,42,56,0.06);
  }
  .lg-clients--wide .lg-marquee-track img, .lg-clients--square .lg-marquee-track img { padding: 3px 5px; }
  @keyframes lg-marquee-m { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .lg-clients--wide .lg-marquee, .lg-clients--square .lg-marquee { overflow-x: auto; }
  .lg-clients--wide .lg-marquee-track, .lg-clients--square .lg-marquee-track { animation: none; }
}

/* Desktop header: each menu group fills its half beside the logo, items evenly spaced so the gaps match on both sides */
@media (min-width: 1025px) {
  .lg-nav { justify-content: space-between; }
  .lg-menu-left, .lg-menu-right { flex: 0 0 calc(50% - 100px); gap: 48px; }
  .lg-menu-left { justify-content: flex-end; }
  .lg-menu-right { justify-content: flex-start; }
}
