/* ---------- Neuro Hub Foundation — shared styles ---------- */

:root {
  --navy: #16213f;
  --navy-card: #1f2c4f;
  --navy-card-border: #33447a;
  --teal: #2fa89a;
  --teal-dark: #24887c;
  --text-on-navy: #c9d3e6;
  --text-dark: #1c2841;
  --text-muted: #5b6478;
  --bg-light: #f5f7fa;
  --bg-stat: #eef1f5;
  --border-light: #e3e7ee;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-dark);
}

p { margin: 0 0 16px; }

.eyebrow-icon {
  color: var(--teal);
  font-size: 28px;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-teal {
  background: var(--teal);
  color: #ffffff;
}

.btn-teal:hover { background: var(--teal-dark); }

.btn-small {
  padding: 12px 24px;
  font-size: 13px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-link { flex-shrink: 0; }

.logo-mark {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
}

.logo-mark img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-link {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 4px;
  opacity: 0.85;
}

.nav-link:hover { opacity: 1; }

.nav-link.active {
  color: var(--teal);
  opacity: 1;
}

.header-donate {
  padding: 12px 22px;
  font-size: 13px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  text-align: center;
  padding: 72px 0 96px;
}

.hero-logo-card {
  background: #ffffff;
  max-width: 560px;
  margin: 0 auto 56px;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-card img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

.hero h1 {
  color: #ffffff;
  font-size: 52px;
  margin-bottom: 28px;
}

.hero-lede {
  color: var(--text-on-navy);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 18px;
}

/* ---------- Mission / stats ---------- */

.mission-section {
  padding: 88px 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.mission-grid h2 { font-size: 36px; }

.mission-grid > :only-child {
  grid-column: 1 / -1;
  max-width: 820px;
}

.mission-grid p { color: var(--text-muted); font-size: 17px; }

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-box {
  background: var(--bg-stat);
  border-left: 4px solid var(--teal);
  padding: 24px 28px;
}

.stat-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Goals teaser (Home) ---------- */

.goals-teaser-section {
  background: var(--bg-light);
  padding: 88px 0;
  text-align: center;
}

.goals-teaser-section h2 { font-size: 36px; }

.goals-teaser-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

.goals-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 44px;
  text-align: left;
}

.goal-teaser-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(22, 33, 63, 0.08);
}

.goal-teaser-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--teal);
  margin-bottom: 12px;
  line-height: 1;
}

.goal-teaser-card h3 { font-size: 19px; margin-bottom: 10px; }

.goal-teaser-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.goals-teaser-link {
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.goals-teaser-link:hover { text-decoration: underline; }

/* ---------- Purpose statement (Our Goals page) ---------- */

.purpose-section { padding: 64px 0 0; }

.purpose-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-stat);
  border-left: 4px solid var(--teal);
  padding: 36px 40px;
}

.purpose-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.purpose-box p {
  color: var(--text-dark);
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Full goals list (Our Goals page) ---------- */

.goals-section { padding: 72px 0 88px; }

.goals-list-wrap { max-width: 860px; margin: 0 auto; }

.goal-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
}

.goal-item:first-of-type { padding-top: 0; }
.goal-item:last-of-type { border-bottom: none; padding-bottom: 0; }

.goal-number-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-item h3 { font-size: 22px; margin-bottom: 10px; }

.goal-item p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- Two-card nav section ---------- */

.link-cards-section {
  background: var(--navy);
  padding: 72px 0;
}

.link-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.link-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-card-border);
  border-radius: 10px;
  padding: 40px;
}

.link-card h3 {
  color: #ffffff;
  font-size: 26px;
}

.link-card p {
  color: var(--text-on-navy);
  font-size: 16px;
}

.link-card .card-link {
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.link-card .card-link:hover { text-decoration: underline; }

/* ---------- Support / donation section ---------- */

.support-section {
  background: var(--bg-light);
  border-top: 5px solid var(--teal);
  padding: 80px 0;
  text-align: center;
}

.support-section h2 { font-size: 34px; }

.support-section > .container > p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 17px;
}

.donate-note-box {
  background: #ffffff;
  border: 2px solid var(--teal);
  border-radius: 8px;
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 32px;
}

.donate-note-box p { margin: 0 0 8px; font-size: 16px; }
.donate-note-box p:last-child { margin: 0; }

.donate-note-box strong { color: var(--text-dark); }

.donate-note-box a.donate-box-btn {
  color: #ffffff;
  text-decoration: none;
  margin: 8px 0 12px;
}

.donate-note-box a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- CTA band (founders page) ---------- */

.cta-band {
  background: var(--navy);
  text-align: center;
  padding: 64px 0 36px;
}

.cta-band h2 { color: #ffffff; font-size: 32px; }
.cta-band p { color: var(--text-on-navy); font-size: 17px; margin-bottom: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  text-align: center;
  padding: 20px 0 40px;
}

.footer-tagline {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-contact {
  color: var(--text-on-navy);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-contact a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}

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

.footer-copyright {
  color: var(--text-on-navy);
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-note {
  color: #7d89a3;
  font-size: 13px;
  margin: 0;
}

/* ---------- Page header banner (Testimonials / Founders) ---------- */

.page-banner {
  background: var(--navy);
  text-align: center;
  padding: 64px 0;
}

.page-banner h1 {
  color: #ffffff;
  font-size: 42px;
  margin-bottom: 18px;
}

.page-banner p {
  color: var(--text-on-navy);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- Testimonials ---------- */

.testimonials-section {
  background: var(--bg-light);
  padding: 72px 0 88px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(22, 33, 63, 0.08);
}

.testimonial-quote {
  font-style: italic;
  color: #33405c;
  font-size: 16px;
  margin-bottom: 24px;
}

.testimonial-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0 0 18px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.testimonial-location {
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Founders ---------- */

.founders-section {
  padding: 72px 0 0;
}

.founder-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}

.founder-row:last-of-type { border-bottom: none; }

.founder-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-avatar-photo {
  object-fit: cover;
  flex-shrink: 0;
}

.founder-name { font-size: 28px; margin-bottom: 6px; }

.founder-title {
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.founder-bio p {
  color: var(--text-muted);
  font-size: 16px;
}

.founder-bio a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}

.founder-bio a:hover { color: var(--teal-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .mission-grid,
  .link-cards-grid,
  .testimonials-grid,
  .goals-teaser-grid {
    grid-template-columns: 1fr;
  }

  .founder-row {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .goal-item {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero h1 { font-size: 38px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-collapse {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    flex-basis: 100%;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav-collapse.open { display: flex; }
  .main-nav { flex-direction: column; gap: 16px; }
  .hero { padding: 48px 0 64px; }
  .hero-logo-card { padding: 32px 24px; margin-bottom: 40px; }
  .hero h1 { font-size: 30px; }
  .mission-section,
  .link-cards-section,
  .support-section,
  .testimonials-section,
  .goals-teaser-section,
  .goals-section,
  .cta-band { padding: 48px 0; }
  .cta-band { padding: 48px 0 28px; }
  .purpose-section { padding: 40px 0 0; }
  .purpose-box { padding: 28px 24px; }
  .page-banner { padding: 48px 0; }
  .page-banner h1 { font-size: 30px; }
  .founder-row { padding: 36px 0; }
  .goal-item { padding: 28px 0; }
  .container { padding: 0 20px; }
}
