/* CFC Learn front end. Interim look in the isocertification.africa brand (Inter, ink, gold).
   Eden's chosen design replaces this file and the templates; the routes and data stay. */
:root {
  --canvas: #fafafa; --surface: #ffffff; --ink: #171717; --ink-body: #2a2a2a; --ink-muted: #6b6b6b;
  --divider: #e5e5e5; --gold: #c9a227; --gold-ink: #8f6b00; --night: #0e0f12; --night-2: #1b1d24;
  --radius: 18px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink-body); background: var(--canvas); line-height: 1.55; font-size: 16px; }
a { color: var(--ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 650; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--gold-ink); margin: 0 0 14px; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-muted); max-width: 640px; }
.meta { color: var(--ink-muted); font-size: 14px; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--divider); }
.hero .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.35); }
.btn-block { width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,250,250,.78); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 17px; letter-spacing: -.01em; }
.brand small { font-size: 11px; color: var(--ink-muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-body); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #3a2f0c 0%, transparent 60%),
  linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #e8e8ea; }
.hero-glow { position: absolute; inset: auto -20% -60% 30%; height: 520px; background: radial-gradient(closest-side, rgba(201,162,39,.35), transparent);
  filter: blur(40px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-6%) } to { transform: translateX(6%) } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: #fff; }
.hero .lead { color: #b9bac2; }
.hero .eyebrow { color: var(--gold); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn:not(.btn-ghost) { background: var(--gold); border-color: var(--gold); color: #111 !important; }
.glass { background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); color: #fff; }
.hero-card { padding: 30px; transform: rotate(-2deg); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: rotate(-2deg) translateY(0) } to { transform: rotate(-1deg) translateY(-10px) } }
.hc-top { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #d9d9de; }
.hc-course { font-size: 30px; font-weight: 700; margin: 34px 0 4px; letter-spacing: -.02em; }
.hc-name { color: #c9cad1; margin: 0 0 26px; }
.hc-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.hc-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), #f0d77a); }
.hc-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 18px 0 0; color: var(--gold); letter-spacing: .06em; }

/* blocks and cards */
.block { padding: 64px 0 8px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.block-head a { font-weight: 600; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.10); }
.card-art { height: 132px; display: flex; align-items: flex-end; padding: 18px; color: #fff; position: relative;
  background: linear-gradient(135deg, #20232b, #0f1014); }
.card-art::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 22px rgba(255,255,255,.04); }
.card-art span { font-weight: 700; font-size: 21px; letter-spacing: -.01em; position: relative; z-index: 1; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin-bottom: 6px; }
.card-soon { opacity: .72; box-shadow: none; }
.card-soon .card-art { filter: grayscale(.6); }
.g-quality .card-art { background: linear-gradient(135deg, #1f3a5f, #0d1b2e); }
.g-information-security .card-art, .g-security .card-art { background: linear-gradient(135deg, #2a1f4f, #120c24); }
.g-environment .card-art, .g-environmental .card-art { background: linear-gradient(135deg, #1e4a35, #0b2016); }
.g-health-and-safety .card-art, .g-occupational-health-and-safety .card-art { background: linear-gradient(135deg, #5a3414, #24140a); }
.g-continuity .card-art, .g-business-continuity .card-art, .g-risk .card-art { background: linear-gradient(135deg, #4d1d26, #1f0b0f); }
.g-governance .card-art, .g-compliance .card-art { background: linear-gradient(135deg, #4a3d0d, #1d1705); }
.g-it-service .card-art, .g-it .card-art, .g-artificial-intelligence .card-art { background: linear-gradient(135deg, #0d4a4a, #062020); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { border: 1px solid var(--divider); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.chip b { color: var(--gold-ink); margin-left: 4px; }

/* steps */
.steps-band { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); margin-top: 64px; padding: 64px 0; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--canvas); border: 1px solid var(--divider); }
.steps span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }

/* verify and ambassadors */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.verify-box, .amb { padding: 32px; border-radius: 24px; border: 1px solid var(--divider); background: var(--surface); box-shadow: var(--shadow); }
.verify-box { background: linear-gradient(160deg, #fffdf5, #fff); border-color: #eadfb8; }
.verify-form { display: flex; gap: 10px; margin-top: 14px; }
.verify-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--divider-strong, #d4d4d4);
  font: 500 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.amb a { font-weight: 600; }

/* page heads */
.page-head { padding: 56px 0 0; }

/* course page */
.course-hero { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); color: #ddd; }
.course-hero h1 { color: #fff; margin-bottom: 6px; }
.course-hero .lead { color: #b9bac2; }
.course-hero .eyebrow { color: var(--gold); }
.course-hero-in { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: end; padding: 64px 0; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.meta-row span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.course-panel { padding: 26px; transform: none; }
.course-panel .btn { background: var(--gold); border-color: var(--gold); color: #111 !important; margin-top: 16px; }
.panel-label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #c9cad1; margin: 0 0 10px; }
.panel-num { margin: 10px 0 0; color: #e7e7ea; }
.link-light { display: block; text-align: center; margin-top: 12px; color: #e7e7ea; font-size: 14px; }
.bar { height: 8px; border-radius: 8px; background: rgba(127,127,127,.22); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e9cd6a); border-radius: 8px; }
.course-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.summary { color: var(--ink-body); }
.modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.module { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--divider); border-radius: 16px; box-shadow: var(--shadow); }
.mod-no { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--canvas); border: 1px solid var(--divider); }
.module h3 { margin: 0 0 4px; }
.mod-links { margin: 0; display: flex; gap: 14px; font-size: 14px; }
.mod-links a { font-weight: 600; }
.mod-state { font-size: 13px; color: var(--ink-muted); }
.is-done .mod-no { background: var(--ink); color: #fff; border-color: var(--ink); }
.is-done .mod-state { color: var(--gold-ink); font-weight: 600; }
.is-locked { opacity: .6; }

/* my learning */
.list { display: grid; gap: 12px; margin-top: 12px; }
.row-card { display: flex; align-items: center; gap: 20px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; box-shadow: var(--shadow); }
.row-main { flex: 1; min-width: 0; }
.row-card h3 { margin: 0 0 2px; }
.row-card h3 a { text-decoration: none; }
.row-progress { width: 260px; }
.row-progress .bar { background: #ececec; margin-bottom: 6px; }
.empty { color: var(--ink-muted); }

/* footer */
.foot { margin-top: 96px; border-top: 1px solid var(--divider); background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 40px 0; }
.foot-brand p { color: var(--ink-muted); font-size: 14px; max-width: 460px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.foot-links a { text-decoration: none; font-weight: 500; }
.fine { grid-column: 1 / -1; color: var(--ink-muted); font-size: 13px; margin: 0; }

@media (max-width: 900px) {
  .hero-in, .course-hero-in, .split, .course-body { grid-template-columns: 1fr; }
  .hero-in { padding: 56px 0 64px; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .row-card { flex-wrap: wrap; }
  .row-progress { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { align-items: flex-start; }
}
@media (max-width: 640px) {
  .brand small { display: none; }
  .nav { gap: 12px; }
  .nav a:not(.btn) { font-size: 14px; }
  .nav a[href="/verify"] { display: none; }
  .top-in { height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .hero-glow, .hero-card { animation: none; } }
