/* NgwaNgwa Digital — Main Stylesheet */

/* ===== DELIVERY NAV — logo + hamburger hidden until scroll ===== */
.delivery-nav .logo-img,
.delivery-nav .menu-toggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.delivery-nav.scrolled .logo-img,
.delivery-nav.scrolled .menu-toggle {
  opacity: 1;
  pointer-events: auto;
}

/* ===== CAROUSEL SWIPE HINT ===== */
.swipe-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: swipe-pulse 2s ease-in-out infinite;
}

@keyframes swipe-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

/* ===== FOUNDER CARD FLIP ===== */
.flip-card {
  perspective: 1400px;
}

.flip-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}

.flip-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* ── CANONICAL PALETTE (Phase 3) — light mode ── */
  --bg:            #FAFAF7;   /* page ground */
  --surface:       #F1F1E9;   /* cards, quiet panels */
  --surface-2:     #EAEAE0;   /* pressed / nested surfaces */
  --ink:           #14170F;   /* primary text */
  --muted:         #5E6353;   /* secondary text */
  --faint:         #868B78;   /* captions, metadata */
  --brand:         #4A5D23;   /* moss green — the only accent */
  --brand-deep:    #3C4C1B;   /* hover states, text on brand-tint */
  --brand-tint:    #ECEFE2;   /* callout backgrounds */
  --line:          #DEDDD1;   /* hairlines */
  --line-strong:   #C3C3B2;   /* input borders, strong dividers */

  /* Legacy tokens — kept for backward compat (removed in Step 3) */
  --off-white:     #FAF6EE;
  --near-black:    #1a1a1a;
  --orange-accent: var(--brand);  /* orange → moss green */

  /* Neutral Colors */
  --dark-grey:    #2a2a2a;
  --medium-grey:  #444;
  --light-grey:   #666;
  --border-light: var(--line);

  /* Typography */
  --font-heading: "Archivo", sans-serif;
  --font-body:    "IBM Plex Sans", sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Spacing */
  --section-padding:    80px 0;
  --container-max-width:1200px;
  --content-max-width:  800px;

  /* Transitions */
  --transition-base:   all 0.2s ease;
  --transition-smooth: all 0.3s ease;
  --transition-slow:   all 0.6s ease;

  /* ── THEME TOKENS — light mode defaults ── */
  --theme-bg:          #FAF4E8;
  --theme-bg-surface:  #FFFFFF;
  --theme-text:        #111111;
  --theme-text-muted:  rgba(17, 17, 17, 0.48);
  --theme-text-subtle: rgba(17, 17, 17, 0.25);
  --theme-border:      rgba(17, 17, 17, 0.08);
  --theme-surface:     rgba(255, 255, 255, 0.72);
  --theme-surface-border: rgba(17, 17, 17, 0.1);
}

/* Dark mode — canonical + theme tokens */
html.dark-mode {
  --bg:            #111309;
  --surface:       #1A1D13;
  --surface-2:     #22261A;
  --ink:           #ECEBE0;
  --muted:         #A0A491;
  --faint:         #7E836F;
  --brand:         #8FB047;   /* lifted moss — readable on dark */
  --brand-deep:    #A8C563;
  --brand-tint:    #1E2413;
  --line:          #2B2F21;
  --line-strong:   #3D4230;
  --theme-bg:          #0c0c0c;
  --theme-bg-surface:  #161616;
  --theme-text:        #FAF4E8;
  --theme-text-muted:  rgba(250, 244, 232, 0.42);
  --theme-text-subtle: rgba(250, 244, 232, 0.22);
  --theme-border:      rgba(250, 244, 232, 0.08);
  --theme-surface:     rgba(255, 255, 255, 0.04);
  --theme-surface-border: rgba(250, 244, 232, 0.09);
}

