/*
Theme Name:  Warri House Fundraising
Theme URI:   https://warri-fund-gkwy4nh6.manus.space
Description: A custom WordPress theme for the Warri House Old Boys Fundraising Campaign. Deep navy and burnished gold institutional design.
Author:      Warri House Fundraising Committee
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warri-house
*/

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --navy-deep:    #0a1628;
  --navy-mid:     #0f2044;
  --navy-light:   #162d5c;
  --gold:         #c9a227;
  --gold-light:   #e8c96a;
  --gold-muted:   rgba(201,162,39,0.15);
  --white:        #ffffff;
  --text-muted:   rgba(255,255,255,0.65);
  --border:       rgba(201,162,39,0.2);
  --radius:       8px;
  --max-width:    1200px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  background-color: var(--navy-deep);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; margin-bottom: 1rem; }
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.6rem;
}
h3 { font-size: 1.4rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 600; color: var(--gold-light); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: rgba(255,255,255,0.85); }

/* ── Layout Helpers ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
section {
  padding: 5rem 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 4px 20px rgba(201,162,39,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  box-shadow: 0 6px 28px rgba(201,162,39,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* ── Header / Nav ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; object-fit: contain; }
.site-navigation ul { list-style: none; display: flex; gap: 2rem; }
.site-navigation a { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.site-navigation a:hover { color: var(--gold); }
.cta-button {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.cta-button:hover { background: var(--gold-light); color: var(--navy-deep); transform: scale(1.03); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/warri-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(15,32,68,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  max-width: 780px;
}
.hero-logo { width: 90px; height: 90px; object-fit: contain; margin-bottom: 1rem; }
.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* Progress bar */
.hero-progress-wrap { margin-bottom: 2rem; }
.hero-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.hero-progress-raised {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.hero-progress-raised span { font-size: 1rem; color: rgba(255,255,255,0.55); font-family: 'Source Sans 3', Arial, sans-serif; font-weight: 400; margin-left: 0.4rem; }
.hero-progress-pct { font-size: 0.85rem; color: var(--gold); font-weight: 600; text-align: right; }
.hero-progress-track {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: visible;
}
.hero-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 34%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a227, #e8c96a);
  box-shadow: 0 0 14px 2px rgba(201,162,39,0.5);
  transition: width 2.4s cubic-bezier(0.16,1,0.3,1);
}
.hero-progress-dot {
  position: absolute;
  top: 50%;
  left: calc(34% - 6px);
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 3px rgba(232,201,106,0.8);
}
.hero-progress-minmax {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* Recent donations ticker */
.hero-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-name { color: var(--white); font-weight: 600; }
.ticker-amount { color: var(--gold); font-weight: 700; }
.ticker-time { color: rgba(255,255,255,0.4); }

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Stats Section ──────────────────────────────────────────────────────────── */
.stats-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.stat-item {}
.stat-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Completed Projects ─────────────────────────────────────────────────────── */
.projects-section { background: var(--navy-deep); }
.projects-section .container { max-width: var(--max-width); margin: 0 auto; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.project-card {
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201,162,39,0.15);
}
.project-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin-bottom: 0.5rem;
}
.project-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.project-images figure { margin: 0; }
.project-images img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.project-images figcaption { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.9rem; text-align: center; }

.donors-highlight {
  text-align: center;
  padding: 2rem;
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2.5rem;
}
.donor-count {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* ── What's Next ────────────────────────────────────────────────────────────── */
.whats-next { background: var(--navy-mid); }
.whats-next .container { max-width: var(--max-width); margin: 0 auto; }
.future-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.future-project {
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
}
.future-project h4 { color: var(--white); font-size: 1.1rem; }
.future-project p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.target-info {
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}
.needed-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.75rem;
}

/* ── Financial Transparency ─────────────────────────────────────────────────── */
.financial-transparency { background: var(--navy-deep); }
.financial-transparency .container { max-width: var(--max-width); margin: 0 auto; }
.financial-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.financial-stat {
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.financial-stat .label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.financial-stat .value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.financial-stat .detail { color: var(--text-muted); font-size: 0.85rem; }

/* ── Donors Section ─────────────────────────────────────────────────────────── */
.donors-section { background: var(--navy-mid); }
.donors-section .container { max-width: var(--max-width); margin: 0 auto; }
.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.donor-card {
  background: var(--gold-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: transform 0.2s, background 0.2s;
}
.donor-card:hover {
  transform: translateY(-3px);
  background: rgba(201,162,39,0.2);
}
.donor-call {
  text-align: center;
  font-size: 1rem;
  margin-top: 2rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Payment Details ────────────────────────────────────────────────────────── */
.payment-details { background: var(--navy-deep); }
.payment-details .container { max-width: var(--max-width); margin: 0 auto; }
.payment-info {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  margin: 2rem 0;
}
.payment-info h4 { color: var(--gold); margin-bottom: 1.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.payment-field {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.payment-field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.payment-field label { display: block; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem; }
.payment-field .value { font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.75rem;
  transition: border-color 0.2s, color 0.2s;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── Final CTA ──────────────────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(201,162,39,0.03));
  border-top: 1px solid var(--border);
}
.final-cta .container { max-width: 700px; margin: 0 auto; }
.final-cta h2::after { left: 50%; transform: translateX(-50%); margin-left: auto; margin-right: auto; }
.final-cta p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-container { max-width: var(--max-width); margin: 0 auto; }
.footer-logo { width: 50px; height: 50px; object-fit: contain; margin: 0 auto 1rem; }
.site-footer p { color: var(--text-muted); font-size: 0.85rem; margin: 0.3rem 0; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .cta-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .site-navigation { display: none; }
  .header-container { flex-wrap: wrap; gap: 0.75rem; }
  section { padding: 3rem 1rem; }
  .stats-grid, .projects-grid, .financial-stats, .future-projects { grid-template-columns: 1fr; }
  .donors-grid { grid-template-columns: repeat(2, 1fr); }
}
