/* ==========================================================================
   AFRIMETAL MINING & SHIPPING COMPANY LIMITED - CORE STYLES
   Colors: #177F0D (Primary), #C19228 (Gold), #1B2A4A (Navy), #1D222F (BG)
   ========================================================================== */

:root {
  --bg-dark: #1D222F;
  --bg-card: #141A26;
  --bg-card-alt: #18202F;
  --bg-input: #0F141F;
  --navy: #1B2A4A;
  --navy-light: #24355A;
  --primary: #177F0D;
  --primary-hover: #13690B;
  --gold: #C19228;
  --gold-hover: #A77B1E;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(193, 146, 40, 0.3);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --deep:        #11151F;
  --heading:     #FFFFFF;
  --shadow-soft: 0 12px 30px rgba(0,0,0,.35);
  --veil-a:      rgba(15,20,31,.88);
  --veil-b:      rgba(15,20,31,.45);
}

html[data-theme="light"] {
  --bg-dark:     #FFFFFF;
  --bg-card:     #F6F7FA;
  --bg-card-alt: #EEF1F6;
  --bg-input:    #FFFFFF;
  --deep:        #F1F3F8;
  --heading:     #10192B;
  --text-main:   #1C2434;
  --text-muted:  #5A6577;
  --border:      rgba(16, 25, 43, 0.10);
  --border-gold: rgba(193, 146, 40, 0.45);
  --shadow-soft: 0 12px 28px rgba(16,25,43,.10);
  --veil-a:      rgba(10,14,22,.80);
  --veil-b:      rgba(10,14,22,.30);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Inakua taratibu: 14px kwenye simu -> 17.5px kwenye computer/TV kubwa */
  font-size: clamp(14px, 0.35vw + 12.6px, 17.5px);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.4vw, 32px);
}

/* ---------------- TOP BAR & HEADER ---------------- */
.topbar {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px);
  padding: 6px 0;
  color: var(--text-muted);
  transition: background-color .3s ease, border-color .3s ease;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar__info {
  display: flex;
  gap: 14px;
}
.topbar__info a:hover { color: var(--gold); }
.topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-dark) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  transition: background-color .3s ease, border-color .3s ease;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.logo__text {
  display: flex;
  flex-direction: column;
}
.logo__title {
  font-size: clamp(18px, 0.545vw + 15.38px, 25.2px);
  font-weight: 800;
  letter-spacing: 7px;
  color: var(--heading);
  transition: color .3s ease;
}
@media (max-width: 992px) {
  .logo__title{letter-spacing: 8.4px;}
}
/*.logo__title {
  font-size: clamp(18px, 0.545vw + 15.38px, 25.2px);
  font-weight: 800;
  letter-spacing: 0.35em; 
  width: 100%;
  display: inline-block;
  text-align: justify;
  color: var(--heading);
  transition: color .3s ease;
}*/
.logo__sub {
  font-size: clamp(9px, 0.203vw + 7.55px, 13px);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 6px 12px;
  font-size: clamp(12.5px, 0.379vw + 10.68px, 17.5px);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link:hover, .nav__link.active {
  color: var(--heading);
  background: rgba(120, 130, 150, 0.08);
}
.nav__link.active {
  color: var(--gold-hover);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--heading);
  font-size: clamp(18px, 0.545vw + 15.38px, 25.2px);
  cursor: pointer;
  padding: 6px;
}

