/* ═══════════════════════════════════════════════════════════════
   letschat.faith — Global Stylesheet
   Loaded by every page: <link rel="stylesheet" href="/CSS/global.css">
   Do not add page-specific rules here.
═══════════════════════════════════════════════════════════════ */


/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────────── */

:root {
  /* Brand colours */
  --green-dark:  #1F4D2E;
  --green-mid:   #4A8C5C;
  --green-pale:  #eaf3ec;
  --gold:        #C9A84C;
  --off-white:   #F4F1EA;
  --navy:        #141a15;

  /* Text */
  --text:        #1A1A1A;
  --text-mid:    #4b5563;
  --text-light:  #9ca3af;

  /* Borders */
  --border:      rgba(0,0,0,0.10);
  --border-med:  rgba(0,0,0,0.18);

  /* Shape */
  --radius:      0.5rem;
  --radius-lg:   0.75rem;
  --shadow:      0 25px 50px -12px rgba(0,0,0,0.25);
}


/* ── 2. RESET + BASE ──────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}


/* ── 3. ANIMATIONS ────────────────────────────────────────────── */

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

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-3px); }
  75%      { transform: translateX(3px); }
}

.page { animation: fadeUp 0.25s ease; }


/* ── 4. LAYOUT ────────────────────────────────────────────────── */

.page-wrap {
  flex: 1;
  min-height: calc(100vh - 54px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 4rem;
}


/* ── 5. SITE HEADER ───────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  padding: 0 2rem;
  height: 54px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header a img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .site-header { padding: 0 1.25rem; }
}


/* ── 6. SITE FOOTER ───────────────────────────────────────────── */

.site-footer {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 2.5rem 0;
  width: 100%;
}

.site-footer p { margin-bottom: 0.5rem; }

.site-footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.site-footer a:hover { color: rgba(255,255,255,0.9); }


/* ── 7. CARD ──────────────────────────────────────────────────── */

.card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 3rem;
  width: 100%;
  max-width: 58rem;
  animation: fadeUp 0.4s ease both;
}

@media (max-width: 600px) {
  .card { padding: 1.75rem 1.25rem; }
}


/* ── 8. LOGO CONTAINER ────────────────────────────────────────── */

.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-container img,
.logo-container .logo {
  max-width: 180px;
  height: auto;
  display: inline-block;
}


/* ── 9. PAGE TITLE ────────────────────────────────────────────── */

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.15;
}

@media (max-width: 600px) {
  .page-title { font-size: 2rem; }
}


/* ── 10. INTRO INFO BOX ───────────────────────────────────────── */

.intro-info {
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.intro-info p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.intro-info p:last-child { margin-bottom: 0; }


/* ── 11. GOLD DIVIDER ─────────────────────────────────────────── */

.divider {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}


/* ── 12. BUTTONS ──────────────────────────────────────────────── */

/* Primary — dark green, full width */
.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(31,77,46,0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31,77,46,0.35);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Secondary — transparent, bordered */
.btn-secondary {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  margin-top: 0.5rem;
}

.btn-secondary:hover { background: rgba(0,0,0,0.04); }

/* Back — ghost white text, for use on dark background */
.btn-back {
  padding: 14px 20px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-back:hover { background: rgba(255,255,255,0.08); color: white; }

/* Next — green, grows to fill nav-wrap */
.btn-next {
  flex: 1;
  padding: 14px 24px;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(31,77,46,0.3);
}

.btn-next:hover  { background: var(--green-mid); transform: translateY(-1px); }
.btn-next:active { transform: scale(0.99); }
.btn-next:disabled { background: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; }


/* ── 13. PATHWAY BUTTON ───────────────────────────────────────── */

.pathway-options { display: flex; flex-direction: column; gap: 0.75rem; }

.pathway-btn {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.975rem;
  color: var(--text);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pathway-btn:hover   { border-color: var(--green-mid); background: var(--green-pale); }
.pathway-btn.selected { border-color: var(--green-dark); background: var(--green-dark); color: white; }


/* ── 14. NAV WRAP ─────────────────────────────────────────────── */

.nav-wrap { display: flex; gap: 10px; margin-top: 1.5rem; }


/* ── 15. STEP PROGRESS DOTS ───────────────────────────────────── */

.step-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 1.75rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s, transform 0.2s;
}

.step-dot.active { background: var(--gold); transform: scale(1.3); }
.step-dot.done   { background: var(--green-mid); }

.step-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-left: 4px;
}


/* ── 16. SECTION CARD ─────────────────────────────────────────── */

.section-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.25s ease;
}

