/*
Theme Name: ReHope Editorial
Theme URI: https://rehopeint.org
Author: OpenAI
Author URI: https://rehopeint.org
Description: A refined editorial WordPress theme for Renewed Hope International. Dark, elegant, and mission-led, with a cleaner hierarchy for giving, initiatives, and ministry storytelling.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: renewed-hope
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   CSS VARIABLES — DESIGN TOKENS
   ============================================================ */
:root {
  --navy:        #102739;
  --navy-mid:    #17394e;
  --navy-light:  #234a61;
  --cream:       #f6f2eb;
  --cream-dark:  #efe8dc;
  --gold:        #c89b5a;
  --gold-light:  #e1bf87;
  --gold-pale:   #f5e8cf;
  --terracotta:  #8e5a37;
  --text-dark:   #1d2730;
  --text-mid:    #48525d;
  --text-light:  #6e7882;
  --white:       #ffffff;
  --border:      rgba(16,39,57,0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;
  --font-accent:  'Playfair Display', Georgia, serif;

  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   28px;
  --radius-full: 9999px;

  --shadow-soft: 0 8px 28px rgba(16,39,57,0.08);
  --shadow-card: 0 18px 56px rgba(16,39,57,0.12);
  --shadow-lift: 0 28px 70px rgba(4,15,26,0.26);

  --transition: 0.32s cubic-bezier(0.4,0,0.2,1);
  --max-w:       1240px;
  --max-w-text:  720px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }

p { margin-bottom: 1.2em; color: var(--text-mid); font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.lead {
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,137,58,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,137,58,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.btn-ghost:hover {
  border-bottom-color: var(--gold);
}
.btn-ghost::after { content: ' →'; }

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15,31,61,0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(15,31,61,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img {
  height: 48px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.logo-text .tagline {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

/* ============================================================
   HERO
   ============================================================ */
.site-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy) 0%, #162a50 50%, #1f3a6e 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9893a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}

.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 160px 0 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,137,58,0.15);
  border: 1px solid rgba(201,137,58,0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 28px;
  max-width: 820px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 100px;
  right: 48px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(201,137,58,0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   IMPACT STATS BAR
   ============================================================ */
.impact-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.impact-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 36px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--gold); }

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 130px 0; }

.section-header {
  margin-bottom: 60px;
}
.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; }

/* ============================================================
   MISSION SECTION
   ============================================================ */
.mission-section { background: var(--cream); }

.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-visual {
  position: relative;
}

.mission-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.mission-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mission-img-wrap:hover img { transform: scale(1.04); }

.mission-badge-float {
  position: absolute;
  bottom: 32px;
  right: -24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  max-width: 200px;
  box-shadow: var(--shadow-lift);
  z-index: 2;
}
.mission-badge-float .big-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.mission-badge-float p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin: 4px 0 0;
  line-height: 1.4;
}

.mission-text .section-header { margin-bottom: 36px; }
.mission-text h2 { margin-bottom: 20px; }

.pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.pillar:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.pillar-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.pillar-text p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   INITIATIVES SECTION
   ============================================================ */
.initiatives-section { background: var(--navy); position: relative; overflow: hidden; }

.initiatives-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,137,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.initiatives-section .eyebrow { color: var(--gold-light); }
.initiatives-section h2 { color: var(--white); }
.initiatives-section .section-header p { color: rgba(255,255,255,0.65); }

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.initiative-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.initiative-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,137,58,0.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.initiative-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.initiative-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.initiative-card:hover .initiative-img img { transform: scale(1.06); }

.initiative-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.initiative-body h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.initiative-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.58);
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.6;
}
.initiative-body .btn-ghost { color: var(--gold-light); }
.initiative-body .btn-ghost:hover { border-bottom-color: var(--gold-light); }

/* ============================================================
   HOW TO HELP
   ============================================================ */
.help-section { background: var(--cream-dark); }

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.help-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.help-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.help-card:hover::before { transform: scaleX(1); }

.help-icon {
  width: 72px;
  height: 72px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 28px;
}

.help-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.help-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ============================================================
   STORY / SCRIPTURE BANNER
   ============================================================ */
.scripture-banner {
  background: var(--gold);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scripture-banner::before {
  content: '\201C';
  position: absolute;
  top: -30px; left: 40px;
  font-family: var(--font-display);
  font-size: 18rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}

.scripture-text {
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--white);
  max-width: 860px;
  margin: 0 auto 16px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.scripture-ref {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
}

/* ============================================================
   NEWS / BLOG
   ============================================================ */
.news-section { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--cream);
}
.news-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 24px; }

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.news-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.news-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--navy);
}
.news-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(201,137,58,0.06);
  pointer-events: none;
}

.newsletter-section h2 { color: var(--white); margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,0.65); margin-bottom: 36px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 24px;
}

