/* Wesearch — Africa's Research Intelligence Platform
   Main Stylesheet
   ============================================================ */

/* ============================================================
   RESET & ROOT
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #062847;
  --navy-mid: #0a3d6b;
  --navy-light: #0d4a85;
  --green: #1a7a4a;
  --green-light: #22a062;
  --green-pale: rgba(26,122,74,0.08);
  --white: #ffffff;
  --off-white: #f8f9fb;
  --off-white2: #f1f4f8;
  --text-body: #2d3748;
  --text-muted: #6b7a8d;
  --border: #e2e8f0;
  --border-dark: #c9d3df;
  --shadow-sm: 0 2px 8px rgba(6,40,71,0.07);
  --shadow-md: 0 6px 24px rgba(6,40,71,0.11);
  --shadow-lg: 0 16px 48px rgba(6,40,71,0.16);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   PAGE SYSTEM
   ============================================================ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ============================================================
   NAV
   ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.5px;
  cursor: pointer; flex-shrink: 0;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  opacity: 0.75; transition: opacity 0.2s;
  cursor: pointer; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border-dark);
  padding: 8px 20px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--navy); background: var(--off-white); }
.btn-nav-cta {
  background: var(--navy); color: var(--white);
  border: none; padding: 9px 22px;
  border-radius: 6px; font-size: 0.875rem;
  font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--navy-mid); }

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--green); color: var(--white);
  border: 2px solid var(--green);
  padding: 14px 32px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--green-light); border-color: var(--green-light); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
  padding: 14px 32px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, transform 0.15s;
  opacity: 0.75; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(6,40,71,0.05); opacity: 1; transform: translateY(-1px); }
.btn-outline-green {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
  padding: 10px 24px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-outline-green:hover { background: var(--green-pale); }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.75; font-weight: 400;
}
.tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.tag-navy { background: var(--navy); color: var(--white); }
.tag-green { background: var(--green); color: var(--white); }
.tag-outline { background: transparent; border: 1px solid var(--border-dark); color: var(--text-muted); }
.tag-health { background: #e8f4ff; color: #0a5fa0; }
.tag-economy { background: #fff4e0; color: #8a5200; }
.tag-governance { background: #f0ebff; color: #5a21b5; }
.tag-society { background: #e8fff3; color: #1a6e40; }

/* ============================================================
   PAGE 1: HOMEPAGE
   ============================================================ */
.hero {
  padding: 110px 5% 100px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(26,122,74,0.2);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.12; letter-spacing: -1.5px;
  max-width: 820px; margin: 0 auto 26px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 44px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 56px;
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.trust-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Standards */
.standards { background: var(--off-white); padding: 96px 5%; }
.standards-inner { max-width: 1200px; margin: 0 auto; }
.standards-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.standards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.standard-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.standard-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--green);
}
.standard-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.standard-icon {
  width: 42px; height: 42px; background: var(--green-pale);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px; font-size: 1.2rem;
}
.standard-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.standard-card p { font-size: 0.855rem; color: var(--text-muted); line-height: 1.65; }

/* Featured Study */
.featured-study { padding: 96px 5%; background: var(--white); }
.featured-study-inner { max-width: 1100px; margin: 0 auto; }
.study-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: start;
  position: relative; overflow: hidden;
}
.study-card::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(26,122,74,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.study-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.3; margin: 14px 0 14px;
  max-width: 600px;
}
.study-meta-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.meta-pill {
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.meta-pill strong { color: var(--text-body); font-weight: 600; }
.study-description { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; max-width: 580px; }
.study-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.study-side { min-width: 180px; }
.study-side-stat {
  background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 28px 24px;
  text-align: center;
}
.study-side-stat .big { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 800; line-height: 1; color: #5dbb8b; }
.study-side-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 6px; line-height: 1.4; }

/* Data Library Home Section */
.home-library { padding: 96px 5%; background: var(--off-white); }
.home-library-inner { max-width: 1200px; margin: 0 auto; }
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.lib-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  cursor: pointer; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column; min-height: 210px;
}
.lib-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--navy); }
.lib-icon {
  width: 38px; height: 38px; background: var(--navy);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; font-size: 1rem; color: var(--white);
}
.lib-card h3 { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.lib-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.lib-card .lib-arrow { margin-top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--green); }

