/* HEARTS4CHARITY INC — static nonprofit site */
:root {
  --navy: #002d62;
  --navy-dark: #001a3a;
  --gold: #c5a059;
  --gold-light: #d4b87a;
  --red: #b22234;
  --red-dark: #8b1a28;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef1f5;
  --gray-200: #dde3ea;
  --gray-600: #5a6573;
  --gray-800: #2d3748;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 24px rgba(0, 45, 98, 0.08);
  --radius: 8px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Top bar */
.top-bar {
  background: var(--navy-dark);
  color: var(--gray-200);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--white); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Nav */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gray-100);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-donate {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
}

.btn-donate:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover { background: var(--navy-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover { background: var(--gold-light); color: var(--navy); }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 45, 98, 0.92) 0%, rgba(0, 26, 58, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Stats strip */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.35rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p { color: var(--gray-600); }

/* Program cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.program-card:hover { transform: translateY(-4px); }

.program-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.program-card-body { padding: 1.5rem; }

.program-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.program-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.program-card .link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}

/* About split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-section img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.split-content h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  margin-top: 1.5rem;
}

.values-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.values-list li::before {
  content: "♥";
  color: var(--red);
  font-size: 0.85rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
}

/* Page header */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; max-width: 600px; margin-inline: auto; }

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.breadcrumb a { color: var(--gold-light); }

/* Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.leader-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.leader-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.leader-info { padding: 1.5rem; }

.leader-info h3 { color: var(--navy); margin-bottom: 0.25rem; }

.leader-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.leader-info p { color: var(--gray-600); font-size: 0.9rem; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 1.5rem; }

.blog-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.blog-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 1rem; }

/* Article */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article-content h2 {
  color: var(--navy);
  margin: 2rem 0 1rem;
}

.article-content p { margin-bottom: 1rem; color: var(--gray-800); }

.article-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

.article-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

/* Transparency table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.info-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  width: 35%;
}

.info-table tr:last-child td,
.info-table tr:last-child th { border-bottom: none; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h3 { color: var(--navy); margin-bottom: 1rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-detail strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

/* Donate page */
.donate-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.donate-tier {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.donate-tier:hover { border-color: var(--gold); }

.donate-tier.featured {
  border-color: var(--gold);
  background: var(--gray-50);
}

.donate-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.donate-tier p { color: var(--gray-600); font-size: 0.9rem; }

.disclaimer-box {
  background: var(--gray-100);
  border-left: 4px solid var(--navy);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 2rem;
}

/* Footer — advanced */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(197, 160, 89, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(178, 34, 52, 0.1), transparent 50%),
    var(--navy-dark);
  color: var(--gray-200);
  padding: 0;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 40%, var(--red) 70%, var(--gold) 100%);
}

.footer-newsletter {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.25rem 0;
}

.footer-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-newsletter h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.footer-newsletter p {
  font-size: 0.92rem;
  opacity: 0.8;
  max-width: 520px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 260px;
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button { white-space: nowrap; }

.newsletter-note {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-top: 0.45rem;
}

.footer-main {
  padding: 3.25rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
  gap: 2.75rem;
}

.footer-brand {
  position: relative;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.footer-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.25));
}

.footer-logo-name {
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-logo-name span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.82;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.08);
}

.social-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.55rem; }

.footer-col a {
  color: rgba(238, 241, 245, 0.82);
  font-size: 0.92rem;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col a:hover::after { width: 100%; }

.footer-contact-list {
  list-style: none;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-contact-item strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-contact-item a::after { display: none; }

.footer-cta {
  display: inline-flex;
  margin-top: 0.35rem;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.footer-cta:hover {
  background: var(--red-dark);
  color: var(--white) !important;
}

.footer-cta::after { display: none !important; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  opacity: 0.78;
}

.footer-legal {
  font-size: 0.75rem;
  opacity: 1;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}

.footer-legal a { color: var(--gold-light); }
.footer-legal a:hover { color: var(--white); }

.footer-legal .sep {
  opacity: 0.35;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  transition: transform 0.2s, background 0.2s;
}

.back-to-top.visible { display: inline-flex; }
.back-to-top:hover { transform: translateY(-3px); background: var(--gold-light); }
.back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* Program detail */
.program-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.program-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 98, 0.7);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.program-hero-overlay h1 {
  color: var(--white);
  font-size: 2.5rem;
}

.program-detail { padding: 3rem 0 4rem; }

.program-detail .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.sidebar-box {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--gold);
}

.sidebar-box h4 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 0.4rem 0; font-size: 0.9rem; }
.sidebar-box li::before { content: "→ "; color: var(--gold); }

/* Responsive */
@media (max-width: 992px) {
  .programs-grid,
  .testimonials-grid,
  .blog-grid,
  .leadership-grid,
  .donate-options { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter-inner { grid-template-columns: 1fr; }
  .split-section,
  .contact-grid,
  .program-detail .container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    align-items: stretch;
  }

  .main-nav a { padding: 0.75rem 1rem; }

  .programs-grid,
  .testimonials-grid,
  .blog-grid,
  .leadership-grid,
  .donate-options,
  .stats-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .footer-legal { justify-content: center; }

  .hero { min-height: 420px; }
}
