 :root{
  --bg:#0c1018;
  --panel:#0f1b33;
  --text:#eaf0ff;
  --muted:#374151;
  --accent:#3aa0ff;
  --accent2:#22c55e;
  --border:rgba(255,255,255,.10);
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f3f4f6;      /* light grey */
  color: #000000;          /* black text */
  line-height: 1.6;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin:0 auto; }

.topbar{
  border-bottom:1px solid var(--border);
  background: rgba(11,18,32,.8);
  backdrop-filter: blur(8px);
}
.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.55rem 0;
  font-size:.95rem;
  color:var(--muted);
}
.topbar-links{ display:flex; gap:14px; align-items:center; }

.header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    #033c7e 0%,
    #044094 100%
  );
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: .9rem 0;
  gap: 18px;
}
.brand{ display:flex; gap:10px; align-items:center; }
.brand-mark{
  width:40px; height:40px;
  display:grid; place-items:center;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(255,255,255,.06);
  font-weight:700;
}
.brand-text{ font-weight:700; letter-spacing:.2px; }

.menu{ display:flex; gap:18px; flex-wrap:wrap; justify-content:flex-end; }
.menu a{ color:var(--muted); }
.menu a:hover{ color:var(--text); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.85rem 1.1rem;
  border-radius:14px;
  border:1px solid rgba(58,160,255,.35);
  background: linear-gradient(180deg, rgba(58,160,255,.25), rgba(58,160,255,.10));
  color:var(--text);
  font-weight:600;
  box-shadow: var(--shadow);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-ghost{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow:none;
}
.btn-sm{ padding:.45rem .8rem; border-radius:12px; box-shadow:none; }

.hero{ padding: 4.2rem 0 2.4rem; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items:stretch;
}
.kicker{
  display:inline-block;
  color: var(--accent2);
  font-weight:700;
  letter-spacing:.3px;
  margin:0 0 .6rem;
}
.hero h1{ font-size: clamp(2.2rem, 4vw, 3.2rem); margin:.1rem 0 .6rem; }
.subtitle{ color:var(--muted); font-size:1.08rem; max-width: 55ch; }

.cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 1.3rem 0 1.6rem; }

.stats{
  display:flex; gap:14px; flex-wrap:wrap;
}
.stat{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  padding:.8rem .95rem;
  border-radius:16px;
}
.stat-num{ display:block; font-weight:800; font-size:1.15rem; }
.stat-label{ color:var(--muted); font-size:.92rem; }
.hero-photo{ width:100%; height:100%; object-fit:cover; display:block; }

.hero-card{
  border:1px solid var(--border);
  border-radius:22px;
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  place-items:center;
  min-height: 360px;
}
.photo-placeholder{
  text-align:center;
  color: var(--muted);
}
.photo-placeholder span{
  display:block;
  font-weight:700;
  color: var(--text);
  margin-bottom:.3rem;
}

.section{ padding: 3.5rem 0; }
.section.alt{ background: rgba(255,255,255,.03); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.section-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items:start;
}
.section h2{ margin:0 0 .7rem; font-size:1.9rem; }
.lead{ color:var(--muted); font-size:1.06rem; }

.section-head{ margin-bottom: 1.2rem; }
.muted{ color:var(--muted); }
.small{ font-size:.92rem; }

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius:18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.card h3{ margin:.2rem 0 .4rem; }
.tag{
  display:inline-block;
  font-size:.82rem;
  color: var(--accent);
  border: 1px solid rgba(58,160,255,.35);
  padding:.2rem .55rem;
  border-radius:999px;
  margin:0 0 .7rem;
}

.checklist, .bullets{
  margin:.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.checklist li{ margin:.35rem 0; }

.form label{
  display:block;
  margin: .65rem 0;
  color: var(--muted);
  font-size:.95rem;
}
input, textarea{
  width:100%;
  margin-top:.35rem;
  padding:.75rem .85rem;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(11,18,32,.65);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(58,160,255,.55);
}

.contact-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.1rem;
}
.mini-card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius:16px;
  padding: .9rem;
}

.footer{
  border-top:1px solid var(--border);
  padding: 1.8rem 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 900px){
  .section-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .contact-cards{ grid-template-columns: 1fr; }
  .menu{ justify-content:flex-start; }
}

/* Candidate photo */
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}
.hero-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 320px;
  }
}
/* Campaign Cover Wallpaper */
.cover-wallpaper{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255,122,0,.35);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.cover-wallpaper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay text */
.cover-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.05),
    rgba(6,18,37,.75)
  );
}

.cover-overlay h3{
  margin: 0;
  font-size: 1.6rem;
  color: #fff;
}

.cover-overlay p{
  margin: 4px 0 14px;
  color: var(--muted);
  font-weight: 600;
}
/* HERO with running wallpapers behind */
.hero{
  position: relative;
  overflow: hidden;
}