@media (max-width: 600px) {
  .section-card { padding: 1.25rem; }
}


/* ── 17. SECTION SCORE FOOTER ─────────────────────────────────── */

.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.section-footer-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mini-bar-wrap {
  flex: 1;
  height: 3px;
  background: var(--green-pale);
  border-radius: 2px;
  margin: 0 14px;
  overflow: hidden;
}

.mini-bar {
  height: 3px;
  background: var(--green-mid);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.section-score-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 44px;
  text-align: right;
}


/* ── 18. SCALE RATING BUTTONS ─────────────────────────────────── */

.rating-row { display: flex; gap: 4px; align-items: center; justify-content: center; }

.r-btn {
  width: clamp(34px, 8vw, 40px);
  height: clamp(34px, 8vw, 40px);
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.12s;
}

.r-btn:hover   { background: var(--green-pale); border-color: var(--green-mid); color: var(--text); }
.r-btn.selected { background: var(--green-dark); border-color: var(--green-dark); color: white; font-weight: 600; }
.r-btn.flash,
.r-btn.err     { border-color: #ef4444; animation: shake 0.35s ease; }

@media (max-width: 600px) {
  .r-btn { width: 38px; height: 38px; font-size: 13px; }
}


/* ── 19. MULTIPLE CHOICE BUTTONS ──────────────────────────────── */

.mc-options { display: flex; flex-direction: column; gap: 6px; }

.mc-btn {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-mid);
  transition: all 0.12s;
  line-height: 1.4;
}

.mc-btn:hover   { border-color: var(--green-mid); background: var(--green-pale); color: var(--text); }
.mc-btn.selected { background: var(--green-dark); border-color: var(--green-dark); color: white; }
.mc-btn.flash   { border-color: #ef4444; animation: shake 0.35s ease; }


/* ── 20. EYEBROW LABEL ────────────────────────────────────────── */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
}


/* ── 21. RESULT PANEL (dark green gradient hero) ──────────────── */

.result-panel {
  background: linear-gradient(135deg, var(--green-dark) 0%, #163d22 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.result-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}


/* ── 22. BREAKDOWN GRID ───────────────────────────────────────── */

.breakdown-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .breakdown-grid { grid-template-columns: 1fr; }
}

.bd-item {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.bd-label { font-size: 12px; color: var(--text-mid); margin-bottom: 6px; }
.bd-score { font-size: 24px; font-weight: 600; color: var(--text); }
.bd-max   { font-size: 13px; color: var(--text-light); font-weight: 300; }

.bd-bar-wrap {
  height: 3px;
  background: var(--green-pale);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.bd-bar {
  height: 3px;
  background: var(--green-mid);
  border-radius: 2px;
  transition: width 0.6s ease;
}


/* ── 23. SHARE / COPY ACTIONS ─────────────────────────────────── */

.btn-share {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(31,77,46,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-share:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn-copy {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-copy:hover { background: rgba(0,0,0,0.04); }

.copy-confirm {
  text-align: center;
  font-size: 0.82rem;
  color: var(--green-dark);
  font-weight: 600;
  display: none;
  margin-top: 0.25rem;
}

.back-home {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.back-home:hover { color: var(--text-mid); }


/* ── 24. COMING-SOON TAG ──────────────────────────────────────── */

.coming-soon-tag {
  display: inline-block;
  font-size: 10px;
  background: #f3f4f6;
  color: var(--text-light);
  border-radius: 100px;
  padding: 2px 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}


/* ── 25. SUBMIT NOTE ──────────────────────────────────────────── */

.submit-note {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
}