/* OS-level dark preference — applies when user hasn't explicitly chosen light */
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    --bg:            #111309;
    --surface:       #1A1D13;
    --surface-2:     #22261A;
    --ink:           #ECEBE0;
    --muted:         #A0A491;
    --faint:         #7E836F;
    --brand:         #8FB047;
    --brand-deep:    #A8C563;
    --brand-tint:    #1E2413;
    --line:          #2B2F21;
    --line-strong:   #3D4230;
    --theme-bg:          #0c0c0c;
    --theme-bg-surface:  #161616;
    --theme-text:        #FAF4E8;
    --theme-text-muted:  rgba(250, 244, 232, 0.42);
    --theme-text-subtle: rgba(250, 244, 232, 0.22);
    --theme-border:      rgba(250, 244, 232, 0.08);
    --theme-surface:     rgba(255, 255, 255, 0.04);
    --theme-surface-border: rgba(250, 244, 232, 0.09);
  }
}

/* ===== THEME TOGGLE BUTTON ===== */

/* Standalone version — delivery.html (no pill nav) */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(250, 244, 232, 0.12);
  background: rgba(250, 244, 232, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  font-size: 17px;
  line-height: 1;
  color: rgba(250, 244, 232, 0.65);
}

.theme-toggle:hover {
  background: rgba(250, 244, 232, 0.1);
  border-color: rgba(250, 244, 232, 0.25);
  transform: scale(1.08);
  color: rgba(250, 244, 232, 0.9);
}

/* Inside pill navbar — all other pages */
.hero-nav .theme-toggle {
  position: static;
  width: 34px;
  height: 34px;
  font-size: 15px;
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.hero-nav .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: none;
}

/* Dark mode — standalone toggle colors stay same (already dark-tinted) */
html.dark-mode .theme-toggle {
  border-color: rgba(250, 244, 232, 0.12);
  background: rgba(250, 244, 232, 0.06);
  color: rgba(250, 244, 232, 0.65);
}

html.dark-mode .theme-toggle:hover {
  background: rgba(250, 244, 232, 0.1);
  border-color: rgba(250, 244, 232, 0.25);
  color: rgba(250, 244, 232, 0.9);
}

/* Dark mode — nav toggle stays white since pill is always dark glass */
html.dark-mode .hero-nav .theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
}

html.dark-mode .hero-nav .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ===== MEANING STRIP ===== */
.meaning-strip {
  background: var(--brand-tint);
  padding: 96px 0 112px;
  position: relative;
  overflow: hidden;
}

/* ── Kola background effect ── */
.meaning-kola-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

/* Soft orange glow — right (behind main kola) */
.meaning-glow-orange {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 48vw, 580px);
  height: clamp(300px, 48vw, 580px);
  background: radial-gradient(circle, rgba(196, 98, 42, 0.1) 0%, transparent 65%);
  border-radius: 50%;
}

/* Soft sage glow — bottom left */
.meaning-glow-sage {
  position: absolute;
  left: -8vw;
  bottom: -8%;
  width: clamp(200px, 36vw, 440px);
  height: clamp(200px, 36vw, 440px);
  background: radial-gradient(circle, rgba(91, 122, 67, 0.07) 0%, transparent 65%);
  border-radius: 50%;
}

/* Main kola + ring — right side */
.meaning-kola-wrap {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 48vw, 600px);
  height: clamp(280px, 48vw, 600px);
}

/* Tilted orbit ring around kola */
.meaning-kola-ring {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(91, 122, 67, 0.14);
  animation: meaning-ring-spin 24s linear infinite;
}

.meaning-kola-ring-2 {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  border: 1px solid rgba(196, 98, 42, 0.09);
  animation: meaning-ring-spin 38s linear infinite reverse;
}

@keyframes meaning-ring-spin {
  from { transform: rotate(0deg) scaleY(0.32); }
  to   { transform: rotate(360deg) scaleY(0.32); }
}

/* Kola nut — slowly spinning watermark */
.meaning-kola-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.09;
  animation: meaning-kola-spin 55s linear infinite;
  display: block;
}

