/* ================================================================
   VCPRF SHARED STYLESHEET
   Veritas Centre for Policy Research Foundation
================================================================ */
 
:root {
  --navy:       #0B1F3A;
  --navy-deep:  #07121f;
  --navy-mid:   #0d2040;
  --navy-light: #1e3f6e;
  --gold:       #C8A951;
  --gold-light: #e8c055;
  --gold-dim:   rgba(200,169,81,0.55);
  --offwhite:   #f8f5ef;
  --stone:      #f0ebe0;
  --text-body:  #3a4a5c;
  --text-muted: #6b7a8d;
  --border-gold:rgba(200,169,81,0.2);
  --transition: 0.3s ease;
}
 
/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  background-color: var(--offwhite);
  color: var(--navy);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}
 
/* ---- DARK MODE ---- */
.dark body, body.dark {
  background-color: var(--navy-deep);
  color: #e8dfc8;
}
.dark { color-scheme: dark; }
 
/* ================================================================
   PAGE TRANSITION OVERLAY
================================================================ */
#page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1a3a60 100%);
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page-transition.is-leaving {
  animation: wipeOut 0.5s cubic-bezier(0.77,0,0.175,1) forwards;
  pointer-events: all;
}
#page-transition.is-entering {
  animation: wipeIn 0.45s cubic-bezier(0.77,0,0.175,1) forwards;
  pointer-events: none;
}
#page-transition .pt-emblem {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease 0.15s, transform 0.25s ease 0.15s;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-align: center;
}
#page-transition.is-leaving .pt-emblem {
  opacity: 1;
  transform: scale(1);
}
 
@keyframes wipeOut {
  0%   { transform: scaleY(0); transform-origin: bottom center; }
  100% { transform: scaleY(1); transform-origin: bottom center; }
}
@keyframes wipeIn {
  0%   { transform: scaleY(1); transform-origin: top center; }
  100% { transform: scaleY(0); transform-origin: top center; }
}
 
/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #e8dfc8; }
 
.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.motto {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.1em;
}
 
/* ================================================================
   GOLD ACCENTS
================================================================ */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-line-left {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0;
}
.gold-line-center {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
}
.ornament::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after  { background: linear-gradient(90deg, var(--gold), transparent); }
 
/* ================================================================
   BUTTONS
================================================================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s, box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,81,0.35);
}
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(200,169,81,0.6);
  color: rgba(200,169,81,0.9);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 29px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 0.2s;
}
.btn-outline:hover {
  background: rgba(200,169,81,0.1);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(11,31,58,0.25);
  color: var(--navy);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 29px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
 
/* ================================================================
   CARDS
================================================================ */
.vcprf-card {
  background: white;
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.vcprf-card:hover {
  box-shadow: 0 10px 36px rgba(11,31,58,0.1), 0 0 0 1px rgba(200,169,81,0.35);
  transform: translateY(-3px);
  border-color: rgba(200,169,81,0.45);
}
.dark .vcprf-card {
  background: var(--navy-mid);
  border-color: rgba(200,169,81,0.12);
}
.dark .vcprf-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,169,81,0.28);
}
 
.icon-box {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200,169,81,0.35);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
 
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-gold {
  background: rgba(200,169,81,0.1);
  color: var(--gold);
  border: 1px solid rgba(200,169,81,0.25);
}
.badge-muted {
  background: rgba(11,31,58,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(90,106,124,0.25);
}
.dark .badge-muted {
  background: rgba(255,255,255,0.05);
  color: #8a9bb5;
  border-color: rgba(138,155,181,0.2);
}
 
/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
 
/* ================================================================
   NAVBAR
================================================================ */
#vcprf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,245,239,0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition), background var(--transition);
}
.dark #vcprf-nav {
  background: rgba(7,18,31,0.97);
}
#vcprf-nav.scrolled {
  box-shadow: 0 2px 24px rgba(11,31,58,0.12);
}
.dark #vcprf-nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.nav-top-line { height: 2px; }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  transition: filter var(--transition), transform var(--transition);
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 7px rgba(200,169,81,0.55));
  transform: scale(1.03);
}
.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-fallback .logo-box {
  width: 42px; height: 42px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-fallback .logo-box span {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}
.nav-logo-fallback .logo-text p:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.dark .nav-logo-fallback .logo-text p:first-child { color: #e8dfc8; }
.nav-logo-fallback .logo-text p:last-child {
  font-family: 'Lato', sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}
.dark .nav-link { color: #c8bfa0; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-controls { display: flex; align-items: center; gap: 12px; }
.theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200,169,81,0.3);
  background: transparent;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.theme-btn:hover { background: rgba(200,169,81,0.1); }
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--gold);
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(200,169,81,0.15);
  background: rgba(248,245,239,0.98);
  padding: 16px 24px 20px;
}
.dark .mobile-menu { background: rgba(7,18,31,0.98); }
.mobile-menu.open { display: flex; flex-direction: column; gap: 14px; }
.mobile-menu .nav-link { font-size: 0.8rem; }
 
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger-btn { display: flex; }
  .theme-btn { width: 32px; height: 32px; }
}
 
