/* ═══════════════════════════════════════════════════════════════
   NATA NIGERIA — DESIGN SYSTEM v6
   OFFLINE-FIRST: Works perfectly as a local file AND online.

   Font strategy:
   • When ONLINE  → Google Fonts loads: Playfair Display + Plus Jakarta Sans + Space Mono
   • When OFFLINE → Falls back to: Georgia (headings) + system-ui (body) + monospace (labels)
     Both look excellent. No blank white page either way.
   ═══════════════════════════════════════════════════════════════ */

/* Online font load — browsers ignore this gracefully if offline */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800;1,900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --red:     #C8102E;
  --red-dk:  #9A0B22;
  --red-lt:  #FFF0F2;
  --gold:    #B07D0C;
  --gold-lt: #FEF6E4;
  --ink:     #0F0E0D;
  --ink2:    #28261F;
  --paper:   #F8F6F1;
  --white:   #FFFFFF;
  --mist:    #EDEBE5;
  --border:  #DDD8CF;
  --gray:    #6B6660;
  --gray2:   #9C9790;
  --green:   #14532D;

  /* Font stacks: Google Font first, then excellent system fallbacks */
  --f-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --f-mono: 'Space Mono', 'Courier New', Courier, monospace;

  --nav-h: 68px;
  --max:   1200px;
  --r:     6px;
  --r-lg:  12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.6); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-badge {
  width: 44px; height: 44px; border-radius: 6px;
  background: transparent;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-badge span {
  font-family: var(--f-head); font-size: 22px; font-weight: 900;
  color: #fff; line-height: 1; font-style: italic;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--f-body); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .03em; }
.logo-tag  { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--f-body); font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none;
  padding: 6px 14px; border-radius: var(--r);
  transition: color .18s, background .18s; white-space: nowrap;
}
.nav-links a:hover  { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.active { color: #fff; background: rgba(200,16,46,.28); }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

.nav-drawer {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: #181614; border-top: 1px solid rgba(255,255,255,.07);
  padding: 8px 20px 20px; z-index: 800;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.78); text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .18s;
}
.nav-drawer a:hover { color: #fff; }
.nav-drawer a:last-child { border-bottom: none; }

/* ── PAGE HERO ─────────────────────────────────────────────────── */
.page-hero {
  margin-top: var(--nav-h); padding: 80px 28px 72px;
  background: var(--ink); position: relative; overflow: hidden;
}
.ph-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,16,46,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,.08) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5;
}
.ph-glow {
  position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.16) 0%, transparent 62%);
  pointer-events: none;
}
.ph-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.ph-eyebrow {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.ph-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.ph-h1 {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0; letter-spacing: -.025em;
  color: #fff; margin-bottom: 18px;
}
.ph-h1 em { font-style: italic; }
.ph-sub {
  font-size: clamp(15px, 1.7vw, 17px); line-height: 1.76;
  color: rgba(255,255,255,.5); max-width: 560px; font-weight: 400;
}

/* ── SECTION HELPERS ───────────────────────────────────────────── */
.sec    { padding: 88px 28px; }
.sec-sm { padding: 60px 28px; }
.sec-lg { padding: 112px 28px; }
.wrap   { max-width: var(--max); margin: 0 auto; }

/* ── EYEBROW LABELS ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; display: block; width: 18px; height: 1px; background: var(--red); }
.eyebrow-gold { color: var(--gold); }
.eyebrow-gold::before { background: var(--gold); }

/* ── HEADINGS (Playfair Display / Georgia fallback) ──────────────
   These look great in BOTH fonts. Playfair is more ornate;
   Georgia is the classic serif fallback — both are authoritative. */
.h2 {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 16px;
}
.h2-white { color: #fff; }
.h2 em, .h2-white em { font-style: italic; }

.h3 {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.15; letter-spacing: -.015em;
  color: var(--ink); margin-bottom: 10px;
}

/* Body copy (system-ui / -apple-system is excellent on ALL devices) */
.body-p {
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.82; color: #3E3B36; font-weight: 400;
}
.body-p + .body-p { margin-top: 16px; }
.lead-p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.72; color: var(--ink2);
  font-weight: 400; margin-bottom: 22px;
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-family: var(--f-body); font-size: 14px; font-weight: 600;
  padding: 13px 26px; border-radius: var(--r);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .18s, transform .15s;
}
.btn-red:hover { background: var(--red-dk); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,.78);
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  padding: 13px 26px; border-radius: var(--r);
  text-decoration: none; border: 1.5px solid rgba(255,255,255,.22);
  transition: border-color .18s, color .18s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: var(--r);
  text-decoration: none; border: 1.5px solid var(--border);
  transition: border-color .18s, background .18s;
}
.btn-outline:hover { border-color: var(--ink); background: var(--mist); }