/* Wallpapers layer */
.hero-wallpapers{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-wallpapers img.wallpaper{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity 1.6s ease-in-out;
  transform: scale(1.03);
}

/* show current wallpaper */
.hero-wallpapers img.wallpaper.active{
  opacity:1;
}

 

/* bring content above wallpapers */
.hero-inner{
  position: relative;
  z-index:2;
  padding: 4.2rem 0 2.4rem;
}
/* Candidate photo pinned top-right */
.hero-float{
  position:absolute;
  top: 110px;      /* adjust */
  right: 4%;
  width: 360px;    /* size */
  height: 360px;   /* size */
  min-height: 0;   /* override old min-height */
  border-radius: 22px;
  overflow:hidden;
}

/* ensure image fills the box */
.hero-photo{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Give hero text space so it doesn't hide under the photo */
.hero-copy{
  max-width: 650px;
  padding-right: 420px; /* makes room for the floating photo */
}

@media (max-width: 900px){
  .hero-float{
    position: static;
    width: 100%;
    height: 380px;
    margin-top: 18px;
  }
  .hero-copy{
    padding-right: 0;
    max-width: 100%;
  }
}
/* ===== HERO PATCH: wallpapers + floating photo (FINAL) ===== */

/* Ensure hero is the positioning parent */
.hero{
  position: relative !important;
  overflow: hidden !important;
  padding: 4.2rem 0 2.4rem !important;
}


/* Wallpapers behind */
.hero-wallpapers{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wallpapers img.wallpaper{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  z-index: 0;
   transform: scale(1.02);            /* start zoom */
  will-change: opacity, transform;
}

.hero-wallpapers img.wallpaper.active{
  opacity: 1;
  z-index: 1;
}

/* Dark overlay */
.hero::after{
  background: linear-gradient(
    90deg,
    rgba(7,20,39,.60) 0%,
    rgba(7,20,39,.40) 45%,
    rgba(7,20,39,.25) 100%
  );
}

/* Keep hero content above overlay */
.hero-grid{
  position: relative;
  z-index: 2;
  padding: 4.2rem 0 2.4rem;
}

/* Candidate photo small + top-right */
.hero-card.hero-float{
  position: absolute;
  top: 95px;
  right: 4%;
  width: 320px;
  height: 320px;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  z-index: 3;
  place-items: unset;
}

/* Image fills card */
.hero-card.hero-float .hero-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  border-radius: 0; /* card already rounded */
}

/* Give text room so it won't hide behind photo */
.hero-copy{
  max-width: 650px;
  padding-right: 360px;
}

/* Mobile: stack photo normally */
@media (max-width: 900px){
  .hero-card.hero-float{
    position: static;
    width: 100%;
    height: 380px;
    margin-top: 18px;
  }
  .hero-copy{ padding-right: 0; max-width: 100%; }
}
/* ===== END HERO PATCH ===== */
.hero h1{
  line-height: 1.05;
  word-break: normal;
}
.hero h1{
  white-space: nowrap;     /* prevents line break */
}
/* Arrange 6+ and All horizontally */
.stats{
  display: flex;
  flex-direction: row;
  gap: 16px;          /* space between cards */
  align-items: center;
}
/* FORCE stats to stay horizontal */
.stats{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;   /* 🔥 KEY */
  gap: 16px;
  align-items: center;
}

/* Prevent stat cards from stretching full width */
.stats .stat{
  width: auto !important;
  white-space: nowrap;
}
/* Highlight 2027 in green */
.stat-2027 .stat-num{
  color: #22c55e;          /* green */
}

.stat-2027 .stat-label{
  color: #86efac;          /* lighter green */
}
.hero-copy{
  background: rgba(0, 0, 0, 0.55);   /* dark glass */
  padding: 24px 28px;
  border-radius: 18px;
  backdrop-filter: blur(4px);       /* optional but classy */
  max-width: 680px;
}
@keyframes quartzGlow {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(34,197,94,0);
  }
  10% {
    opacity: 0.4;
    box-shadow: 0 0 14px rgba(34,197,94,.9);
  }
  20% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(34,197,94,0);
  }
  100% {
    opacity: 1;
  }
}

