/*
Theme Name: LoveYourNeighbor.Church
Description: Recruiting platform for CommunityIMPACT disciplers — Connect, Studio, Cohort, Coaching.
Author: CommunityIMPACT, Inc.
Version: 1.0.0
*/

/* ---------- Brand tokens ----------
   Purple/blue are safe for text on white (verified contrast).
   Green/gold are accent/fill only — never text on a light background
   (both fail the 3:1 non-text floor on white). This mirrors the
   contrast rules already verified for communityimpact.net.
------------------------------------ */
:root {
  --lyn-purple: #675186;
  --lyn-purple-deep: #4a3a61;
  --lyn-blue: #004a98;
  --lyn-green: #60b138;
  --lyn-gold: #c29a16;
  --lyn-ink: #201a2b;
  --lyn-paper: #ffffff;
  --lyn-paper-tint: #f7f5fa;
  --lyn-border: #e3ddec;

  --lyn-font-heading: Georgia, 'Times New Roman', serif;
  --lyn-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --lyn-max: 1080px;
  --lyn-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lyn-font-body);
  color: var(--lyn-ink);
  background: var(--lyn-paper);
  line-height: 1.6;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lyn-blue); text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--lyn-font-heading);
  color: var(--lyn-purple-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.lyn-container {
  max-width: var(--lyn-max);
  margin: 0 auto;
  padding: 0 24px;
}
.lyn-scripture-link { white-space: nowrap; font-size: 0.85em; }

/* ---------- Header ---------- */
.lyn-header {
  border-bottom: 1px solid var(--lyn-border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.lyn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--lyn-max);
  margin: 0 auto;
}
.lyn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lyn-purple-deep);
}
.lyn-brand img { height: 42px; width: auto; }
.lyn-brand-word {
  font-family: var(--lyn-font-heading);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.1;
}
.lyn-nav { display: flex; align-items: center; gap: 4px; }
.lyn-nav a {
  color: var(--lyn-ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.98rem;
}
.lyn-nav a:hover { background: var(--lyn-paper-tint); }
.lyn-nav a.lyn-cta {
  background: var(--lyn-purple);
  color: #fff;
  font-weight: 600;
}
.lyn-nav a.lyn-cta:hover { background: var(--lyn-purple-deep); }
.lyn-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--lyn-purple-deep);
  cursor: pointer;
}
@media (max-width: 780px) {
  .lyn-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--lyn-border);
    padding: 8px 24px 16px;
  }
  .lyn-nav.is-open { display: flex; }
  .lyn-nav a { padding: 12px 8px; }
  .lyn-nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.lyn-hero {
  background: linear-gradient(180deg, var(--lyn-paper-tint), #fff);
  padding: 72px 24px 56px;
  text-align: center;
}
.lyn-hero .lyn-container { max-width: 760px; }
.lyn-hero-sub {
  font-size: 1.15rem;
  color: #443a54;
}
.lyn-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.lyn-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.lyn-btn-primary { background: var(--lyn-purple); color: #fff; }
.lyn-btn-primary:hover { background: var(--lyn-purple-deep); }
.lyn-btn-secondary { background: transparent; color: var(--lyn-blue); border: 2px solid var(--lyn-blue); padding: 12px 26px; }
.lyn-btn-secondary:hover { background: var(--lyn-blue); color: #fff; }

/* ---------- Sections ---------- */
.lyn-section { padding: 56px 24px; }
.lyn-section-tint { background: var(--lyn-paper-tint); }
.lyn-section-narrow .lyn-container { max-width: 760px; }
.lyn-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lyn-purple);
}
blockquote.lyn-verse {
  border-left: 4px solid var(--lyn-green);
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 20px;
  font-style: italic;
  color: var(--lyn-purple-deep);
}
blockquote.lyn-verse cite {
  display: block;
  font-style: normal;
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ---------- Stage / process timeline ---------- */
.lyn-stages {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}
@media (max-width: 900px) { .lyn-stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lyn-stages { grid-template-columns: 1fr; } }
.lyn-stage-card {
  background: #fff;
  border: 1px solid var(--lyn-border);
  border-radius: var(--lyn-radius);
  padding: 22px;
  position: relative;
}
.lyn-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lyn-purple);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.lyn-stage-card h3 { margin-bottom: 6px; }

/* ---------- Role cards ---------- */
.lyn-role-group-label {
  font-weight: 700;
  color: var(--lyn-purple);
  margin: 40px 0 4px;
  font-size: 1.05rem;
}
.lyn-role-group-note { color: #5b5266; margin-top: 0; }
.lyn-roles-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 780px) { .lyn-roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lyn-roles-grid { grid-template-columns: 1fr; } }
.lyn-role-card {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--lyn-border);
  border-radius: var(--lyn-radius);
  background: #fff;
}
.lyn-role-card img { width: 120px; margin: 0 auto 14px; }
.lyn-role-card.lyn-role-crew { max-width: 320px; margin: 24px auto 0; }
.lyn-role-card.lyn-role-crew img { width: 160px; }

/* ---------- Forms ---------- */
.lyn-form { max-width: 560px; margin: 0 auto; }
.lyn-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.lyn-field label { font-weight: 600; color: var(--lyn-purple-deep); }
.lyn-field input, .lyn-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--lyn-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.lyn-field textarea { min-height: 110px; resize: vertical; }
.lyn-hp { position: absolute; left: -9999px; }
.lyn-form-note { font-size: 0.9rem; color: #5b5266; }
.lyn-alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.lyn-alert-success { background: #eaf5e4; color: #2f5717; border: 1px solid #bfe0ab; }
.lyn-alert-error { background: #fbeaea; color: #7a2323; border: 1px solid #efc2c2; }

/* ---------- Share block ---------- */
.lyn-share {
  text-align: center;
  padding: 40px 24px;
  background: var(--lyn-purple);
  color: #fff;
}
.lyn-share h2 { color: #fff; }
.lyn-share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.lyn-share-row a, .lyn-share-row button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}
.lyn-share-row a:hover, .lyn-share-row button:hover { background: rgba(255,255,255,0.28); }

/* ---------- Footer ---------- */
.lyn-footer {
  border-top: 1px solid var(--lyn-border);
  padding: 32px 24px;
  font-size: 0.88rem;
  color: #5b5266;
}
.lyn-footer .lyn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.lyn-footer-copyright { max-width: 640px; }
.lyn-footer-nav a { color: #5b5266; margin-left: 14px; text-decoration: none; }
.lyn-footer-nav a:first-child { margin-left: 0; }
