:root {
  --primary: #9f1c23;
  --primary-dark: #7f151b;
  --secondary: #112f5f;
  --accent: #ff7a00;
  --accent-dark: #db6800;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #5f6878;
  --line: #d9dfe8;
  --shadow: 0 12px 40px rgba(17, 47, 95, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  clip: auto;
  margin: 1rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.section {
  padding: 4.25rem 0;
}

.alt-section {
  background: var(--bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.hero-copy h1,
.payment-card h2,
.order-banner h2,
.trust-section h2,
.delivery-grid h2 {
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

.section-heading p,
.hero-text,
.payment-card p,
.order-banner p,
.trust-section p,
.delivery-grid p {
  margin: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 223, 232, 0.6);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.85rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

.nav-toggle {
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--secondary);
  border-radius: 10px;
}

.site-nav {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.2rem 0 0.6rem;
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
}

.header-actions {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  min-height: 48px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(17, 47, 95, 0.14);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #cb2730);
}

.btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #158f51, #22c36a);
}

.btn-mpesa,
.btn-outline {
  border-color: var(--secondary);
  color: var(--secondary);
  background: #fff;
}

.btn-mpesa:hover,
.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(17, 47, 95, 0.06);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.14), transparent 38%),
    radial-gradient(circle at top right, rgba(159, 28, 35, 0.12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(17, 47, 95, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid,
.delivery-grid,
.payment-grid,
.trust-grid,
.product-split {
  display: grid;
  gap: 1.4rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 4.1rem);
}

.hero-text {
  font-size: 1.05rem;
}

.hero-cta {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-pills span,
.delivery-card,
.trust-feature,
.payment-card,
.branch-card,
.product-card,
.content-panel,
.safety-card,
.showcase,
.order-banner {
  background: var(--card);
  border: 1px solid rgba(217, 223, 232, 0.9);
  box-shadow: var(--shadow);
}

.trust-pills span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 700;
}

.hero-visual,
.hero-mini-grid,
.product-gallery,
.branch-grid,
.safety-grid,
.delivery-points,
.footer-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.showcase,
.branch-card,
.product-card,
.content-panel,
.safety-card,
.payment-card,
.order-banner {
  border-radius: var(--radius);
  overflow: hidden;
}

.showcase img,
.product-card img,
.delivery-visual img,
.storefront-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-card {
  position: relative;
  min-height: 340px;
}

.storefront-card img {
  height: 100%;
}

.storefront-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 47, 95, 0.86);
  font-weight: 800;
  font-size: 0.85rem;
}

.storefront-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 31, 0.84) 85%);
}

.storefront-overlay strong,
.storefront-overlay span {
  display: block;
}

.storefront-overlay strong {
  font-size: 1rem;
}

.storefront-overlay span {
  opacity: 0.88;
  font-size: 0.92rem;
}

.small-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  min-height: 110px;
}

.small-card img {
  height: 100%;
  object-fit: cover;
}

.small-card div {
  padding: 0.9rem;
}

.small-card p,
.product-card p,
.branch-card p,
.delivery-card span,
.image-caption,
.trust-feature span,
.safety-card p,
.footer-grid p,
.footer-grid li {
  color: var(--muted);
}

.stats-bar {
  background: linear-gradient(135deg, var(--secondary), #163e7a);
  color: #fff;
  padding: 1rem 0;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 1.25rem;
}

.stats-grid span {
  font-size: 0.92rem;
  opacity: 0.88;
}

.branch-card,
.product-card,
.content-panel,
.payment-card,
.safety-card {
  padding: 1rem;
}

.branch-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.branch-top h3,
.product-card h4,
.payment-card h3,
.safety-card h3,
.footer-grid h3,
.footer-grid h4,
.content-panel h3 {
  margin: 0 0 0.35rem;
}

.branch-icon,
.panel-icon,
.safety-card span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.14);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.branch-phone {
  display: inline-flex;
  margin: 0.8rem 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.map-placeholder {
  min-height: 112px;
  border-radius: 16px;
  margin-bottom: 0.9rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(17, 47, 95, 0.09), rgba(255, 122, 0, 0.15));
  border: 1px dashed rgba(17, 47, 95, 0.22);
}

.map-placeholder span,
.map-placeholder small {
  display: block;
}

.milk-map {
  background: linear-gradient(135deg, rgba(45, 146, 255, 0.1), rgba(12, 181, 117, 0.12));
}

.card-actions,
.dual-actions,
.order-actions {
  display: grid;
  gap: 0.75rem;
}

.featured-branch {
  border-color: rgba(255, 122, 0, 0.35);
}

.panel-head {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #14a14b;
  font-weight: 900;
}

.compact {
  margin-bottom: 0;
}

.product-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: grid;
  gap: 0.9rem;
}

.product-card img {
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7f7f7;
}

.tall-card img {
  aspect-ratio: 2 / 3;
}

.logo-card img {
  object-fit: contain;
  padding: 0.5rem;
}

.delivery-points {
  margin-top: 1.3rem;
}

.delivery-card {
  border-radius: 18px;
  padding: 1rem;
}

.delivery-card strong,
.trust-feature strong {
  display: block;
  margin-bottom: 0.3rem;
}

.image-caption {
  padding: 0.9rem 1rem 1rem;
}

.order-banner {
  padding: 1.2rem;
}

.order-actions {
  margin-top: 1rem;
}

.payment-grid {
  align-items: start;
}

.payment-methods {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.payment-methods small {
  display: block;
  color: var(--muted);
}

.payment-methods strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--secondary);
}

.main-payment {
  background: linear-gradient(180deg, #fff, rgba(255, 122, 0, 0.06));
}

.trust-card {
  background: linear-gradient(180deg, #fff, rgba(17, 47, 95, 0.04));
}

.safety-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.safety-card span {
  margin-bottom: 0.85rem;
}

.trust-grid {
  align-items: start;
}

.trust-feature-list {
  display: grid;
  gap: 1rem;
}

.trust-feature {
  border-radius: 18px;
  padding: 1rem;
}

.site-footer {
  background: #0d1526;
  color: #fff;
  padding: 3rem 0 5.5rem;
}

.footer-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.footer-grid h3,
.footer-grid h4 {
  color: #fff;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid a {
  color: #dce6ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.74);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(217, 223, 232, 0.9);
  z-index: 99;
}

.sticky-cta a {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.sticky-cta a:nth-child(1) {
  background: linear-gradient(135deg, var(--primary), #cb2730);
}

.sticky-cta a:nth-child(2) {
  background: linear-gradient(135deg, #158f51, #22c36a);
}

.sticky-cta a:nth-child(3) {
  background: linear-gradient(135deg, var(--accent), #ff9933);
}

@media (min-width: 700px) {
  .section {
    padding: 5.25rem 0;
  }

  .stats-grid,
  .footer-grid,
  .branch-grid,
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-points,
  .trust-feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    grid-column: auto;
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
  }

  .header-actions {
    display: inline-flex;
    gap: 0.75rem;
  }

  .hero-grid,
  .delivery-grid,
  .payment-grid,
  .trust-grid,
  .product-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-cta {
    grid-template-columns: repeat(3, max-content);
    align-items: center;
  }

  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dairy-split {
    margin-top: 2rem;
  }

  .safety-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .safety-card:last-child {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }

  .sticky-cta {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: min(380px, calc(100% - 2rem));
    border: 1px solid rgba(217, 223, 232, 0.9);
    border-radius: 999px;
    box-shadow: var(--shadow);
  }
}

@media (min-width: 1100px) {
  .branch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .sticky-cta a {
    transition: none;
  }
}
