/* ==========================================================================
   Lone Rock Leadership — Course Resource Hub
   Brand values below are copied from a live extraction of lonerock.io
   (see research_notes/.../lonerock_io_live_brand_extraction.md) and the
   locked official OS palette in Case Studies/DESIGN.md — never guessed.
   ========================================================================== */

@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/founders-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/founders-grotesk-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/founders-grotesk-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk Condensed";
  src: url("../fonts/founders-grotesk-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core brand (lonerock.io, live-verified) */
  --color-ink: #111314;
  --color-navy: #0a0f3f;         /* Lone Rock's constant navy */
  --color-primary: #1a46df;      /* lonerock.io CTA / link blue */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-border: #e4e6eb;
  --color-slate: #6b7280;

  /* Official per-course OS palette (locked, Case Studies/DESIGN.md — sampled
     from each course's own logo file, not eyeballed) */
  --color-leader: #173fe8;   /* LeaderOS / Lead In 30 */
  --color-change: #ff9f12;   /* ChangeOS / Adapt In 30 */
  --color-power:  #00a757;   /* PowerOS  / Power In 30 */
  --color-decide: #e21b1b;   /* DecideOS / Decide In 30 */

  --font-body: "Founders Grotesk", Arial, sans-serif;
  --font-heading: "Founders Grotesk Condensed", Impact, sans-serif;

  --radius-card: 16px;
  --radius-pill: 50px;
  --shadow-card: 0 12px 30px rgba(10, 15, 63, 0.08);
  --container-w: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.site-nav__logo img {
  height: 28px;
  width: auto;
}

.site-nav__back {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav__back:hover { text-decoration: underline; }

/* ---------- Page header ---------- */
.page-header {
  text-align: center;
  padding: 8px 24px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.page-header__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.page-header__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-slate);
  margin: 0 0 12px;
}

.page-header__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--color-ink);
}

.page-header__title .accent { color: var(--course-color, var(--color-primary)); }

.page-header__tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0 0 12px;
}

.page-header__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-slate);
  margin: 0;
}

/* ---------- Course picker grid ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 8px 24px 80px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.course-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(10, 15, 63, 0.12);
}

/* Desktop: copy on the left, logo to the right, within the existing card
   box (no size change to the card itself). Mobile reverts to the original
   stacked look — see the max-width:768px override below. */
.course-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.course-card__copy {
  flex: 1;
  min-width: 0;
}

.course-card__top .course-card__title,
.course-card__top .course-card__tagline {
  margin-bottom: 0;
}

.course-card__top .course-card__title {
  margin-bottom: 6px;
}

.course-card__logo {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.course-card__course-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--course-color);
  margin: 0 0 6px;
}

.course-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--course-color);
}

.course-card__tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--color-ink);
}

.course-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-slate);
  margin: 0 0 24px;
}

.course-card__desc strong { color: var(--color-ink); }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--btn-color, var(--color-primary));
  color: var(--btn-color, var(--color-primary));
  background: transparent;
  cursor: pointer;
}

.pill-btn:hover {
  background: var(--btn-color, var(--color-primary));
  color: #fff;
}

.pill-btn--solid {
  background: var(--btn-color, var(--color-primary));
  color: #fff;
}
.pill-btn--solid:hover {
  opacity: 0.9;
  background: var(--btn-color, var(--color-primary));
  color: #fff;
}

.pill-btn--disabled {
  border-color: var(--color-border);
  color: var(--color-slate);
  cursor: default;
  pointer-events: none;
}
.pill-btn--disabled:hover { background: transparent; color: var(--color-slate); }

/* ---------- Asset gallery grid (per-course page) ---------- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  padding: 8px 24px 96px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.asset-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.asset-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--course-color-tint, var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.asset-card__thumb--photo {
  aspect-ratio: 2550 / 3301;
  padding: 18px;
  background: var(--color-bg-alt);
}

.asset-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 16:9 slide covers (make-the-case decks): keep the same frame height as the
   portrait covers so card rows stay even, with the slide centered in it. */
.asset-card__thumb--wide .asset-card__thumb-img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* A real cover-image thumbnail can sit close in color to the white body
   below it — a border + shadow makes it read as its own framed block
   instead of bleeding into the card body. */
.asset-card__thumb--photo .asset-card__thumb-img {
  border-radius: 8px;
  border: 1px solid rgba(10, 15, 63, 0.08);
  box-shadow: 0 10px 22px rgba(10, 15, 63, 0.22);
}

.asset-card__thumb .fmt-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--course-color, var(--color-ink));
  border-radius: 6px;
  padding: 4px 8px;
}

.asset-card__thumb .doc-icon {
  width: 56px;
  height: 56px;
  color: var(--course-color, var(--color-primary));
  opacity: 0.55;
}

.asset-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.asset-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  margin: 0;
}

.asset-card__meta {
  font-size: 13px;
  color: var(--color-slate);
  margin: 0 0 14px;
}

.asset-card__action { margin-top: auto; }

.asset-card__action .pill-btn { width: 100%; justify-content: center; }

.badge-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-slate);
  background: var(--color-bg-alt);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--color-slate);
  font-size: 13px;
}

.site-footer a { color: var(--color-primary); }

.site-footer__legal {
  max-width: 760px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.5;
}

/* Trademark symbol: small, raised, does not affect line height or wrapping */
sup.tm {
  font-size: 0.5em;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.05em;
  font-weight: 500;
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
  .course-grid { max-width: 700px; }
}

/* ---------- Responsive: mobile (matches lonerock.io's verified collapse) ---------- */
@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }
  .page-header { padding: 8px 20px 32px; }
  .page-header__title { font-size: 32px; }
  .page-header__subtitle { font-size: 17px; }

  .course-grid,
  .asset-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 20px 64px;
  }

  .course-card { padding: 24px; }
  .course-card__title { font-size: 22px; }

  /* Revert to the original stacked layout: logo above the copy */
  .course-card__top { flex-direction: column; }
  .course-card__logo { order: -1; margin-bottom: 16px; }
}
