/* ---- Calibre web font (licensed — drop files in /assets/fonts/) ----
   Add your licensed Calibre .woff2 files to public/assets/fonts/ and these
   rules pick them up automatically. Until then the stack falls back to the
   system UI font (clean, Apple-like). */
@font-face { font-family:'Calibre'; src:url('/assets/fonts/Calibre-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Calibre'; src:url('/assets/fonts/Calibre-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Calibre'; src:url('/assets/fonts/Calibre-Semibold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Calibre'; src:url('/assets/fonts/Calibre-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* ============================================================
   ITHR Technologies Consulting LLC — LMS design system
   All brand colors live here as CSS variables. Swap these
   (and the logo in js/config.js) to rebrand instantly.
   ============================================================ */
:root {
  /* ITHR brand palette (from official Brand Kit) on an Apple-style light system */
  --brand-900: #0f2647;   /* deep navy */
  --brand-700: #16335E;   /* ITHR Navy */
  --brand-600: #1f5aa6;   /* navy/blue blend */
  --brand-500: #2E7FC1;   /* ITHR Bright Blue */
  --accent-500: #00A78B;  /* ITHR Teal (signature accent) */
  --accent-400: #3FA9E0;  /* ITHR Sky Blue */
  --ink: #1d1d1f;         /* Apple near-black */
  --body: #494951;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;     /* Apple light section */
  --bg-dark: #0f2647;
  --ok: #1a7f5a;
  --warn: #b25a00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 20px rgba(15,38,71,.08);
  --shadow-lg: 0 18px 48px rgba(15,38,71,.14);
  --maxw: 1180px;
  --font: Calibri, Tahoma, 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--body);
  background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 15px; padding: 12px 22px;
  border-radius: 999px; transition: .18s; text-decoration: none; }
.btn-primary { background: var(--brand-500); color:#fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--brand-600); color:#fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent-500); color:#fff; }
.btn-accent:hover { background:#018f77; color:#fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-soft); color: var(--brand-600); letter-spacing: .02em; }
.tag-beginner { background: #e7f7ee; color: #15803d; }
.tag-intermediate { background: #e8f0fe; color: #1853b6; }
.tag-advanced { background: #fbe9e7; color: #c2410c; }

/* ---------- top utility bar ---------- */
.utilbar { background: var(--brand-900); color: #cdd9ee; font-size: 13px; }
.utilbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.utilbar a { color: #cdd9ee; padding: 0 10px; }
.utilbar a:hover { color: #fff; }
.utilbar .seg a.active { color: #fff; font-weight: 700; }
.utilbar .right a { border-left: 1px solid rgba(255,255,255,.15); }
.utilbar .right a:first-child { border-left: 0; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
header.site .container { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; color: var(--ink); font-size: 20px; letter-spacing: -.03em; }
.logo .mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-700), var(--accent-500));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px; }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
nav.main { display: flex; gap: 6px; margin-left: auto; }
nav.main a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 13px; border-radius: 8px; }
nav.main a:hover { background: var(--bg-soft); color: var(--brand-600); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #0f2647 0%, #16335E 100%); color:#fff; overflow:hidden; position:relative; }
.hero .container { padding-top: 86px; padding-bottom: 96px; position: relative; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18); padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #d7e6ff; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); max-width: 18ch; margin-top: 20px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent-400), #8fe3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 19px; color: #d4e1f5; max-width: 56ch; margin: 18px 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 30px; color: #fff; font-weight: 900; }
.hero-stats .stat span { color: #aec4e6; font-size: 14px; }

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { color: var(--accent-500); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: .18s; display: block; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(24,83,182,.12), rgba(7,182,194,.14)); color: var(--brand-600); margin-bottom: 14px; }
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.cat-card .count { font-size: 13px; font-weight: 700; color: var(--brand-600); }

/* course grid + cards */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-card .top { height: 110px; background: linear-gradient(135deg, var(--brand-700), var(--accent-500));
  position: relative; display: flex; align-items: flex-end; padding: 14px; }
.course-card .top .cat-name { color: #fff; font-size: 12px; font-weight: 700; opacity: .95; }
.course-card .top .tier { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92);
  color: var(--brand-700); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.course-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.course-card .desc { font-size: 13.5px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.course-card .meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.course-card .meta b { color: var(--ink); }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.course-card .price { font-weight: 900; color: var(--ink); font-size: 18px; }
.stars { color: #f5a623; font-size: 13px; }

/* features / why */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 19px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { padding: 26px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-900); color:#fff; font-weight:900;
  display:grid; place-items:center; margin-bottom: 14px; }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; color: var(--muted); margin:0; }

/* platform cards (AI Labs analog) */
.platform-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.platform { border-radius: var(--radius); padding: 32px; color:#fff;
  background: linear-gradient(150deg, var(--brand-900), var(--brand-600)); }
.platform.alt { background: linear-gradient(150deg, #0b3b41, var(--accent-500)); }
.platform h3 { color:#fff; font-size: 22px; }
.platform ul { list-style: none; padding:0; margin: 16px 0 0; }
.platform li { padding: 7px 0 7px 26px; position: relative; color: #e4eefb; font-size: 14.5px; }
.platform li:before { content:'✓'; position:absolute; left:0; color: var(--accent-400); font-weight:900; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-900), var(--brand-600)); color:#fff; border-radius: 22px;
  padding: 56px; text-align:center; }
.cta-band h2 { color:#fff; font-size: clamp(24px,3vw,34px); }
.cta-band p { color:#cfe0f7; font-size: 17px; max-width: 50ch; margin: 0 auto 26px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border:1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background:#fff; }
.faq summary { cursor:pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; display:flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary:after { content:'+'; color: var(--brand-500); font-size: 22px; font-weight: 700; }
.faq details[open] summary:after { content:'–'; }
.faq p { padding: 0 22px 20px; margin:0; color: var(--muted); font-size: 14.5px; }

/* footer */
footer.site { background: var(--brand-900); color:#a9bddc; }
footer.site .container { padding: 60px 24px 30px; }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer.site h4 { color:#fff; font-size: 14px; text-transform: uppercase; letter-spacing:.06em; margin-bottom: 16px; }
footer.site a { display:block; color:#a9bddc; padding: 5px 0; font-size: 14px; }
footer.site a:hover { color:#fff; }
footer.site .brand p { font-size: 14px; max-width: 34ch; }
.foot-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- forms / auth ---------- */
.auth-wrap { min-height: calc(100vh - 110px); display:grid; place-items:center; padding: 50px 20px;
  background: radial-gradient(800px 400px at 80% 0%, rgba(7,182,194,.10), transparent), var(--bg-soft); }
.auth-card { width:100%; max-width: 440px; background:#fff; border:1px solid var(--line); border-radius: 18px;
  padding: 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input { width:100%; padding: 12px 14px; border:1.5px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.field input:focus { outline:none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(47,111,224,.15); }
.alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-err { background:#fdecea; color:#b3261e; }
.alert-ok { background:#e7f7ee; color:#15803d; }

/* ---------- dashboard ---------- */
.dash { display:grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 110px); }
.dash aside { background: var(--brand-900); color:#cdd9ee; padding: 28px 18px; }
.dash aside .who { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); margin-bottom: 20px; }
.dash aside .who b { color:#fff; display:block; }
.dash aside a { display:flex; gap:10px; align-items:center; color:#cdd9ee; padding: 11px 12px; border-radius: 9px; font-weight:600; font-size: 14.5px; }
.dash aside a:hover, .dash aside a.active { background: rgba(255,255,255,.10); color:#fff; }
.dash main { padding: 36px; background: var(--bg-soft); }
.dash-stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dash-stat b { font-size: 28px; color: var(--ink); display:block; }
.dash-stat span { font-size: 13px; color: var(--muted); }
.enroll-row { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.enroll-row .titleline { display:flex; justify-content: space-between; align-items:center; gap: 16px; flex-wrap:wrap; }
.progress { height: 9px; background: var(--bg-soft); border-radius: 999px; overflow:hidden; margin: 12px 0 6px; }
.progress > i { display:block; height:100%; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); border-radius:999px; transition: width .3s; }

/* ---------- course detail ---------- */
.course-hero { background: linear-gradient(150deg, var(--brand-900), var(--brand-700)); color:#fff; padding: 56px 0; }
.course-hero h1 { color:#fff; font-size: clamp(26px,3.6vw,40px); max-width: 22ch; }
.course-hero .crumbs { font-size: 13px; color:#aec4e6; margin-bottom: 16px; }
.course-hero .crumbs a { color:#aec4e6; }
.course-layout { display:grid; grid-template-columns: 1fr 360px; gap: 40px; margin-top: -60px; align-items: start; }
.course-main { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.course-aside { position: sticky; top: 90px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.course-aside .price { font-size: 34px; font-weight:900; color: var(--ink); }
.module { border:1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display:flex; gap: 12px; align-items:center; }
.module .num { width:28px;height:28px;border-radius:50%;background:var(--bg-soft);color:var(--brand-600);font-weight:800;display:grid;place-items:center;font-size:13px; }
.module.done .num { background: var(--ok); color:#fff; }
.skill-chip { display:inline-block; background: var(--bg-soft); border:1px solid var(--line); padding: 7px 13px; border-radius:999px; font-size:13.5px; margin:0 6px 8px 0; }

/* verify + certificate */
.cert { max-width: 820px; margin: 40px auto; background:#fff; border: 2px solid var(--brand-700); border-radius: 18px;
  padding: 50px; text-align:center; position: relative; box-shadow: var(--shadow-lg); }
.cert:before { content:''; position:absolute; inset: 12px; border: 1px solid var(--line); border-radius: 12px; pointer-events:none; }
.cert .seal { width:84px;height:84px;border-radius:50%;margin:0 auto 18px;background: linear-gradient(135deg,var(--brand-700),var(--accent-500));
  display:grid;place-items:center;color:#fff;font-weight:900;font-size:26px; }
.cert h2 { font-size: 30px; }
.cert .learner { font-size: 26px; color: var(--brand-700); font-weight:900; margin: 10px 0; }
.cert .credid { font-family: ui-monospace, monospace; background: var(--bg-soft); padding: 7px 14px; border-radius:8px; display:inline-block; }

.loading { text-align:center; padding: 60px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .course-grid, .feature-grid, .steps, .platform-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash aside { display:flex; gap:8px; overflow:auto; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav.main, .header-cta .btn-ghost { display:none; }
  .menu-toggle { display:block; margin-left:auto; }
  nav.main.open { display:flex; position:absolute; top:72px; left:0; right:0; background:#fff; flex-direction:column;
    padding:14px; border-bottom:1px solid var(--line); box-shadow: var(--shadow); }
  .course-grid, .feature-grid, .steps, .platform-grid, .cat-grid, .foot-grid, .dash-stats { grid-template-columns: 1fr; }
  .utilbar .seg { display:none; }
  .cta-band { padding: 36px 22px; }
}


/* ---- real ITHR logo (brand kit) ---- */
.logo { gap: 0; }
.logo .logo-img { height: 45px; width: auto; display: block; }
header.site .logo .logo-img { height: 45px; }
footer.site .logo .logo-img { height: 45px; }
.logo small { display:none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
body { -webkit-font-smoothing: antialiased; }
