/* ══════════════════════════════════════════════
   NCDC Brand Overrides — Nigeria Health Portal
   assets/css/ncdc.css
══════════════════════════════════════════════ */
:root {
  --ncdc-green:   #006633;
  --ncdc-dark:    #004422;
  --ncdc-mid:     #007a3d;
  --ncdc-light:   #e8f5ee;
  --ncdc-gold:    #FFD700;
  --ncdc-gold2:   #e6c200;
  --ncdc-text:    #1a2e1a;
  --font-main:    'Poppins', sans-serif;
  --font-display: 'Sora', sans-serif;
}

* { box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--ncdc-text); }

/* ── Gov Banner ────────────────────────────── */
/* Fixed above the header (z-index 1031 > Bootstrap fixed-top 1030) */
.gov-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
  background: var(--ncdc-dark);
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  padding: 6px 0;
  letter-spacing: .02em;
}
.gov-banner .flag-stripe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flag-ng {
  display: inline-flex;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.flag-ng span { flex: 1; }
.flag-ng .g { background: #008751; }
.flag-ng .w { background: #fff; }

/* ── Navigation ────────────────────────────── */

/* Override template variables so links are visible on the white header */
:root {
  --nav-color:       #2d2d2d;
  --nav-hover-color: var(--ncdc-green);
  --nav-font:        'Poppins', sans-serif;
}

/* Push the fixed header below the gov-banner (~30px tall) */
.header.fixed-top {
  top: 30px !important;
}

.header {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,102,51,.1) !important;
  border-bottom: 3px solid var(--ncdc-green);
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-emblem {
  height: 46px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  padding: 4px 6px;
  background: #fff;
  flex-shrink: 0;
  display: block;
}
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; color: var(--ncdc-green); font-size: .88rem; font-weight: 800; }
.logo-text small  { display: block; color: #888; font-size: .65rem; font-weight: 400; }

/* Nav links — colour, weight, size (desktop only) */
@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus {
    color: #2d2d2d !important;
    font-weight: 500 !important;
    font-size: .85rem !important;
  }

  /* Hover & active state */
  .navmenu a:hover,
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--ncdc-green) !important;
  }

  /* Active underline uses NCDC green */
  .navmenu > ul > li > a::before {
    background-color: var(--ncdc-green) !important;
  }
}

/* ── "Start Declaration" button in nav ─────── */
/* Use a higher-specificity selector (0,2,1) to beat .navmenu a (0,1,1) */
.navmenu a.btn-declare,
.navmenu a.btn-declare:focus {
  background: var(--ncdc-green) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
  transition: background .2s, box-shadow .2s;
  line-height: 1 !important;
}
.navmenu a.btn-declare:hover {
  background: var(--ncdc-dark) !important;
  box-shadow: 0 4px 12px rgba(0,102,51,.3);
  color: #fff !important;
}

/* Remove the slide-in underline from the button */
.navmenu > ul > li > a.btn-declare::before { display: none !important; }

/* ── Mobile nav overrides (< 1200px) ──────── */
@media (max-width: 1199px) {
  /* Hide gov-banner — too cramped on mobile */
  .gov-banner { display: none !important; }

  /* Header moves back to top:0 since banner is gone */
  .header.fixed-top { top: 0 !important; }

  /* CRITICAL: remove backdrop-filter — it makes .header a containing block
     for position:fixed children, which traps the mobile nav overlay inside
     the header box (causing the hero to cover the dropdown). */
  .header { backdrop-filter: none !important; }

  /* Ensure the fixed mobile-nav overlay sits above everything */
  .mobile-nav-active .navmenu { z-index: 1050 !important; }

  /* Hamburger icon colour — dark on white header */
  .mobile-nav-toggle { color: var(--ncdc-green) !important; }

  /* Dropdown panel: start below the header (~70px from viewport top) */
  .navmenu ul {
    inset: 70px 16px 16px 16px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,102,51,.15) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.15) !important;
  }

  /* Mobile link text — restore readable size and correct colour */
  .navmenu a,
  .navmenu a:focus {
    color: #1a2e1a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
  }

  /* Mobile hover / active */
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--ncdc-green) !important;
  }

  /* "Start Declaration" button — full width in mobile panel */
  .navmenu a.btn-declare,
  .navmenu a.btn-declare:focus {
    margin: 10px 20px !important;
    border-radius: 8px !important;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 15px !important;
  }

  /* Reduce hero top padding since banner is hidden on mobile */
  .hero { padding-top: 100px !important; }
}

