/* ---------- Variables ---------- */
:root {
  --green-dark: #16332B;
  --green-darker: #0F2620;
  --green: #2F8058;
  --green-mid: #3FA06E;
  --green-light: #E9F4EC;
  --cream: #F8F1E7;
  --white: #FFFFFF;
  --text-dark: #1C2620;
  --text-muted: #52625A;
  --text-on-dark: #F3F7F4;
  --text-on-dark-muted: #C7D6CC;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 40, 30, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  margin: 0 0 16px;
  line-height: 1.15;
}

p { margin: 0 0 16px; color: var(--text-muted); }

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

.script { font-family: var(--font-script); color: var(--green-mid); font-weight: 700; font-size: 1.15em; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--green-mid); }

.section-title { font-size: clamp(28px, 4vw, 40px); color: var(--text-dark); }
.section-title .accent { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: .8;
  white-space: normal;
}
.btn-solid {
  background: var(--green);
  color: var(--white);
}
.btn-solid:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border-color: rgba(0,0,0,0.06);
}
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 24px; }
.btn-block { width: 100%; justify-content: center; }
.icon { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: var(--text-dark);
}
.logo-tagline {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--green);
  font-weight: 600;
  margin-top: 2px;
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--green); }
.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
}

/* ---------- Hero ---------- */
.hero { background: var(--green-dark); }

/* Desktop: the full banner image, with invisible clickable regions over its
   own baked-in buttons. Positions are percentages of the image's natural size
   (2172x724), measured from the button pixels themselves, so they stay lined
   up at any width since the image scales as a block. */
.hero-banner-desktop { display: block; }
.hero-banner-image { position: relative; width: 100%; }
.hero-banner-image img { width: 100%; height: auto; display: block; }

