/*
Theme Name: HeritageMetrics
Theme URI: https://heritagemetrics.com
Description: HeritageMetrics - Nigeria's Cultural Economy Intelligence Platform
Version: 3.0
Author: Timi Adegunwa
*/

:root {
  --forest:  #0F2A1C;
  --forest2: #1A3A2A;
  --gold:    #C9A84C;
  --gold-l:  #E8CC7A;
  --gold-d:  #8A6E30;
  --cream:   #FAF8F3;
  --ink:     #111111;
  --ink2:    #222222;
  --mid:     #444444;
  --border:  #D8D0C0;
  --white:   #FFFFFF;
  --light:   #F5F2EC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(22px, 3vw, 30px); }
h4 { font-size: 22px; }

p { font-size: 18px; line-height: 1.75; color: var(--ink2); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-d);
  display: block;
  margin-bottom: 12px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
section { padding: 72px 0; }

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-l); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(250,248,243,0.45); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-l); }
.btn-forest { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-forest:hover { background: var(--forest2); }

/* NAV */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
  max-width: 1080px; margin: 0 auto;
}
.nav-logo {
  font-size: 19px; font-weight: 800;
  color: var(--gold); letter-spacing: 0.3px;
}
.nav-logo sup { font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 17px; font-weight: 500; color: rgba(250,248,243,0.82); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-l); }
.nav-cta {
  padding: 10px 22px; font-size: 16px; font-weight: 700;
  background: var(--gold); color: var(--forest);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-l); }

/* HERO */
.hero { background: var(--forest); padding: 88px 0 72px; }
.hero-tag { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 20px; }
.hero h1 { color: var(--cream); margin-bottom: 14px; }
.hero h1 em { color: var(--gold-l); font-style: italic; }
.hero-sub { font-size: 20px; color: rgba(250,248,243,0.82); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* STAT STRIP */
.stat-strip { background: var(--forest2); border-top: 1px solid rgba(201,168,76,0.2); border-bottom: 1px solid rgba(201,168,76,0.2); }
.stat-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1080px; margin: 0 auto; }
.stat-item { padding: 28px 20px; border-right: 1px solid rgba(201,168,76,0.15); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; color: var(--gold-l); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 14px; font-weight: 500; color: rgba(250,248,243,0.65); }

/* PORTALS */
.portals { background: var(--light); padding: 72px 0; }
.portals-intro { text-align: center; margin-bottom: 48px; }
.portals-intro h2 { color: var(--forest); margin-bottom: 14px; }
.portals-intro p { font-size: 18px; color: var(--mid); max-width: 540px; margin: 0 auto; }
.portal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.portal-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 36px 32px; transition: all 0.25s;
  display: flex; flex-direction: column;
}
.portal-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.portal-icon { width: 52px; height: 52px; background: var(--forest); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
.portal-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 900; color: var(--forest); margin-bottom: 12px; }
.portal-desc { font-size: 17px; color: var(--mid); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.portal-link { font-size: 16px; font-weight: 700; color: var(--gold-d); }
.portal-link::after { content: ' →'; }

/* LATEST CONTENT */
.latest { background: var(--white); padding: 72px 0; }
.section-header { margin-bottom: 40px; }
.section-header h2 { color: var(--forest); margin-bottom: 10px; }
.section-header p { font-size: 18px; color: var(--mid); }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.content-card-main { border: 1px solid var(--border); overflow: hidden; transition: border-color 0.2s; }
.content-card-main:hover { border-color: var(--gold); }
.card-hero-band { background: var(--forest); padding: 36px 32px; }
.card-tag { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.card-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: var(--cream); line-height: 1.2; margin-bottom: 12px; }
.card-meta { font-size: 16px; color: rgba(250,248,243,0.65); }
.card-body { padding: 28px 32px; }
.card-desc { font-size: 17px; color: var(--ink2); line-height: 1.7; margin-bottom: 16px; }
.card-cta { font-size: 16px; font-weight: 700; color: var(--gold-d); }
.content-cards-side { display: flex; flex-direction: column; gap: 16px; }
.card-side { border: 1px solid var(--border); padding: 24px; transition: all 0.2s; }
.card-side:hover { border-color: var(--gold); background: var(--light); }
.side-tag { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-d); margin-bottom: 8px; }
.side-title { font-size: 19px; font-weight: 700; color: var(--forest); line-height: 1.3; margin-bottom: 6px; }
.side-desc { font-size: 16px; color: var(--mid); line-height: 1.6; }