/* ── Hero ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--ncdc-dark) 0%, var(--ncdc-green) 55%, #009944 100%) !important;
  min-height: auto;
  padding-top: 225px !important;
  padding-bottom: 145px !important;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg-2.jpg') center/cover no-repeat;
  opacity: .07;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,.15);
  border: 1px solid rgba(255,215,0,.4);
  color: var(--ncdc-gold);
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--ncdc-gold); }
.hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.btn-hero-primary {
  background: var(--ncdc-gold);
  color: var(--ncdc-dark);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: var(--ncdc-gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,.3);
  color: var(--ncdc-dark);
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 8px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-hero-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* Hero info pills */
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-pill i { color: var(--ncdc-gold); font-size: .9rem; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 32px 28px;
  color: #fff;
}
.hero-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ncdc-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .88rem;
  color: rgba(255,255,255,.9);
}
.step-list li:last-child { border: none; padding-bottom: 0; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ncdc-gold);
  color: var(--ncdc-dark);
  font-weight: 800;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-list li strong { display: block; font-weight: 600; margin-bottom: 2px; color: #fff; }
.step-list li span { font-size: .78rem; color: rgba(255,255,255,.65); }

/* Hero wave */
.hero .hero-waves { bottom: 0 !important; }

/* ── Stats ─────────────────────────────────── */
.stats-section {
  background: var(--ncdc-green);
  padding: 50px 0;
}
.stat-item { text-align: center; padding: 10px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ncdc-gold);
  display: block;
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 500; margin-top: 6px; display: block; }
.stat-divider { border-left: 1px solid rgba(255,255,255,.15); height: 60px; margin: auto; }

/* ── About ─────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ncdc-green);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--ncdc-green);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ncdc-text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--ncdc-green); }

.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--ncdc-green);
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,102,51,.3);
}
.about-img-badge .num { font-size: 2rem; font-weight: 800; display: block; }
.about-img-badge .text { font-size: .72rem; opacity: .85; display: block; }

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.about-feature:last-child { border: none; }
.about-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ncdc-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ncdc-green);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.about-feature h5 { font-size: .92rem; font-weight: 700; color: var(--ncdc-text); margin: 0 0 3px; }
.about-feature p { font-size: .82rem; color: #666; margin: 0; line-height: 1.5; }

/* ── How It Works ──────────────────────────── */
.how-section { background: var(--ncdc-light); }
.how-step-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  position: relative;
  box-shadow: 0 2px 16px rgba(0,102,51,.06);
  transition: transform .25s, box-shadow .25s;
}
.how-step-card:hover { transform: translateY(-6px); box-shadow: 0 10px 32px rgba(0,102,51,.12); }
.how-step-card .step-connector {
  position: absolute;
  top: 50px;
  right: -24px;
  color: var(--ncdc-green);
  font-size: 1.4rem;
  opacity: .35;
  z-index: 2;
}
@media (max-width: 991px) { .how-step-card .step-connector { display: none; } }
.step-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ncdc-green), var(--ncdc-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0,102,51,.25);
}
.step-number-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--ncdc-gold);
  color: var(--ncdc-dark);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step-card h4 { font-size: 1rem; font-weight: 700; color: var(--ncdc-text); margin-bottom: 10px; }