/* Nigeria Pulse Home */
.home-pulse { padding: 96px 5%; background: var(--navy); }
.home-pulse-inner { max-width: 1100px; margin: 0 auto; }
.home-pulse .section-label { color: #5dbb8b; }
.home-pulse .section-title { color: var(--white); }
.home-pulse .section-sub { color: rgba(255,255,255,0.6); max-width: 500px; }
.waves-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.wave-block { }
.wave-heading {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #5dbb8b; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.wave-heading::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.stat-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 14px 16px;
  background: rgba(255,255,255,0.04); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
}
.stat-row .slabel { font-size: 0.855rem; color: rgba(255,255,255,0.72); max-width: 210px; }
.stat-pct { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-pct.up { color: #5dbb8b; }
.pulse-cta { margin-top: 40px; text-align: center; }
.pulse-topic-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pulse-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px; padding: 36px;
}

/* Services Preview */
.home-services { padding: 96px 5%; background: var(--off-white); border-top: 3px solid var(--navy); }
.home-services-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.svc-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 2.5vw, 2.3rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.25; }
.svc-text p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 28px; }
.svc-list { list-style: none; margin-bottom: 32px; }
.svc-list li { font-size: 0.9rem; color: var(--text-body); padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-weight: 500; }
.svc-list li::before { content: '→'; color: var(--green); font-weight: 700; }
.svc-visual { background: var(--navy); border-radius: 16px; padding: 40px; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.svc-big { font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 800; color: #5dbb8b; line-height: 1; margin-bottom: 6px; }
.svc-desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.svc-divider { margin: 28px 0; border: none; border-top: 1px solid rgba(255,255,255,0.1); }

/* Homepage footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 56px 5% 36px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .nav-logo { cursor: default; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.855rem; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.8rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom strong { color: rgba(255,255,255,0.7); }

/* ============================================================
   PAGE 2: DATA LIBRARY
   ============================================================ */
.library-hero { padding: 72px 5% 56px; background: var(--navy); }
.library-hero-inner { max-width: 1200px; margin: 0 auto; }
.library-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.library-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 500px; margin-bottom: 32px; }
.library-search-bar {
  display: flex; gap: 12px; max-width: 600px;
}
.search-input {
  flex: 1; padding: 13px 18px; border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.93rem;
  outline: none; transition: border-color 0.2s;
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); }

