/* ============================================================
   PariPesa Tanzania — Global Stylesheet
   Brand: Navy #002147 | Orange #FF6B00 | Gold #FFB800
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --navy:    #002147;
  --navy2:   #001830;
  --navy3:   #0a2d5e;
  --orange:  #FF6B00;
  --orange2: #e55a00;
  --gold:    #FFB800;
  --white:   #ffffff;
  --gray:    #8a9bb5;
  --gray2:   #c5d0e0;
  --card-bg: #0d2d52;
  --border:  rgba(255,107,0,0.18);
  --radius:  12px;
  --radius2: 8px;
  --shadow:  0 4px 24px rgba(0,0,0,0.35);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy2);
  color: var(--white);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

h1,h2,h3,h4,h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9500 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,107,0,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange2) 0%, var(--orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,0,0.5);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #ffcf40 100%);
  color: var(--navy2);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255,184,0,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,184,0,0.55);
  color: var(--navy2);
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.header-logo img { height: 42px; width: auto; }
.header-logo { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav ul li a {
  padding: 8px 14px;
  border-radius: var(--radius2);
  color: var(--gray2);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--white);
  background: rgba(255,107,0,0.12);
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 22px; font-size: 0.85rem; }

/* Mobile menu */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px 12px; background: var(--navy3); border: 1px solid var(--border); border-radius: var(--radius2); transition: background var(--transition), border-color var(--transition); }
.burger:hover { background: rgba(255,107,0,0.15); border-color: rgba(255,107,0,0.45); }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.mobile-cta { display: none; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy3) 60%, #0d3570 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/hero-home.jpg') center/cover no-repeat;
  opacity: 0.38;
  transition: opacity 0.4s ease;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: 1.08rem;
  color: var(--gray2);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--orange);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
}
.hero-float {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}
.hero-float.f1 { top: 20px; right: -20px; }
.hero-float.f2 { bottom: 40px; left: -20px; }
.hero-float .icon { font-size: 1.5rem; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── SECTION COMMON ── */
.section { padding: 72px 0; }
.section-alt { background: rgba(255,255,255,0.02); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.section-header h2 span { color: var(--orange); }
.section-header p { color: var(--gray2); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,107,0,0.12);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(255,107,0,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(255,107,0,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── BONUS CARD ── */
.bonus-hero-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, #0d3a72 100%);
  border: 1px solid rgba(255,184,0,0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bonus-hero-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,184,0,0.06) 0%, transparent 60%);
}
.bonus-amount {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.bonus-label {
  font-size: 1.1rem;
  color: var(--gray2);
  margin-bottom: 28px;
}

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.data-table th {
  background: rgba(255,107,0,0.15);
  padding: 14px 18px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--gray2);
  font-size: 0.95rem;
}
.data-table tr:hover td { background: rgba(255,255,255,0.03); }
.data-table td:first-child { color: var(--white); font-weight: 500; }
.check { color: #4ade80; }
.cross { color: #f87171; }

/* ── RATING BADGE ── */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,184,0,0.15);
  border: 1px solid rgba(255,184,0,0.3);
  border-radius: 50px;
  font-weight: 700;
  color: var(--gold);
}

/* ── PROGRESS / CHART ── */
.progress-bar-wrap { margin: 8px 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--gray2);
}
.progress-track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width 1.2s ease;
}

/* ── PAYMENT ICONS ── */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.payment-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(255,107,0,0.08); }
.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--orange);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--gray2);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

/* ── AUTHOR BLOCK ── */
.author-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 64px 0 0;
}
.author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  flex-shrink: 0;
}
.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-name a { color: var(--orange); }
.author-title { font-size: 0.82rem; color: var(--gray); margin-bottom: 10px; }
.author-bio { font-size: 0.93rem; color: var(--gray2); line-height: 1.7; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--white); }
.breadcrumb-sep { color: var(--gray); }

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy3) 100%);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.62;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,21,47,0.55) 0%, rgba(0,21,47,0.15) 50%, rgba(0,21,47,0.05) 100%);
  z-index: 1;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.page-hero p { color: var(--gray2); max-width: 600px; font-size: 1.05rem; }

/* Page-specific hero backgrounds */
.page-hero--bonasi::before {
  background-image: url('/assets/images/hero-bonasi.jpg');
}
.page-hero--programu::before {
  background-image: url('/assets/images/hero-programu.jpg');
}
.page-hero--kasino::before {
  background-image: url('/assets/images/hero-kasino.jpg');
}
.page-hero--malipo::before {
  background-image: url('/assets/images/hero-malipo.jpg');
}
.page-hero--usajili::before {
  background-image: url('/assets/images/hero-usajili.jpg');
}
.page-hero--ingia::before {
  background-image: url('/assets/images/hero-ingia.jpg');
}

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--orange), #ff9500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 6px; }
.step-content p { color: var(--gray2); font-size: 0.95rem; }

/* ── FEATURES LIST ── */
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,107,0,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-text h4 { font-size: 0.97rem; margin-bottom: 3px; }
.feature-text p { font-size: 0.88rem; color: var(--gray2); }

/* ── INFO BOX ── */
.info-box {
  background: rgba(255,107,0,0.08);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius2) var(--radius2) 0;
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--gray2);
  font-size: 0.95rem;
}
.info-box strong { color: var(--white); }

/* ── COMPARISON TABLE ── */
.comp-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th { background: var(--navy3); padding: 16px 20px; font-size: 0.88rem; text-align: center; border-bottom: 1px solid var(--border); }
.comp-table th:first-child { text-align: left; }
.comp-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 0.93rem; color: var(--gray2); }
.comp-table td:first-child { text-align: left; color: var(--white); font-weight: 500; }
.comp-table .highlight { background: rgba(255,107,0,0.08); }
.comp-table .highlight td:first-child { color: var(--orange); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--orange); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: var(--gray); font-size: 0.82rem; }
.footer-disclaimer {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius2);
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.6;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #f87171;
  color: #f87171;
  font-weight: 800;
  font-size: 0.78rem;
}

/* ── CHART BARS (visual) ── */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; margin: 24px 0; }
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--orange), var(--orange2));
  transition: height 1.2s ease;
  min-height: 20px;
}
.bar.alt { background: linear-gradient(180deg, var(--gold), #e6a500); }
.bar-label { font-size: 0.75rem; color: var(--gray); text-align: center; }
.bar-val { font-size: 0.78rem; font-weight: 700; color: var(--orange); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── ARTICLE CONTENT ── */
.article-content h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--white); }
.article-content h3 { font-size: 1.25rem; margin: 30px 0 12px; color: var(--gray2); }
.article-content p { margin-bottom: 18px; color: var(--gray2); font-size: 1rem; }
.article-content ul { margin: 16px 0 20px 24px; list-style: disc; }
.article-content ul li { margin-bottom: 8px; color: var(--gray2); }
.article-content strong { color: var(--white); }


/* ── SKIP LINK (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius2) var(--radius2);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  color: var(--white);
}
/* ── MOBILE RESPONSIVE ── */
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 767px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn { display: none; }
  .mobile-cta { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 52px 0; }
  .author-block { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .bar-chart { height: 130px; }
  .main-nav.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy2); border-bottom: 1px solid var(--border); padding: 16px; z-index: 998; }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open ul li a { display: block; padding: 12px 16px; font-size: 1rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .bonus-amount { font-size: 2.5rem; }
  .step { flex-direction: column; }
}
