/* =========================================================================
   Train with Slay — styles
   Brand system extracted from the live slayschool.com Webflow site.
   ========================================================================= */

/* ---------- Fonts (PolySans, bundled locally) ---------- */
@font-face {
  font-family: "PolySans";
  src: url("assets/fonts/PolySans-Slim.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("assets/fonts/PolySans-Median.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans";
  src: url("assets/fonts/PolySans-Bulky.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PolySans Wide";
  src: url("assets/fonts/PolySans-BulkyWide.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1a1b1f;
  --black: #000;
  --blue: #0050bd;
  --blue-bright: #004ee8;
  --blue-dark: #0046a8;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-cool: #e4ebf3;
  --line: #e2e5e9;
  --muted: #43464d;
  --muted-2: #758696;
  --orange: #e64d19;
  --white: #fff;

  --font: "PolySans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-wide: "PolySans Wide", "PolySans", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 16px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 5rem;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-bright) 100%);
  box-shadow: 0 6px 18px rgba(0, 78, 232, 0.22);
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 78, 232, 0.3);
}

.button-sm { padding: 0.62rem 1.25rem; font-size: 0.72rem; }

.button-link {
  background: none;
  color: var(--ink);
  padding: 0.62rem 0.25rem;
  box-shadow: none;
}
.button-link:hover { color: var(--blue-bright); transform: translateX(2px); }

.button-soon {
  background: var(--bg-cool);
  color: var(--muted-2);
  padding: 0.62rem 1.25rem;
  font-size: 0.72rem;
  cursor: default;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.brand-logo { height: 24px; width: auto; }
.brand-sub {
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}
.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.94rem;
}
.nav a { color: var(--ink); transition: color 0.15s ease; }
.nav a:hover { color: var(--blue-bright); }
.header-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(0, 80, 189, 0.08), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
}
.hero-title .accent { color: var(--blue-bright); white-space: nowrap; }
.hero-sub {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 1.12rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.cred-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.cred-strip li { display: flex; align-items: center; }
.cred-strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 10px;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; scroll-margin-top: 80px; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-title {
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- Course grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 24px;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 80, 189, 0.4);
  box-shadow: 0 18px 40px rgba(26, 27, 31, 0.08);
}
.course-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-cool);
  padding: 5px 11px;
  border-radius: 5rem;
}
.badge {
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 5rem;
}
.course-title {
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.course-desc { color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-2);
}
.course-meta .rating { color: var(--orange); }
.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.course-instr { font-size: 0.82rem; font-weight: 600; color: var(--muted-2); }

/* ---------- Featured single course ---------- */
.course-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(26, 27, 31, 0.07);
}
.course-feature-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: linear-gradient(140deg, #0a4fb0 0%, #004ee8 100%);
  overflow: hidden;
  text-decoration: none;
}
.course-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-watermark {
  position: relative;
  max-width: 80%;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-bright);
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.course-feature-media:hover .media-play { transform: translate(-50%, -50%) scale(1.06); }
.course-feature-body {
  display: flex;
  flex-direction: column;
  padding: 34px;
}
.course-feature-body .course-foot { margin-top: auto; }

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 22px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  border-top: 3px solid var(--blue);
}
.audience-card h3 {
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.audience-card p { color: var(--muted); font-size: 0.95rem; }

.audience-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 34px 40px;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--white);
}
.audience-cta h3 { font-family: var(--font-wide); font-weight: 800; font-size: 1.4rem; }
.audience-cta p { color: rgba(255, 255, 255, 0.72); margin-top: 6px; }

/* ---------- Instructors ---------- */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.instructor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-wide);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-bright) 100%);
  margin-bottom: 18px;
  object-fit: cover;
}
.instructor-card h3 { font-weight: 700; font-size: 1.2rem; }
.instructor-title {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 4px;
}
.instructor-bio { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }
.instructor-stats {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted-2);
}
.instructor-stats b { color: var(--ink); font-weight: 700; }
.instructor-card .button-link { margin-top: 16px; }

.instructor-card.is-placeholder {
  border-style: dashed;
  border-color: #c7d0db;
  background: var(--bg-soft);
}
.avatar-empty {
  background: var(--bg-cool);
  color: var(--blue);
  font-size: 2rem;
}
.is-placeholder h3 { color: var(--muted); }
.is-placeholder .instructor-title { color: var(--muted-2); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 56px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 12px; font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 600; font-size: 0.94rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.78); transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .audience-cta { padding: 28px 26px; }
  .course-feature { grid-template-columns: 1fr; }
  .course-feature-media { min-height: 200px; }
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .header-cta { padding: 0.6rem 1.15rem; font-size: 0.72rem; }
  .container { padding: 0 18px; }
  .audience-cta { flex-direction: column; align-items: flex-start; }
}