/* ---------------- MODE SWITCH ---------------- */
.mswitch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.mswitch__track {
  position: relative;
  width: 46px;
  height: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0B0F18, #1B2A4A);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.5);
  display: block;
  flex-shrink: 0;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.mswitch__ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(9px, 0.273vw + 7.69px, 12.6px);
  transition: opacity .3s ease, transform .35s ease;
  pointer-events: none;
}
.mswitch__ico--moon { left: 7px;  color: #9FB0CC; opacity: 1; }
.mswitch__ico--sun  { right: 7px; color: #C19228; opacity: .45; }

.mswitch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFF, #C9D3E3);
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  transition: transform .42s cubic-bezier(.34,1.56,.64,1), background .35s ease;
}
.mswitch__label {
  font-size: clamp(10px, 0.303vw + 8.55px, 14px);
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .3s ease;
}
.mswitch:hover .mswitch__label { color: var(--gold); }
.mswitch:hover .mswitch__track { border-color: var(--gold); }
.mswitch:focus-visible .mswitch__track { outline: 2px solid var(--gold); outline-offset: 2px; }
.mswitch:active .mswitch__knob { width: 20px; }

html[data-theme="light"] .mswitch__track {
  background: linear-gradient(135deg, #FFE9B0, #F6C455);
  border-color: rgba(193,146,40,.6);
  box-shadow: inset 0 1px 4px rgba(193,146,40,.35);
}
html[data-theme="light"] .mswitch__knob {
  transform: translateX(24px) rotate(180deg);
  background: linear-gradient(145deg, #FFFFFF, #FFE9B0);
}
html[data-theme="light"] .mswitch__ico--moon { opacity: .35; }
html[data-theme="light"] .mswitch__ico--sun  { opacity: 1; transform: translateY(-50%) rotate(25deg); }

html.mode-flash body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--bg-dark);
  animation: modeFlash .45s ease forwards;
}
@keyframes modeFlash { from { opacity: .55; } to { opacity: 0; } }

/* ---------------- HERO (maandishi na takwimu) ---------------- */
.hero {
  position: relative;
  padding: 35px 0 25px 0;
  background: radial-gradient(circle at 80% 20%, rgba(27, 42, 74, 0.6) 0%, transparent 60%);
  overflow: hidden;
}
html[data-theme="light"] .hero {
  background: radial-gradient(circle at 80% 20%, rgba(193,146,40,.14) 0%, transparent 60%);
}
.hero__in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 25px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(193, 146, 40, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: clamp(11px, 0.333vw + 9.4px, 15.4px);
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 12px;
  transition: color .3s ease;
}
.hero h1 span.line { display: block; overflow: hidden; }
.hero h1 span.line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp .75s cubic-bezier(.22,1,.36,1) forwards;
}
.hero h1 span.line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 span.line:nth-child(3) > span { animation-delay: .2s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__lead {
  font-size: clamp(13px, 0.394vw + 11.11px, 18.2px);
  color: white;
  margin-bottom: 18px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.hero__stats b {
  font-size: clamp(16px, 0.485vw + 13.67px, 22.4px);
  color: var(--gold);
  display: block;
}
.hero__stats span {
  font-size: clamp(10.5px, 0.318vw + 8.97px, 14.7px);
  color: white;
}

/* ---------------- BUTTONS & BADGES ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: clamp(12px, 0.364vw + 10.26px, 16.8px);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn--gold { background: var(--gold); color: #111; }
.btn--gold:hover { background: var(--gold-hover); }
.btn--primary { background: var(--primary); color: #FFF; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--wa { background: #25D366; color: #000; }
html[data-theme="light"] .btn--wa { color: #073B21; }
.btn--wa:hover { background: #20bd5a; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--heading); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sky { background: var(--navy-light); color: #FFF; border-color: var(--border); }
.btn--sky:hover { background: var(--navy); border-color: var(--gold); }
html[data-theme="light"] .btn--sky { border-color: rgba(16,25,43,.18); }
.btn--full { width: 100%; }
.btn--lg { padding: 11px 22px; font-size: clamp(13px, 0.394vw + 11.11px, 18.2px); }

/* ---------------- SECTIONS & GRIDS ---------------- */
.section { padding: clamp(40px, 2.2vw + 26px, 76px) 0; }
.section--alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--tight { padding: clamp(25px, 1.4vw + 17px, 46px) 0; }

.head { margin-bottom: 24px; }
.head--center { text-align: center; }
.head h2 { font-size: 1.5rem; font-weight: 800; color: var(--heading); }
.head p { font-size: clamp(12.5px, 0.379vw + 10.68px, 17.5px); color: var(--text-muted); margin-top: 4px; }
.rule { width: 35px; height: 3px; background: var(--gold); margin-bottom: 8px; border-radius: 2px; }
.head--center .rule { margin: 0 auto 8px auto; }

.grid { display: grid; gap: clamp(16px, 1vw + 10px, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- CARDS ---------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius-md);
  transition: var(--transition), background-color .3s ease, border-color .3s ease;
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.card__icon {
  width: 36px;
  height: 36px;
  background: rgba(193, 146, 40, 0.1);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 0.485vw + 13.67px, 22.4px);
  margin-bottom: 12px;
}
.card h3 { font-size: clamp(13.5px, 0.409vw + 11.54px, 18.9px); font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.card p { font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px); color: var(--text-muted); line-height: 1.45; }

.pcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition), background-color .3s ease, border-color .3s ease;
}
.pcard:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.pcard__img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-card-alt);
  overflow: hidden;
}
.pcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(17, 21, 31, 0.85);
  color: var(--gold);
  font-size: clamp(10px, 0.303vw + 8.55px, 14px);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