/* ── TICKER ────────────────────────────────────────────────────── */
.ticker { background: var(--red); padding: 11px 0; overflow: hidden; }
.ticker-track {
  display: flex; width: max-content;
  animation: scroll-ticker 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff; white-space: nowrap; padding: 0 32px;
}
.ticker-track .sep { color: rgba(255,255,255,.4); padding: 0; }
@keyframes scroll-ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── POST CARDS ────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform .24s, box-shadow .24s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(0,0,0,.1); }
.post-card.wide  { grid-column: span 2; flex-direction: row; }
.post-card.wide .card-thumb { width: 45%; flex-shrink: 0; }
.post-card.wide .card-thumb img,
.post-card.wide .card-thumb .thumb-ph { min-height: 220px; height: 100%; }

.card-thumb { height: 210px; overflow: hidden; position: relative; background: var(--mist); flex-shrink: 0; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .card-thumb img { transform: scale(1.05); }
.thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #161412 0%, #252220 100%);
}
.thumb-ph span {
  font-family: var(--f-head); font-size: 44px; font-weight: 900;
  color: rgba(200,16,46,.28);
}
.yt-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(200,16,46,.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.post-card:hover .yt-play-btn { background: var(--red); transform: scale(1.1); }
.yt-play-btn svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.type-chip {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
}
.chip-article { background: var(--ink);   color: #fff; }
.chip-video   { background: var(--red);   color: #fff; }
.chip-gallery { background: var(--green); color: #fff; }

.card-body    { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat     { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.card-title   {
  font-family: var(--f-head); font-size: 18px; font-weight: 700;
  line-height: 1.22; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: 9px; transition: color .18s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover .card-title { color: var(--red); }
.card-excerpt { font-size: 13.5px; line-height: 1.66; color: var(--gray); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot    { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--mist); }
.card-date    { font-family: var(--f-mono); font-size: 9.5px; color: var(--gray2); }
.card-views   { font-family: var(--f-mono); font-size: 9.5px; color: var(--gray2); }

/* Skeletons */
.sk { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.sk-img  { height: 210px; background: var(--mist); animation: pulse 1.6s ease-in-out infinite; }
.sk-body { padding: 20px 22px; }
.sk-line { height: 11px; background: var(--mist); border-radius: 4px; margin-bottom: 10px; animation: pulse 1.6s ease-in-out infinite; }
.sk-line.s { width: 45%; } .sk-line.m { width: 72%; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.42} }
.no-posts { grid-column: 1/-1; text-align: center; padding: 72px 28px; color: var(--gray); font-size: 15px; }

/* ── MODAL ─────────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); overflow-y: auto; padding: 28px 16px; }
.modal-overlay.open { display: flex; justify-content: center; }
.modal-box { background: var(--white); border-radius: 14px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: modal-in .26s cubic-bezier(.16,1,.3,1); }
@keyframes modal-in { from{opacity:0;transform:scale(.95) translateY(16px)} to{opacity:1;transform:none} }
.modal-close { position: sticky; top: 0; float: right; z-index: 10; width: 36px; height: 36px; border-radius: var(--r); background: var(--ink); color: #fff; border: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 14px 14px 0 0; transition: background .18s; }
.modal-close:hover { background: var(--red); }
.modal-inner { padding: 40px 48px 52px; clear: both; }
.modal-cat   { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.modal-title { font-family: var(--f-head); font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin-bottom: 16px; }
.modal-meta  { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 10px; color: var(--gray2); padding-bottom: 22px; border-bottom: 1px solid var(--mist); margin-bottom: 26px; }
.modal-cover { border-radius: 8px; overflow: hidden; margin-bottom: 26px; }
.modal-cover img { width: 100%; max-height: 380px; object-fit: cover; }
.modal-yt    { width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 26px; }
.modal-yt iframe { width: 100%; height: 100%; border: none; }
.modal-body  { font-size: 16px; line-height: 1.86; color: #3a3633; }
.modal-body p { margin-bottom: 18px; }
.modal-body p:last-child { margin-bottom: 0; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer { background: #0C0B0A; }
.footer-main { max-width: var(--max); margin: 0 auto; padding: 72px 28px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.f-logo  { font-family: var(--f-head); font-size: 40px; font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 8px; }
.f-motto { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.f-desc  { font-size: 13px; line-height: 1.72; color: rgba(255,255,255,.38); }
.f-col h5 { font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.f-col a  { display: block; font-size: 13.5px; font-weight: 400; color: rgba(255,255,255,.48); text-decoration: none; margin-bottom: 10px; transition: color .18s; }
.f-col a:hover { color: #fff; }
.f-col p  { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.65; margin-bottom: 8px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.07); max-width: var(--max); margin: 0 auto; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bar p { font-family: var(--f-mono); font-size: 9.5px; color: rgba(255,255,255,.22); letter-spacing: .04em; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .post-card.wide { grid-column: span 1; flex-direction: column; }
  .post-card.wide .card-thumb { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .nav-inner  { padding: 0 20px; }
  .sec        { padding: 60px 20px; }
  .sec-sm     { padding: 44px 20px; }
  .sec-lg     { padding: 72px 20px; }
  .page-hero  { padding: 56px 20px 52px; }
  .news-grid  { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 52px 20px 36px; gap: 36px; }
  .footer-bar  { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .modal-inner { padding: 24px 20px 36px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 44px 16px 40px; }
  .sec       { padding: 48px 16px; }
  .modal-inner { padding: 20px 16px 28px; }
}