.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   INNER PAGE — PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9893a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; position: relative; z-index: 1; font-size: 1.1rem; }
.page-hero .eyebrow { position: relative; z-index: 1; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-content {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 72px 24px;
}
.post-content h1,h2,h3 { margin-top: 1.8em; margin-bottom: 0.6em; }
.post-content p { font-size: 1.08rem; line-height: 1.8; color: var(--text-mid); }
.post-content ul, .post-content ol {
  margin: 1.2em 0;
  padding-left: 1.5em;
  list-style: revert;
}
.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
}
.post-content img { border-radius: var(--radius-md); margin: 2em 0; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav .btn { font-size: 1rem; margin-top: 16px; }

.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  padding: 12px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}
.mobile-nav-close:hover { color: var(--white); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mission-split { grid-template-columns: 1fr; gap: 48px; }
  .mission-badge-float { right: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-bar-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .initiatives-grid,
  .help-grid,
  .news-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 120px 0 80px; }
  .hero-scroll { display: none; }
  .impact-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .newsletter-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: rgba(255,255,255,0.06);
    align-items: stretch;
  }
  .newsletter-form input {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  h1 { font-size: 2.4rem; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .impact-bar-inner { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   WP CORE CLASSES
   ============================================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.sticky { border-left: 4px solid var(--gold); padding-left: 16px; }
.bypostauthor {}


/* ============================================================
   EDITORIAL OVERRIDES — V2.1
   ============================================================ */
body {
  background: var(--cream);
  color: var(--text-dark);
}

.site-header {
  background: rgba(7, 18, 28, 0.14);
}
.site-header.scrolled {
  background: rgba(10, 23, 34, 0.94);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 88px;
  gap: 22px;
}
.site-logo {
  gap: 14px;
}
.site-logo .logo-mark img,
.site-logo img.custom-logo,
.site-logo img {
  height: 56px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
}
.logo-text .name {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.logo-text .tagline {
  color: rgba(255,255,255,0.72);
}
.main-nav {
  margin-left: auto;
}
.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-link {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}
.header-link:hover { color: var(--white); }
.header-cta {
  padding-inline: 24px;
}
.mobile-nav {
  background: linear-gradient(160deg, rgba(8,19,29,0.98), rgba(17,39,57,0.98));
}
.mobile-nav-actions {
  margin-top: 18px;
}

.site-hero.site-hero--editorial {
  min-height: 100svh;
  justify-content: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #09131d 0%, var(--navy) 42%, var(--navy-mid) 100%);
}
.site-hero--editorial .hero-bg::before {
  background:
    linear-gradient(90deg, rgba(7,16,24,0.82) 0%, rgba(7,16,24,0.42) 48%, rgba(7,16,24,0.18) 100%),
    radial-gradient(circle at 72% 18%, rgba(200,155,90,0.18), transparent 38%),
    radial-gradient(circle at 84% 70%, rgba(255,255,255,0.08), transparent 36%);
}
.hero-editorial-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 64px;
  align-items: end;
  padding-top: 90px;
  padding-bottom: 110px;
}
.site-hero--editorial .hero-content {
  padding: 0;
}
.site-hero--editorial .hero-title {
  max-width: 780px;
  font-size: clamp(3rem, 5.8vw, 5.3rem);
  line-height: 1.02;
  margin-bottom: 24px;
}
.site-hero--editorial .hero-title em {
  color: var(--gold-light);
  font-style: italic;
}
.site-hero--editorial .hero-text {
  max-width: 620px;
  font-size: clamp(1.08rem, 1.75vw, 1.24rem);
  color: rgba(255,255,255,0.76);
  margin-bottom: 36px;
}
.hero-signals {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-signals span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-panel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(248, 243, 237, 0.93);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: var(--shadow-lift);
  color: var(--text-dark);
}
.hero-panel-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(16,39,57,0.1);
  margin-bottom: 18px;
}
.hero-panel-head p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin: 10px 0 0;
}
.hero-panel-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.hero-stat-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(16,39,57,0.08);
}
.hero-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 6px;
}
.hero-stat-card span {
  display: block;
  color: var(--text-light);
  font-size: 0.83rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-panel-list {
  display: grid;
  gap: 14px;
}
.hero-panel-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(16,39,57,0.1);
}
.panel-index {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  padding-top: 6px;
}
.hero-panel-list strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.hero-panel-list span:last-child {
  color: var(--text-light);
  font-size: 0.88rem;
}
.hero-scroll,
.hero-waves {
  display: none;
}

.impact-bar--editorial {
  background: #fbf7f1;
  border-bottom: 1px solid rgba(16,39,57,0.08);
}
.impact-bar--editorial .impact-bar-inner {
  gap: 16px;
  padding: 26px 0;
}
.impact-bar--editorial .stat-item {
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  border: 1px solid rgba(16,39,57,0.08);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.impact-bar--editorial .stat-item:last-child,
.impact-bar--editorial .stat-item {
  border-right: 1px solid rgba(16,39,57,0.08);
}

.mission-section--editorial {
  background: var(--cream);
}
.mission-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}
.mission-copy .lead {
  margin-bottom: 18px;
}
.mission-copy p:last-of-type {
  margin-bottom: 28px;
}
.mission-img-wrap.editorial {
  aspect-ratio: 6 / 5;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(16,39,57,0.08);
}
.mission-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.mission-note {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(16,39,57,0.08);
}
.mission-note-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}
.mission-note h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.mission-note p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-light);
}

