/* ===========================================================================
   Special Needs Ministry — landing pages
   One shared stylesheet for index.html (resources) and pastors.html.
   Warm, welcoming, accessible. Mobile-first.
   Brand colors live in :root below — change them in one place.
   =========================================================================== */

:root {
  --teal-900: #0f3d3e;
  --teal-700: #1c6b6b;
  --teal-500: #2a9d8f;
  --coral-500: #e76f51;
  --coral-400: #f4a261;
  --cream: #fdf8f3;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e7ddd2;
  --white: #ffffff;

  --maxw: 720px;
  --radius: 18px;
  --shadow: 0 12px 40px -12px rgba(15, 61, 62, 0.25);
  --font: "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(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Top bar --------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--teal-900);
  text-decoration: none;
}

.brand .dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-500), var(--coral-400));
  display: inline-block;
}

.brand .logo {
  height: 44px;
  width: auto;
  display: block;
}

.topbar .switch {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-700);
  text-decoration: none;
  border: 1.5px solid var(--line);
  background: var(--white);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .15s ease, transform .15s ease;
}
.topbar .switch:hover { border-color: var(--teal-500); transform: translateY(-1px); }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 28px 24px 8px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-500);
  background: rgba(231, 111, 81, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--teal-900);
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 56ch;
}

/* --- Signup card ----------------------------------------------------------- */
.signup {
  max-width: var(--maxw);
  margin: 36px auto 0;
  padding: 0 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--teal-900);
}

.card p.sub {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* The beehiiv embed (iframe) drops in here and stretches to full width */
.embed-slot { width: 100%; }
.embed-slot iframe { width: 100% !important; border: 0; border-radius: 12px; }

/* --- Signup form ----------------------------------------------------------- */
.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;
}

.signup-form .field-row {
  display: flex;
  gap: 10px;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
  background: var(--white);
}
.signup-form button {
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--coral-500);
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.signup-form button:hover { background: #d65f43; transform: translateY(-1px); }
.signup-form button:disabled { opacity: .6; cursor: default; transform: none; }

.form-msg {
  margin: 12px 2px 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-msg.ok    { color: var(--teal-700); font-weight: 600; }
.form-msg.error { color: var(--coral-500); font-weight: 600; }

/* Big friendly success state that replaces the form */
.signup-done {
  text-align: center;
  padding: 8px 0 4px;
}
.signup-done .check {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 6px;
}
.signup-done h3 { margin: 0 0 4px; color: var(--teal-900); font-size: 1.2rem; }
.signup-done p { margin: 0; color: var(--ink-soft); }

@media (max-width: 460px) {
  .signup-form .field-row { flex-direction: column; }
  .signup-form button { width: 100%; }
}

.fineprint {
  margin: 14px 2px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* --- Value bullets --------------------------------------------------------- */
.benefits {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.benefit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.benefit .ico { font-size: 1.4rem; }
.benefit h3 { margin: 8px 0 4px; font-size: 1rem; color: var(--teal-900); }
.benefit p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* --- Cross-link banner ----------------------------------------------------- */
.crosslink {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding: 0 24px;
}
.crosslink .inner {
  background: var(--teal-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.crosslink h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--white); }
.crosslink p { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.crosslink a.btn {
  background: var(--coral-500);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.crosslink a.btn:hover { transform: translateY(-1px); background: #d65f43; }

/* --- Footer ---------------------------------------------------------------- */
footer {
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding: 28px 24px 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
footer a { color: var(--teal-700); }
.ministry-of {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  opacity: 0.75;
}
.ministry-of img { height: 22px; width: auto; display: block; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .crosslink .inner { flex-direction: column; align-items: flex-start; }
  .topbar { padding: 16px 16px; gap: 12px; }
  .brand .logo { height: 36px; }
  .topbar .switch { font-size: 0.8rem; padding: 8px 13px; }
}