html[data-theme="light"] .pcard__tag { background: rgba(255,255,255,.9); color: var(--gold-hover); }
.pcard__count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #FFF;
  font-size: clamp(10px, 0.303vw + 8.55px, 14px);
  padding: 2px 6px;
  border-radius: 4px;
}
.pcard__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard h3 { font-size: clamp(13.5px, 0.409vw + 11.54px, 18.9px); color: var(--heading); font-weight: 700; margin-bottom: 4px; }
.pcard p { font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px); color: var(--text-muted); margin-bottom: 12px; flex: 1; }
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: clamp(11px, 0.333vw + 9.4px, 15.4px);
}
.pcard__link { color: var(--gold); font-weight: 600; }
.pcard__wa { color: #25D366; font-size: clamp(13px, 0.394vw + 11.11px, 18.2px); }

/* ---------------- TICKER ---------------- */
.ticker {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease;
}
.ticker__track {
  display: inline-block;
  animation: ticker 35s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 0.333vw + 9.4px, 15.4px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-right: 25px;
}
.ticker i { color: var(--gold); font-size: clamp(10px, 0.303vw + 8.55px, 14px); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------------- GALLERY & PROVIEW ---------------- */
.pv { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.pv h2 { font-size: 1.25rem; color: var(--heading); font-weight: 800; margin-bottom: 8px; }
.pv h3 { font-size: clamp(13.5px, 0.409vw + 11.54px, 18.9px); color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.pv p  { margin-bottom: 8px; }

.gal__main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gal__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.gal__main img.on { display: block; }
.gal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #FFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal__nav--prev { left: 10px; }
.gal__nav--next { right: 10px; }
.gal__count {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,.7);
  color: #FFF;
  font-size: clamp(10.5px, 0.318vw + 8.97px, 14.7px);
  padding: 3px 8px;
  border-radius: 12px;
}
.gal__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gal__thumbs button {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card-alt);
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
}
.gal__thumbs button.on { opacity: 1; border-color: var(--gold); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px); }
.spec td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.spec td:first-child { color: var(--text-muted); }
.spec td:last-child { text-align: right; color: var(--heading); font-weight: 600; }

/* ---------------- FORMS ---------------- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: background-color .3s ease, border-color .3s ease;
}
.panel h3 { color: var(--heading); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: clamp(11px, 0.333vw + 9.4px, 15.4px); font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--heading);
  font-size: clamp(12px, 0.364vw + 10.26px, 16.8px);
  font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { height: 70px; resize: vertical; }

.alert {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px);
  margin-bottom: 12px;
  line-height: 1.45;
}
.alert--ok  { background: rgba(23,127,13,.15);  border: 1px solid var(--primary); color: #D9F5D5; }
.alert--bad { background: rgba(220,60,60,.12);  border: 1px solid #DC3C3C;        color: #FFD7D7; }
html[data-theme="light"] .alert--ok  { background: rgba(23,127,13,.09);  color: #0E4A0A; }
html[data-theme="light"] .alert--bad { background: rgba(220,60,60,.08);  color: #7A1414; }
.note { font-size: clamp(10.5px, 0.318vw + 8.97px, 14.7px); color: var(--text-muted); margin-top: 8px; text-align: center; }

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 35px 0 15px 0;
  font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px);
  color: var(--text-muted);
  transition: background-color .3s ease, border-color .3s ease;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(20px, 1.4vw + 12px, 40px);
  margin-bottom: 25px;
}
.footer h4 { color: var(--heading); font-size: clamp(12.5px, 0.379vw + 10.68px, 17.5px); margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; }
.footer a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.credit { color: var(--gold); font-weight: 600; }

/* ---------------- SCROLL REVEAL ---------------- */
.reveal, .fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.on, .fade-up.on { opacity: 1; transform: none; }
.reveal[data-d="1"], .fade-up[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"], .fade-up[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"], .fade-up[data-d="3"] { transition-delay: .24s; }
.no-js .reveal, .no-js .fade-up { opacity: 1; transform: none; }

/* ---------------- BANNER & BREADCRUMBS ---------------- */
.banner {
  padding: 26px 0 22px;
  #background:
    linear-gradient(180deg, rgba(27,42,74,.35), transparent),
    var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.banner h1 { font-size: 1.7rem; font-weight: 800; color: var(--heading); margin-bottom: 6px; }
.banner p { font-size: clamp(12.5px, 0.379vw + 10.68px, 17.5px); color: var(--text-muted); max-width: 640px; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(11px, 0.333vw + 9.4px, 15.4px);
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-size: clamp(8px, 0.242vw + 6.84px, 11.2px); opacity: .6; }
.crumbs span { color: var(--gold); }

/* ---------------- FILTERS / CHIPS / SEARCH ---------------- */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  padding: 6px 13px;
  font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.chip:hover { color: var(--heading); border-color: var(--border-gold); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #111; }

.search { position: relative; margin-left: auto; flex: 1; min-width: 190px; max-width: 280px; }
.search i {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(11px, 0.333vw + 9.4px, 15.4px);
  color: var(--text-muted);
}
.search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 12px 7px 30px;
  color: var(--heading);
  font-size: clamp(12px, 0.364vw + 10.26px, 16.8px);
  font-family: inherit;
}
.search input:focus { border-color: var(--gold); outline: none; }

/* ---------------- CTA STRIP ---------------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy), var(--bg-card));
  border: 1px solid var(--border-gold);
  transition: background .3s ease, border-color .3s ease;
}
.cta h3 { font-size: clamp(15px, 0.455vw + 12.82px, 21px); color: #FFF; font-weight: 800; margin-bottom: 4px; }
.cta p { font-size: clamp(12px, 0.364vw + 10.26px, 16.8px); color: #C7D0DE; }

/* Light mode: sanduku la CTA lisibaki giza - liwe jepesi kama sehemu nyingine */
html[data-theme="light"] .cta {
  background: linear-gradient(120deg, #EFE3C8, var(--bg-card));
  border-color: var(--border-gold);
}
html[data-theme="light"] .cta h3 { color: var(--heading); }
html[data-theme="light"] .cta p { color: var(--text-muted); }

/* ---------------- STEPS ---------------- */
.steps { counter-reset: stepn; }
.step { display: flex; gap: 12px; margin-bottom: 14px; }
.step__n {
  counter-increment: stepn;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(193,146,40,.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: clamp(11px, 0.333vw + 9.4px, 15.4px);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__n::before { content: counter(stepn); }
.step h4 { font-size: clamp(12.5px, 0.379vw + 10.68px, 17.5px); color: var(--heading); margin-bottom: 2px; }
.step p { font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px); color: var(--text-muted); line-height: 1.45; }

/* ---------------- TICK LIST ---------------- */
.ticks { list-style: none; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px);
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
}
.ticks li:last-child { border-bottom: none; }
.ticks i { color: var(--primary); font-size: clamp(10px, 0.303vw + 8.55px, 14px); margin-top: 3px; flex-shrink: 0; }

/* ---------------- HELPERS ---------------- */
.muted  { color: var(--text-muted); }
.center { text-align: center; }
.mb0    { margin-bottom: 0; }

/* ==========================================================================
   HERO — picha ni BACKGROUND, zinabadilishana nyuma ya maandishi
   ========================================================================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10px 0;
  contain: layout paint;
}
.hero__in { position: relative; z-index: 3; grid-template-columns: 1fr; width: 100%; }
.hero__in > div { max-width: 640px; }

/* Background layer */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform, filter;
  transition:
    opacity   1.1s ease,
    transform 1.3s cubic-bezier(.22,1,.36,1),
    filter    1.1s ease,
    clip-path 1.3s cubic-bezier(.22,1,.36,1);
}
.hero__slide.fx-zoom  { transform: scale(1.18); }
.hero__slide.fx-slide { transform: translateX(12%); }
.hero__slide.fx-tilt  { transform: perspective(1000px) rotateY(10deg) scale(1.08); }
.hero__slide.fx-blur  { transform: scale(1.08); filter: blur(9px); }
.hero__slide.fx-mask  { clip-path: inset(0 0 100% 0); }

.hero__slide.is-on {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 9s linear;
}
.hero__slide.is-on img { transform: scale(1.14); }   /* Ken Burns polepole */

/* Weka giza juu ya picha ili maandishi yasomeke */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Nyepesi kuliko awali ili picha ionekane zaidi; maandishi yanasomeka kwa text-shadow */
  background:
    linear-gradient(90deg, rgba(10,14,22,1) 0%, rgba(10,14,22,.56) 40%, rgba(10,14,22,.22) 60%, rgba(10,14,22,.0) 100%),
    linear-gradient(0deg, rgba(10,14,22,.98) 0%, transparent 30%);
}
html[data-theme="light"] .hero__shade {
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.56) 40%, rgba(255,255,255,.21) 60%, rgba(255,255,255,.0) 100%),
    linear-gradient(0deg, rgba(255,255,255,.7) 0%, transparent 30%);
}

