﻿/* ==========================================================================
   Kafula Electronics — styles.css
   Premium, clean, minimal. Mobile-first. No frameworks, no build step.
   Sections:
   01. Design tokens
   02. Reset & base
   03. Layout helpers
   04. Buttons & links
   05. Navigation (sticky glass)
   06. Hero
   07. Category cards
   08. Product cards & grids
   09. Why Kafula strip
   10. How to order (3 steps)
   11. Contact
   12. Footer
   13. Scroll reveal animations
   14. Responsive tweaks
   ========================================================================== */

/* ==========================================================================
   01. Design tokens
   Change the accent colour here to re-brand the whole site.
   ========================================================================== */
:root {
  /* Colour palette — mostly white + soft gray, one dark section, one accent */
  --white: #ffffff;
  --gray-bg: #f5f5f7;      /* soft light gray section background */
  --gray-bg-2: #e8e8ed;    /* slightly deeper gray (chips, borders) */
  --ink: #1d1d1f;          /* near-black body text */
  --ink-soft: #6e6e73;     /* secondary text (still AA contrast on white) */
  --dark: #000000;         /* the one dark section */
  --dark-ink: #f5f5f7;     /* text on dark */
  --accent: #0071e3;       /* Apple-style blue */
  --accent-dark: #0056b3;  /* hover / active state */
  --success: #1d8a4e;      /* "In stock" label */
  --warn: #b25000;         /* "Out of stock" label */

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Radii */
  --radius-card: 24px;     /* the signature rounded card radius */
  --radius-sm: 12px;
  --radius-pill: 999px;    /* pill-shaped buttons */

  /* Shadows — soft, never harsh */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06), 0 24px 60px rgba(0, 0, 0, 0.1);

  /* Spacing scale */
  --section-pad: 72px;     /* vertical rhythm between sections (mobile) */
  --gutter: 20px;          /* horizontal page gutter (mobile) */
  --maxw: 1200px;          /* content max width */

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);   /* smooth, natural easing */
}

/* ==========================================================================
   02. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Smooth scroll for in-page anchors, but never hijack reduced-motion users */
  scroll-behavior: smooth;
  /* Offset for the sticky nav when jumping to #anchors */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;             /* generous base size, easy to read on phones */
  line-height: 1.6;             /* generous line spacing for body text */
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any accidental horizontal scroll on small screens */
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  /* Large confident headlines: tight tracking, heavy weight */
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.08;
}

h1 { font-size: clamp(2.25rem, 7vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Accessible, visible focus ring on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   03. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--dark); color: var(--dark-ink); }

/* Section heading block: eyebrow + title + optional intro */
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--dark .eyebrow { color: #4da3ff; }

.lede {
  margin-top: 16px;
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
}
.section--dark .lede { color: #a1a1a6; }

/* ==========================================================================
   04. Buttons & links
   Primary and secondary share height + padding so they line up perfectly.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Shared sizing for primary & secondary */
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary = solid blue, white text */
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Secondary = thin 1.5px blue outline, transparent, blue text */
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--secondary:hover {
  background: rgba(0, 113, 227, 0.06);
}

/* On the dark section, invert to keep contrast strong */
.section--dark .btn--primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.section--dark .btn--primary:hover { background: #e8e8ed; }
.section--dark .btn--secondary {
  background: transparent;
  color: #4da3ff;
  border-color: #4da3ff;
}
.section--dark .btn--secondary:hover { background: rgba(77, 163, 255, 0.12); }

/* Quiet link with a sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow::after {
  content: "\203A";
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* Text links */
a { color: var(--accent); }

/* Skip link — first thing a keyboard user tabs to */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--ink);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   05. Navigation — sticky glass-blur bar
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  /* The glass effect. @supports keeps it solid if backdrop-filter is missing */
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, 0.96); }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__logo span { color: var(--accent); }
/* Brand logo artwork inside the text link */
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; display: block; }

