/* Kazi website. The layout follows the wireframe section by section; colours are the Kazi palette. */
:root {
  --blue: #5EBDED;
  --orange: #FE7116;
  --cream: #FFF2E8;
  --ink: #171717;
  --deep: #287DA8;
  --panel: #F7F3EE;
  --line: #E6DED5;
  --muted: #5d5a57;
  --gutter: clamp(12px, 3.1vw, 45px);
  --gap: clamp(14px, 2.8vw, 40px);
  --r: clamp(18px, 2.1vw, 30px);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
.page { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.page > * { min-width: 0; }
.mark { width: 1.1em; height: 1.15em; fill: currentColor; color: inherit; }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 14px 28px; font-weight: 500; font-size: 15px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.wide { width: 100%; justify-content: space-between; padding: 16px 22px; }
.circ { width: 28px; height: 28px; }

/* slots filled with photos (or illustrations, until a photo arrives) */
.slot, .illo { margin: 0; position: relative; overflow: hidden; background: #e8e2db; border-radius: calc(var(--r) * .8); }
.slot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: sheen 1.6s infinite; }
.slot.ready::after { display: none; }
@keyframes sheen { to { transform: translateX(100%); } }
.slot img, .illo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.slot.ready img, .illo.ready img { opacity: 1; }
.illo img { object-fit: cover; }
.credit-chip { position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 11px; line-height: 1.2; padding: 4px 9px; border-radius: 999px; background: rgba(23,23,23,.62); color: #fff; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-chip a { color: #fff; text-decoration: underline; }

/* 1. hero */
.hero { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; background: var(--blue); border-radius: var(--r); min-height: clamp(520px, 34.5vw, 560px); overflow: hidden; margin-top: var(--gutter); }
.hero-text { align-self: center; padding: clamp(28px, 4vw, 60px) clamp(8px, 2vw, 32px) clamp(28px, 4vw, 60px) clamp(26px, 3.6vw, 52px); max-width: 800px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: clamp(14px, 2vw, 24px); }
.hero h1 { text-wrap: balance; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.07; font-weight: 500; letter-spacing: -0.02em; }
.lead { margin-top: clamp(14px, 1.6vw, 24px); max-width: 30em; font-size: clamp(15px, 1.15vw, 17px); color: #0e2c3d; }
.btns { display: flex; gap: 12px; margin-top: clamp(20px, 2.4vw, 34px); flex-wrap: wrap; }
.hero-img { align-self: stretch; border-radius: var(--r) 0 0 var(--r); min-height: 100%; background: #cfe9f6; }
.notch { position: absolute; right: 0; bottom: 0; width: 19%; height: 15%; background: #fff; border-top-left-radius: var(--r); }
.notch::before { content: ''; position: absolute; left: calc(var(--r) * -1); bottom: 0; width: var(--r); height: var(--r); background: radial-gradient(circle at 0 0, transparent var(--r), #fff calc(var(--r) + 0.5px)); }

/* 2. pills */
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--panel); border-radius: 999px; padding: clamp(14px, 1.8vw, 26px) clamp(18px, 2.8vw, 44px); }
.pill { display: flex; align-items: center; gap: 16px; }
.dot { flex: none; width: clamp(48px, 5vw, 74px); height: clamp(48px, 5vw, 74px); border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.dot svg { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill h3 { font-size: clamp(14px, 1.15vw, 17px); font-weight: 600; }
.pill p { font-size: clamp(12px, .95vw, 14px); color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* panels */
.panel { background: var(--panel); border-radius: var(--r); padding: clamp(18px, 2.8vw, 40px); position: relative; }
.panel h2 { font-size: clamp(24px, 2.7vw, 40px); font-weight: 500; letter-spacing: -0.01em; }

/* 3. listings */
.listings-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px; gap: 2px; }
.tab { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.tab.on { background: var(--panel); font-weight: 600; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e4ded7; display: grid; place-items: center; cursor: pointer; }
.arrow.dark { background: var(--ink); }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow.dark svg { stroke: #fff; }
.cards { display: grid; gap: clamp(14px, 1.8vw, 28px); margin-top: clamp(18px, 2.2vw, 32px); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: calc(var(--r) * .75); overflow: hidden; display: flex; flex-direction: column; }
.card .slot { border-radius: calc(var(--r) * .75) calc(var(--r) * .75) 0 0; aspect-ratio: 16 / 9; width: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; line-height: 1.25; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; }
.view { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 22px; font-size: 14px; cursor: pointer; text-decoration: none; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #d8d1c9; }
.dots i.on { width: 26px; border-radius: 999px; background: var(--ink); }
.see-all { display: none; text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.fade { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 4. guide */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; min-height: clamp(380px, 37vw, 540px); overflow: hidden; }
.quote { position: absolute; left: clamp(14px, 2vw, 30px); top: -6px; font-size: clamp(120px, 14vw, 200px); line-height: 1; color: #e7e0d8; font-family: Georgia, serif; user-select: none; }
.guide-left { position: relative; z-index: 1; display: grid; gap: clamp(14px, 2vw, 28px); padding-left: clamp(0px, 2vw, 30px); }
.guide h2 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -0.025em; max-width: 8.5em; }
.guide-art { aspect-ratio: 16 / 7; max-width: 520px; background: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0 0 0 clamp(16px, 2vw, 28px); border-left: 3px solid var(--ink); display: grid; gap: clamp(14px, 1.8vw, 26px); }
.steps h4 { font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; }
.steps p { font-size: clamp(13px, 1vw, 15px); color: var(--muted); margin-top: 2px; }

/* 5. talk to Kazi */
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px) clamp(20px, 3vw, 48px); margin-top: clamp(18px, 2.6vw, 40px); align-items: center; }
.stack { position: relative; aspect-ratio: 1.12; }
.stack-a { position: absolute; left: 0; top: 0; width: 54%; height: 70%; background: #d9d2c9; }
.stack-b { position: absolute; left: 22%; top: 24%; width: 66%; height: 76%; background: #cfc8bf; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.chat-card { background: #fff; border-radius: calc(var(--r) * .75); padding: clamp(18px, 2.4vw, 34px); display: grid; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.avatar .mark { width: 22px; height: 24px; }
.chat-head strong { display: block; font-size: 15px; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: 12px; }
.bubble { padding: 11px 16px; border-radius: 18px; font-size: clamp(13px, 1vw, 15px); max-width: 88%; line-height: 1.45; }
.bubble.you { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 5px; }
.bubble.kazi { background: var(--panel); border-bottom-left-radius: 5px; font-style: italic; }
.clients-grid .wide { grid-column: 2; }

/* 6. facts */
.stats { display: grid; grid-template-columns: 1.05fr .95fr 1.1fr; gap: clamp(16px, 2.4vw, 40px); align-items: center; }
.stat-list { display: grid; gap: clamp(16px, 2vw, 30px); }
.stat b { display: block; font-size: clamp(40px, 4.6vw, 68px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.stat p { font-size: clamp(12px, .95vw, 14px); color: var(--muted); margin-top: 8px; max-width: 28em; line-height: 1.45; }
.stats-art { aspect-ratio: 0.8; background: var(--blue); }
.stats-text h3 { font-size: clamp(18px, 1.55vw, 24px); font-weight: 600; line-height: 1.25; }
.stats-text p { margin-top: 14px; font-size: clamp(13px, 1vw, 15px); color: var(--muted); }

/* 7. tips */
.tips-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tips-bar h2 { grid-column: 2; }
.tips-bar .arrows { justify-self: end; grid-column: 3; }
.tips-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * clamp(14px, 1.8vw, 28px)) / 3.55); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.tips-track::-webkit-scrollbar { display: none; }
.tips-track .card { scroll-snap-align: start; }
.tips-track .card .slot { aspect-ratio: 4 / 3; }
.tip-more { display: none; font-size: 14px; color: var(--ink); margin-top: 4px; }
.card.open .tip-more { display: block; }

/* 8. services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(18px, 2.4vw, 36px); }
.svc { background: #fff; border-radius: calc(var(--r) * .75); padding: clamp(18px, 2vw, 30px); min-height: clamp(230px, 22vw, 330px); display: flex; flex-direction: column; transition: background .25s ease, color .25s ease; cursor: default; }
.svc .num { align-self: flex-end; font-size: clamp(24px, 2.6vw, 40px); font-weight: 400; }
.svc h3 { margin-top: auto; font-size: clamp(26px, 3vw, 44px); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
.svc p { margin-top: 14px; font-size: clamp(12px, .95vw, 14px); color: var(--muted); }
.svc.on { background: var(--ink); color: #fff; }
.svc.on p { color: #d6d3cf; }

/* footer */
.foot { margin-top: var(--gap); background: var(--ink); color: #fff; }
.foot-in { max-width: 1440px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { max-width: 520px; display: grid; gap: 14px; justify-items: start; }
.logo { font-size: 30px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.foot-line { color: #d6d3cf; font-size: 15px; }
.foot-links { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; font-size: 14px; }
.foot-links a { text-decoration: none; color: #d6d3cf; }
.foot-links a:hover { color: #fff; }
.lang { background: transparent; border: 1.5px solid #666; color: #fff; border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 13px; }
.credit { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 28px; font-size: 12px; color: #9b9792; }
.credit a { color: #d6d3cf; }

/* mobile: the narrow frame of the wireframe, one column */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 28px 20px 8px; max-width: none; }
  .hero-img { min-height: 0; aspect-ratio: 1 / 1; border-radius: var(--r); margin: 14px 20px 20px; }
  .btns { flex-direction: column; }
  .btns .btn { width: 100%; }
  .notch { display: none; }
  .pills { grid-template-columns: 1fr; border-radius: var(--r); gap: 22px; padding: 26px 20px; }
  .pill { flex-direction: column; text-align: center; gap: 10px; }
  .pill .dot { width: 56px; height: 56px; }
  .listings-bar { flex-wrap: nowrap; }
  .tab { padding: 8px 14px; font-size: 13px; }
  .cards.three { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .view { text-align: center; padding: 11px; }
  .dots { display: none; }
  .see-all { display: block; }
  .guide { grid-template-columns: 1fr; }
  .guide h2 { font-size: clamp(30px, 8vw, 40px); }
  .guide-art { max-width: none; }
  .clients-grid { grid-template-columns: 1fr; }
  .clients-grid .wide { grid-column: 1; }
  .stats { grid-template-columns: 1fr; }
  .stats-art { aspect-ratio: 1.2; order: 3; }
  .stats-text { order: 2; }
  .tips-bar { grid-template-columns: 1fr; gap: 14px; }
  .tips-bar h2, .tips-bar .arrows { grid-column: 1; justify-self: center; }
  .tips-track { grid-auto-columns: 82%; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