.initiatives-section--editorial {
  background: linear-gradient(180deg, #0f2331 0%, #132c3d 100%);
}
.initiatives-section--editorial::before {
  width: 640px;
  height: 640px;
  top: -180px;
  right: -180px;
}
.initiatives-grid.editorial-grid {
  gap: 32px;
}
.initiative-card--editorial {
  background: rgba(247,243,238,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
}
.initiative-img--editorial {
  position: relative;
  display: block;
  overflow: hidden;
}
.initiative-img--editorial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,23,34,0.08), rgba(10,23,34,0.55));
}
.initiative-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.88);
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.initiative-index {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.initiative-card--editorial .initiative-body h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.initiative-card--editorial .initiative-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.help-section--editorial {
  background: linear-gradient(180deg, rgba(239,232,220,0.6), rgba(246,242,235,0.92));
}
.editorial-help-grid {
  gap: 20px;
}
.help-card--editorial {
  text-align: left;
  padding: 34px;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
}
.help-card--editorial .btn {
  padding-inline: 20px;
}
.help-index {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.help-card--editorial h3 {
  font-size: 1.45rem;
}
.help-card--editorial p {
  min-height: 108px;
}
.help-card--editorial .help-icon {
  display: none;
}

.journal-section {
  background: #fbf8f3;
}
.journal-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
}
.journal-feature {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(16,39,57,0.08);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.journal-feature-media {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.journal-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.journal-feature:hover .journal-feature-media img {
  transform: scale(1.04);
}
.journal-feature-body {
  padding: 28px;
}
.journal-feature-body h3 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  margin-bottom: 12px;
}
.journal-list {
  display: grid;
  gap: 18px;
}
.journal-list-item {
  padding: 24px;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(16,39,57,0.08);
  box-shadow: var(--shadow-soft);
}
.journal-list-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.journal-list-item p {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.newsletter-section--editorial {
  background: linear-gradient(135deg, #0d1d29 0%, #16364a 100%);
}
.newsletter-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 26px;
}
.newsletter-copy p {
  max-width: 560px;
}
.newsletter-section--editorial .newsletter-form {
  margin: 0;
  max-width: none;
}

.site-footer {
  background: #0c1a25;
  padding-top: 68px;
}
.footer-grid--editorial {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-logo {
  display: inline-flex;
  margin-bottom: 18px;
}
.footer-logo .logo-text .name,
.footer-logo .logo-text .tagline {
  color: var(--white);
}
.footer-col h5 {
  color: var(--white);
}
.footer-col ul li a,
.footer-col p,
.footer-brand p {
  color: rgba(255,255,255,0.62);
}
.footer-col ul li a:hover,
.footer-col p a:hover {
  color: var(--gold-light);
}
.footer-give {
  margin-top: 18px;
  display: inline-flex;
}
.compact-contact p {
  margin-bottom: 10px;
}
.social-link {
  border-color: rgba(255,255,255,0.14);
}
.social-link:hover {
  border-color: rgba(200,155,90,0.4);
}

.page-hero,
.single .page-hero {
  background: linear-gradient(135deg, #0d1d29 0%, #16364a 100%);
}
.post-content,
.entry-content {
  color: var(--text-mid);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  background: rgba(255,255,255,0.7);
  border-radius: 0 18px 18px 0;
  margin: 24px 0;
}

@media (max-width: 1100px) {
  .hero-editorial-grid,
  .mission-editorial-grid,
  .journal-layout,
  .newsletter-shell,
  .footer-grid--editorial {
    grid-template-columns: 1fr;
  }
  .mission-notes {
    grid-template-columns: 1fr;
  }
  .header-link {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .site-hero.site-hero--editorial {
    min-height: auto;
    padding-top: 96px;
  }
  .hero-editorial-grid {
    gap: 26px;
    padding-top: 46px;
    padding-bottom: 64px;
  }
  .site-hero--editorial .hero-title {
    max-width: none;
  }
  .site-hero--editorial .hero-actions {
    gap: 12px;
  }
  .impact-bar--editorial .impact-bar-inner,
  .initiatives-grid.editorial-grid,
  .editorial-help-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-section--editorial .newsletter-form {
    width: 100%;
    flex-direction: column;
    border-radius: 24px;
    padding: 14px;
  }
  .newsletter-form input {
    min-height: 52px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-inner {
    height: 78px;
  }
  .site-logo .logo-mark img,
  .site-logo img.custom-logo,
  .site-logo img {
    height: 48px;
  }
  .logo-text .tagline {
    display: none;
  }
  .hero-panel {
    padding: 22px;
  }
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }
  .section,
  .section-lg {
    padding: 76px 0;
  }
  .help-card--editorial,
  .journal-feature-body,
  .journal-list-item {
    padding: 22px;
  }
}
.initiatives-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.initiatives-grid {
  margin-top: 60px;
}
