/* Supporting My Dream — shared styles */
:root {
  --brand: #5b3d8c;
  --brand-dark: #3b2560;
  --accent: #d4a24c;
  --text: #1e293b;
  --muted: #5b6b7f;
  --bg: #fff;
  --bg-soft: #f6f3fa;
  --border: #e4ddee;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(40, 20, 70, 0.08);
  --max: 1120px;
  --nav-h: 156px;
}

*, *::before, *::after { box-sizing: border-box; }

/* 112.5% = 18px base; every rem size scales with it */
html { scroll-behavior: smooth; font-size: 112.5%; }

[id] { scroll-margin-top: 180px; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--brand-dark); font-weight: 600; }
h1, h2 { font-family: "Lora", Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.grid.align-start { align-items: start; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Top bar */
.topbar { background: var(--brand-dark); color: #fff; font-size: 1.15rem; font-weight: 600; }
.topbar .container { display: flex; justify-content: flex-end; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.topbar a:hover { text-decoration: underline; }

/* Header & navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { display: flex; align-items: center; }
.logo img { height: 140px; width: auto; }

.nav-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-weight: 500;
}
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--bg-soft); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--text); transition: transform 0.2s, opacity 0.2s;
}

/* Five links at 18px no longer fit beside the bigger logo, so collapse earlier */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: #fff; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  :root { --nav-h: 116px; }
  .logo img { height: 100px; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #1b1b1b; }
.btn-primary:hover { background: #c18d33; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--brand-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 96px 0;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 640px; opacity: 0.92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero.small { padding: 64px 0; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: center; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand); font-size: 1.4rem; margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0; }

.cta {
  background: var(--brand-dark); color: #fff; text-align: center;
  border-radius: var(--radius); padding: 56px 24px;
}
.cta h2 { color: #fff; }
.cta p { opacity: 0.9; max-width: 560px; margin: 0 auto 24px; }

/* Hero logo + photos */
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: center; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }

/* Programs */
.program-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.program-card img { height: 160px; width: auto; object-fit: contain; }
.program-card p { flex: 1; }
.modules { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.module { background: #fff; border-left: 4px solid var(--brand); border-radius: 8px; padding: 20px 22px; box-shadow: var(--shadow); }
.module header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.module h3 { margin: 0 0 8px; }
.module .dur { font-weight: 600; color: var(--brand); white-space: nowrap; }
.module p { color: var(--muted); margin: 0; }
.resources { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.resources li { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; }
.resources strong { color: var(--brand-dark); }
.notice { text-align: center; font-family: "Lora", Georgia, serif; font-size: 1.25rem; color: var(--brand-dark); margin: 40px 0 0; }

/* Banner with photo */
.banner {
  color: #fff; text-align: center; padding: 96px 0;
  background: linear-gradient(rgba(36, 22, 59, 0.78), rgba(36, 22, 59, 0.78)), url("../img/workshop.jpg") center / cover;
}
.banner h2 { color: #fff; }
.banner p { max-width: 640px; margin: 0 auto 24px; opacity: 0.95; }

/* Founder */
.founder h3 { margin-bottom: 4px; }
.founder .role { color: var(--brand); font-weight: 600; margin-bottom: 20px; }

/* Contact */
.contact-info { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-info strong { display: block; color: var(--brand-dark); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; color: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 61, 140, 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .error { color: #b42318; font-size: 0.875rem; margin-top: 4px; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.form-status { padding: 12px 16px; border-radius: 8px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e7f6ec; color: #136c34; }
.form-status.info { background: #fff7e6; color: #7a4b00; }

/* Footer */
.site-footer { background: #24163b; color: #c7d2e0; padding: 48px 0 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 20px; font-size: 0.9rem; }

/* Reveal-on-scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Givelify donate button */
.givelify { display: inline-block; }
.givelify img { height: 60px; width: auto; margin: 0 auto; }
address { font-style: normal; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-footer, .contact-info { overflow-wrap: anywhere; }

/* "A program of Daughters of Zion" strip above the footer */
.parent-org { background: var(--bg-soft); border-top: 3px solid var(--accent); }
.parent-org-inner { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.parent-org img { width: 130px; height: auto; flex: none; }
.parent-org p { margin: 0; color: var(--brand-dark); }
.parent-org .btn { margin-left: auto; white-space: nowrap; }
.btn-outline-brand { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-outline-brand:hover { background: var(--brand-dark); color: #fff; }
@media (max-width: 760px) {
  .parent-org-inner { flex-direction: column; text-align: center; }
  .parent-org .btn { margin-left: 0; white-space: normal; }
}