.how-step-card p { font-size: .83rem; color: #666; line-height: 1.6; margin: 0; }

/* ── Features Grid ─────────────────────────── */
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  height: 100%;
  border: 1px solid #eef4ee;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.feature-card:hover {
  border-color: var(--ncdc-green);
  box-shadow: 0 6px 24px rgba(0,102,51,.1);
  transform: translateY(-4px);
}
.feature-card .fi {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h4 { font-size: .95rem; font-weight: 700; color: var(--ncdc-text); margin-bottom: 8px; }
.feature-card p { font-size: .8rem; color: #777; line-height: 1.6; margin: 0; }

/* ── Ports Section ─────────────────────────── */
.ports-section { background: var(--ncdc-dark); }
.port-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 18px 20px;
  color: rgba(255,255,255,.85);
  transition: all .2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.port-card:hover { background: rgba(255,255,255,.1); border-color: var(--ncdc-gold); }
.port-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,215,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ncdc-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.port-card h5 { font-size: .85rem; font-weight: 700; color: #fff; margin: 0 0 3px; }
.port-card span { font-size: .74rem; color: rgba(255,255,255,.55); }

/* ── FAQ ───────────────────────────────────── */

/* Repoint template's accent colour to NCDC green inside the FAQ section */
.faq-section {
  --accent-color: var(--ncdc-green);
}

/* Item card */
.faq-section .faq-container .faq-item {
  border: 1px solid #e0edea;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,102,51,.06) !important;
  margin-bottom: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.faq-section .faq-container .faq-item:last-child { margin-bottom: 0; }

/* Question text */
.faq-section .faq-container .faq-item h3 {
  font-size: .92rem !important;
  font-weight: 600 !important;
  color: var(--ncdc-text) !important;
  line-height: 1.5 !important;
}
.faq-section .faq-container .faq-item h3:hover { color: var(--ncdc-green) !important; }

/* Answer text */
.faq-section .faq-container .faq-item .faq-content p {
  font-size: .85rem;
  color: #555;
  line-height: 1.7;
}

/* Icon left */
.faq-section .faq-container .faq-item .faq-icon {
  color: var(--ncdc-green) !important;
}

/* Toggle chevron */
.faq-section .faq-container .faq-item .faq-toggle { color: #aaa; }
.faq-section .faq-container .faq-item .faq-toggle:hover { color: var(--ncdc-green); }

/* Active / open state */
.faq-section .faq-container .faq-active {
  border-color: var(--ncdc-green) !important;
  box-shadow: 0 4px 20px rgba(0,102,51,.12) !important;
}
.faq-section .faq-container .faq-active h3 { color: var(--ncdc-green) !important; }
.faq-section .faq-container .faq-active .faq-toggle { color: var(--ncdc-green) !important; }

/* ── Alert Banner ──────────────────────────── */
.alert-banner {
  background: linear-gradient(90deg, #fff8e1, #fffde7);
  border-left: 5px solid var(--ncdc-gold);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.alert-banner .alert-icon { color: #f59f00; font-size: 1.5rem; flex-shrink: 0; }
.alert-banner h5 { font-size: .9rem; font-weight: 700; color: #664d03; margin: 0 0 4px; }
.alert-banner p { font-size: .8rem; color: #856404; margin: 0; line-height: 1.5; }

/* ── Ports Section — dark background fixes ─── */
/* Make the decorative line before section labels gold on dark background */
.ports-section .section-label::before {
  background: rgba(255, 215, 0, 0.8);
}

/* ── CTA Section ───────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--ncdc-green) 0%, var(--ncdc-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.cta-section h2 { font-family: var(--font-display); color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* Badge inside CTA section (dark green background — needs explicit light colours) */
.cta-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* ── Emergency Section ─────────────────────── */
.emergency-card {
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  text-align: center;
}
.emergency-card .eci { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.emergency-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.emergency-card .phone { font-size: 1.5rem; font-weight: 800; display: block; margin: 10px 0; }
.emergency-card p { font-size: .8rem; color: #777; margin: 0; }

/* ── Footer ────────────────────────────────── */
.footer {
  background: #021a0e !important;
  padding-top: 50px !important;
}
.footer-brand .sitename { font-family: var(--font-display) !important; color: var(--ncdc-gold) !important; }
.footer-links h4 { color: var(--ncdc-gold); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links a { color: rgba(255,255,255,.65) !important; font-size: .83rem; display: block; margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover { color: var(--ncdc-gold) !important; padding-left: 4px; }
.footer-contact { color: rgba(255,255,255,.65); font-size: .83rem; line-height: 1.8; }
.footer-contact strong { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; margin-top: 30px; }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .78rem; margin: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all .2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--ncdc-gold); border-color: var(--ncdc-gold); color: var(--ncdc-dark); }

/* ── Preloader ────────────────────────────── */
#preloader {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide the default CSS spinner */
#preloader::before {
  display: none;
}

/* Show the custom logo image instead */
#preloader::after {
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background: url('../img/preloader-loader.png') center / contain no-repeat;
  animation: ncdc-pulse 1.2s ease-in-out infinite;
}

@keyframes ncdc-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: .6; transform: scale(0.88); }
}

/* ── Scroll top ───────────────────────────── */
.scroll-top { background: var(--ncdc-green) !important; }
.scroll-top:hover { background: var(--ncdc-dark) !important; }

/* ── Utility ──────────────────────────────── */
.text-ncdc { color: var(--ncdc-green); }
.bg-ncdc-light { background: var(--ncdc-light); }
.divider-green { border-color: var(--ncdc-green); opacity: 1; }

@media (max-width: 768px) {
  .about-img-badge { bottom: 10px; right: 10px; padding: 12px 16px; }
}