/* ARCHIVE STRIP */
.archive-strip { background: var(--forest); padding: 72px 0; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.archive-left h2 { color: var(--cream); margin-bottom: 16px; }
.archive-left h2 em { color: var(--gold-l); font-style: italic; }
.archive-left p { font-size: 18px; color: rgba(250,248,243,0.82); line-height: 1.75; margin-bottom: 28px; }
.archive-items { display: flex; flex-direction: column; gap: 12px; }
.archive-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(201,168,76,0.2); }
.archive-code { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 700; color: var(--gold); min-width: 86px; }
.archive-name { font-size: 17px; font-weight: 500; color: var(--cream); }

/* ABOUT */
.about-strip { background: var(--light); padding: 72px 0; border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-left h2 { color: var(--forest); margin-bottom: 20px; }
.about-left p { font-size: 18px; color: var(--ink2); margin-bottom: 16px; }
.awards { display: flex; flex-direction: column; gap: 16px; }
.award { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border: 1px solid var(--border); }
.award-year { font-size: 14px; font-weight: 700; color: var(--gold-d); white-space: nowrap; padding-top: 2px; }
.award-title { font-size: 17px; font-weight: 700; color: var(--forest); margin-bottom: 4px; }
.award-desc { font-size: 16px; color: var(--mid); line-height: 1.5; }

/* FOOTER */
.site-footer { background: var(--forest); padding: 56px 0 32px; border-top: 2px solid var(--gold-d); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.footer-desc { font-size: 17px; color: rgba(250,248,243,0.72); line-height: 1.7; margin-bottom: 12px; }
.footer-note { font-size: 14px; color: rgba(250,248,243,0.4); }
.footer-col-title { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 17px; color: rgba(250,248,243,0.72); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-l); }
.footer-bottom { border-top: 1px solid rgba(201,168,76,0.15); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 15px; color: rgba(250,248,243,0.4); }

/* INNER PAGE TEMPLATES */
.page-hero { background: var(--forest); padding: 64px 0 56px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--cream); }
.page-hero h1 em { color: var(--gold-l); font-style: italic; }
.page-hero-sub { font-size: 20px; color: rgba(250,248,243,0.82); margin-top: 14px; max-width: 600px; }
.page-content { padding: 64px 0; }

/* REPORT */
.platinum-band { background: var(--gold); padding: 40px 32px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin: 40px 0; }
.plat-num { font-family: 'Playfair Display', serif; font-size: 80px; font-weight: 900; color: var(--forest); line-height: 1; }
.plat-tier { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 900; color: var(--forest); }
.plat-label { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--forest); text-transform: uppercase; margin-bottom: 6px; }
.plat-desc { font-size: 17px; color: rgba(15,42,28,0.72); max-width: 360px; line-height: 1.6; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 40px 0; }
.kpi { padding: 28px 24px; background: var(--forest); border: 1px solid rgba(201,168,76,0.2); }
.kpi-num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--gold-l); line-height: 1; margin-bottom: 6px; }
.kpi-label { font-size: 15px; color: rgba(250,248,243,0.7); margin-bottom: 6px; }
.kpi-change { font-size: 14px; font-weight: 700; color: #4CAF50; }

.data-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 17px; }
.data-table th { background: var(--forest); color: var(--gold-l); padding: 16px 20px; text-align: left; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.data-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); color: var(--ink); }
.data-table tr:hover td { background: var(--light); }
.pos { color: #1A7A3A; font-weight: 700; }

/* ARCHIVE PAGE */
.folder-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin: 40px 0; }
.folder-card { padding: 28px 24px; border: 1px solid var(--border); background: var(--white); transition: all 0.2s; }
.folder-card:hover { border-color: var(--gold); background: var(--light); }
.folder-code { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 700; color: var(--gold-d); margin-bottom: 8px; }
.folder-name { font-size: 20px; font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.folder-desc { font-size: 16px; color: var(--mid); line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 48px 0; }
  .nav-links { display: none; }
  .stat-strip-inner { grid-template-columns: repeat(2,1fr); }
  .portal-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .folder-grid { grid-template-columns: 1fr; }
  .platinum-band { gap: 16px; }
  .plat-num { font-size: 56px; }
}
