/*
Theme Name: Universal Help Hub
Theme URI: https://universalhelphub.org
Author: Universal Help Hub
Author URI: https://universalhelphub.org
Description: A minimalist, human-centered editorial WordPress theme built for Universal Help Hub (UHH). Clean typography, purposeful layout, and transparent impact metrics.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: uhh-theme
*/

:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  
  /* Color System */
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  
  --brand-blue: #1d4ed8;
  --brand-blue-hover: #1e40af;
  --brand-blue-subtle: #eff6ff;
  --brand-cyan: #0284c7;
  --emerald-accent: #059669;
  
  --surface-card: #ffffff;
  --border-subtle: #e5e7eb;
  --border-soft: #f1f5f9;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --shadow-subtle: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: #fafbfc;
  color: var(--color-slate-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  background: var(--brand-blue-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-blue);
  border-radius: 50%;
  display: inline-block;
}

/* Header & Navigation */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-announcement {
  background: var(--color-slate-900);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: center;
  font-weight: 500;
}

.nav-announcement strong {
  color: #60a5fa;
  font-weight: 600;
}

.nav-announcement a {
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 600;
}

.site-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-img {
  height: 42px;
  width: auto;
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-title-box .name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-slate-900);
  line-height: 1.1;
}

.brand-title-box .sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-slate-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-slate-600);
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-slate-800);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--color-slate-50);
  border-color: var(--color-slate-400);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-slate-800);
}

/* Hero Section */
.hero {
  padding: 80px 0 64px;
  background: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-heading {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-slate-900);
  margin-top: 18px;
  margin-bottom: 22px;
}

.hero-heading em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--brand-blue);
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--color-slate-600);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.trust-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--color-slate-500);
}

.avatars-group {
  display: flex;
}

.avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background-color: #cbd5e1;
}

.avatar-badge:first-child {
  margin-left: 0;
}

/* Hero Right Card - Live Campaign Spotlight */
.hero-spotlight-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.spotlight-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-accent);
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
}

.spotlight-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.spotlight-desc {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  margin-bottom: 24px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 76%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 9999px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-slate-700);
  margin-bottom: 24px;
}

/* Impact Metrics */
.metrics-section {
  padding: 48px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.metric-item {
  border-left: 2px solid var(--border-subtle);
  padding-left: 20px;
}

/* Press & Media Mention */
.press-banner {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.press-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.press-quote-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.press-logo-badge {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  border-right: 2px solid var(--border-subtle);
  padding-right: 20px;
  white-space: nowrap;
}

.press-quote-text {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  font-style: italic;
  font-family: var(--font-serif);
}

.press-read-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.press-read-link:hover {
  text-decoration: underline;
}

/* Team & Field Leadership */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.team-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

.team-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.team-bio {
  font-size: 0.8rem;
  color: var(--color-slate-500);
  line-height: 1.5;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 4px;
}

.metric-context {
  font-size: 0.8rem;
  color: var(--color-slate-500);
}

/* Section Header */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-slate-900);
  margin-top: 14px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* Pillars / Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
}

.program-box:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.program-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.program-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.program-text {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-footer {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* About / Origin Story */
.origin-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.quote-card {
  background: var(--color-slate-50);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px;
  margin: 28px 0;
}

.quote-card p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-slate-800);
  margin-bottom: 14px;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.quote-author span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-slate-500);
}

/* Governance / Financial Transparency */
.governance-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.transparency-bar {
  display: flex;
  height: 14px;
  border-radius: 9999px;
  overflow: hidden;
  margin: 20px 0 14px;
}

.t-part-1 { width: 85%; background: var(--brand-blue); }
.t-part-2 { width: 10%; background: #0284c7; }
.t-part-3 { width: 5%;  background: #94a3b8; }

.transparency-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--color-slate-600);
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* Interactive Donation Component */
.donation-section {
  background: var(--color-slate-900);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  box-shadow: var(--shadow-hover);
}

.donation-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.donation-inner-grid h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.donation-inner-grid p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

.donation-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--color-slate-800);
}

.donation-freq-toggle {
  display: flex;
  background: var(--color-slate-100);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.donation-freq-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--color-slate-600);
  transition: all 0.15s ease;
}

.donation-freq-toggle button.active {
  background: #ffffff;
  color: var(--color-slate-900);
  box-shadow: var(--shadow-subtle);
}

.amount-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-slate-800);
  transition: all 0.15s ease;
}

.chip-btn:hover, .chip-btn.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue-subtle);
  color: var(--brand-blue);
}

.payment-methods-note {
  font-size: 0.8rem;
  color: var(--color-slate-500);
  margin-top: 14px;
  text-align: center;
}

/* Field Dispatch / Articles */
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dispatch-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.dispatch-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dispatch-date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.dispatch-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-slate-900);
  line-height: 1.35;
  margin-bottom: 10px;
}

.dispatch-card h3 a:hover {
  color: var(--brand-blue);
}

.dispatch-card p {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Footer */
.site-footer {
  background: var(--color-slate-900);
  color: #94a3b8;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

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

.footer-top h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-top ul {
  list-style: none;
}

.footer-top ul li {
  margin-bottom: 10px;
}

.footer-top ul a {
  color: #94a3b8;
}

.footer-top ul a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout, .origin-grid, .donation-inner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .programs-grid, .dispatch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links.is-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-card);
  }
  .hero-heading {
    font-size: 2.4rem;
  }
  .programs-grid, .dispatch-grid, .metrics-grid, .footer-top {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
  }
  .donation-section {
    padding: 40px 24px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
