/* ============================================================
   THE INFORMED PATIENT PROJECT — Main Stylesheet
   Color System: Warm Rose · Gold · Orange — all from logo
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Dark anchor — deep warm maroon-brown (hero, footer, stats) */
  --teal-900: #2a0e0e;
  --teal-700: #4d1e1a;
  --teal-500: #c66971;   /* rose — primary interactive */
  --teal-400: #da838d;   /* rose mid */
  --teal-200: #f0bfc4;
  --teal-100: #fbe8ea;
  --teal-50:  #fdf3f4;

  /* Rose/Coral scale (logo heart — primary brand) */
  --blue-700: #c66971;
  --blue-500: #d5586b;
  --blue-200: #eea8b0;
  --blue-100: #fbe8ea;
  --blue-50:  #fdf3f4;

  /* Gold / Orange (logo bulb & base) */
  --amber:       #f68149;   /* warm orange — bold CTA */
  --amber-light: #ffde80;   /* bright gold glow */
  --coral:       #d5586b;   /* rose — secondary accent */
  --coral-light: #db949a;   /* soft rose */

  /* Neutrals — warm gold-tinted */
  --cream:       #fdfbf5;
  --warm-gray:   #f8f1e8;
  --border:      #ecddd4;
  --border-soft: #f4ece4;

  /* Text — warm deep burgundy-brown */
  --text-dark:   #2a0e0e;
  --text-medium: #6b3030;
  --text-light:  #a87070;
  --text-white:  #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Lato', system-ui, sans-serif;

  /* Spacing */
  --nav-height: 72px;
  --section-pad: 80px;
  --card-radius: 14px;
  --btn-radius:  8px;

  /* Shadows — warm rose-tinted */
  --shadow-sm: 0 1px 4px rgba(42,14,14,0.08);
  --shadow-md: 0 4px 16px rgba(42,14,14,0.11);
  --shadow-lg: 0 8px 32px rgba(42,14,14,0.16);

  /* Transitions */
  --trans: 0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--teal-500); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--teal-700); }

ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-medium); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-dark); font-weight: 700; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--warm-gray); }
.section-teal { background: #fff8f4; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header p { font-size: 1.1rem; }

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

/* ── Eyebrow Labels ───────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c66971;
  margin-bottom: 12px;
}
.eyebrow-coral { color: var(--coral); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #c66971;
  color: var(--text-white);
  border-color: #c66971;
}
.btn-primary:hover {
  background: #b05560;
  border-color: #b05560;
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: #c66971;
  border-color: #da838d;
}
.btn-secondary:hover {
  background: #fdf3f4;
  color: #b05560;
  border-color: #c66971;
}

.btn-warm {
  background: #f68149;
  color: var(--text-white);
  border-color: #f68149;
}
.btn-warm:hover {
  background: #e06a30;
  border-color: #e06a30;
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-coral {
  background: var(--coral);
  color: var(--text-white);
  border-color: var(--coral);
}
.btn-coral:hover {
  background: #b06870;
  border-color: #b06870;
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

.btn-outline-white {
  background: white;
  color: var(--teal-700);
  border-color: white;
}
.btn-outline-white:hover {
  background: var(--teal-50);
  color: var(--teal-900);
}

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #4d1e1a;
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: all var(--trans);
}
.nav-links a:hover,
.nav-links a.active {
  color: #c66971;
  background: #fdf3f4;
}
.nav-links .btn {
  margin-left: 8px;
  padding: 8px 18px;
  font-size: 0.875rem;
}

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

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2a0e0e 0%, #4d1e1a 45%, #7a2e28 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(255,222,128,0.30) 0%, transparent 52%),
    radial-gradient(ellipse at 15% 78%, rgba(246,129,73,0.18) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content .eyebrow { color: var(--amber-light); }

.hero-content h1 {
  color: white;
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 32px;
  max-width: 340px;
  width: 100%;
}

.hero-card-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.hero-card-stat .big-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
}
.hero-card-stat .unit {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
}
.hero-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.hero-card-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 20px 0;
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.hero-card-row:last-child { margin-bottom: 0; }
.hero-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.hero-card-row span {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: #f8f1e8;
  padding: 60px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,222,128,0.28) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #d5586b; margin-bottom: 14px; }
.page-hero p  { color: #d5586b; font-size: 1.1rem; max-width: 580px; margin: 0 auto; }
.page-hero .eyebrow { color: #f68149 !important; }

.page-hero h1 { 
  color: #d5586b; 
  margin-bottom: 14px; 
}

.page-hero p { 
  color: #d5586b; 
  font-size: 1.1rem; 
  max-width: 580px; 
  margin: 0 auto; 
}

.page-hero .eyebrow {
  color: #f68149 !important;
}
/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-body { padding: 28px; }
.card-footer {
  padding: 16px 28px;
  background: var(--warm-gray);
  border-top: 1px solid var(--border-soft);
}

/* ── PDF Resource Cards ───────────────────────────────────── */
.resource-card {
  background: white;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  border-top: 4px solid #d5586b;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.resource-card.coral-top { border-top-color: var(--coral); }
.resource-card.amber-top { border-top-color: var(--amber); }
.resource-card.blue-top  { border-top-color: var(--blue-500); }

.resource-card-body { padding: 24px; flex: 1; }
.resource-card-footer { padding: 16px 24px; background: var(--warm-gray); border-top: 1px solid var(--border-soft); }

.resource-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-teal    { background: #fbe8ea; color: #b05560; }
.tag-coral   { background: #fce8ea; color: #9d4f57; }
.tag-amber   { background: #fdf2d8; color: #8c6010; }
.tag-blue    { background: var(--blue-100); color: var(--blue-700); }
.tag-gray    { background: var(--warm-gray); color: var(--text-medium); }

.resource-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.resource-card p  { font-size: 0.9rem; color: var(--text-medium); }

.resource-audience {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 12px;
}
.resource-audience i { color: var(--teal-400); }

.resource-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #d5586b;
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--trans);
}
.download-btn:hover {
  background: #c04458;
  color: white;
  transform: translateY(-1px);
}
.download-btn i { font-size: 0.9rem; }

.free-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c66971;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── How It Works ─────────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 36px 28px;
  background: white;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f68149, #d5586b);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(213,88,107,0.36);
}

.step-card h3 { margin-bottom: 10px; }
.step-card p  { font-size: 0.925rem; }

/* ── Values ───────────────────────────────────────────────── */
.value-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: white;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.value-icon.amber { background: #fff8f0; }
.value-icon.coral { background: #fce8ea; }
.value-icon.blue  { background: #fdf3f4; }

.value-item h4 { margin-bottom: 4px; }
.value-item p  { font-size: 0.9rem; margin: 0; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #2a0e0e 0%, #6b2830 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,222,128,0.24) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Donation Section ─────────────────────────────────────── */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.donate-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans);
}
.donate-card:hover {
  border-color: #d5586b;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.donate-card.featured {
  border-color: #d5586b;
  background: #fdf3f4;
}

.donate-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.donate-icon.teal  { background: var(--teal-100); }
.donate-icon.amber { background: #fdf2d8; }
.donate-icon.coral { background: #fce8ea; }

.donate-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.donate-card p  { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 20px; }
.donate-card .btn { width: 100%; justify-content: center; }

/* ── Forms ────────────────────────────────────────────────── */
.form-section { max-width: 680px; margin: 0 auto; }

.form-group { margin-bottom: 22px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
label .req { color: var(--coral); margin-left: 2px; }
label .opt { color: var(--text-light); font-weight: 400; font-size: 0.82rem; margin-left: 4px; }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #d5586b;
  box-shadow: 0 0 0 3px rgba(213,88,107,0.14);
}
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.82rem; color: var(--text-light); margin-top: 5px; }

.form-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--teal-500);
}

/* ── Checkbox & Radio ─────────────────────────────────────── */
.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-medium);
}
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: auto;
  accent-color: var(--amber);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ── Condition Suggestion Form ────────────────────────────── */
.condition-card {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--card-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.condition-card h4 { color: var(--teal-700); margin-bottom: 4px; }
.condition-card p  { font-size: 0.875rem; margin: 0; }

/* ── Info Boxes ───────────────────────────────────────────── */
.info-box {
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-box i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.info-box p { font-size: 0.9rem; margin: 0; }
.info-box.teal  { background: #fdf3f4; border: 1px solid #eea8b0; color: #4d1e1a; }
.info-box.amber { background: #fff8f0; border: 1px solid #fecba0; color: #7a3a18; }
.info-box.coral { background: #fce8ea; border: 1px solid #e8b0b6; color: #7a3840; }
.info-box.teal  i { color: #d5586b; }
.info-box.amber i { color: #f68149; }
.info-box.coral i { color: #c66971; }

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  background: #2a0e0e;
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--amber-light);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}

/* ── Mission Blurb ────────────────────────────────────────── */
.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mission-block.reverse { direction: rtl; }
.mission-block.reverse > * { direction: ltr; }

.mission-visual {
  background: linear-gradient(135deg, #fbe8ea, #fdf3f4);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mission-visual::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(246,129,73,0.12);
}
.mission-visual-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.mission-visual h3 {
  color: #c66971;
  margin-bottom: 8px;
}
.mission-visual p {
  font-size: 0.9rem;
  color: #c66971;
}

/* ── Quote Block ──────────────────────────────────────────── */
.pull-quote {
  border-left: 4px solid #f68149;
  padding: 20px 28px;
  background: #fff8f0;
  border-radius: 0 10px 10px 0;
  margin: 32px 0;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: #4d1e1a;
  margin: 0;
  line-height: 1.6;
}
.pull-quote cite {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Download Modal ───────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,58,58,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }

.modal {
  background: white;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  background: linear-gradient(135deg, #f8f1e8, #f8f1e8);
  padding: 28px 32px 24px;
  position: relative;
}
.modal-header h3 { color: #d5586b; font-size: 1.4rem; margin-bottom: 6px; }
.modal-header p  { color: #d5586b; font-size: 0.9rem; margin: 0; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(213, 88, 107, 0.15);
  border: none;
  color: #d5586b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.modal-close:hover { background: rgba(213, 88, 107, 0.25); }

.modal-body { padding: 28px 32px; }
.modal-doc-name {
  background: var(--warm-gray);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.modal-doc-name i { color: var(--teal-500); font-size: 1.1rem; }

.modal-donate-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.modal-donate-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.modal-donate-btn:hover {
  border-color: #d5586b;
  background: #fdf3f4;
  color: #b05560;
}
.modal-donate-btn .platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.platform-icon.kofi   { background: #ff5e5b22; color: #ff5e5b; }
.platform-icon.paypal { background: #003087; color: white; font-size: 0.75rem; font-weight: 900; letter-spacing: -0.03em; }
.platform-icon.stripe { background: #635bff22; color: #635bff; }

.modal-divider {
  text-align: center;
  position: relative;
  margin: 6px 0 14px;
  color: var(--text-light);
  font-size: 0.82rem;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: var(--border);
}
.modal-divider::before { left: 0; }
.modal-divider::after  { right: 0; }

.modal-skip {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: var(--warm-gray);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-medium);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--trans);
}
.modal-skip:hover { background: var(--border); color: var(--text-dark); }

.modal-license-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}
.modal-license-note a { color: var(--teal-500); font-size: 0.78rem; }

/* ── License Page ─────────────────────────────────────────── */
.license-section h3 { color: var(--teal-700); margin: 28px 0 10px; font-size: 1.1rem; }
.license-section ul { list-style: disc; padding-left: 24px; }
.license-section ul li { padding: 4px 0; color: var(--text-medium); font-size: 0.925rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #2a0e0e;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--trans);
}
.footer-social a:hover { background: var(--amber); color: white; }

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.footer-bottom a:hover { color: white; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── Coming Soon Card ─────────────────────────────────────── */
.coming-soon-card {
  background: var(--warm-gray);
  border-radius: var(--card-radius);
  padding: 28px;
  border: 2px dashed var(--border);
  text-align: center;
  opacity: 0.8;
}
.coming-soon-card i { font-size: 2rem; color: var(--text-light); margin-bottom: 12px; }
.coming-soon-card h3 { font-size: 1.1rem; color: var(--text-medium); }
.coming-soon-card p  { font-size: 0.875rem; color: var(--text-light); margin-bottom: 12px; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 48px;
}
.breadcrumb a { color: var(--teal-500); }
.breadcrumb span { margin: 0 8px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .donate-grid      { grid-template-columns: 1fr 1fr; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .hero-inner       { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual      { display: none; }
  .mission-block    { grid-template-columns: 1fr; gap: 32px; }
  .mission-block.reverse { direction: ltr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .donate-grid  { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .nav-links    { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: white; padding: 16px; box-shadow: var(--shadow-md); border-top: 1px solid var(--border-soft); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0; }
  .modal { border-radius: 14px 14px 0 0; align-self: flex-end; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { gap: 14px; }
  .hero-btns { flex-direction: column; }
  .cta-btns  { flex-direction: column; align-items: center; }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-teal   { color: #8b4513; }
.text-coral  { color: var(--coral); }
.text-amber  { color: var(--amber); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-12 { gap: 12px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-wrap   { flex-wrap: wrap; }

/* ── Skip Link (Accessibility) ────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--teal-700);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: white; }

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-medium);
  cursor: pointer;
  transition: all var(--trans);
}
.filter-btn:hover,
.filter-btn.active {
  background: #d5586b;
  border-color: #d5586b;
  color: white;
}

/* ── Scroll reveal stub ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REFERENCE REDESIGN — Homepage sections
   ============================================================ */

/* ── Reference Hero (cream bg, logo left) ─────────────────── */
.hero-ref {
  background: var(--cream);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-ref-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.hero-ref-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-large {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(246,129,73,0.28));
}

.hero-brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #c66971;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-ref-content h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.35;
}
.hero-ref-content h1 em {
  font-style: italic;
  color: #c66971;
}

.hero-ref-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Narrow container ─────────────────────────────────────── */
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Left-aligned section header ──────────────────────────── */
.section-header-left {
  margin-bottom: 40px;
}
.section-header-left h2 { margin-bottom: 12px; }
.section-header-left p  { font-size: 1.05rem; max-width: 620px; }

.em-rose { font-style: italic; color: #c66971; }

/* ── How It Works — vertical steps list ───────────────────── */
.section-steps {
  background: var(--warm-gray);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.step-list-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.step-list-item:last-child { border-bottom: none; }

.step-list-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f68149, #d5586b);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(213,88,107,0.30);
}

.step-list-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.step-list-body p { font-size: 0.92rem; margin: 0; }

/* ── Condition Group Heading ──────────────────────────────── */
.condition-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
}
.condition-heading i { color: #d5586b; font-size: 1rem; }

/* ── Resource Tile Grid ───────────────────────────────────── */
.resource-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}

/* Base tile — resets download-btn overrides when used as tile */
.resource-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 16px 14px;
  border-radius: 12px;
  border: 2px solid var(--border-soft);
  background: white;
  text-align: left;
  cursor: default;
  transition: all var(--trans);
  position: relative;
  /* reset .download-btn styles */
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
  white-space: normal;
  color: var(--text-dark);
}

.resource-tile.available {
  border-color: #d5586b;
  cursor: pointer;
  background: white;
  /* override .download-btn inline button appearance */
  transform: none;
}
.resource-tile.available:hover {
  background: #fdf3f4;
  border-color: #c66971;
  box-shadow: 0 4px 16px rgba(213,88,107,0.18);
  transform: translateY(-2px);
  color: var(--text-dark);
}

.resource-tile.coming-soon {
  background: var(--warm-gray);
  border-color: var(--border-soft);
  opacity: 0.72;
}

.tile-condition {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c66971;
}

.tile-specialist {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

.resource-tile.coming-soon .tile-condition,
.resource-tile.coming-soon .tile-specialist {
  color: var(--text-medium);
}

.tile-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  margin-top: 6px;
}

.available-badge {
  background: #fbe8ea;
  color: #b05560;
}

.soon-badge {
  background: var(--border-soft);
  color: var(--text-light);
}

/* ── Mission block (narrow) ───────────────────────────────── */
.mission-text {
  margin-bottom: 48px;
}
.mission-text p { font-size: 1.05rem; }

/* ── Compact values ───────────────────────────────────────── */
.values-compact-heading {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-top: 8px;
  border-top: 2px solid var(--border-soft);
}

.values-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-compact-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.value-compact-item:last-child { border-bottom: none; }

.value-compact-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c66971;
  margin-bottom: 6px;
}
.value-compact-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Support Callout ──────────────────────────────────────── */
.support-callout {
  background: white;
}

.support-callout-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #c66971;
  margin-bottom: 36px;
  line-height: 1.25;
}

.support-callout-body p { font-size: 1rem; }

.support-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c66971;
  margin-bottom: 8px;
  margin-top: 28px;
}
.support-label:first-child { margin-top: 0; }

.support-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf3f4;
  border: 1px solid #eea8b0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #4d1e1a;
  margin-top: 28px;
}
.support-note i { flex-shrink: 0; }

.support-callout-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ── Responsive — reference redesign ──────────────────────── */
@media (max-width: 900px) {
  .hero-ref-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-ref-visual { order: -1; }
  .hero-logo-large { max-width: 220px; }
  .hero-ref-btns { justify-content: center; }
  .hero-tagline { text-align: center; }
  .resource-tile-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero-ref { padding: 48px 0 40px; }
  .hero-ref-inner { gap: 28px; }
  .hero-logo-large { max-width: 180px; }
  .hero-ref-btns { flex-direction: column; align-items: center; }
  .resource-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .support-callout-btns { flex-direction: column; }
}
/* ── Hero Reference Section ───────────────────────────────── */
.hero-ref {
  background: linear-gradient(135deg, #fdfbf5 0%, #f8f1e8 100%);
  padding: 80px 0;
}

.hero-ref-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-ref-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ref-content .hero-brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-ref-content h1 {
  margin-bottom: 28px;
}

.hero-ref-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-500);
  font-weight: 700;
}

/* ── Section Steps ────────────────────────────────────────── */
.section-steps {
  background: var(--cream);
}

.section-header-left {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header-left .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.section-header-left h2 {
  margin-bottom: 16px;
}

.section-header-left p {
  font-size: 1.1rem;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.step-list-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f68149, #d5586b);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-list-body h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.step-list-body p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.container-narrow {
  max-width: 900px;
}

/* ── Reveal Animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-ref-inner {
    grid-template-columns: 1fr;
  }
  
  .steps-list {
    grid-template-columns: 1fr;
  }
}
/* Force redeploy - updated header colors */