@keyframes meaning-kola-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Echo kola — far left, very faint */
.meaning-kola-echo-wrap {
  position: absolute;
  left: -10vw;
  bottom: -5%;
  width: clamp(140px, 22vw, 280px);
  height: clamp(140px, 22vw, 280px);
}

.meaning-kola-echo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.04;
  animation: meaning-kola-spin 80s linear infinite reverse;
  display: block;
}

/* Lift content above kola background */
.meaning-strip > .container {
  position: relative;
  z-index: 1;
}

.meaning-header {
  margin-bottom: 56px;
}

.meaning-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.meaning-heading {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 900;
  color: var(--off-white);
  line-height: 0.88;
  letter-spacing: -3px;
  margin-bottom: 20px;
}

.meaning-heading em {
  font-style: normal;
  color: var(--muted);
}

.meaning-subhead {
  font-size: clamp(15px, 1.6vw, 20px);
  color: rgba(250, 244, 232, 0.38);
  font-family: var(--font-body);
}

.meaning-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.meaning-card {
  position: relative;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(250, 244, 232, 0.07);
}

.meaning-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.55s ease;
}

.meaning-card:hover .meaning-card-img {
  transform: scale(1.05);
  filter: brightness(0.72);
}

.meaning-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 5, 0.12) 0%,
    rgba(10, 25, 5, 0.42) 48%,
    rgba(5, 15, 2, 0.94) 100%
  );
}

.meaning-card-num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange-accent);
  text-transform: uppercase;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(196, 98, 42, 0.32);
}

.meaning-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 26px 30px;
}

.meaning-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--off-white);
  margin-bottom: 9px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.meaning-card-desc {
  font-size: 0.87rem;
  color: rgba(250, 244, 232, 0.58);
  line-height: 1.68;
  margin: 0;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .meaning-strip  { padding: 72px 0 80px; }
  .meaning-heading { letter-spacing: -2px; }
  .meaning-cards  { grid-template-columns: 1fr; gap: 14px; }
  .meaning-card   { height: 340px; }
}

@media (max-width: 480px) {
  .meaning-card { height: 290px; }
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

/* ===== NAVIGATION ===== */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.navigation.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Scrolled navigation - dark text on white background */
.navigation.scrolled .logo,
.navigation.scrolled .nav-links a {
  color: var(--brand-deep);
}

.navigation.scrolled .menu-toggle span {
  background: var(--brand-deep);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: var(--brand-deep);
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-main {
  font-family: var(--font-heading);
  font-weight: 800;
}

.logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
}

.navigation.dark .logo,
.navigation.dark .nav-links a {
  color: var(--off-white);
}

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

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--brand-deep);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--brand-deep);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navigation.dark .menu-toggle span {
  background: var(--bg);
}

/* Hamburger Animation to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--orange-accent);
  color: var(--off-white);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--off-white);
}

.btn-secondary:hover {
  background: var(--brand);
}

.btn-dark {
  background: #111309;
  color: var(--off-white);
}

.btn-dark:hover {
  background: var(--brand-deep);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  background: #111309;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dark-grey) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-grey) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero-label {
  color: var(--muted);
}

.hero-headline {
  color: var(--off-white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-headline .highlight {
  color: var(--orange-accent);
}

.hero-subheadline {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-social-proof {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--light-grey);
  font-style: italic;
}

.hero-floating-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
}

.hero-floating-card .live-indicator {
  width: 8px;
  height: 8px;
  background: var(--orange-accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  margin-right: 8px;
}

.hero-floating-card h3 {
  color: var(--off-white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hero-floating-card .company {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero-floating-card .qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg);
  border-radius: 8px;
  margin: 20px 0;
}

.hero-floating-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: rgba(255, 107, 53, 0.3);
  overflow: hidden;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--orange-accent);
  animation: scrollDown 2s infinite;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 24px;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--orange-accent);
  fill: none;
  stroke-width: 2;
}

.card h3 {
  color: var(--ink);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--brand-deep);
  line-height: 1.8;
}

/* Dark Cards */
.card-dark {
  background: #1A1D13;
  border: 1px solid var(--dark-grey);
  position: relative;
  overflow: hidden;
}