/* Desktop menu (hidden on phones, shown via media query at the bottom) */
.nav__menu {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__menu a:hover { color: var(--accent); }

/* Current page marker */
.nav__menu a[aria-current="page"] { color: var(--accent); font-weight: 500; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* The WhatsApp pill in the nav is compact */
.nav__cta {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.875rem;
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
}
.nav__cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Hamburger — three bars drawn with CSS, no icon font or SVG needed */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* Animate the bars into an X when the menu is open */
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown panel */
.nav__mobile {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px var(--gutter) 20px;
}
.nav__mobile.is-open { display: block; }
.nav__mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__mobile a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav__mobile li:last-child a { border-bottom: 0; }
.nav__mobile .btn { width: 100%; margin-top: 16px; }

/* ==========================================================================
   06. Hero
   ========================================================================== */
.hero {
  padding-block: 72px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-bg) 100%);
}

.hero__title { max-width: 820px; margin-inline: auto; }
/* Blue accent on a couple of words for personality */
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Small trust line under the buttons */
.hero__meta {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Compact page header used on the category pages */
.page-head {
  padding-block: 56px 40px;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-bg) 100%);
}
.page-head h1 { max-width: 780px; }
.page-head .lede { max-width: 620px; }

/* ==========================================================================
   07. Category cards
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  /* Subtle zoom on the artwork when hovered */
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-card__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .cat-card__art { transform: scale(1.06); }
.cat-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Soft tint behind each category artwork */
.cat-card__art--phones { background: linear-gradient(160deg, #eaf3fd 0%, #f5f5f7 100%); }
.cat-card__art--accessories { background: linear-gradient(160deg, #f0eefd 0%, #f5f5f7 100%); }
.cat-card__art--home-appliances { background: linear-gradient(160deg, #fdf0e9 0%, #f5f5f7 100%); }
.cat-card__art--watches { background: linear-gradient(160deg, #e9f7f1 0%, #f5f5f7 100%); }

.cat-card__body { position: relative; }
.cat-card__title { margin-bottom: 4px; }
.cat-card__meta {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   08. Product cards & grids
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  background: var(--gray-bg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

/* Stock badge sits on top of the image */
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.badge--in { color: var(--success); }
.badge--out { color: var(--warn); }

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.product-card__brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.product-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* The short spec line */
.product-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.product-card__foot {
  margin-top: auto; /* pushes price + button to the bottom */
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.product-card__price small {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.product-card__btn { width: 100%; }

/* "Out of stock" cards are dimmed slightly to signal the state */
.product-card--out .product-card__media { opacity: 0.72; }

/* Specs list, revealed in a <details> for progressive disclosure */
.product-card__specs {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.product-card__specs li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}
.product-card__specs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Category page: search + filters
   ========================================================================== */
.shop-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* Inputs share one visual language */
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--gray-bg-2);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  /* 16px font-size stops iOS Safari zooming when a field is focused */
}
.input::placeholder { color: #86868b; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}
/* Native select needs extra right padding for the dropdown arrow */
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Result count + reset row */
.shop-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.result-count {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.result-count strong { color: var(--ink); }

.btn--ghost {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.875rem;
  background: none;
  color: var(--accent);
  border: 0;
  text-decoration: underline;
}

/* Empty state shown when filters match nothing */
.empty-state {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.empty-state p { color: var(--ink-soft); margin-bottom: 20px; }

/* ==========================================================================
   08b. Affordable deals carousel
   Horizontal snap carousel. The price is the loudest element on each slide.
   ========================================================================== */
.deals { overflow: hidden; } /* clip the track so the page never scrolls sideways */

.carousel { position: relative; }

.carousel__viewport {
  overflow: hidden;
  padding-block: 14px 24px;
}

.carousel__track {
  position: relative;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

/* One product per view on phones, with a peek of the next card */
.deal-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Generous padding around the product photo */
.deal-card__media {
  position: relative;
  margin: 12px 12px 0;
  padding: 20px;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.deal-card:hover .deal-card__media img { transform: scale(1.05); }

/* The big price pill, overlapping the bottom of the photo */
.deal-card__tag {
  align-self: center;
  z-index: 2;
  margin-top: -24px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.deal-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 20px;
  text-align: center;
}
.deal-card__name {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.deal-card__btn {
  width: 100%;
  margin-top: auto;
}

/* Shown before the JSON arrives */
.deal-card--loading {
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 40px;
  color: var(--ink-soft);
  box-shadow: none;
}

/* Prev / next round buttons */
.carousel__nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.carousel__nav:hover { background: var(--white); }
.carousel__nav:active { transform: translateY(-50%) scale(0.95); }
.carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.carousel__nav--prev { left: -8px; }
.carousel__nav--next { right: -8px; }

/* Dots */
.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gray-bg-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), width 0.2s var(--ease);
}
.carousel__dot:hover { background: #c7c7cc; }
.carousel__dot.is-active {
  width: 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* More cards in view as the screen widens */
@media (min-width: 600px) {
  .carousel__track { gap: 20px; }
  .deal-card { flex-basis: 46%; }
}
@media (min-width: 900px) {
  .deal-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (min-width: 1100px) {
  .deal-card { flex-basis: calc((100% - 60px) / 4); }
}

/* ==========================================================================
   09. Why Kafula strip
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.why-card {
  padding: 30px 26px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
}
.why-card h3 { margin-bottom: 8px; }
.why-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #a1a1a6;
}

/* ==========================================================================
   10. How to order — 3 steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step; /* CSS counter supplies the 1/2/3 numbers */
}

.step {
  position: relative;
  padding: 30px 26px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ==========================================================================
   11. Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-bg-2);
}
.contact-list li:first-child { padding-top: 0; }

.contact-list__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contact-list__value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
a.contact-list__value:hover { color: var(--accent); }
.contact-list__note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Google Maps embed */
.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--gray-bg);
  border: 1px solid var(--gray-bg-2);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
  padding-block: 56px 32px;
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-bg-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__brand { max-width: 320px; }
.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.footer__logo span { color: var(--accent); }
/* Brand logo artwork in the footer */
.footer__logo { display: inline-flex; align-items: center; }
.footer__logo img { height: 44px; width: auto; display: block; }
.footer__tagline {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer__heading {
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li { margin-bottom: 10px; }
.footer__list a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer__list a:hover { color: var(--accent); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-bg-2);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
/* Filled automatically by main.js so the year never goes stale */
.footer__bottom p { margin: 0; }

/* ==========================================================================
   13. Scroll reveal animations
   Elements start hidden, then fade + slide up when they enter the viewport.
   .no-js / reduced-motion users get everything visible immediately.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  /* Stagger siblings for a cascading feel (set inline via --delay) */
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect the OS "reduce motion" setting: no transforms, no transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* If JS fails, never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   14. Responsive tweaks — mobile-first, so these are the enhancements
   ========================================================================== */

/* --- Small phones: keep 360px free of horizontal scroll --- */
@media (max-width: 380px) {
  :root { --gutter: 16px; --section-pad: 56px; }
  body { font-size: 16px; }
  .btn { padding: 12px 20px; }
  .nav__cta { padding: 8px 12px; }
}

/* --- Tablet --- */
@media (min-width: 600px) {
  :root { --gutter: 32px; --section-pad: 88px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .shop-toolbar .field--search { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Desktop --- */
@media (min-width: 900px) {
  :root { --section-pad: 110px; }

  /* Swap the hamburger for the inline menu */
  .nav__toggle { display: none; }
  .nav__menu { display: flex; }
  .nav__mobile { display: none !important; }
  .nav__inner { min-height: 52px; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }

  /* Two-column contact: details left, map right */
  .contact-grid { grid-template-columns: 1fr; align-items: start; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }

.hero { padding-block: 96px 88px; }
}

/* --- Wide desktop: 4 products per row --- */
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Print: strip the sticky nav and decorative bits --- */
@media print {
  .nav, .hero__actions, .product-card__btn, .footer { display: none; }
  .reveal { opacity: 1; transform: none; }
  body { font-size: 12pt; }
}
