/* =========================================================
   CIHO / Mbale Community Health — Maintenance page
   Brand colours taken from the live site's Elementor footer
   ========================================================= */
:root {
  --navy: #002866;
  --navy-deep: #001a44;
  --navy-soft: #4D6995;
  --yellow: #FFEE00;
  --red: #D8232A;          /* from the logo ribbon text */
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, .72);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------------- HEADER ---------------- */
.site-header { position: relative; z-index: 10; }

.hazard-ribbon {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 18px,
    var(--navy) 18px 36px
  );
  background-size: 51px 51px;
  animation: ribbon-move 1.6s linear infinite;
}
@keyframes ribbon-move { to { background-position: 51px 0; } }

.status-bar {
  background: var(--yellow);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem 0;
}
.status-chip { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(216, 35, 42, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 35, 42, .6); }
  70%  { box-shadow: 0 0 0 10px rgba(216, 35, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 35, 42, 0); }
}

.main-nav {
  background: var(--white);
  padding: .6rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.brand-logo { height: 62px; width: auto; }
.brand-name {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.brand-sub { color: var(--navy-soft); font-size: .78rem; font-weight: 500; }

.btn-notify {
  background: var(--navy);
  color: var(--white);
  border-radius: 50px;
  padding: .55rem 1.25rem;
  font-weight: 600;
}
.btn-notify:hover { background: var(--yellow); color: var(--navy); }

/* ---------------- HERO ---------------- */
.hero {
  flex: 1 0 auto;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(77, 105, 149, .45), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 238, 0, .10), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-bg .gear {
  position: absolute;
  color: rgba(255, 255, 255, .05);
  line-height: 1;
}
.gear-1 { font-size: 22rem; top: -6rem; left: -6rem; animation: spin 40s linear infinite; }
.gear-2 { font-size: 14rem; bottom: -4rem; right: -3rem; animation: spin 28s linear infinite reverse; }
.gear-3 { font-size: 9rem; top: 30%; right: 12%; color: rgba(255, 238, 0, .06); }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  display: inline-block;
  background: rgba(255, 238, 0, .12);
  color: var(--yellow);
  border: 1px solid rgba(255, 238, 0, .35);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title .highlight { color: var(--yellow); }

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ---------------- COUNTDOWN ---------------- */
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.cd-box {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  width: 130px;
  padding: 1.25rem .5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cd-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--yellow);
}
.cd-num {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-num.tick { animation: tick .35s ease; }
@keyframes tick {
  0%   { transform: translateY(-6px); opacity: .3; }
  100% { transform: translateY(0);    opacity: 1; }
}
.cd-label {
  margin-top: .5rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  font-weight: 600;
}
.cd-sep {
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .35);
  padding-top: 1.1rem;
}

/* ---------------- PROGRESS ---------------- */
.progress-wrap {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: left;
  color: var(--text-muted);
}
.progress {
  height: 12px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50px;
}
.progress-bar {
  background: linear-gradient(90deg, var(--yellow), #ffd000);
  border-radius: 50px;
  transition: width 1s ease;
}
.milestones {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .9rem;
  font-size: .78rem;
}
.ms i { color: rgba(255, 255, 255, .25); }
.ms.done { color: var(--white); }
.ms.done i { color: var(--yellow); }

.done-msg {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

/* ---------------- NOTIFY ---------------- */
.notify-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 1.75rem;
  max-width: 640px;
  margin: 0 auto;
  scroll-margin-top: 2rem;
}
.notify-card .form-control {
  border-radius: 50px;
  border: none;
  padding-left: 1.25rem;
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  font-weight: 700;
}
.btn-yellow:hover, .btn-yellow:focus { background: var(--white); color: var(--navy); }
.form-thanks { color: var(--yellow); font-weight: 600; margin-top: .75rem; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--navy);
  color: var(--text-muted);
  border-top: 4px solid var(--yellow);
}
.footer-logo {
  height: 90px;
  width: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 12px;
}
.footer-tagline { font-size: .95rem; max-width: 300px; }
.footer-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background: var(--yellow);
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover, .footer-bottom a:hover { color: var(--yellow); }
.footer-links a::before { content: "\203A"; margin-right: .5rem; color: var(--yellow); }

.footer-social { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: all .2s;
}
.footer-social a:hover { background: var(--yellow); color: var(--navy); transform: translateY(-3px); }

.newsletter-form .form-control {
  border-radius: 50px;
  border: none;
  padding: .6rem 1.1rem;
}

.footer-bottom {
  background: var(--navy-deep);
  padding: 1rem 0;
  font-size: .85rem;
}
.footer-bottom a { color: var(--white); }
.footer-bottom-links a { margin-left: 1.25rem; }
.footer-bottom-links a:first-child { margin-left: 0; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 767.98px) {
  .hero { padding: 3rem 0; }
  .countdown { gap: .4rem; }
  .cd-box { width: 74px; padding: .9rem .25rem .7rem; border-radius: 14px; }
  .cd-num { font-size: 1.9rem; }
  .cd-label { font-size: .62rem; letter-spacing: 1px; }
  .cd-sep { font-size: 1.5rem; padding-top: .7rem; }
  .brand-logo { height: 48px; }
  .milestones { flex-direction: column; }
  .footer-bottom { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