.library-body { padding: 56px 5%; background: var(--off-white); }
.library-body-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.filters-panel { }
.filter-group { margin-bottom: 32px; }
.filter-group h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.filter-btn {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 0.855rem; font-weight: 500;
  color: var(--text-body); cursor: pointer; margin-bottom: 8px;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-count { float: right; font-size: 0.75rem; opacity: 0.6; }
.studies-grid { }
.studies-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.studies-count { font-size: 0.875rem; color: var(--text-muted); }
.sort-select {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 7px 12px; font-family: 'DM Sans', sans-serif; font-size: 0.83rem;
  color: var(--text-body); background: var(--white); cursor: pointer;
}
.study-list-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
  margin-bottom: 16px; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
}
.study-list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.slc-left h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 10px 0 10px; line-height: 1.35; }
.slc-left p { font-size: 0.855rem; color: var(--text-muted); line-height: 1.6; max-width: 560px; }
.slc-meta { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.slc-meta span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.slc-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.lock-badge {
  background: var(--off-white); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.75rem; font-weight: 600;
  padding: 5px 10px; border-radius: 100px;
  display: flex; align-items: center; gap: 5px;
}
.lock-badge.open { background: rgba(26,122,74,0.08); border-color: rgba(26,122,74,0.2); color: var(--green); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; color: var(--text-body);
}
.page-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-btn:hover:not(.active) { border-color: var(--navy); }

/* ============================================================
   PAGE 3: STUDY DETAIL
   ============================================================ */
.study-breadcrumb { padding: 20px 5%; background: var(--off-white); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity: 0.4; }

.study-detail-hero { padding: 64px 5% 56px; background: var(--white); border-bottom: 1px solid var(--border); }
.study-detail-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.sdh-left { }
.sdh-left h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin: 16px 0 20px; }
.sdh-left .abstract { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.sdh-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.sdh-meta-item { background: var(--off-white); border-radius: 8px; padding: 14px 16px; }
.sdh-meta-item .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.sdh-meta-item .value { font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.sdh-right { }
.report-access-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  position: sticky; top: 90px;
}
.report-access-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.access-tier { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 12px; transition: border-color 0.15s; cursor: pointer; }
.access-tier:hover { border-color: var(--navy); }
.access-tier.featured { border-color: var(--green); background: rgba(26,122,74,0.03); }
.access-tier .tier-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.access-tier .tier-name { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.access-tier .tier-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.report-access-card .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.report-access-card .or-divider { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin: 12px 0; }
.report-access-card .sign-in-link { text-align: center; font-size: 0.83rem; color: var(--text-muted); }
.report-access-card .sign-in-link a { color: var(--green); font-weight: 600; cursor: pointer; }

.study-detail-body { padding: 64px 5%; background: var(--white); }
.study-detail-body-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 320px; gap: 56px; }
.study-content { }
.study-section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.study-content p { font-size: 0.93rem; color: var(--text-body); line-height: 1.8; margin-bottom: 16px; }
.key-findings { margin: 40px 0; }
.finding-card { background: var(--off-white); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; padding: 20px 24px; margin-bottom: 14px; }
.finding-card .finding-pct { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.finding-card .finding-text { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.locked-content { background: var(--off-white); border: 1.5px dashed var(--border-dark); border-radius: 12px; padding: 48px; text-align: center; margin-top: 32px; }
.locked-content .lock-icon { font-size: 2.5rem; margin-bottom: 16px; }
.locked-content h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.locked-content p { font-size: 0.875rem; color: var(--text-muted); max-width: 360px; margin: 0 auto 24px; line-height: 1.7; }
.study-sidebar { }
.related-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 14px; cursor: pointer; transition: box-shadow 0.15s; }
.related-card:hover { box-shadow: var(--shadow-sm); }
.related-card h4 { font-family: 'Playfair Display', serif; font-size: 0.93rem; font-weight: 700; color: var(--navy); margin: 8px 0 6px; line-height: 1.35; }
.related-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   PAGE 4: NIGERIA PULSE (FULL)
   ============================================================ */
.pulse-hero { padding: 72px 5% 56px; background: var(--navy); }
.pulse-hero-inner { max-width: 1200px; margin: 0 auto; }
.pulse-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.pulse-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 560px; margin-bottom: 32px; }
.wave-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.wave-btn {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15); padding: 8px 20px;
  border-radius: 6px; font-size: 0.855rem; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.wave-btn:hover, .wave-btn.active { background: var(--white); color: var(--navy); border-color: var(--white); font-weight: 600; }

.pulse-body { padding: 56px 5%; background: var(--off-white); }
.pulse-body-inner { max-width: 1200px; margin: 0 auto; }
.pulse-topic-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.topic-tab {
  background: var(--white); border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: 6px;
  font-size: 0.855rem; font-weight: 500; color: var(--text-body);
  cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.topic-tab:hover, .topic-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pulse-data-section { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.pulse-data-header { padding: 28px 32px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.pulse-data-header h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.pulse-data-header .sample { font-size: 0.8rem; color: var(--text-muted); }
.pulse-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pulse-wave-col { padding: 32px; }
.pulse-wave-col:first-child { border-right: 1px solid var(--border); }
.pulse-wave-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.data-bar-row { margin-bottom: 16px; }
.data-bar-row .label { font-size: 0.83rem; color: var(--text-body); margin-bottom: 6px; display: flex; justify-content: space-between; }
.data-bar-row .label strong { font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; font-size: 1rem; }
.bar-track { height: 8px; background: var(--off-white); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; background: var(--green); transition: width 0.6s ease; }
.bar-fill.navy { background: var(--navy); }
.bar-fill.up { background: #22a062; }
.delta-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-left: 8px; }
.delta-up { background: rgba(26,122,74,0.1); color: var(--green); }
.delta-down { background: rgba(200,50,50,0.1); color: #c83232; }
.pulse-summary-strip { background: var(--navy); padding: 48px 5%; }
.pss-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pss-item { text-align: center; }
.pss-num { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 800; color: #5dbb8b; }
.pss-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.4; }

/* ============================================================
   PAGE 5: RESEARCH SERVICES
   ============================================================ */
.services-hero { padding: 88px 5% 72px; background: var(--navy); }
.services-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.services-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.services-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 32px; }
.services-hero-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cred-item { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 18px; }
.cred-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #5dbb8b; }
.cred-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.4; margin-top: 2px; }

.services-offerings { padding: 88px 5%; background: var(--white); }
.services-offerings-inner { max-width: 1200px; margin: 0 auto; }
.offerings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.offering-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 14px; padding: 36px 30px; transition: box-shadow 0.2s, transform 0.2s; }
.offering-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.offering-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.3rem; }
.offering-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.offering-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.offering-card .learn { margin-top: 20px; font-size: 0.83rem; font-weight: 600; color: var(--green); cursor: pointer; }

.services-process { padding: 88px 5%; background: var(--off-white); }
.services-process-inner { max-width: 1100px; margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num { width: 48px; height: 48px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--white); position: relative; z-index: 2; }
.step h4 { font-family: 'Playfair Display', serif; font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

.services-inquiry { padding: 88px 5%; background: var(--white); }
.services-inquiry-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.inquiry-info h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 2.5vw, 2.3rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.inquiry-info p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.875rem; color: var(--text-body); }
.contact-item .icon { width: 36px; height: 36px; background: var(--off-white); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.inquiry-form { }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text-body); background: var(--white);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   PAGE 6: ABOUT
   ============================================================ */
.about-hero { padding: 88px 5% 72px; background: var(--white); border-bottom: 1px solid var(--border); }
.about-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 20px; }
.about-hero p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.about-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat { background: var(--off-white); border-radius: 12px; padding: 24px; text-align: center; }
.about-stat .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.about-stat .lbl { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.about-mission { padding: 88px 5%; background: var(--off-white); }
.about-mission-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.mission-quote { background: var(--navy); border-radius: 16px; padding: 48px 40px; }
.mission-quote blockquote { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-style: italic; color: var(--white); line-height: 1.5; margin-bottom: 20px; }
.mission-quote cite { font-size: 0.83rem; color: rgba(255,255,255,0.55); }
.methodology-list { margin-top: 32px; }
.method-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.method-item:last-child { border-bottom: none; }
.method-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--green); min-width: 32px; }
.method-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.method-item p { font-size: 0.855rem; color: var(--text-muted); line-height: 1.6; }