.card-dark:hover {
  border-color: var(--orange-accent);
}

.card-dark .card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--dark-grey);
  font-weight: 700;
  line-height: 1;
}

.card-dark h3 {
  color: var(--off-white);
  position: relative;
  z-index: 1;
}

.card-dark p {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.card-dark .card-tag {
  color: var(--orange-accent);
  font-size: 0.85rem;
  margin-top: 16px;
  font-weight: 500;
}

/* ===== GRID LAYOUTS ===== */
/* ===== PROBLEM SECTION — split layout ===== */
.problem-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.problem-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
}

.problem-content {
  padding-right: 8px;
}

.problem-heading {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 16px 0 24px;
  color: var(--ink);
}

.problem-intro {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--brand-deep);
  margin-bottom: 40px;
  max-width: 520px;
}

/* Numbered problem list */
.problem-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(43,74,28,0.14);
  margin-bottom: 36px;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(43,74,28,0.14);
}

.problem-num {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange-accent);
  opacity: 0.7;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 26px;
}

.problem-item-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.problem-item-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--brand-deep);
  margin: 0;
}

.problem-cta-line {
  font-size: 1rem;
  color: var(--ink);
}

/* Right: figure column */
.problem-image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.problem-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transition: transform 0.7s ease;
  filter: drop-shadow(0 32px 48px rgba(10,25,5,0.22));
}

.problem-image-wrap:hover .problem-image {
  transform: translateY(-6px);
}

/* Hidden — not needed for transparent PNG */
.problem-image-overlay { display: none; }

.problem-image-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(8,14,4,0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(196,98,42,0.28);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--off-white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Mobile */
@media (max-width: 900px) {
  .problem-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .problem-image-wrap {
    aspect-ratio: 4 / 3;
    order: -1;
  }

  .problem-heading {
    font-size: clamp(26px, 6vw, 36px);
  }
}

@media (max-width: 480px) {
  .problem-image-wrap { aspect-ratio: 3 / 2; }
}

/* ===== END PROBLEM SECTION ===== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* ===== SECTIONS ===== */
.section-light {
  background: var(--bg);
  color: var(--ink);
}

.section-dark {
  background: #111309;
  color: var(--off-white);
}

.section-sage {
  background: var(--brand);
  color: var(--off-white);
}

.section-orange {
  background: var(--orange-accent);
  color: var(--off-white);
}

/* ===== STATS ===== */
.stats-row {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  height: 60px;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--off-white);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--off-white);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #111309;
  color: var(--off-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--off-white);
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--off-white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--orange-accent);
}

.footer-contact p {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-grey);
  padding-top: 24px;
  text-align: center;
  color: var(--medium-grey);
  font-size: 0.85rem;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--brand-deep);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--muted);
  box-shadow: 0 0 0 3px rgba(122, 140, 104, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-floating-card {
    justify-self: end;
  }
}

/* ===== DELIVERY CAROUSEL ===== */
.delivery-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 0 0 32px;
}

.delivery-slides-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.delivery-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-sizing: border-box;
}

