/* FVSBC Training — site styles. Navy #173a5e + teal #1f7a6d (matches familyvisitationservicesbc.com). */
:root {
  --navy: #173a5e;
  --navy-deep: #0f2a46;
  --navy-soft: #21456e;
  --teal: #1f7a6d;
  --teal-soft: #e6f4f0;
  --ink: #2b3440;
  --muted: #5c6b7d;
  --bg: #ffffff;
  --card: #FFFFFF;
  --line: #dbe4ee;
  --ok: #1E7E46;
  --bad: #B3261E;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
h1, h2, h3 { line-height: 1.25; margin-top: 0; color: var(--navy); }
a { color: var(--navy); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--teal);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: .5px;
}
.brand-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 12px; color: var(--teal-soft); }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #E8ECF7; text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--teal); color: #fff;
  font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  padding: 14px 30px; border-radius: 10px; font-size: 16px;
}
.btn:hover { filter: brightness(1.06); }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); filter: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 20% -10%, var(--navy-soft), var(--navy-deep));
  color: #fff; padding: 96px 0 80px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--teal);
}
.hero h1 { color: #fff; font-size: 46px; max-width: 640px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--teal); }
.hero p.lead { font-size: 19px; color: #d7e3ef; max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; color: var(--teal); font-weight: 700; letter-spacing: 2px;
  font-size: 13px; text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 34px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.sec-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-title h2 { font-size: 34px; margin-bottom: 12px; }
.sec-title p { color: var(--muted); font-size: 17px; }

/* credibility */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cred-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.cred-card .icon { font-size: 30px; margin-bottom: 12px; }
.cred-card h3 { font-size: 19px; margin-bottom: 8px; }
.cred-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* curriculum */
.curriculum { background: #fff; }
.mod-list { display: grid; gap: 14px; }
.mod {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.mod-head {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer;
}
.mod-head:hover { background: #FAFBFE; }
.mod-num {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--teal); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mod-head h3 { margin: 0; font-size: 18px; flex: 1; }
.mod-dur { color: var(--muted); font-size: 14px; white-space: nowrap; }
.mod-toggle { color: var(--teal); font-weight: 800; font-size: 20px; }
.mod-lessons { display: none; padding: 0 22px 20px 86px; color: var(--muted); font-size: 15px; }
.mod.open .mod-lessons { display: block; }
.mod-lessons li { margin-bottom: 6px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px; margin: 0 auto; }
.price-grid-single { grid-template-columns: 1fr; max-width: 460px; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; position: relative; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--teal); box-shadow: 0 18px 50px rgba(18,30,62,.12); }
.price-flag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 18px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase;
}
.price-card h3 { font-size: 22px; margin-bottom: 4px; }
.price { font-size: 44px; font-weight: 800; color: var(--navy); margin: 10px 0 4px; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.price-card li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.bulk-note { text-align: center; margin-top: 30px; color: var(--muted); }

/* FAQ */
.faq { background: #fff; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--card); }
.faq-q { padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq-q:hover { color: var(--navy-soft); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* footer */
.site-footer { background: var(--navy-deep); color: #B9C3DE; padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer a { color: var(--teal-soft); }
.footer-note { font-size: 13px; color: #7E8AA8; margin-top: 24px; max-width: 720px; }

/* ---------- course player ---------- */
.player-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; min-height: calc(100vh - 73px); }
.sidebar { background: var(--navy-deep); color: #DDE4F5; padding: 24px 0; }
.sidebar h3 { color: var(--teal); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 0 24px; margin-bottom: 12px; }
.mod-link {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  background: none; border: none; color: inherit; text-align: left; cursor: pointer;
  padding: 12px 24px; font-size: 14px; border-left: 4px solid transparent;
}
.mod-link:hover { background: rgba(255,255,255,.05); }
.mod-link.active { background: rgba(31,122,109,.12); border-left-color: var(--teal); }
.mod-link.locked { opacity: .45; cursor: not-allowed; }
.mod-link .n {
  flex: 0 0 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
}
.mod-link.done .n { background: var(--ok); color: #fff; }
.mod-link .t small { display: block; color: #8E99B8; font-size: 12px; }
.stage { padding: 40px 48px; max-width: 900px; }
.stage h2 { font-size: 28px; }
.video-shell {
  position: relative; background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; margin: 20px 0 32px;
}
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-pending {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: #d7e3ef; background: var(--navy);
  text-align: center; padding: 24px;
}
.video-pending .big { font-size: 44px; }
.progress-bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 8px 0 24px; }
.progress-bar i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .4s; }

/* gate */
.gate-wrap { min-height: calc(100vh - 73px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.gate-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 480px; width: 100%; padding: 48px 44px; text-align: center;
  box-shadow: 0 20px 60px rgba(18,30,62,.10);
}
.gate-card .lock { font-size: 46px; margin-bottom: 12px; }
.gate-card input {
  width: 100%; padding: 14px 16px; font-size: 17px; border: 2px solid var(--line);
  border-radius: 10px; margin: 18px 0 12px; text-align: center; letter-spacing: 1px;
}
.gate-err { color: var(--bad); font-size: 14px; min-height: 22px; margin-bottom: 8px; }

/* quizzes */
.quiz-sub { color: var(--muted); margin-bottom: 20px; }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; background: #fff; }
.q h3 { font-size: 16px; margin-bottom: 12px; }
.q-num { color: var(--teal); font-weight: 800; margin-right: 8px; }
.q-opts label {
  display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 8px; cursor: pointer; font-size: 15px;
}
.q-opts label:hover { border-color: var(--teal); }
.q-opts input { margin-right: 10px; }
.q-feedback { font-size: 14px; margin-top: 10px; }
.q.correct { border-color: var(--ok); background: #F2FAF5; }
.q.incorrect { border-color: var(--bad); background: #FDF3F2; }
.quiz-actions { display: flex; gap: 12px; margin: 18px 0; }
.quiz-result { padding: 18px 22px; border-radius: 12px; font-size: 16px; margin-bottom: 20px; display: none; }
.quiz-result.show { display: block; }
.quiz-result.pass { background: #E7F6EC; border: 1px solid var(--ok); color: #14532D; }
.quiz-result.fail { background: #FDEEED; border: 1px solid var(--bad); color: #7A1F1A; }

/* certificate */
.cert {
  background: #fff; border: 3px solid var(--teal); border-radius: 8px;
  padding: 56px 48px; text-align: center; max-width: 760px; margin: 24px auto;
}
.cert h2 { font-size: 34px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.cert .cert-name { font-size: 30px; font-weight: 700; color: var(--navy); margin: 18px 0 6px; border-bottom: 1px solid var(--line); display: inline-block; padding: 0 40px 6px; }
.cert p { color: var(--muted); }
.cert .seal {
  width: 92px; height: 92px; border-radius: 50%; background: var(--navy); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 24px auto 0;
}
.cert-form { max-width: 480px; margin: 0 auto 8px; }
.cert-form input {
  width: 100%; padding: 13px 16px; font-size: 16px; border: 2px solid var(--line);
  border-radius: 10px; margin-bottom: 12px;
}
@media print {
  body * { visibility: hidden; }
  .cert, .cert * { visibility: visible; }
  .cert { position: absolute; top: 0; left: 0; right: 0; margin: 0; max-width: none; border-width: 4px; }
  .no-print { display: none !important; }
}

@media (max-width: 860px) {
  .hero h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .cred-grid, .price-grid { grid-template-columns: 1fr; }
  .player-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .stage { padding: 28px 20px; }
  .nav-links { display: none; }
}
