/* ============================================================
   Code With Mosh WordPress Theme — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f1117;
  --bg2:     #181c25;
  --bg3:     #1e2330;
  --accent:  #f97316;
  --accent2: #fb923c;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --border:  #2a2f3e;
  --card:    #1a1f2e;
  --gold:    #fbbf24;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Containers ─────────────────────────────────────── */
.cwm-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Sections ───────────────────────────────────────── */
.cwm-section { padding: 5rem 0; }
.cwm-section--alt { background: var(--bg2); }

.cwm-section__header { margin-bottom: 3.5rem; }
.cwm-section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cwm-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ── Buttons ────────────────────────────────────────── */
.cwm-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.cwm-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cwm-btn--primary:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-1px); }
.cwm-btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.cwm-btn--secondary:hover { border-color: var(--muted); transform: translateY(-1px); }
.cwm-btn--lg { font-size: 1rem; padding: 0.9rem 2.4rem; }

/* ── Link Button ────────────────────────────────────── */
.cwm-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s;
}
.cwm-link-btn:hover { gap: 0.8rem; }

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
.cwm-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.cwm-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.cwm-logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}
.cwm-logo span { color: var(--accent); }

/* Primary menu from WP */
.cwm-nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.cwm-nav__links li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.cwm-nav__links li a:hover { color: var(--text); }
.cwm-nav__cta,
.cwm-nav__links .cwm-nav__cta,
.cwm-nav__links li:last-child a {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.cwm-nav__cta:hover,
.cwm-nav__links li:last-child a:hover { background: var(--accent2) !important; }

/* Mobile toggle */
.cwm-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.cwm-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.cwm-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cwm-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cwm-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.cwm-hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.cwm-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.cwm-hero__content { max-width: 780px; position: relative; }

.cwm-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.3rem;
}
.cwm-hero__accent { color: var(--accent); }

.cwm-hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.4rem;
  line-height: 1.75;
}
.cwm-hero__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* ── Stats ──────────────────────────────────────────── */
.cwm-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cwm-stat { text-align: center; }
.cwm-stat__num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.cwm-stat__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════
   RATING BAR
═══════════════════════════════════════════════════════ */
.cwm-rating-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.cwm-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 1px; }
.cwm-rating-text { font-size: 0.88rem; color: var(--muted); }
.cwm-rating-text strong { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   COURSES GRID
═══════════════════════════════════════════════════════ */
.cwm-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.cwm-course-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.cwm-course-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.cwm-course-card__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cwm-course-card__thumb--placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border-bottom: 1px solid var(--border);
}
.cwm-course-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.cwm-course-card__badge {
  display: inline-block;
  background: rgba(249,115,22,0.15);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}
.cwm-course-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.cwm-course-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.cwm-course-card__meta { font-size: 0.8rem; color: var(--muted); }

.cwm-courses-footer { text-align: center; }
.cwm-courses-footer p { margin-top: 0.75rem; font-size: 0.82rem; color: var(--muted); }
.cwm-courses-footer p a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.cwm-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cwm-testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
}
.cwm-testimonial__stars { color: var(--gold); font-size: 1rem; margin-bottom: 0.9rem; }
.cwm-testimonial__quote {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.2rem;
  font-style: italic;
  border: none;
}
.cwm-testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.cwm-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.cwm-testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cwm-testimonial__avatar--default {
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.cwm-testimonial__name { font-weight: 600; font-size: 0.88rem; }

/* ═══════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════ */
.cwm-features { display: flex; flex-direction: column; gap: 5rem; }
.cwm-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cwm-feature--reverse { direction: rtl; }
.cwm-feature--reverse > * { direction: ltr; }

.cwm-feature__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.cwm-feature__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.cwm-feature__body { color: var(--muted); line-height: 1.75; font-size: 0.93rem; }
.cwm-feature__visual {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.cwm-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cwm-about__text .cwm-section__title { margin-bottom: 1rem; margin-top: 0.4rem; }
.cwm-about__text p { color: var(--muted); line-height: 1.8; font-size: 0.93rem; }
.cwm-about__video {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cwm-about__video video { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

.cwm-play-btn {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.cwm-play-btn:hover { transform: scale(1.1); background: var(--accent2); }
.cwm-play-icon {
  width: 0; height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════ */
.cwm-cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cwm-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(249,115,22,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.cwm-cta__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
}
.cwm-cta__text {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.4rem;
  font-size: 0.98rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.cwm-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}
.cwm-footer__inner { max-width: 1200px; margin: 0 auto; }
.cwm-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cwm-social { display: flex; gap: 0.75rem; }
.cwm-social__link {
  width: 36px; height: 36px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-style: normal;
  transition: border-color 0.2s, background 0.2s;
  color: var(--muted);
}
.cwm-social__link:hover { border-color: var(--accent); background: rgba(249,115,22,0.1); color: var(--text); }

.cwm-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.cwm-footer__copy { font-size: 0.82rem; color: var(--muted); }
.cwm-footer__links { display: flex; gap: 1.5rem; }
.cwm-footer__links a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.cwm-footer__links a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   PROSE (single.php content)
═══════════════════════════════════════════════════════ */
.cwm-prose { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }
.cwm-prose h1,.cwm-prose h2,.cwm-prose h3 { color: var(--text); font-weight: 700; margin: 1.5em 0 0.5em; }
.cwm-prose p { margin-bottom: 1.2em; }
.cwm-prose a { color: var(--accent); }
.cwm-prose ul,.cwm-prose ol { padding-left: 1.5rem; margin-bottom: 1.2em; }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a,.nav-links span {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { border-color: var(--accent); color: var(--text); }
.nav-links .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cwm-feature, .cwm-about { grid-template-columns: 1fr; gap: 2.5rem; }
  .cwm-feature--reverse { direction: ltr; }
}
@media (max-width: 768px) {
  .cwm-nav__toggle { display: flex; }
  .cwm-nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }
  .cwm-nav__links.is-open { display: flex; }
  .cwm-nav__links li:last-child a { display: inline-block; }
  .cwm-stats { gap: 1.25rem; }
  .cwm-footer__top { flex-direction: column; align-items: flex-start; }
  .cwm-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cwm-hero__btns { flex-direction: column; align-items: center; }
  .cwm-btn { width: 100%; text-align: center; }
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
