/* ===== King's Harbor Church brand system =====
   Colors, type, and marks pulled from KHC Brand Style Guide v1.2
   Primary: PMS 274 (navy) #2c1c61, PMS 266 (purple) #794d9f
   Support (accent only): PMS 3262 (teal) #00b1b0, PMS 225 (magenta) #e12490, Warm Gray 1 #d7d3cc
*/

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proximanova-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proximanova-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proximanova-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proximanova-black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
:root {
  --navy: #2c1c61;
  --navy-ink: #241a4d;
  --purple: #794d9f;
  --purple-dark: #613e82;
  --teal: #00b1b0;
  --teal-dark: #007b7a;
  --magenta: #e12490;
  --warm-gray: #d7d3cc;
  --warm-gray-dark: #8a8579;
  --ink: #241f3d;
  --muted: #6d6784;
  --line: #e4e1ee;
  --bg: #f6f5f9;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.wrap.wide { max-width: 980px; }

/* ---- Header ---- */

header.page-head {
  position: relative;
  overflow: hidden;
  height: 90vh;
  min-height: 480px;
  max-height: 760px;
  background-color: var(--navy);
  background-image: url("/assets/hero-photo.jpg");
  background-size: cover;
  background-position: center 40%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flat black tint at 50% opacity, matching the hero on kingsharbor.org/next-steps */
header.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

header.page-head .head-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.wrap.wide header.page-head .head-inner { max-width: 940px; }

header.page-head img.brand-logo {
  height: 34px;
  display: block;
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 16px;
}

header.page-head h1 {
  font-family: "Proxima Nova", sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

/* Compact-header pages (admin) still show a descriptive line under the title */
header.page-head.page-head--compact h1 { font-size: 1.7rem; }

header.page-head p {
  color: rgba(255,255,255,0.9);
  margin: 10px auto 0;
  font-size: 0.95rem;
  max-width: 34em;
  text-align: center;
}

/* Compact variant for the admin dashboard — full hero treatment would be wasted screen there */
header.page-head.page-head--compact {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 36px 20px;
  margin: 0 0 28px;
}

/* Right-slant hash accent, taken from the KHC design-elements page */
.hash-divider {
  width: 64px;
  height: 6px;
  margin: 14px auto 16px;
  background-image: repeating-linear-gradient(
    115deg,
    var(--teal) 0px, var(--teal) 2px,
    transparent 2px, transparent 6px
  );
}

/* ---- Cards / sections ---- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}

.card.locked {
  background: #faf9f7;
  border-color: var(--line);
  color: var(--warm-gray-dark);
}

.card.completed {
  border-color: var(--teal);
  border-width: 1.5px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-family: "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
}

.card.locked .section-title { color: var(--warm-gray-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Proxima Nova", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.locked { background: var(--warm-gray); color: #5c584e; }
.badge.active { background: rgba(121,77,159,0.12); color: var(--purple-dark); border: 1px solid var(--purple); }
.badge.completed { background: rgba(0,177,176,0.12); color: var(--teal-dark); }

/* ---- Video + progress ---- */

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}

.video-wrap iframe, .video-wrap .player-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.progress-note {
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.progress-bar-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--magenta));
  width: 0%;
  transition: width 0.2s ease;
}

/* ---- Questions ---- */

.questions {
  margin-top: 20px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.questions.unlocked {
  opacity: 1;
  pointer-events: auto;
}

.questions label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.94rem;
  margin: 16px 0 6px;
}