.team-section { padding: 88px 5%; background: var(--white); }
.team-inner { max-width: 1100px; margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.team-card { text-align: center; }
.team-avatar { width: 80px; height: 80px; background: var(--off-white2); border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 3px solid var(--border); }
.team-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card .role { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   PAGE 7: DASHBOARD
   ============================================================ */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 68px); }
.dash-sidebar { background: var(--navy); padding: 32px 0; }
.dash-profile { padding: 0 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.dash-avatar { width: 48px; height: 48px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 10px; }
.dash-profile h4 { font-size: 0.93rem; font-weight: 600; color: var(--white); }
.dash-profile p { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.dash-nav { }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.65); cursor: pointer; transition: all 0.15s;
}
.dash-nav-item:hover, .dash-nav-item.active { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-nav-item.active { border-right: 3px solid #5dbb8b; }
.dash-nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.dash-main { padding: 40px 48px; background: var(--off-white); overflow-y: auto; }
.dash-header { margin-bottom: 36px; }
.dash-header h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.dash-header p { font-size: 0.9rem; color: var(--text-muted); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.dash-stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.dash-stat-card .ds-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.dash-stat-card .ds-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.dash-section-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.purchased-report { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; transition: box-shadow 0.15s; }
.purchased-report:hover { box-shadow: var(--shadow-sm); }
.pr-left h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--navy); margin: 6px 0 4px; }
.pr-left p { font-size: 0.8rem; color: var(--text-muted); }
.pr-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; border-radius: 6px; border: 1.5px solid var(--green); color: var(--green); background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 600; transition: background 0.15s; }
.btn-sm:hover { background: var(--green-pale); }
.saved-study { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; transition: box-shadow 0.15s; }
.saved-study:hover { box-shadow: var(--shadow-sm); }
.saved-study h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.saved-study p { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(6,40,71,0.55); z-index: 1000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: 20px;
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.modal-box.wide { max-width: 580px; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 28px 32px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.modal-close { background: var(--off-white); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: background 0.15s; flex-shrink: 0; }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 24px 32px 32px; }
.modal-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.tab-switch { display: flex; background: var(--off-white); border-radius: 8px; padding: 4px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 9px; text-align: center; border: none; background: transparent; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; color: var(--text-muted); transition: all 0.15s; }
.tab-btn.active { background: var(--white); color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); }
.modal-form-group { margin-bottom: 18px; }
.modal-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.modal-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text-body); outline: none; transition: border-color 0.2s; }
.modal-input:focus { border-color: var(--navy); }
.modal-footer-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 16px; }
.modal-footer-note a { color: var(--green); font-weight: 600; cursor: pointer; }
.social-btn { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-body); transition: border-color 0.2s; margin-bottom: 10px; }
.social-btn:hover { border-color: var(--navy); }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-or span { font-size: 0.78rem; color: var(--text-muted); }