.slide-media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 3.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.slide-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.slide-media-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.slide-number {
  color: var(--orange-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slide-text h3 {
  color: var(--off-white);
  font-size: 1.7rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.slide-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--off-white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.carousel-btn:hover {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--orange-accent);
  width: 28px;
  border-radius: 4px;
}

.delivery-partnership-cta {
  text-align: center;
  padding: 48px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .ngwangwa-pillars {
    grid-template-columns: 1fr !important;
  }

  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .delivery-slide {
    grid-template-columns: 1fr !important;
    padding: 28px 20px !important;
    gap: 24px !important;
  }

  .slide-media-placeholder {
    aspect-ratio: 16 / 9;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 400px;
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a {
    color: var(--brand-deep) !important;
    font-weight: 600;
  }

  /* Force dark text in mobile menu even on dark nav */
  .navigation.dark .nav-links a {
    color: var(--brand-deep) !important;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .hero-floating-card {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

/* ── WHO WE HELP — Industries ─────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-card {
  background: var(--theme-bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.industry-card:hover {
  border-color: var(--orange-accent);
  box-shadow: 0 4px 24px rgba(196, 98, 42, 0.1);
  transform: translateY(-3px);
}
.industry-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}
.industry-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.industry-card p {
  font-size: 0.88rem;
  color: var(--light-grey);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .industries-grid { grid-template-columns: 1fr; }
}

/* ── VIRTUAL WAITRESS — Flagship Product ──────────────────── */
.vw-section {
  background: #111309;
  padding: 100px 0;
}
.vw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.vw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange-accent);
  text-transform: uppercase;
  border: 1px solid rgba(196, 98, 42, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
}
.vw-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-accent);
  flex-shrink: 0;
  animation: vw-pulse 2s ease-in-out infinite;
}
@keyframes vw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.vw-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.vw-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vw-stat strong {
  color: var(--off-white);
  font-size: 1rem;
  font-weight: 700;
}
.vw-stat span {
  color: rgba(250, 246, 238, 0.45);
  font-size: 0.8rem;
}
.product-browser {
  background: #111309;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.product-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.product-url {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
}
.product-iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
  pointer-events: none;
  transform-origin: top left;
}
@media (max-width: 900px) {
  .vw-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .vw-visual { order: -1; }
}

/* ── WHY NGWANGWA DIGITAL ─────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── TRUST STRIP ──────────────────────────────────────────── */
.trust-strip {
  background: #111309;
  border-top: 1px solid rgba(250, 246, 238, 0.06);
  border-bottom: 1px solid rgba(250, 246, 238, 0.06);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(250, 246, 238, 0.38);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.trust-sep {
  color: rgba(250, 246, 238, 0.15);
}

/* ── CAPABILITY PILLARS ───────────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover {
  border-color: rgba(196, 98, 42, 0.4);
  box-shadow: 0 0 32px rgba(196, 98, 42, 0.1);
}
.pillar-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--orange-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pillar-headline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.4;
  margin-bottom: 14px;
}
.pillar-body {
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.5);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}
.pillar-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.pillar-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 4px 11px;
  color: rgba(250, 246, 238, 0.45);
}
.pillar-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-accent);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: letter-spacing 0.25s;
  margin-top: auto;
}
.pillar-link:hover { letter-spacing: 0.12em; }
@media (max-width: 768px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 28px 24px; }
}

/* ── INDUSTRIES STRIP ─────────────────────────────────────── */
.industries-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.industry-tag {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 26, 26, 0.2);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.industry-tag:hover {
  border-color: var(--orange-accent);
  background: rgba(196, 98, 42, 0.06);
  color: var(--orange-accent);
}
html.dark-mode .industry-tag {
  color: rgba(250, 246, 238, 0.75);
  border-color: rgba(250, 246, 238, 0.2);
  background: transparent;
}
html.dark-mode .industry-tag:hover {
  border-color: var(--orange-accent);
  background: rgba(196, 98, 42, 0.1);
  color: var(--orange-accent);
}

/* ── WORK CARD STAT ───────────────────────────────────────── */
.work-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.work-card-stat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* ── VW MORE PRODUCTS LINK ────────────────────────────────── */
.vw-more-products {
  margin-top: 20px;
  font-size: 0.82rem;
}
.vw-more-products a {
  color: rgba(250, 246, 238, 0.35);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.vw-more-products a:hover { color: rgba(250, 246, 238, 0.75); }

/* ── FOUNDER NOTE (condensed) ─────────────────────────────── */
.founder-note {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
  padding: 16px 0;
}
.founder-note-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 70%;
  flex-shrink: 0;
  border: 3px solid var(--orange-accent);
}
.founder-note-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.founder-note-text p {
  color: var(--brand-deep);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}
.founder-note-link {
  color: var(--orange-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.founder-note-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .founder-note {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
  }
}
