/* Chop Chop Driver Academy, shared styles
   DRAFT. Matches chopchopdeliveries.com design language. */

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

:root {
  --red: #D71920;
  --black: #0e0e0e;
  --surface: #161616;
  --surface2: #1e1e1e;
  --rule: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --muted: #9a9a9a;
  --green: #22c55e;
  --amber: #f59e0b;
  --head: 'Bebas Neue', sans-serif;
  --body: 'Inter', sans-serif;
}

html, body {
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 1.5rem; height: 64px;
  background: rgba(14,14,14,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-name { font-family: var(--head); font-size: 1.35rem; letter-spacing: .08em; }
.brand-sub {
  font-family: var(--body); font-size: .58rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.topbar .back {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.topbar .back:hover { color: var(--text); }

/* ---------- team photo ---------- */
.team-photo-wrap {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.team-photo {
  width: 100%;
  display: block;
  height: auto;
}

/* ---------- layout ---------- */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-size: .64rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--head); font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: .95; letter-spacing: .02em; margin-bottom: 1rem;
}
.hero p { color: var(--muted); font-size: 1.02rem; max-width: 60ch; }

/* ---------- module cards (hub) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1rem; margin: 2.5rem 0 4rem; }
.card {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.5rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(215,25,32,.5); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.card-num {
  font-family: var(--head); font-size: 1.5rem; color: var(--red); line-height: 1;
}
.card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .4rem; }
.card p { font-size: .85rem; color: var(--muted); }

.pill {
  font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 20px; white-space: nowrap;
}
.pill-todo { background: #2a2a2a; color: #9a9a9a; }
.pill-done { background: rgba(34,197,94,.14); color: var(--green); }

/* ---------- progress ---------- */
.progress-wrap { margin: 2rem 0 0; }
.progress-line { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-bottom: .5rem; }
.progress-bar { height: 6px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--red); border-radius: 4px; transition: width .5s ease; }

/* ---------- module content ---------- */
.section { padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }
.section h2 {
  font-family: var(--head); font-size: 1.9rem; letter-spacing: .03em; margin-bottom: 1rem;
}
.section h3 { font-size: 1rem; font-weight: 600; margin: 1.6rem 0 .6rem; }
.section p { margin-bottom: 1rem; color: #d8d8d8; }
.section ul, .section ol { margin: 0 0 1rem 1.2rem; }
.section li { margin-bottom: .55rem; color: #d8d8d8; }
.lead { font-size: 1.05rem; color: var(--muted); }

.callout {
  background: var(--surface); border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0; padding: 1.15rem 1.35rem; margin: 1.5rem 0;
}
.callout strong { color: #fff; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- checklist ---------- */
.checklist { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem 1.5rem; margin: 1.5rem 0; }
.checklist h4 {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.check-item { display: flex; align-items: flex-start; gap: 11px; padding: .5rem 0; }
.check-item input { display: none; }
.check-item::before { content: "•"; color: var(--red); font-weight: 700; line-height: 1.45; flex-shrink: 0; }
.check-item label { font-size: .93rem; color: #d8d8d8; }

/* ---------- takeaways ---------- */
.takeaways { background: linear-gradient(180deg, rgba(215,25,32,.09), var(--surface)); border: 1px solid rgba(215,25,32,.28); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.takeaways h4 { font-family: var(--head); font-size: 1.35rem; letter-spacing: .04em; margin-bottom: .9rem; }
.takeaways ul { margin-left: 1.1rem; }
.takeaways li { margin-bottom: .5rem; }

/* ---------- quiz ---------- */
.quiz { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.6rem; margin: 1.5rem 0; }
.q { margin-bottom: 1.6rem; }
.q:last-of-type { margin-bottom: 1rem; }
.q-text { font-weight: 600; margin-bottom: .75rem; font-size: .96rem; }
.opt { display: flex; align-items: flex-start; gap: 11px; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; transition: background .15s; }
.opt:hover { background: var(--surface2); }
.opt input { margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.opt span { font-size: .92rem; color: #d8d8d8; }
.opt.correct { background: rgba(34,197,94,.12); }
.opt.wrong { background: rgba(215,25,32,.12); }

.quiz-result { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 8px; font-size: .9rem; }
.quiz-result.pass { display: block; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.quiz-result.fail { display: block; background: rgba(215,25,32,.12); border: 1px solid rgba(215,25,32,.3); color: #fca5a5; }

/* ---------- acknowledgment ---------- */
.ack { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.6rem; margin: 1.5rem 0 3rem; }
.ack h4 { font-family: var(--head); font-size: 1.35rem; letter-spacing: .04em; margin-bottom: .8rem; }
.ack-row { display: flex; align-items: flex-start; gap: 11px; margin: 1rem 0 1.2rem; }
.ack-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.ack-row label { font-size: .92rem; color: #d8d8d8; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: .95rem 1.5rem; border: none; border-radius: 8px;
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  background: var(--red); color: #fff; cursor: pointer; transition: opacity .15s;
}
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:not(:disabled):hover { opacity: .88; }
.btn-outline { background: transparent; border: 1px solid var(--rule); color: var(--text); }

.done-banner { display: none; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: .92rem; }
.done-banner.show { display: block; }

/* ---------- completion panel (replaces the ack block in place) ---------- */
.complete-panel { text-align: center; padding: .5rem 0; }
.complete-check {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%;
  background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4);
  color: var(--green); font-size: 1.6rem; line-height: 52px;
}
.complete-panel h4 { font-family: var(--head); font-size: 1.6rem; letter-spacing: .04em; margin-bottom: .4rem; }
.complete-panel p { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.complete-panel .btn { text-decoration: none; }

/* ---------- placeholder (screenshots / diagrams) ---------- */
.placeholder {
  border: 1px dashed rgba(255,255,255,.22); border-radius: 12px;
  padding: 2.5rem 1.5rem; text-align: center; margin: 1.4rem 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.014) 10px, rgba(255,255,255,.014) 20px);
}
.placeholder .ph-label { font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.placeholder p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- module nav ---------- */
.modnav { display: flex; gap: .75rem; margin: 0 0 4rem; }
.modnav a { flex: 1; text-align: center; padding: .9rem; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; font-size: .82rem; color: var(--muted); transition: border-color .2s, color .2s; }
.modnav a:hover { border-color: rgba(215,25,32,.5); color: var(--text); }

footer { border-top: 1px solid var(--rule); padding: 2rem 0; text-align: center; color: var(--muted); font-size: .78rem; }

@media (max-width: 640px) {
  .topbar { padding: 0 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .wrap, .wrap-wide { padding: 0 1rem; }
}