/* ================================================================
   HERO (SHARED)
================================================================ */
.page-hero {
  background: linear-gradient(160deg, #0d2040 0%, #0B1F3A 45%, #0f2847 75%, #0a1a2e 100%);
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}
.page-hero.tall { min-height: 100vh; }
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,81,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,81,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(200,169,81,0.06) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(11,31,58,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.corner-fl {
  position: absolute;
  width: 100px; height: 100px;
  opacity: 0.14;
  pointer-events: none;
}
.corner-fl.tr { top: 20px; right: 20px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.corner-fl.bl { bottom: 20px; left: 20px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.watermark {
  position: absolute;
  bottom: 16px; right: 24px;
  font-family: 'EB Garamond', serif;
  font-size: 5rem;
  color: rgba(200,169,81,0.04);
  pointer-events: none; user-select: none;
  line-height: 1;
}
.hero-inner {
  position: relative; z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-inner.centered { text-align: center; }
 
/* Hero text animations */
.h-animate { opacity: 0; }
.h-a1 { animation: hFadeUp 0.9s ease 0.2s forwards; }
.h-a2 { animation: hFadeUp 0.9s ease 0.45s forwards; }
.h-a3 { animation: hFadeUp 0.9s ease 0.65s forwards; }
.h-a4 { animation: hFadeUp 0.9s ease 0.85s forwards; }
.h-a5 { animation: hFadeUp 0.9s ease 1.05s forwards; }
@keyframes hFadeUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
/* ================================================================
   INNER PAGE HERO (smaller)
================================================================ */
.inner-hero {
  background: linear-gradient(160deg, #0d2040 0%, #0B1F3A 50%, #0a1a2e 100%);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.inner-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  position: relative; z-index: 10;
}
.inner-hero-breadcrumb {
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,169,81,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inner-hero-breadcrumb a {
  color: inherit; text-decoration: none;
  transition: color var(--transition);
}
.inner-hero-breadcrumb a:hover { color: var(--gold); }
.inner-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}
.inner-hero .sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 560px;
}
.inner-hero .sub.wide { max-width: 680px; }
 
/* ================================================================
   LAYOUT UTILS
================================================================ */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-wrap.tight { padding: 64px 24px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-top: 12px;
}
.dark .section-header h2 { color: #e8dfc8; }
.section-header p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 560px;
}
.section-header.centered p { margin: 14px auto 0; }
 
.gold-hr { border: none; border-top: 1px solid rgba(200,169,81,0.18); margin: 0; }
 
/* dark mode text adjustments */
.dark .text-body { color: rgba(232,223,200,0.75); }
.dark .text-muted-el { color: #8a9bb5; }
 
/* ================================================================
   FOOTER
================================================================ */
#vcprf-footer {
  background: #060e1a;
  color: #5a6a7c;
  border-top: 1px solid rgba(200,169,81,0.1);
}
.footer-top-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(200,169,81,0.35), transparent); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand p.org-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c8bfa0;
  margin: 12px 0 6px;
}
.footer-brand p.org-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #4a5a6c;
  margin-top: 12px;
}
.footer-col-title {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,169,81,0.6);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.84rem;
  color: #4a5a6c;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item a {
  font-family: 'Lato', sans-serif;
  font-size: 0.84rem;
  color: #4a5a6c;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(200,169,81,0.08);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.footer-bottom p {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  color: #3a4a5a;
}
 
/* ================================================================
   FORM ELEMENTS
================================================================ */
.form-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200,169,81,0.65);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,81,0.22);
  border-radius: 2px;
  padding: 10px 14px;
  color: #e8dfc8;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input::placeholder { color: rgba(232,223,200,0.35); }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,81,0.1);
}
 
/* ================================================================
   DARK MODE OVERRIDES — SECTION BGs
================================================================ */
.dark .bg-stone { background-color: rgba(13,32,64,0.35); }
.bg-stone { background-color: rgba(240,234,220,0.4); }
 
/* ================================================================
   ARCHIVE / DARK SECTIONS
================================================================ */
.dark-section {
  background: linear-gradient(135deg, #0d2040 0%, #0B1F3A 55%, #0f2645 100%);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,169,81,0.055), transparent 70%);
  pointer-events: none;
}
.dark-section-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,81,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,81,0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
 
/* ================================================================
   SECTION WATERMARK NUMBERS
================================================================ */
.sec-num {
  position: absolute;
  top: -12px; left: -8px;
  font-family: 'EB Garamond', serif;
  font-size: 5rem;
  color: rgba(200,169,81,0.07);
  line-height: 1;
  pointer-events: none; user-select: none;
}
 
/* ================================================================
   RESPONSIVE GRID HELPERS
================================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-5-2 { display: grid; grid-template-columns: 5fr 2fr; gap: 48px; }
.grid-2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5-2, .grid-2-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
 
/* ================================================================
   MISC UTILITIES
================================================================ */
.text-gold { color: var(--gold); }
.text-white { color: white; }
.text-navy { color: var(--navy); }
.italic-serif { font-family: 'EB Garamond', serif; font-style: italic; }
.dot-gold {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.check-box {
  width: 16px; height: 16px;
  border: 1px solid rgba(200,169,81,0.4);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}