/* ============================================================
   SKILL LAB / I'M POSSIBLE TRAINING — Michigan HQ design system
   Bo Bell merged-site design adapted to the official red/black
   I'm Possible / Skill Lab brand palette.
   ============================================================ */
:root {
  --primary: #0B0B0D;      /* near-black */
  --primary-2: #16161A;    /* raised dark surface */
  --accent: #E11D2E;       /* skill-lab red */
  --accent-hover: #C41224;
  --accent-soft: rgba(225,29,46,.14);
  --background: #F5F5F4;   /* warm off-white */
  --surface: #FFFFFF;
  --text: #17171B;
  --muted: #6B6B70;
  --border: #E6E2DA;

  --ink: #17171B;
  --slate: #6B6B70;
  --line: #E6E2DA;
  --bg: #F5F5F4;
  --cream: #F5F5F4;

  --shadow-sm: 0 1px 2px rgba(11,11,13,.08);
  --shadow-md: 0 10px 30px -12px rgba(11,11,13,.22);
  --shadow-lg: 0 30px 60px -20px rgba(11,11,13,.32);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .45em;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1em; }
.small { font-size: .92rem; color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-2); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .6rem 24px; }
.nav-brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.nav-brand .mark { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.nav-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; color: #fff; }
.nav-brand .name small { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--accent); font-family: var(--font-body); font-weight: 600; }
.nav-links { display: flex; gap: .15rem; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255,255,255,.88); font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; padding: .55rem .8rem; border-radius: 8px; transition: all .15s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-links .nav-cta { background: var(--accent); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; }
.nav-links .nav-cta:hover { opacity: .9; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: .3rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--primary); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .34; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(11,11,13,.97) 0%, rgba(11,11,13,.85) 45%, rgba(11,11,13,.45) 100%); }
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 9rem 24px 7.5rem; }
.hero-kicker { display: inline-block; font-family: var(--font-display); letter-spacing: .28em; text-transform: uppercase; font-size: .86rem; color: #fff; background: var(--accent); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.3rem; }
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { max-width: 58ch; font-size: 1.18rem; color: rgba(255,255,255,.92); margin-bottom: 1.9rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-tag { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: rgba(255,255,255,.78); font-size: .92rem; }
.hero-tag strong { color: #fff; }

/* ---------- Ticker ---------- */
.ticker { background: var(--accent); color: #fff; overflow: hidden; border-block: 3px solid rgba(225,29,46,.4); }
.ticker-track { display: flex; gap: 2.6rem; padding: .7rem 0; white-space: nowrap; animation: tick 28s linear infinite; width: max-content; }
.ticker-track span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 1.02rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--background); }
.section-green { background: var(--primary); color: #fff; }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-green h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: .82rem; color: var(--accent); margin-bottom: .6rem; }
.eyebrow.gold { color: var(--accent); }
.eyebrow.white { color: var(--accent); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p, .section-green .section-head p { color: rgba(255,255,255,.85); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.7rem 1.4rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem,5vw,3.6rem); color: var(--accent); line-height: 1; }
.stat .label { margin-top: .5rem; font-size: .92rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); font-weight: 600; }
.stat .sub { margin-top: .25rem; font-size: .82rem; color: rgba(255,255,255,.6); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--background); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.card-body .role { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--accent); margin-bottom: .6rem; }
.card-body p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* ---------- Trending product carousel ---------- */
.product-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 31%);
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: .35rem .1rem 1rem;
}
.product-slide {
  min-width: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-slide:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--background); }
.product-slide span { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.15rem 1.2rem; }
.product-slide strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.05; text-transform: uppercase; }
.product-slide small { color: var(--accent); font-weight: 700; }
.carousel-controls { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.carousel-button { width: 44px; height: 44px; border: 2px solid var(--primary); border-radius: 50%; background: var(--surface); color: var(--primary); font-size: 1.2rem; cursor: pointer; transition: all .18s ease; }
.carousel-button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; padding: .3rem .8rem; border-radius: 999px; }
.price-card h3 { font-size: 1.45rem; }
.price-card .amount { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--primary); line-height: 1; margin: .4rem 0 .1rem; }
.price-card .per { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.price-card ul { margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: .96rem; color: var(--text); }
.price-card ul li { padding: .34rem 0 .34rem 1.5rem; position: relative; }
.price-card ul li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split .kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-size: .82rem; margin-bottom: .5rem; }