.hero-hotspot {
  position: absolute;
  top: 79.5%;
  height: 17%;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.hero-hotspot:hover,
.hero-hotspot:focus-visible {
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px rgba(47, 128, 88, 0.55);
  outline: none;
}
.hotspot-donor { left: 7.1%; width: 20.9%; }
.hotspot-support { left: 30.1%; width: 20.4%; }
.hotspot-share { left: 53.4%; width: 18.7%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: real HTML text over the same photo (legible where the baked-in text would be too small) */
.hero-banner-mobile {
  display: none;
  position: relative;
  overflow: hidden;
}
.hero-banner-mobile .hero-bg-photo { position: absolute; inset: 0; z-index: 0; }
.hero-banner-mobile .hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.hero-banner-mobile .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,38,32,0.55) 0%, rgba(15,38,32,0.92) 55%, rgba(15,38,32,0.98) 100%);
  z-index: 1;
}
.hero-banner-mobile .hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-copy { max-width: 640px; }
.hero-title {
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
}
.hero-text {
  color: var(--text-on-dark-muted);
  font-size: 17px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Story ---------- */
.story { padding: 100px 0; background: var(--white); }
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.story-photos { position: relative; }
.polaroids { filter: drop-shadow(0 16px 30px rgba(20, 40, 30, 0.18)); }
.polaroids img { width: 100%; height: auto; }
.story-tags {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--green-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Donor ---------- */
.donor { padding: 100px 0; background: var(--green-light); }
.donor-grid { display: grid; gap: 50px; }
.donor-copy { max-width: 640px; }
.donor-blood { font-size: 17px; }
.donor-form-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.donor-info-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; margin-bottom: 20px; }
.donor-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.donor-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text-muted);
}
.donor-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}
.donor-checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}
.donor-contact .contact-line {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
}
.donor-contact .contact-line .icon { color: var(--green); margin-top: 2px; }
.donor-contact strong { display: block; color: var(--text-dark); margin-bottom: 2px; }
.donor-contact span { color: var(--text-muted); }
.prisma-logo {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 1px;
  color: #E4693A;
  font-size: 18px;
}
.prisma-logo span { color: #C6248B; }

/* ---------- Support ---------- */
.support { padding: 100px 0; background: var(--cream); text-align: center; }
.support .eyebrow, .support .section-title, .support-text { text-align: center; margin-left: auto; margin-right: auto; }
.support-text { max-width: 700px; }
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 40px auto 0;
}
.support-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: left;
}
.support-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.support-icon.paypal { background: #E5EEFB; color: #1A3A8F; }
.support-icon.share { background: #F1E6F7; color: #7B2E9C; }
.support-card h3 { font-size: 18px; }
.support-card p { font-size: 14px; }
.support-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Resources ---------- */
.resources { padding: 90px 0; background: var(--white); text-align: center; }
.resources .eyebrow, .resources .section-title { text-align: center; }
.resource-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.resource-card {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease;
}
.resource-card:hover { transform: translateY(-3px); }
.resource-card strong { display: block; margin-bottom: 6px; color: var(--text-dark); }
.resource-card span { font-size: 13px; color: var(--green); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: var(--text-on-dark);
  padding: 70px 0 30px;
  text-align: center;
}
.footer-script {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--green-mid);
  margin-bottom: 4px;
}
.footer-tagline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}
.site-footer blockquote {
  max-width: 560px;
  margin: 24px auto;
  font-style: italic;
  color: var(--text-on-dark-muted);
  font-size: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  margin: 30px 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { background: var(--green); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* ---------- Questionnaire Form ---------- */
.form-hero {
  background: var(--green-dark);
  color: var(--text-on-dark);
  padding: 70px 0 50px;
  text-align: center;
}
.form-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
}
.form-hero-text {
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.form-hero-text a { color: var(--green-mid); text-decoration: underline; }

.form-section { padding: 60px 0 100px; background: var(--cream); }
.form-card { max-width: 820px; margin: 0 auto 24px; }
.form-card h2 { font-size: 20px; margin-bottom: 18px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.field-wide { grid-column: 1 / -1; }
.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-dark);
}
.field textarea { resize: vertical; }
.field-label { display: block; }
.field-hint { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.field-followup {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  width: 100%;
}
.field-followup + .field-followup { margin-top: 8px; }

.ssn-group { display: flex; align-items: center; gap: 8px; }
.ssn-group input { width: 70px; text-align: center; padding: 10px 8px; border: 1px solid rgba(0,0,0,0.15); border-radius: 6px; font-family: var(--font-sans); }

.radio-row { display: flex; gap: 18px; font-weight: 400; font-size: 14px; }
.radio-row-wrap { flex-wrap: wrap; row-gap: 8px; }
.radio-row label { display: flex; align-items: center; gap: 6px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-dark);
}
.certify-row { margin-top: 20px; font-weight: 500; }

.yn-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.yn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  flex-wrap: wrap;
}
.yn-row > span { flex: 1; min-width: 220px; }
.yn-followup input {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  min-width: 200px;
}

.medications-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.medication-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.medication-row input {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }

.req { color: #C0392B; }

.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  max-width: 820px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-status.success { display: block; background: var(--green-light); color: var(--green-darker); }
.form-status.error { display: block; background: #FBEAE9; color: #96271B; }
.form-status.pending { display: block; background: var(--cream); color: var(--text-muted); }

#submit-btn { max-width: 820px; margin: 10px auto 0; display: flex; }

/* ---------- Letter ---------- */
.letter-section { padding: 70px 0 100px; background: var(--white); }
.letter-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.letter-image-col { position: sticky; top: 96px; }
.letter-image {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.letter-text-col p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.letter-text-col h2 {
  font-size: 24px;
  color: var(--green-dark);
  margin-bottom: 22px;
}
.letter-emphasis {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--green);
  margin: 26px 0 !important;
}
.letter-signature {
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--text-dark);
  margin-top: 8px;
}
.letter-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .donor-info-grid { grid-template-columns: 1fr; }
  .resource-links { grid-template-columns: 1fr; }
  .story-photos { margin-top: 40px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-banner-desktop { display: none; }
  .hero-banner-mobile { display: block; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .support-cards { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .form-grid { grid-template-columns: 1fr; }
  .medication-row { grid-template-columns: 1fr; }
  .yn-row { flex-direction: column; align-items: flex-start; }

  .letter-grid { grid-template-columns: 1fr; gap: 32px; }
  .letter-image-col { position: static; }
}