/* Unlock modal special */
.unlock-preview { background: var(--off-white); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.unlock-preview h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.unlock-preview p { font-size: 0.8rem; color: var(--text-muted); }
.plan-options { margin-bottom: 18px; }
.plan-option { border: 2px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s; display: flex; justify-content: space-between; align-items: center; }
.plan-option.selected { border-color: var(--green); background: rgba(26,122,74,0.03); }
.plan-option h4 { font-size: 0.93rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.plan-option p { font-size: 0.78rem; color: var(--text-muted); }
.plan-price { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Success state */
.success-state { text-align: center; padding: 16px 0 8px; }
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-state h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.success-state p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; max-width: 320px; margin-left: auto; margin-right: auto; }

/* Toast */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 2000;
  background: var(--navy); color: var(--white);
  padding: 14px 20px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); display: none;
  align-items: center; gap: 10px;
  animation: slideUp 0.2s ease;
  max-width: 320px;
}
.toast.show { display: flex; }
.toast.success { background: var(--green); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; cursor: pointer;
  background: transparent; border: none; padding: 4px; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed; inset: 0; top: 68px; z-index: 190;
  background: var(--white);
  padding: 24px 5% 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-top: 1px solid var(--border);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  font-size: 1.05rem; font-weight: 500; color: var(--navy);
  text-decoration: none; cursor: pointer;
}
.mobile-drawer a::after { content: '›'; font-size: 1.2rem; opacity: 0.4; }
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.mobile-drawer-actions .btn-primary,
.mobile-drawer-actions .btn-ghost { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Layout grids */
  .standards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .offerings-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr 1fr; }
  .study-card { grid-template-columns: 1fr; }
  .study-detail-hero-inner { grid-template-columns: 1fr; }
  .study-detail-body-inner { grid-template-columns: 1fr; }
  .services-inquiry-inner { grid-template-columns: 1fr; }
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-mission-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .library-body-inner { grid-template-columns: 1fr; }
  .filters-panel { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
  .filter-group { margin-bottom: 0; }
  .filter-group h4 { display: none; }
  .filter-btn { padding: 7px 12px; font-size: 0.8rem; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 32px 24px; }
  /* Access card unsticky on tablet */
  .report-access-card { position: static; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* NAV */
  .topnav { padding: 0 4%; height: 60px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { display: block; top: 60px; }

  /* Global spacing */
  section { padding: 64px 4%; }
  .standards { padding: 64px 4%; }
  .featured-study { padding: 64px 4%; }
  .home-library { padding: 64px 4%; }
  .home-pulse { padding: 64px 4%; }
  .home-services { padding: 64px 4%; }
  .pulse-body { padding: 40px 4%; }
  .library-hero { padding: 48px 4% 40px; }
  .library-body { padding: 36px 4%; }
  .services-hero { padding: 56px 4% 48px; }
  .services-offerings { padding: 64px 4%; }
  .services-process { padding: 64px 4%; }
  .services-inquiry { padding: 64px 4%; }
  .about-hero { padding: 56px 4% 48px; }
  .about-mission { padding: 64px 4%; }
  .team-section { padding: 64px 4%; }
  .study-breadcrumb { padding: 14px 4%; }
  .study-detail-hero { padding: 40px 4% 36px; }
  .study-detail-body { padding: 40px 4%; }
  .pulse-hero { padding: 48px 4% 40px; }
  .pulse-summary-strip { padding: 36px 4%; }
  .site-footer { padding: 48px 4% 28px; }
  .dash-main { padding: 24px 4%; }

  /* Typography */
  .hero h1 { font-size: 2.1rem; letter-spacing: -0.5px; }
  .hero-sub { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .hero-trust { gap: 28px; }
  .trust-num { font-size: 1.7rem; }

  /* Hero buttons — stack */
  .hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary { width: 100%; justify-content: center; padding: 15px; }

  /* Hero trust strip — 2 cols */
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Standards — 1 col on mobile */
  .standards-grid { grid-template-columns: 1fr; gap: 14px; }
  .standards-header { margin-bottom: 32px; }

  /* Featured Study card */
  .study-card { padding: 28px 20px; gap: 24px; }
  .study-side { display: none; }
  .study-main h2 { font-size: 1.3rem; }
  .study-actions { flex-direction: column; gap: 12px; }
  .study-actions .btn-primary { width: 100%; justify-content: center; }

  /* Library grid — 1 col */
  .library-grid { grid-template-columns: 1fr; gap: 12px; }
  .lib-card { min-height: auto; padding: 22px 20px; }

  /* Pulse preview */
  .waves-row { grid-template-columns: 1fr; gap: 20px; }
  .pulse-box { padding: 24px 18px; }
  .stat-pct { font-size: 1.6rem; }
  .home-pulse .section-sub { max-width: 100%; }

  /* Services home */
  .home-services-inner { grid-template-columns: 1fr; gap: 36px; }
  .svc-visual { min-height: 200px; padding: 28px; }
  .svc-big { font-size: 3rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 0.75rem; }

  /* Data Library page */
  .library-hero h1 { font-size: 1.9rem; }
  .library-search-bar { flex-direction: column; }
  .library-body-inner { gap: 24px; }
  .filters-panel { gap: 8px; }
  .filter-btn { font-size: 0.78rem; padding: 6px 10px; }
  .study-list-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .slc-right { flex-direction: row; align-items: center; justify-content: space-between; }
  .studies-list-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Study Detail */
  .sdh-left h1 { font-size: 1.5rem; }
  .sdh-meta-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .report-access-card { padding: 24px 20px; }
  .finding-card .finding-pct { font-size: 1.6rem; }

  /* Nigeria Pulse full page */
  .pulse-hero h1 { font-size: 1.9rem; }
  .wave-selector { gap: 8px; }
  .wave-btn { font-size: 0.78rem; padding: 7px 14px; }
  .pulse-topic-tabs { gap: 6px; }
  .topic-tab { font-size: 0.78rem; padding: 7px 14px; }
  .pulse-data-grid { grid-template-columns: 1fr; }
  .pulse-wave-col:first-child { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
  .pss-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pss-num { font-size: 2.2rem; }
  .pulse-data-header { padding: 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .pulse-wave-col { padding: 20px; }

  /* Research Services */
  .services-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .services-hero h1 { font-size: 1.9rem; }
  .services-hero-creds { grid-template-columns: 1fr 1fr; gap: 12px; }
  .offerings-grid { grid-template-columns: 1fr; gap: 14px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-steps::before { display: none; }
  .services-inquiry-inner { grid-template-columns: 1fr; gap: 40px; }

  /* About */
  .about-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-hero h1 { font-size: 1.9rem; }
  .about-hero-stats { grid-template-columns: 1fr 1fr; }
  .about-mission-inner { grid-template-columns: 1fr; gap: 36px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Dashboard */
  .dash-stats { grid-template-columns: 1fr; gap: 12px; }
  .purchased-report { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pr-right { width: 100%; }
  .pr-right .btn-sm { flex: 1; text-align: center; }

  /* Modals */
  .modal-overlay { align-items: flex-end; }
  .modal-box {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 92vh;
  }
  .modal-box.wide { max-width: 100%; }
  .modal-header { padding: 22px 20px 0; }
  .modal-body { padding: 20px 20px 28px; }
  .plan-option { flex-direction: column; align-items: flex-start; gap: 8px; }
  .plan-price { font-size: 1.1rem; }

  /* Toast */
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }

  /* Misc */
  .breadcrumb { font-size: 0.75rem; flex-wrap: wrap; }
  .meta-pill { font-size: 0.75rem; }
  .study-meta-row { gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .sdh-meta-grid { grid-template-columns: 1fr 1fr; }

  /* iOS Safari zoom fix — inputs must be 16px+ to prevent auto-zoom */
  .modal-input,
  .form-input,
  .form-select,
  .form-textarea,
  .search-input,
  .sort-select { font-size: 16px !important; }

}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .about-hero-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .services-hero-creds { grid-template-columns: 1fr 1fr; }
  .pss-inner { grid-template-columns: 1fr 1fr; }
  .sdh-meta-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .about-hero-stats { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   LOGO IMAGE SUPPORT
   Replace images/logo.png with your PNG file.
   The text fallback shows automatically if image is missing.
   ============================================================ */
.logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.logo-img--footer {
  height: 32px;
  filter: brightness(0) invert(1); /* makes dark logos white on navy footer */
}
.logo-text-fallback {
  display: none; /* shown only if image fails to load */
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo-text-fallback span { color: var(--green); }


  /* Dashboard mobile bottom tab bar */
  .dash-mobile-tabs {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  }
  .dash-mobile-tab {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    padding: 6px 4px; cursor: pointer; transition: color 0.15s;
    background: none; border: none; font-family: 'DM Sans', sans-serif;
    color: var(--text-muted); font-size: 0.65rem; font-weight: 500;
  }
  .dash-mobile-tab .tab-icon { font-size: 1.2rem; line-height: 1; }
  .dash-mobile-tab.active { color: var(--navy); font-weight: 700; }
  .dash-mobile-tab.active .tab-icon { transform: scale(1.1); }
  /* Pad dashboard main content so it clears the tab bar */
  #page-dashboard .dash-main { padding-bottom: 88px; }