.questions textarea {
  width: 100%;
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.questions textarea:focus, input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

/* ---- Buttons & inputs ---- */

/* Flat solid purple, matching the real CTA buttons on kingsharbor.org
   (measured: #794d9f, border-radius 50px, padding 12px 24px, 14px/600
   uppercase text) — not the gradient treatment, which the real site
   reserves for large decorative panels/rows, not buttons. */
button, .btn {
  font-family: "Proxima Nova", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  background: var(--purple);
  color: #ffffff;
  box-shadow: none;
}

button:hover:not(:disabled) { filter: brightness(1.08); }

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

button.secondary {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
  box-shadow: none;
}

button.secondary:hover:not(:disabled) { background: rgba(121,77,159,0.08); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin-top: 4px;
}

.field { margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }

.error-msg {
  background: #fdeee8;
  color: #9a3412;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: 10px 0;
}

.small-link {
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
}

.completion-banner,
.intro-banner {
  background: linear-gradient(100deg, var(--purple), var(--magenta));
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.16)' stroke-width='1.5'%3E%3Cpath d='M-20 60 C 100 10, 200 100, 320 40 S 560 -10, 660 50'/%3E%3Cpath d='M-20 90 C 100 40, 200 130, 320 70 S 560 20, 660 80'/%3E%3Cpath d='M-20 120 C 100 70, 200 160, 320 100 S 560 50, 660 110'/%3E%3Cpath d='M-20 150 C 100 100, 200 190, 320 130 S 560 80, 660 140'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(100deg, var(--purple), var(--magenta));
  background-size: cover, cover;
  background-position: center, center;
  color: #ffffff;
  padding: 34px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.completion-banner .love-forward {
  display: block;
  font-family: "Proxima Nova", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.completion-banner p {
  margin: 0;
  font-weight: 700;
}

/* Rounded gradient panel matching the block that follows the hero on
   kingsharbor.org/next-steps, pixel-for-pixel: that page's row is
   full-bleed with margin-top/left/right: 5rem and border-radius: 2rem
   (the literal CSS from their .tGGIC rule) — height stays auto so it
   grows or shrinks with the text instead of a fixed box. */
.intro-banner {
  margin: 5rem;
  padding: 80px 16px;
  border-radius: 2rem;
}

@media (max-width: 700px) {
  .intro-banner {
    margin: 5rem 20px;
  }
}

.intro-banner h2 {
  font-family: "Proxima Nova", sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 14px;
}

/* Thin keyline between the headline and subtext — equal 14px gap above
   and below the line, so it sits centered in the space between them */
.intro-banner .divider {
  width: 50px;
  height: 2px;
  margin: 0 auto 14px;
  background: #ffffff;
}

.intro-banner p {
  margin: 0 auto;
  font-weight: 400;
  font-size: 1rem;
  width: 75%;
  text-wrap: pretty;
}

/* Intro video row — matches the video block that sits directly under the
   gradient panel on kingsharbor.org/next-steps, pixel-for-pixel: full-bleed
   row, 80px top / 16px bottom row padding, a 1145px container with 16px
   side padding (the site's --theme-container-width), and a plain flat
   16:9 player with no border-radius or shadow (the real block is a raw
   Vimeo embed, not a rounded card like the section videos below it). */
.intro-video-row {
  padding: 80px 16px 16px;
}

.intro-video-row .intro-video-container {
  max-width: 1145px;
  margin: 0 auto;
}

.intro-video-row .video-wrap {
  margin: 0;
  border-radius: 0;
}

/* Optional heading shown above a section to mark the start of a sub-series
   (e.g. "Theological Distinctives Section" ahead of its five videos) */
.group-label {
  font-family: "Proxima Nova", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
  color: var(--purple);
  margin: 28px 0 10px;
}

.group-label:first-child { margin-top: 0; }

/* ---- Admin ---- */

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.admin-table th {
  color: var(--navy);
  font-family: "Proxima Nova", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs button {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--line);
  font-family: "Proxima Nova", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.tabs button.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.section-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  background: var(--card);
}

.section-editor .field { margin-bottom: 10px; }

.question-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.question-row input { flex: 1; }

.hint {
  font-family: "Proxima Nova", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.pill-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: "Proxima Nova", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.brand-footer {
  text-align: center;
  padding: 30px 0 10px;
  font-family: "Proxima Nova", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--purple);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
