/* ─────────────────────────────────────────
   MRJ Mini Mart — Main Stylesheet
   mrj-minimart.co.ke
───────────────────────────────────────── */

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #0a0a0a;
  --white:      #f5f5f0;
  --gray:       #888888;
  --light-gray: #e8e8e3;
  --dark-card:  #111111;
  --border:     #222222;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}

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

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

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--black);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor.hover  { transform: translate(-50%, -50%) scale(2.5); }
.cursor-ring.hover { transform: translate(-50%, -50%) scale(1.5); opacity: 0.4; }

/* ── COMING SOON BAR ── */
.coming-soon-bar {
  background: var(--black);
  color: var(--white);
  padding: 10px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.coming-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

/* ── NAV ── */
#navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--black);
  animation: slideDown 0.6s ease forwards;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border: 1px solid var(--black);
  transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: background var(--transition), color var(--transition);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 18px 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--white);
  transition: background var(--transition), color var(--transition);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
}

.btn-ghost-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 18px 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #555;
  transition: background var(--transition), border-color var(--transition);
}

.btn-ghost-white:hover {
  background: #1a1a1a;
  border-color: var(--white);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--black);
  overflow: hidden;
}

.hero-left {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--black);
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero-title span {
  display: block;
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  max-width: 400px;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.8s 0.7s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.9s ease both;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  animation: fadeUp 0.8s 1.1s ease both;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gray);
  animation: scrollPulse 2s infinite;
}

/* Hero right */
.hero-right {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.hero-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #222;
  border: 1px solid #222;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 1s 0.6s ease both;
}

.hero-grid-cell {
  background: var(--black);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: background var(--transition);
}

.hero-grid-cell:hover { background: #161616; }

.cell-icon { font-size: 28px; }

.cell-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

.cell-value {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}

.hero-tagline {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #444;
  text-align: center;
  animation: fadeIn 1s 1s ease both;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--black);
  color: var(--white);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #333;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 40px;
  color: #666;
}

.ticker-item span { color: #aaa; }

/* ── SECTIONS ── */
.section { padding: 100px 60px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 24px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 2px;
  line-height: 1;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--black);
  transition: gap 0.2s;
  white-space: nowrap;
}

.section-link:hover { gap: 16px; }

/* ── CATEGORIES GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--black);
  border: 1px solid var(--black);
}

.category-card {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover::before { transform: scaleY(1); }

.cat-icon,
.cat-name,
.cat-count {
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.category-card:hover .cat-icon,
.category-card:hover .cat-name { color: var(--white); }

.category-card:hover .cat-count { color: #666; }

.cat-icon { font-size: 36px; }

.cat-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── WHY US ── */
.why-section {
  background: var(--black);
  color: var(--white);
  padding: 100px 60px;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-desc {
  font-size: 17px;
  line-height: 1.8;
  color: #999;
  margin-top: 24px;
  font-weight: 300;
  max-width: 440px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid #1e1e1e;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-item.visible { opacity: 1; transform: translateX(0); }

.why-num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: #2a2a2a;
  flex-shrink: 0;
}

.why-text h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--white);
}

.why-text p {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  font-weight: 300;
}

/* ── MPESA ── */
.mpesa-section {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--black);
}

.mpesa-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.mpesa-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 1.5s infinite;
}

.mpesa-desc {
  font-size: 17px;
  color: #555;
  margin-top: 20px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
}

.mpesa-steps {
  list-style: none;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mpesa-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  flex-shrink: 0;
}

.mpesa-steps p {
  font-size: 14px;
  color: #444;
  font-weight: 300;
}

.mpesa-visual {
  background: var(--dark-card);
  border: 1px solid #222;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mpesa-phone {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555;
  letter-spacing: 1px;
}

.mpesa-amount {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--white);
  line-height: 1;
  letter-spacing: 1px;
}

.mpesa-ref {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #4ade80;
  letter-spacing: 3px;
}

.mpesa-divider { height: 1px; background: #1e1e1e; }

.mpesa-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #444;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.mpesa-merchant {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 2px;
}

.mpesa-confirm {
  background: #4ade80;
  color: #000;
  padding: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ── CTA ── */
.cta-section {
  background: var(--black);
  color: var(--white);
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  letter-spacing: 4px;
  color: transparent;
  -webkit-text-stroke: 1px #1a1a1a;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 100px);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 17px;
  color: #888;
  font-weight: 300;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  max-width: 700px;
  margin: 60px auto 0;
  position: relative;
  z-index: 1;
}

.info-cell {
  background: var(--dark-card);
  padding: 32px;
  text-align: center;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.info-value {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  letter-spacing: 1px;
}

.info-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #444;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ── FOOTER ── */
footer {
  background: var(--white);
  border-top: 1px solid var(--black);
  padding: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gray); }

.footer-bottom {
  border-top: 1px solid var(--light-gray);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ANIMATIONS ── */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleX(1); }
  50%       { opacity: 1;   transform: scaleX(1.3); transform-origin: left; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid         { grid-template-columns: 1fr; gap: 48px; }
  .mpesa-section    { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  #navbar {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--black);
    padding: 16px 0;
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 13px;
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin: 8px 24px !important;
    padding: 12px 24px !important;
    display: block;
    text-align: center;
  }

  .nav-hamburger { display: flex; cursor: pointer; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 60px 24px 40px; border-right: none; border-bottom: 1px solid var(--black); }
  .hero-right { padding: 40px 24px; min-height: 280px; }
  .hero-right-grid { max-width: 100%; }
  .scroll-hint { left: 24px; }

  .section          { padding: 60px 24px; }
  .section-header   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .why-section      { padding: 60px 24px; }
  .mpesa-section    { padding: 60px 24px; }
  .cta-section      { padding: 80px 24px; }
  .coming-soon-bar  { padding: 10px 24px; }

  .info-grid { grid-template-columns: 1fr; }

  footer          { padding: 40px 24px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }
}
