/* ==========================================================================
   Help For Health Haiti — public site styles
   ========================================================================== */

:root {
  --teal-900: #06302f;
  --teal-700: #0b6e6a;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #d8f3ef;
  --teal-50:  #f2fbf9;
  --navy-900: #0a2540;
  --navy-800: #0f2f4d;
  --coral-500: #ff6b57;
  --coral-600: #f0533f;
  --amber-400: #ffb648;
  --ink-900: #12241f;
  --ink-700: #3c4a47;
  --ink-500: #6b7c78;
  --line: #e3ece9;
  --paper: #fbfdfc;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(10, 40, 35, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 40, 35, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 40, 35, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--ink-700); }
a { color: var(--teal-700); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--teal-50); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 10px 24px rgba(240, 83, 63, 0.35); }
.btn-primary:hover { background: var(--coral-600); box-shadow: 0 14px 30px rgba(240, 83, 63, 0.42); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-teal { background: var(--teal-600); color: #fff; box-shadow: 0 10px 24px rgba(13, 148, 136, 0.3); }
.btn-teal:hover { background: var(--teal-700); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-100); }
.btn-ghost:hover { background: var(--teal-50); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--navy-900); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-900));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-700); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-700); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy-900); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions .btn-teal { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #0f5a56 0%, var(--navy-900) 60%, #071b2c 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0 150px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.35), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(255, 107, 87, 0.18), transparent 40%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.01em; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: relative; }
.hero-pulse {
  width: 100%; aspect-ratio: 1/1; max-width: 420px; margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 60%);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge {
  position: absolute; background: #fff; color: var(--navy-900); padding: 14px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.hero-badge i { color: var(--coral-500); font-size: 20px; }
.hero-badge.b1 { top: 6%; left: -6%; }
.hero-badge.b2 { bottom: 8%; right: -4%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
}

.stat-bar {
  position: relative;
  margin-top: -78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat-bar .stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-bar .stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--teal-700); }
.stat .label { font-size: 13px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
@media (max-width: 700px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar .stat:nth-child(2) { border-right: none; }
}

/* --- Mission split --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.mission-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--teal-600), var(--navy-900));
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.mission-visual i { font-size: 120px; color: rgba(255,255,255,0.85); }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; font-weight: 600; color: var(--navy-900); }
.check-list i { color: var(--teal-600); margin-top: 3px; }

/* --- Cards / Programs --- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-100); color: var(--teal-700); font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 14px; }
.card-link { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card-link i { transition: transform 0.15s ease; }
.card-link:hover i { transform: translateX(3px); }
.card-featured { border: 2px solid var(--teal-500); position: relative; }
.card-pill {
  position: absolute; top: -12px; left: 24px; background: var(--coral-500); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px;
}

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; position: relative;
  background: var(--teal-100); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* --- Team --- */
.team-card { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-900));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 26px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 2px; font-size: 17px; }
.team-role { color: var(--teal-600); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }

/* --- News --- */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--teal-100), var(--teal-50)); display: flex; align-items: center; justify-content: center; color: var(--teal-500); font-size: 40px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 24px; }
.news-date { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); margin-bottom: 8px; }

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(120deg, var(--teal-700), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }

/* --- Forms --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 13px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 22px; font-size: 14px; }
.alert-success { background: #e4f8ef; color: #0a7a4c; border: 1px solid #b9ecd3; }
.alert-error { background: #fdeceb; color: #b0362a; border: 1px solid #f6cdc8; }

/* --- Page header (inner pages) --- */
.page-header {
  background: linear-gradient(120deg, var(--navy-900), #0f4a48);
  color: #fff; padding: 64px 0 56px; text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* --- Footer --- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 72px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--teal-500); margin-top: 3px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-row a:hover { background: var(--teal-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.empty-state i { font-size: 40px; color: var(--teal-300, #7dd3c8); margin-bottom: 14px; }