/* ---------- Pillar tiles ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent); }
.pillar .num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--border); line-height: 1; margin-bottom: .5rem; }
.pillar h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.pillar p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.pillar ul { margin: 0; padding: 0; list-style: none; }
.pillar ul li { font-size: .95rem; padding: .22rem 0 .22rem 1.4rem; position: relative; }
.pillar ul li::before { content: ""; position: absolute; left: 0; top: .66rem; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* ---------- Entity band ---------- */
.entities { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.entity { border-radius: var(--radius); padding: 2.4rem 2rem; color: #fff; position: relative; overflow: hidden; }
.entity.skilllab { background: var(--primary); }
.entity.hq { background: var(--accent); color: #fff; }
.entity.hq .btn { background: var(--primary); color: #fff; }
.entity .tag { font-family: var(--font-display); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .76rem; opacity: .85; }
.entity h3 { font-size: 1.8rem; margin: .4rem 0 .6rem; }
.entity p { color: inherit; font-size: .98rem; }
.entity .btn { margin-top: 1rem; }

/* ---------- Schedule ---------- */
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.sched-card { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: 1.6rem 1.6rem; box-shadow: var(--shadow-sm); }
.sched-card.red { border-left-color: var(--accent); }
.sched-card.gold { border-left-color: var(--accent); }
.sched-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.sched-card .addr { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.sched-card ul { margin: 0; padding: 0; list-style: none; }
.sched-card ul li { padding: .3rem 0; font-size: .98rem; border-bottom: 1px dashed var(--border); }
.sched-card ul li:last-child { border-bottom: 0; }
.sched-card ul li strong { color: var(--accent); }

/* ---------- Quote ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.8rem 1.7rem; box-shadow: var(--shadow-sm); }
.quote .q { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; font-weight: 600; color: var(--text); text-transform: none; }
.quote .who { margin-top: .8rem; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- Testimonials / empty state ---------- */
.testimonial-empty { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2.4rem 2rem; text-align: center; background: var(--background); max-width: 640px; margin: 0 auto; }
.testimonial-empty h3 { color: var(--text); }
.testimonial-empty p { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--primary); color: rgba(255,255,255,.88); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { padding: .22rem 0; font-size: .95rem; }
.footer .brandline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; text-transform: uppercase; }
.footer .brandline small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: #fff; transition: background .15s ease; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .86rem; color: rgba(255,255,255,.6); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; border: 2px solid var(--accent); display: grid; place-items: center; font-size: 1.2rem; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--accent) 0 33%, var(--accent) 33% 66%, var(--accent) 66% 100%); }
.page-hero .inner { max-width: var(--maxw); margin: 0 auto; padding: 5rem 24px 4.5rem; position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero p.lead { color: rgba(255,255,255,.88); max-width: 62ch; font-size: 1.12rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .inner { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: .4rem 0 0; }
.cta-band .btn-gold { background: var(--primary); color: #fff; }

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: 3.5rem 24px 5rem; }
.doc h2 { font-size: 1.7rem; margin-top: 2.4rem; margin-bottom: .6rem; color: var(--primary); }
.doc h3 { font-size: 1.25rem; margin-top: 1.8rem; color: var(--text); }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .5rem; }
.doc .meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.doc .note { background: var(--background); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1rem 1.3rem; margin: 1.2rem 0; color: var(--text); font-size: .96rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .96rem; }
.doc table th, .doc table td { border: 1px solid var(--border); padding: .7rem .9rem; text-align: left; }
.doc table th { background: var(--background); color: var(--text); font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .entities { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px); background: var(--primary); flex-direction: column; align-items: flex-start; gap: .4rem; padding: 5.5rem 1.6rem 2rem; transform: translateX(100%); transition: transform .25s ease; box-shadow: -20px 0 50px rgba(0,0,0,.35); margin-left: 0; }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero-content { padding: 5.5rem 24px 5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-carousel { grid-auto-columns: 82%; }
}
