/* ==========================================================
   Kito Skin: styles
   ========================================================== */

:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #6b6b6b;
  --accent: #B8946A;
  --accent-dark: #9c7a52;
  --line: #e8e4df;
  --soft: #faf8f5;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 80px 0; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 6vw, 38px); margin-bottom: 36px; }
.lead { color: var(--muted); max-width: 560px; margin: -16px auto 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--text); }
.btn-sm { padding: 9px 20px; font-size: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-circle {
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 500; letter-spacing: .08em;
  color: var(--text);
}
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px; font-weight: 400; letter-spacing: .08em;
  position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text); transition: color .3s var(--ease); }
.icon-link:hover { color: var(--accent); }

.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  max-height: 860px;
  overflow: hidden;
  color: #fff;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.38) 100%); }
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  animation: heroIn 1.2s var(--ease) both .2s;
}
.hero h1 { font-size: clamp(36px, 9vw, 68px); max-width: 12ch; margin-bottom: 16px; font-weight: 400; }
.hero p { font-size: clamp(16px, 4vw, 19px); max-width: 32ch; margin-bottom: 32px; opacity: .95; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 32px; height: 24px; position: relative; }
.hero-dots button::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px;
  background: rgba(255,255,255,.5); transition: background .3s, height .3s;
}
.hero-dots button.is-active::before { background: #fff; height: 2px; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.cat-tile { display: block; text-align: center; }
.cat-img { aspect-ratio: 1; overflow: hidden; background: var(--soft); margin-bottom: 12px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover .cat-img img { transform: scale(1.05); }
.cat-name { font-size: 14px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.cat-tile:hover .cat-name { color: var(--accent); }

/* ---------- Products carousel ---------- */
.products { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head .section-title { margin-bottom: 0; }
.carousel-arrows { display: flex; gap: 10px; }
.arrow {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .3s, color .3s;
}
.arrow .icon { width: 18px; height: 18px; }
.arrow:hover { border-color: var(--accent); color: var(--accent); }
.arrow-prev .icon { transform: rotate(180deg); }

.carousel { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; gap: 16px; transition: transform .8s var(--ease); will-change: transform; }
.product-card { flex: 0 0 80%;display: flex; flex-direction: column; }
.product-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); margin-bottom: 18px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); -webkit-user-drag: none; user-select: none; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-card h3 { font-size: 19px; margin-bottom: 6px; }
.product-desc { color: var(--muted); font-size: 15px; margin-bottom: 10px; flex-grow: 1; }
.product-price { font-size: 16px; font-weight: 400; color: var(--accent); margin-bottom: 16px; letter-spacing: .04em; }
.product-card .btn { width: 100%; }

/* ---------- Split sections ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) {
  .story .split-media img { aspect-ratio: auto; height: 320px; max-height: 320px; }
}
.split-text p { color: #444; }
.ingredients { background: var(--soft); }

.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.ing-list li:last-child { border-bottom: 1px solid var(--line); }
.ing-num { font-size: 13px; color: var(--accent); letter-spacing: .1em; padding-top: 3px; }
.ing-list h3 { font-size: 17px; margin-bottom: 4px; }
.ing-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Order ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 32px; counter-reset: none; }
.steps li { text-align: center; }
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-weight: 400; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 30ch; margin: 0 auto; }

.pay-box { border: 1px solid var(--accent); display: grid; max-width: 860px; margin: 0 auto; }
.till { padding: 32px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.till-label { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.till-number { font-size: 40px; font-weight: 500; letter-spacing: .12em; margin-bottom: 16px; line-height: 1.2; }
.till .btn { text-transform: none; letter-spacing: .08em; font-size: 14px; }
.btn.is-copied { background: var(--accent); color: #fff; }
.mpesa-steps { padding: 28px 24px; }
.mpesa-title { font-weight: 500; margin-bottom: 10px; }
.mpesa-steps ol { margin: 0; padding-left: 20px; color: #444; }
.mpesa-steps li { padding: 3px 0; }
.mpesa-steps li::marker { color: var(--accent); }
.delivery-note { text-align: center; color: var(--muted); margin: 24px 0 0; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; text-align: left; padding: 22px 40px 22px 0; position: relative;
  font-size: 17px; font-weight: 400; transition: color .3s;
}
.acc-btn:hover { color: var(--accent); }
.acc-icon { position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .35s var(--ease);
}
.acc-icon::before { left: 0; right: 0; top: 50%; height: 1px; }
.acc-icon::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(90deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > p { overflow: hidden; margin: 0; color: var(--muted); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > p { padding-bottom: 22px; }

/* ---------- Stockist form ---------- */
.stockist { background: var(--soft); }
.stock-form { display: grid; gap: 20px; }
.field label { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 6px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #aaa; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field.has-error input { border-color: #b5544a; }
.form-error { color: #b5544a; font-size: 14px; margin: 0; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-card {
  background: #fff; padding: 28px 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: color .3s;
}
.contact-card .icon { color: var(--accent); margin-bottom: 8px; }
.contact-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 15px; font-weight: 400; word-break: break-word; }
a.contact-card:hover .contact-value { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-inner { display: grid; gap: 32px; }
.footer-tagline { color: var(--muted); margin: 14px 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 6px; margin-left: -8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.credit { font-size: 12px; }
@media (max-width: 767px) {
  .site-footer { padding-bottom: 90px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: background .3s, transform .3s var(--ease);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ---------- Scroll fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade-in.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Phone menu (below 900px)
   ========================================================== */
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column; gap: 0;
    padding: 16px 20px 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
  .main-nav a::after { display: none; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 15px; letter-spacing: .1em; }
  .logo-circle { width: 36px; height: 36px; font-size: 12px; }
}

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
  .product-card { flex-basis: calc((100% - 16px) / 2); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-links { grid-template-columns: repeat(3, auto); justify-content: start; }
}

@media (min-width: 768px) {
  .section { padding: 110px 0; }
  .container { padding: 0 32px; }
  .stock-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pay-box { grid-template-columns: 1fr 1.2fr; }
  .till { border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .mpesa-steps { padding: 32px 36px; }
}

@media (min-width: 900px) {
  .hero-content { padding-left: 64px; }
  .product-card { flex-basis: calc((100% - 32px) / 3); }
  .carousel-track { gap: 16px; }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split-reverse .split-media { order: 2; }
  .split-text { max-width: 480px; }
  .footer-inner { grid-template-columns: 1.4fr 1.6fr auto; align-items: start; }
}

@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .product-card { flex-basis: calc((100% - 48px) / 4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fade-in { opacity: 1; transform: none; }
}
