/* HOPE — Direction 2: Modern health institution
   Deep teal + off-white + coral + sage */

:root {
  --bg: #FAFAF7;
  --bg-surface: #FFFFFF;
  --bg-muted: #F1EFE7;
  --bg-sage: #DCE3DD;
  --ink: #0E3D49;
  --ink-2: #134E5E;
  --ink-3: #4A6B72;
  --ink-4: #7A8D91;
  --accent: #C56B4D;
  --accent-dark: #A24E32;
  --border: rgba(19, 78, 94, 0.14);
  --border-strong: rgba(19, 78, 94, 0.28);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on;
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

/* Nav */
.nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(250, 250, 247, 0.85);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-2);
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink-2); }
.nav-links a.current { color: var(--ink-2); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
}

/* Hero with photo background */
.hero.hero-photo {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--bg);
  border-bottom: none;
  overflow: hidden;
}
.hero.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 32, 40, 0.52), rgba(8, 32, 40, 0.52));
  z-index: 1;
}
.hero.hero-photo.hero-photo--heavy::before {
  background: linear-gradient(rgba(8, 32, 40, 0.66), rgba(8, 32, 40, 0.66));
}
.hero.hero-photo > .container,
.hero.hero-photo > .container-narrow {
  position: relative;
  z-index: 2;
}
.hero.hero-photo h1 { color: var(--bg); }
.hero.hero-photo p.lede { color: rgba(250, 250, 247, 0.92); }
.hero.hero-photo .eyebrow { color: #F0997B; }
.hero.hero-photo .btn-primary {
  background: var(--bg);
  color: var(--ink-2);
}
.hero.hero-photo .btn-primary:hover {
  background: var(--bg-muted);
  color: var(--ink);
}
.hero.hero-photo .btn-secondary { color: #F0997B; }
.hero.hero-photo .btn-secondary:hover { color: #FAD1B8; }
.hero.hero-photo .btn-ghost {
  color: var(--bg);
  border-color: rgba(250, 250, 247, 0.5);
}
.hero.hero-photo .btn-ghost:hover {
  background: var(--bg);
  color: var(--ink-2);
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.hero p.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 56ch;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Sections */
section { padding: 4.5rem 0; }
section.surface { background: var(--bg-muted); }
section.deep { background: var(--ink-2); color: var(--bg); }
section.deep h2 { color: var(--bg); }
section.deep p { color: rgba(250, 250, 247, 0.85); }
section.deep .eyebrow { color: #E89673; }

/* Headings */
h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-weight: 600;
  max-width: 28ch;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

p { margin-bottom: 1.1rem; color: var(--ink); }
p:last-child { margin-bottom: 0; }

p.lede, .lede {
  font-size: 1.2rem;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

/* Eyebrow */
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ink-2); color: var(--bg); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-secondary { color: var(--accent); }
.btn-secondary:hover { color: var(--accent-dark); }
.btn-ghost { color: var(--ink-2); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--ink-2); color: var(--bg); }
.btn-inverse { background: var(--bg); color: var(--ink-2); }
.btn-inverse:hover { background: var(--bg-muted); }

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Section header */
.section-header { margin-bottom: 2.5rem; max-width: 700px; }
.section-header p { color: var(--ink-3); font-size: 1.1rem; line-height: 1.55; }

/* Grids */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards */
.card {
  background: var(--bg-surface);
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-3); font-size: 0.97rem; line-height: 1.55; }
.card .num {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

/* Pull / thesis block */
.thesis {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  max-width: 60ch;
}
.thesis p.lead {
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Featured initiative block */
.feature {
  background: var(--ink-2);
  color: var(--bg);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}
.feature h2 { color: var(--bg); margin-bottom: 1rem; }
.feature p { color: rgba(250, 250, 247, 0.85); margin-bottom: 1.5rem; max-width: 56ch; }
.feature .btn-inverse { background: var(--bg); color: var(--ink-2); }
.feature .eyebrow { color: #E89673; }

/* Feature list / definition list */
.feature-list { list-style: none; }
.feature-list > li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
.feature-list > li:last-child { border-bottom: none; }
.feature-list strong { color: var(--ink-2); font-weight: 600; font-size: 1rem; display: block; }
.feature-list span { color: var(--ink-3); font-size: 0.97rem; line-height: 1.55; }
@media (max-width: 640px) {
  .feature-list > li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Module list (compact) */
.module-list { list-style: none; }
.module-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 0.97rem;
  line-height: 1.5;
}
.module-list li:last-child { border-bottom: none; }
.module-list strong { color: var(--ink); font-weight: 600; margin-right: 0.4rem; }

/* Board / bio cards */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
}
.bio { padding: 1.5rem 0; border-top: 2px solid var(--ink-2); }
.bio-portrait {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.bio-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 0.2rem; }
.bio .credentials { font-size: 0.85rem; color: var(--ink-4); font-weight: 500; margin-bottom: 0.7rem; }
.bio p { font-size: 0.95rem; color: var(--ink-3); line-height: 1.55; }

/* Contact lanes */
.contact-lane {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-lane:last-child { border-bottom: none; }
.contact-lane h3 { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.contact-lane p { color: var(--ink-3); font-size: 0.97rem; line-height: 1.55; margin-bottom: 0.5rem; }
.contact-lane a { color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--accent); }
.contact-lane a:hover { color: var(--accent-dark); }
@media (max-width: 640px) {
  .contact-lane { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Two-column prose */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Inline links in prose */
.prose a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color 0.15s; }
.prose a:hover { color: var(--accent-dark); }

/* Closing CTA */
.closing-cta {
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.closing-cta h2 { margin: 0 auto 1.5rem; }
.closing-cta .btn-row { justify-content: center; }

/* Footer */
footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-4);
}
footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: baseline;
}
footer .footer-brand { color: var(--ink-2); font-weight: 600; font-size: 1rem; }
footer .footer-brand img { height: 44px; width: auto; display: block; margin-bottom: 0.4rem; }
footer .footer-tag { color: var(--ink-3); font-size: 0.88rem; margin-top: 0.3rem; max-width: 40ch; }
footer .footer-meta a { color: var(--ink-3); text-decoration: none; margin-left: 1.25rem; }
footer .footer-meta a:hover { color: var(--ink-2); }

/* About dropdown */
.nav-has-sub { position: relative; }
.nav-caret { font-size: 0.7em; opacity: 0.7; }
.nav-sub {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 230px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(19, 78, 94, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 60;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; }
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.nav-sub a:hover, .nav-sub a.current { color: var(--ink-2); background: var(--bg-muted); }
.nav-sub a.current { border-bottom: none; }
@media (prefers-reduced-motion: reduce) { .nav-sub { transition: none; } }
@media (max-width: 640px) {
  /* No hamburger nav; keep the bar simple. Sub-pages reach via About-page cards + footer. */
  .nav-sub { display: none; }
  .nav-caret { display: none; }
}

/* Prose lists (policy / institutional pages) */
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; color: var(--ink-3); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.55rem; line-height: 1.55; }
.prose li strong { color: var(--ink-2); font-weight: 600; }
.prose ol.spaced > li { margin-bottom: 1rem; }

/* Inline confirm flag for draft placeholders */
.confirm { background: #FBE9D9; color: #9A4A2B; font-size: 0.85em; font-weight: 600; padding: 0.1em 0.45em; border-radius: 4px; border: 1px solid #E6B89C; }

/* Draft-for-review banner (placeholder pages) */
.review-note { background: #FBE9D9; border-bottom: 1px solid #E6B89C; color: #9A4A2B; font-size: 0.92rem; line-height: 1.5; text-align: center; padding: 0.75rem 1.25rem; }
.review-note strong { color: #7D3A20; font-weight: 700; }
.review-note .confirm { background: #fff; }

/* Utilities */
.muted { color: var(--ink-3); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 1.25rem; }
  .hero { padding: 3rem 0 2rem; }
  section { padding: 3rem 0; }
  .feature { padding: 2rem 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
}


/* ---- Membership / application form (added 2026-06-16) ---- */
.hope-form{max-width:640px;margin:2.25rem 0 0}
.hope-form .hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.hope-form fieldset{border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;margin:0 0 1.5rem}
.hope-form legend{font-weight:600;color:var(--ink-2);padding:0 .5rem;font-size:1.05rem}
.hope-form .req{color:var(--accent);font-weight:400}
.hope-form .opt{color:var(--ink-4);font-weight:400;font-size:.9rem}
.hope-form .field{margin:0 0 1rem}
.hope-form .field:last-child{margin-bottom:0}
.hope-form label{display:block;font-weight:500;font-size:.92rem;color:var(--ink-2);margin:0 0 .35rem}
.hope-form input[type=text],.hope-form input[type=email],.hope-form select,.hope-form textarea{
  width:100%;font:inherit;font-size:1rem;color:var(--ink);background:var(--bg-surface);
  border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:.6rem .75rem}
.hope-form input:focus,.hope-form select:focus,.hope-form textarea:focus{outline:2px solid var(--ink-2);outline-offset:1px;border-color:var(--ink-2)}
.hope-form textarea{min-height:90px;resize:vertical}
.hope-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.hope-form .field-note{font-size:.85rem;color:var(--ink-4);margin:.15rem 0 1rem}
.hope-form .group-label{margin-top:.25rem}
.hope-form .check-grid{display:grid;grid-template-columns:1fr 1fr;gap:.55rem .9rem;margin:.35rem 0 1.25rem}
.hope-form .check-grid label,.hope-form .checkbox-line{display:flex;gap:.55rem;align-items:flex-start;font-weight:400;font-size:.95rem;color:var(--ink);cursor:pointer}
.hope-form .checkbox-line{margin:0 0 .9rem;line-height:1.45}
.hope-form .check-grid input,.hope-form .checkbox-line input{margin-top:.2rem;flex:0 0 auto;width:16px;height:16px;accent-color:var(--ink-2)}
.hope-form button[type=submit]{margin-top:.5rem;cursor:pointer;border:none}
.form-preview-note{background:var(--bg-muted);border-left:3px solid var(--accent);padding:.85rem 1rem;border-radius:var(--radius-sm);font-size:.92rem;color:var(--ink-3);margin:1.25rem 0 0}
@media (max-width:600px){.hope-form .form-row,.hope-form .check-grid{grid-template-columns:1fr}}