@media (max-width: 992px) {
      .hero__shade {
      position: absolute;
      inset: 0;
      z-index: 2;
      /* Nyepesi kuliko awali ili picha ionekane zaidi; maandishi yanasomeka kwa text-shadow */
      background:
        linear-gradient(90deg, rgba(10,14,22,.95) 0%, rgba(10,14,22,.56) 42%, rgba(10,14,22,.22) 75%, rgba(10,14,22,.0) 100%),
        linear-gradient(0deg, rgba(10,14,22,1) 0%, transparent 30%);
    }
    html[data-theme="light"] .hero__shade {
      background:
        linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.56) 42%, rgba(255,255,255,.21) 75%, rgba(255,255,255,.0) 100%),
        linear-gradient(0deg, rgba(255,255,255,1) 0%, transparent 30%);
    }
}
.regulatory { color:#FFF;}

.hero h1, .hero__lead, .hero__stats { text-shadow: 0 2px 14px rgba(0,0,0,.35); }
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero__lead { color: var(--heading); text-shadow: 0 2px 10px rgba(255,255,255,.55); }
html[data-theme="light"] .hero__stats { text-shadow: 0 2px 10px rgba(255,255,255,.55); }
html[data-theme="light"] .hero__stats span {color: black;}
html[data-theme="light"] .regulatory { color:#1111;}

html[data-theme="light"] .hero__nowTag {color: black; border: 1px solde rgba(0, 0, 0, .6);}
html[data-theme="light"] .hero__now b {color: black;text-shadow: 0 2px 10px rgba(255,255,255,.55);font-weight: 400;}

/* Kidokezo cha product inayoonekana sasa */
.hero__now {
  position: absolute;
  right: 20px; bottom: 64px;
  z-index: 4;
  text-align: right;
}
.hero__nowItem {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.hero__nowItem.is-on { display: flex; animation: nowIn .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes nowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero__nowTag {
  font-size: clamp(9.5px, 0.288vw + 8.12px, 13.3px);
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(193,146,40,.16);
  border: 1px solid rgba(193,146,40,.5);
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.hero__now b { font-size: clamp(13px, 0.394vw + 11.11px, 18.2px); color: #FFF; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.55); }

/* Nav, progress, dots — juu ya picha */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(10,14,22,.4);
  color: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.hero:hover .hero__nav { opacity: 1; }
.hero__nav:hover { background: var(--gold); color: #111; border-color: var(--gold); }
.hero__nav--prev { left: 16px; }
.hero__nav--next { right: 16px; }

.hero__bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  z-index: 4;
  background: rgba(255,255,255,.14);
}
.hero__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 7px;
}
.hero__dot {
  width: 22px; height: 5px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: width .35s ease, background .3s ease;
}
.hero__dot:hover { background: rgba(255,255,255,.55); }
.hero__dot.on { width: 34px; background: var(--gold); }

/* ==========================================================================
   SHOWCASE BANNER
   ========================================================================== */
.showcase {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 72px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,14,22,.94) 0%, rgba(10,14,22,.72) 55%, rgba(10,14,22,.45) 100%),
    linear-gradient(0deg, rgba(23,127,13,.10), rgba(27,42,74,.20));
}
/* Light mode: sehemu hii isibaki na "ukungu" wa giza - iwe jepesi kama sehemu nyingine */
html[data-theme="light"] .showcase__veil {
  background:
    linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.78) 55%, rgba(255,255,255,.55) 100%),
    linear-gradient(0deg, rgba(23,127,13,.05), rgba(193,146,40,.08));
}
.showcase__in { position: relative; z-index: 2; max-width: 780px; }
.showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10.5px, 0.318vw + 8.97px, 14.7px);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  background: rgba(193,146,40,.12);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.showcase h2 {
  font-size: 2.1rem;
  line-height: 1.15;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.showcase p { font-size: clamp(13.5px, 0.409vw + 11.54px, 18.9px); color: #C7D0DE; max-width: 610px; margin-bottom: 20px; }
.showcase p b { color: var(--gold); font-weight: 700; }
.showcase__act { display: flex; gap: 10px; flex-wrap: wrap; }
.showcase .btn--ghost { color: #FFF; border-color: rgba(255,255,255,.35); }
.showcase .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

html[data-theme="light"] .showcase h2 { color: var(--heading); text-shadow: 0 2px 10px rgba(255,255,255,.6); }
html[data-theme="light"] .showcase p { color: var(--text-muted); }
html[data-theme="light"] .showcase__eyebrow { background: rgba(193,146,40,.16); }
html[data-theme="light"] .showcase .btn--ghost { color: var(--heading); border-color: rgba(16,25,43,.25); }
html[data-theme="light"] .showcase .btn--ghost:hover { border-color: var(--gold); color: var(--gold-hover); }

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media (max-width: 992px) {
  .pv { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 64vh; }
  .showcase { padding: 56px 0; }
  .showcase h2 { font-size: 1.7rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px;
  }
  .nav.open { display: flex; }
  .nav__link { width: 100%; padding: 10px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .banner h1 { font-size: 1.35rem; }
  .search { margin-left: 0; max-width: 100%; }
  .cta { flex-direction: column; align-items: flex-start; }
  .topbar__info { flex-direction: column; gap: 4px; }

  .hero__nav { opacity: 1; width: 28px; height: 28px; }
  .hero__now { right: 14px; bottom: 54px; }
  .hero__now b { font-size: clamp(11.5px, 0.348vw + 9.83px, 16.1px); }
  .hero { min-height: auto; padding: 44px 0 52px; }
  .mswitch__label { display: none; }
  .mswitch { margin-left: 4px; }

  .showcase { padding: 44px 0; }
  .showcase h2 { font-size: 1.45rem; }
  .showcase p { font-size: clamp(12.5px, 0.379vw + 10.68px, 17.5px); }
  .showcase__act .btn { flex: 1; min-width: 150px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.55rem; }
  .hero__now { display: none; }   /* nafasi haitoshi kwa simu ndogo sana */
  .showcase h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up { opacity: 1 !important; transform: none !important; transition: none; }
  .ticker__track { animation: none; }
  .hero__slide, .hero__slide img, .hero__now { transition: opacity .2s linear !important; }
  .hero__slide.fx-zoom, .hero__slide.fx-slide, .hero__slide.fx-tilt,
  .hero__slide.fx-blur, .hero__slide.fx-mask { transform: none; filter: none; clip-path: none; }
  .mswitch__knob { transition: none; }
}

/* ==========================================================================
   LARGE SCREENS (Desktop kubwa / TV) — font na nafasi vinaongezeka zaidi
   ========================================================================== */
@media (min-width: 1400px) {
  .wrap { max-width: 1320px; }

  .hero { min-height: 82vh; }
  .hero__lead { font-size: 1.05rem; max-width: 620px; }
  .hero__eyebrow { font-size: 0.85rem; padding: 6px 14px; }
  .hero__stats b { font-size: 1.25rem; }
  .hero__stats span { font-size: 0.8rem; }
  .hero__actions .btn { font-size: 0.95rem; padding: 12px 22px; }

  .head h2 { font-size: 1.9rem; }
  .head p { font-size: 0.95rem; }

  .card { padding: 24px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.9rem; }
  .card__icon { width: 44px; height: 44px; font-size: clamp(19px, 0.576vw + 16.24px, 26.6px); }

  .pcard h3 { font-size: 1.05rem; }
  .pcard p { font-size: 0.9rem; }
  .pcard__body { padding: 18px; }

  .showcase h2 { font-size: 2.6rem; }
  .showcase p { font-size: 1rem; }
  .showcase__eyebrow { font-size: 0.85rem; }

  .banner h1 { font-size: 2.1rem; }
  .banner p { font-size: 0.95rem; }

  .panel { padding: 24px; }
  .panel h3 { font-size: 1.05rem; }
  .step h4 { font-size: 0.98rem; }
  .step p { font-size: 0.92rem; }
  .ticks li { font-size: 0.92rem; }

  .cta h3 { font-size: 1.15rem; }
  .cta p { font-size: 0.92rem; }

  .footer { font-size: 0.92rem; }
  .footer h4 { font-size: 1rem; }
}

@media (min-width: 1800px) {
  .wrap { max-width: 1480px; }
  .hero { min-height: 86vh; max-height: 900px; }
  .hero__lead { max-width: 680px; }
  .hero__in > div { max-width: 700px; }
  .showcase { padding: 96px 0; }
}