/* Health Unity Movement - shared styles (based on the original index layout) */
:root {
  --primary: #0f5c6e;
  --primary-dark: #093e4b;
  --secondary: #c4553a; /* darkened from #e07a5f so white button text passes 4.5:1 */
  --accent: #2f7d5a;
  --bg-light: #f7f9fa;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --border-light: #e2e8f0;
  --banner-bg: #fef3c7;
  --banner-text: #92400e;
  --error: #b91c1c;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

a { color: var(--primary); }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.top-banner {
  background-color: var(--banner-bg);
  color: var(--banner-text);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-bottom: 1px solid #fde68a;
}

header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.brand-mark {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--text-dark); line-height: 1.2; }
.brand-domain { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links a[aria-current="page"]:not(.btn) { font-weight: 700; }
.nav-links a.btn { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  border: none;
  min-height: 44px;
}
.btn-primary { background-color: var(--primary); color: #ffffff; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background-color: var(--secondary); color: #ffffff; }
.btn-secondary:hover { opacity: 0.92; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.hero {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #f0f7f9 0%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-block;
  background: #e0f2f1;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 { font-size: 2.75rem; line-height: 1.18; font-weight: 800; margin-bottom: 1.25rem; }
.hero p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 35px -10px rgba(15, 92, 110, 0.15);
  display: block;
}

/* Shorter hero used on inner pages */
.page-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, #f0f7f9 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}
.page-hero h1 { font-size: 2.5rem; line-height: 1.2; font-weight: 800; margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 760px; }

.stats-bar { background-color: var(--primary); color: #ffffff; padding: 2.75rem 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; line-height: 1.1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.925rem; opacity: 0.9; }

section { padding: 4.5rem 0; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.25rem; }
.section-header h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 0.85rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

h2 { font-size: 2rem; line-height: 1.25; font-weight: 800; }
.lead { color: var(--text-muted); margin-top: 0.75rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.services-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08); }
.card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card-body { padding: 1.5rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; color: var(--primary); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.programs-section { background-color: var(--bg-light); }
.programs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

.program-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.pill {
  background: var(--bg-white);
  border: 1px solid #cbd5e1;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.corridor-box {
  background: var(--bg-white);
  border-left: 5px solid var(--secondary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.corridor-box h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.corridor-box p { color: var(--text-muted); font-size: 0.95rem; }

.corridor-cities {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  font-weight: 700;
  color: var(--primary);
}

.volunteer-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: center; }
.volunteer-grid img { width: 100%; height: auto; border-radius: 14px; display: block; }

.checklist { list-style: none; margin: 1.5rem 0 2rem; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.85rem; color: var(--text-muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Benefit program cards (services page) */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.benefit {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.75rem;
}
.benefit h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.benefit p { color: var(--text-muted); font-size: 0.95rem; }
.benefit .who-decides {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.note-box {
  background: var(--bg-light);
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.privacy-note {
  background: var(--banner-bg);
  color: var(--banner-text);
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 500;
}

.cta-box {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
}
.cta-box h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-box p { max-width: 640px; margin: 0 auto 2rem; opacity: 0.92; }
.cta-box .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.cta-box .btn-outline:hover { border-color: #fff; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: start; }

.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.form-card .privacy-note { margin-bottom: 1.5rem; }

.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field .req { color: var(--error); }
.field .hint { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.3rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(15, 92, 110, 0.25);
  outline-offset: 0;
}
.field fieldset { border: none; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.radio-group label, .check label {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 500; min-height: 44px; cursor: pointer;
}
.radio-group input, .check input { width: 20px; height: 20px; accent-color: var(--primary); }
.check label { align-items: flex-start; min-height: 0; }
.check input { margin-top: 0.2rem; flex-shrink: 0; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 600; margin-top: 0.35rem; }

.alert { border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 500; }
.alert-error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #a7f3d0; }
.alert ul { margin: 0.5rem 0 0 1.25rem; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.side-card {
  background: var(--bg-light);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.side-card h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.side-card p, .side-card li { color: var(--text-muted); font-size: 0.95rem; }
.side-card .checklist { margin: 0.75rem 0 0; }

footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 2rem; font-size: 0.9rem; }
footer a { color: #e2e8f0; }
.footer-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid #1e293b;
}
.footer-brand { color: #ffffff; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; margin-top: 0.75rem; }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 1000px) {
  .services-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .programs-wrap, .volunteer-grid, .contact-grid, .benefits-grid { grid-template-columns: 1fr; }
  .services-grid, .services-grid.four { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.15rem; }
  .page-hero h1 { font-size: 2rem; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--border-light); font-size: 1rem; }
  .nav-links a.btn { margin-top: 1rem; text-align: center; border-bottom: none; padding: 0.75rem 1.4rem; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.25rem; }
  .corridor-cities { flex-direction: column; text-align: center; }
  .corridor-cities .arrow { transform: rotate(90deg); }
  section { padding: 3.25rem 0; }
  .cta-box { padding: 2.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}

.card h2 { font-size: 1.2rem; margin-bottom: 0.65rem; color: var(--primary); }
.card .card-note { margin-top: 0.75rem; }

/* Community needs survey (home) */
.survey-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, #f0f7f9 0%, #e0f2f1 100%);
  border: 1px solid #b2dfdb;
  border-radius: 16px;
  padding: 2.75rem;
}
.survey-band h2 { margin-bottom: 0.25rem; }
.survey-status { display: grid; gap: 1rem; }
.status-row {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.status-row h3 { font-size: 1.15rem; margin: 0.5rem 0 0.25rem; }
.status-row p { color: var(--text-muted); font-size: 0.95rem; }
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.status-now { background: var(--success-bg); color: var(--success-text); }
.status-soon { background: var(--banner-bg); color: var(--banner-text); }

/* Contact section */
.form-title { font-size: 1.4rem; margin-bottom: 1rem; }
.wait-note {
  background: #e0f2f1;
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-size: 0.975rem;
}
.wait-note strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.side-card .wait-note { margin: 1rem 0 0; }
.phone-card { background: var(--bg-white); border: 2px solid var(--primary); }
.side-card .phone-number { font-size: 1.75rem; font-weight: 800; }
.phone-number a { text-decoration: none; color: var(--primary); }
.reach-hint { margin-top: -0.75rem; }

@media (max-width: 900px) {
  .survey-band { grid-template-columns: 1fr; padding: 1.75rem; }
}

.brand-logo { height: 80px; width: auto; display: block; }
@media (max-width: 560px) {
  .brand-logo { height: 64px; }
}

/* Service cards without photos */
.card { border-top: 4px solid var(--primary); }
