/*
Theme Name: NEAZDP
Theme URI: https://neazdp.yb.gov.ng
Author: North East Arid Zone Development Programme
Description: Institutional WordPress theme for the North East Arid Zone Development Programme (NEAZDP), Yobe State. Includes a captioned hero slideshow, objectives, components, impact statistics and a full newsroom.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neazdp
Tags: nonprofit, government, one-column, custom-logo, custom-menu, featured-images, blog
*/

/* ---------- Design tokens ---------- */
:root {
  --sand: #f6efe2;
  --sand-deep: #efe4d1;
  --bg: #fffdf8;
  --card: #ffffff;
  --ink: #1c1a15;
  --fg: #24211a;
  --muted: #6c6559;
  --border: #e4dbc9;
  --primary: #2f5d43;
  --primary-fg: #f7f4ec;
  --accent: #c2703a;
  --accent-fg: #fffaf4;
  --secondary: #eee6d6;
  --radius: 18px;
  --maxw: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6, .display {
  font-family: Fraunces, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.muted { color: var(--muted); }
.screen-reader-text { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; padding: .8rem 1.5rem;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: filter .2s, background .2s, color .2s;
}
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { filter: brightness(1.1); color: var(--accent-fg); }
.btn-ghost { border-color: rgba(247,244,236,.35); color: var(--primary-fg); }
.btn-ghost:hover { background: rgba(247,244,236,.12); color: var(--primary-fg); }
.btn-outline { border-color: var(--border); color: var(--fg); background: var(--card); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,26,21,.45); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.brand-name { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.brand-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--fg); }
.main-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 10px; padding: .5rem .8rem; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; margin: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .8rem; padding: .5rem 0 1rem; }
  .header-inner { flex-wrap: wrap; }
  .brand img { width: 52px; height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(140deg, #24503a 0%, #2f5d43 45%, #3d6b4a 100%); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.hero h1 { color: var(--primary-fg); font-size: clamp(2.1rem, 5vw, 3.6rem); margin-top: 1rem; }
.hero p.lead { color: rgba(247,244,236,.82); font-size: 1.1rem; max-width: 40rem; margin: 1.4rem auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 520px; margin: 3rem auto 0; padding-top: 1.75rem; border-top: 1px solid rgba(247,244,236,.22); }
.hero-stats dt { font-family: Fraunces, Georgia, serif; font-size: 1.9rem; color: var(--primary-fg); }
.hero-stats dd { margin: .25rem 0 0; font-size: 12px; color: rgba(247,244,236,.72); }

/* ---------- Slideshow ---------- */
.slideshow { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); }
.slides { position: relative; aspect-ratio: 16 / 9; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.75rem 1.6rem;
  background: linear-gradient(to top, rgba(12,11,9,.9), rgba(12,11,9,0));
  color: #fff;
}
.slide-caption .loc { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #eab98e; margin: 0 0 .4rem; }
.slide-caption p.cap { margin: 0; font-size: 1rem; max-width: 52rem; line-height: 1.5; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: none; border-radius: 999px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; color: var(--ink); }
.slide-nav:hover { background: #fff; }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }
.slide-dots { display: flex; gap: .45rem; justify-content: center; padding: .9rem 0 0; }
.slide-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--border); cursor: pointer; padding: 0; }
.slide-dots button.active { background: var(--accent); width: 22px; }
@media (max-width: 700px) { .slides { aspect-ratio: 4 / 3; } .slide-caption p.cap { font-size: .9rem; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; scroll-margin-top: 90px; }
.section.sand { background: var(--sand); }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-top: .7rem; }
.section-head .lead { margin-top: 1rem; color: var(--muted); }
.section-body { margin-top: 3rem; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillars > div { background: var(--card); padding: 1.75rem; }
.pillars h3 { font-size: 1rem; margin-bottom: .5rem; }
.pillars p { font-size: .9rem; color: var(--muted); margin: 0; }
.pillar-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: .9rem; }

.about-grid { display: grid; gap: 3rem; grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--muted); }
.quote { border-left: 4px solid var(--accent); background: var(--secondary); border-radius: 16px; padding: 1.5rem; margin-top: 2rem; }
.quote p:first-child { font-family: Fraunces, Georgia, serif; font-size: 1.1rem; color: var(--ink); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-top: 1rem; }
.chips li { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: .35rem 1rem; font-size: .875rem; }

.objectives { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; list-style: none; }
@media (max-width: 780px) { .objectives { grid-template-columns: 1fr; } }
.objectives li { background: var(--card); padding: 1.75rem; display: flex; gap: 1rem; }
.objectives .num { font-family: Fraunces, Georgia, serif; font-size: 1.5rem; color: var(--accent); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.6rem; }
.card-body h3 { font-size: 1.2rem; margin: .4rem 0 0; }
.tick-list { list-style: none; margin-top: 1.1rem; display: grid; gap: .6rem; }
.tick-list li { font-size: .9rem; color: var(--muted); padding-left: 1.2rem; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-top: 2rem; }
.pmu-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.pmu-grid li { background: var(--secondary); border-radius: 12px; padding: .75rem 1rem; font-size: .9rem; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats > div { background: var(--card); padding: 2rem; }
.stats dt { font-family: Fraunces, Georgia, serif; font-size: 2.2rem; color: var(--primary); }
.stats dd { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- News ---------- */
.featured { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.featured img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.featured .card-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; }
.readmore { display: inline-flex; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--primary); margin-top: 1.4rem; }
.post-card { display: flex; flex-direction: column; }
.post-card .card-body { display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1rem; line-height: 1.3; }
.post-card p.excerpt { font-size: .9rem; color: var(--muted); flex: 1; margin-top: .75rem; }

/* ---------- Single / page ---------- */
.article-hero { background: var(--sand); padding: 56px 0 0; }
.article-head { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: .8rem; }
.article-meta { font-size: 13px; color: var(--muted); margin-top: 1rem; }
.article-figure { max-width: 1000px; margin: 2.5rem auto 0; padding: 0 20px; }
.article-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 20px 4rem; }
.entry-content p, .entry-content li { font-size: 1.05rem; color: #34302a; }
.entry-content h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.entry-content h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.entry-content blockquote { border-left: 4px solid var(--accent); background: var(--secondary); margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 12px; }
.entry-content img { border-radius: 14px; margin: 1.5rem 0; }
.backlink { display: inline-flex; gap: .4rem; font-size: .9rem; font-weight: 600; }

.pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers { border: 1px solid var(--border); border-radius: 10px; padding: .45rem .9rem; font-size: .9rem; background: var(--card); }
.pagination .page-numbers.current { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,253,248,.72); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fffdf8; font-size: .95rem; }
.site-footer .brand-name { color: #fffdf8; }
.site-footer a { color: rgba(255,253,248,.72); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; display: grid; gap: .5rem; margin-top: 1rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,253,248,.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 12px; color: rgba(255,253,248,.55); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin: 1.5rem auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.sticky, .gallery-caption, .bypostauthor { }