.stat-2027.quartz-blink{
  animation: quartzGlow 1s steps(1, end) infinite;
  border-color: #22c55e;
}
.footer-social{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

/* base icon container */
.footer-social .social{
  width: 50px;
  height: 50px;
  border-radius: 14px;              /* modern, professional */
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  color: #ffffff;
  text-decoration: none;

  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* hover effect */
.footer-social .social:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

/* brand colors */
.footer-social .facebook{
  background: #1877f2;
}

.footer-social .x{
  background: #000000;
}

.footer-social .youtube{
  background: #ff0000;
}

.footer-social .tiktok{
  background: linear-gradient(135deg, #25f4ee, #000000, #fe2c55);
}
.footer{
  background: #f3f4f6;                    /* same as body */
  color: #000000;
  padding: 2rem 0;
  border-top: 1px solid #0a1f3d;          /* thin dark blue line */
}
/* ===== HEADER TEXT OVERRIDES ===== */

/* Brand name "Martin Moshisho" */
.header .brand-text{
  color: #ffffff !important;
}

/* Menu links */
.header .menu a{
  color: #ffffff !important;
}

/* Menu hover (still visible) */
.header .menu a:hover{
  color: #22c55e !important; /* green accent */
}

/* Optional: brand icon letter */
.header .brand-mark{
  color: #ffffff;
  border-color: rgba(255,255,255,.35);
}
button,
.btn,
input[type="submit"]{
  background: #0a1f3d;     /* dark blue */
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
.btn:hover,
input[type="submit"]:hover{
  background: #22c55e;     /* green hover */
  color: #ffffff;
}
/* Volunteer form inputs */
input,
textarea,
select{
  background: #ffffff !important;   /* white writing area */
  color: #000000 !important;        /* black text */
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
}

/* Placeholder text */
input::placeholder,
textarea::placeholder{
  color: #6b7280;
}

/* Focus state */
input:focus,
textarea:focus,
select:focus{
  outline: none;
  border-color: #0a1f3d;
  box-shadow: 0 0 0 3px rgba(10,31,61,.15);
}
.video-wrap{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
  background: #000;
}

.video-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.fb-video-wrap{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
  background: #000;
}

.fb-video-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ===== HERO TEXT COLORS (FINAL) ===== */

/* Green kicker */
.hero .kicker{
  color: #22c55e !important;   /* green */
}

/* Main name */
.hero h1,
.hero .hero-copy h1{
  color: #ffffff !important;
}

/* All other hero text */
.hero p,
.hero .subtitle,
.hero .stat,
.hero .stat-label{
  color: rgba(255,255,255,.92) !important;
}

/* Stat numbers */
.hero .stat-num{
  color: #08a830 !important;
}
/* ===== HERO MOBILE FIX (PASTE LAST) ===== */
@media (max-width: 768px){

  /* HERO spacing */
  .hero{
    padding: 2rem 0 1.4rem !important;
  }

  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* allow the name to wrap */
  .hero h1{
    white-space: normal !important;
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
  }

  /* hero paragraph readable */
  .hero .subtitle,
  .hero p{
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  /* remove desktop right padding (space for floating photo) */
  .hero-copy{
    padding-right: 0 !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
  }

  /* buttons look better full width on phone */
  .cta{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .cta .btn{
    width: 100% !important;
  }

  /* stats should wrap nicely in 2 columns */
  .stats{
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .stats .stat{
    width: calc(50% - 5px) !important;
    white-space: normal !important;
  }

  /* stop floating photo on mobile */
  .hero-card.hero-float,
  .hero-float{
    position: static !important;
    width: 100% !important;
    height: 300px !important;
    margin-top: 14px !important;
  }

  .hero-card.hero-float .hero-photo{
    border-radius: 22px !important;
  }
}
@media (max-width: 768px){
  .hero-wallpapers{ min-height: 760px; }
}
/* ===== HERO MOBILE FIX (PASTE LAST) ===== */
@media (max-width: 768px){

  .hero{
    padding: 1.6rem 0 1.2rem !important;
  }

  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Allow name to wrap */
  .hero h1{
    white-space: normal !important;
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }

  /* Remove desktop spacing */
  .hero-copy{
    padding-right: 0 !important;
    max-width: 100% !important;
    padding: 16px !important;
  }

  /* Buttons full width */
  .cta{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .cta .btn{
    width: 100% !important;
  }

  /* Stats wrap nicely */
  .stats{
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .stats .stat{
    width: calc(50% - 5px) !important;
    white-space: normal !important;
  }

  /* Photo should sit below and not float */
  .hero-card.hero-float{
    position: static !important;
    width: 100% !important;
    height: 300px !important;
    margin-top: 10px !important;
  }

/* =========================
   HAMBURGER (DESKTOP SAFE)
   ========================= */

/* Desktop default */
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Mobile only */
@media (max-width: 768px) {
  .menu { display: none !important; }          /* hide desktop menu on phone */
  .menu-toggle { display: block !important; }  /* show hamburger on phone */
  .mobile-menu { display: block; }             /* allow panel to exist */
}

/* Hamburger button */
.menu-toggle{
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span{
  display: block;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  border-radius: 99px;
}

/* Slide-in panel */
.mobile-menu{
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: #0b3b78;
  padding: 90px 20px 20px;
  transition: right .3s ease;
  z-index: 1000;
}

.mobile-menu.active{ right: 0; }

.mobile-menu a{
  display: block;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
