/* Shiftwork Skills — shiftworkskills.ca
   Palette: charcoal + safety orange (brand) */

:root {
  --charcoal: #1d1f23;
  --charcoal-2: #26292f;
  --charcoal-3: #31353d;
  --ink: #232529;
  --muted: #5b6068;
  --paper: #ffffff;
  --paper-alt: #f5f3ef;
  --line: #e4e1da;
  --orange: #f26a1b;
  --orange-dark: #d3540d;
  --orange-soft: #fdeee2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 31, 35, 0.10);
  --shadow-lg: 0 22px 50px rgba(29, 31, 35, 0.16);
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
.wrap-narrow { max-width: 860px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; color: var(--charcoal); }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 700; margin: 1.4em 0 0.5em; color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 1em; }
a { color: var(--orange-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 31, 35, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand img { border-radius: 9px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-accent { color: var(--orange); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #e8e9eb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 9px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--charcoal-3); color: #fff; }
.site-nav a.nav-cta {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
}
.site-nav a.nav-cta:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 106, 27, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline {
  background: #fff;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(242, 106, 27, 0.22), transparent 60%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 70%, #2c2f36 100%);
  color: #f2f3f4;
  text-align: center;
  padding: 74px 0 66px;
  border-bottom: 3px solid var(--orange);
}
.hero-logo {
  margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-banner {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto 26px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  max-width: 880px;
  margin: 0 auto 14px;
}
.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.hero-sub {
  max-width: 760px;
  margin: 0 auto 30px;
  color: #cfd2d7;
  font-size: 1.08rem;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero-points {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 34px;
  color: #dfe1e5;
  font-size: 0.97rem;
  font-weight: 500;
}
.hero-points li::before {
  content: "▸";
  color: var(--orange);
  margin-right: 8px;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange-dark);
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 1.06rem; margin-top: 12px; }

/* ---------- Course blocks ---------- */
.course {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 40px;
  scroll-margin-top: 92px;
}
.course-media { display: flex; flex-direction: column; gap: 18px; }
.course-cover {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(29, 31, 35, 0.18);
  width: 100%;
  height: auto;
}

.video-facade {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 22px rgba(29, 31, 35, 0.18);
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.15s ease, transform 0.3s ease;
}
.video-facade:hover img, .video-facade:focus img { opacity: 1; transform: scale(1.02); }
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -58%);
  background: var(--orange);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.facade-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  pointer-events: none;
}

.course-tag {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.course-body h3 { margin-bottom: 14px; }
.course-body p { color: #34373c; }
.module-list {
  margin: 0 0 6px;
  padding-left: 22px;
  columns: 2;
  column-gap: 34px;
}
.module-list li {
  margin-bottom: 7px;
  break-inside: avoid;
  color: #34373c;
}
.fact-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
  padding: 0;
}
.fact-row li {
  background: var(--orange-soft);
  border: 1px solid #f8d7bd;
  color: #7a3c10;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.93rem;
  font-weight: 500;
}
.fact-row strong { color: var(--orange-dark); }
.fineprint { font-size: 0.93rem; color: var(--muted); }
.buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 8px 0 0;
}
.price::after {
  content: " CAD";
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.99rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 18px 52px 18px 20px;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--orange);
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-q:hover { color: var(--orange-dark); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p {
  padding: 0 20px 18px;
  color: #34373c;
  margin: 0;
}

/* ---------- About ---------- */
.about-body { font-size: 1.05rem; }
.about-logo { float: left; margin: 4px 20px 10px 0; border-radius: 16px; }
.about-ctas { justify-content: flex-start; margin-top: 26px; }
.about-ctas .btn-outline { border-color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #cfd2d7;
  border-top: 3px solid var(--orange);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 30px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; max-width: 340px; }
.footer-brand img { border-radius: 8px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 0;
}
.footer-tag { margin: 2px 0 0; font-size: 0.92rem; color: #a9adb4; }
.footer-nav, .footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-links a {
  color: #dfe1e5;
  text-decoration: none;
  font-size: 0.98rem;
}
.footer-nav a:hover, .footer-links a:hover { color: var(--orange); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  padding-bottom: 26px;
}
.footer-legal p { font-size: 0.86rem; color: #9a9ea6; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .course { grid-template-columns: 1fr; padding: 26px; }
  .course-media { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .module-list { columns: 1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    gap: 2px;
    border-bottom: 3px solid var(--orange);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0 48px; }
  .buy-row .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.25rem; }
  .hero-points { gap: 8px 20px; }
}
