/* ============================================================
   CURSURI LANDING — Avatar Studio
   Stiluri pentru landing page-ul dedicat cursurilor online.
   Prefix: cl- (cursuri landing) pentru a evita coliziuni.
   ============================================================ */

/* ── Variabile locale ──────────────────────────────────────── */
:root {
  --cl-card-radius: 8px;
}

/* ============================================================
   1. HERO
   ============================================================ */

.cl-hero {
  padding-block: clamp(60px, 10vw, 120px);
  position: relative;
}
/* Overlay semitransparent când există background image (mod cover) */
.cl-hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,.82) 0%, rgba(15,15,15,.6) 100%);
  pointer-events: none;
}

/* Mod „încadrată lateral" — imaginea nu taie brutal subiectul ca un cover full-bleed */
.cl-hero--contained { overflow: hidden; }

.cl-hero .container {
  position: relative;
  z-index: 1;
}

.cl-hero__inner {
  max-width: 760px;
}

.cl-hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.cl-hero__em {
  font-style: normal;
  color: var(--accent);
}

.cl-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 36px;
}

.cl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.cl-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.cl-hero__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cl-hero__stat svg {
  flex-shrink: 0;
}

/* ============================================================
   2. WHY (De ce aceste cursuri)
   ============================================================ */

.cl-why {
  padding-block: clamp(48px, 7vw, 96px);
}

.cl-why__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.cl-why__header-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.cl-why__header-right p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.cl-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.cl-why__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--cl-card-radius);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-why__card-icon {
  width: 40px;
  height: 40px;
  background: rgba(246, 175, 29, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cl-why__card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.cl-why__card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   3. COURSES GRID (4 carduri)
   ============================================================ */

.cl-grid {
  padding-block: clamp(48px, 7vw, 96px);
}

.cl-grid__header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.cl-grid__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.cl-grid__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

/* Card */
.cl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--cl-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cl-card:hover {
  border-color: rgba(246, 175, 29, 0.35);
  transform: translateY(-2px);
}

/* Media top */
.cl-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
}

.cl-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cl-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--border) 100%);
}

.cl-card__video-wrap {
  position: absolute;
  inset: 0;
}

.cl-card__video-wrap iframe,
.cl-card__video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.cl-card__video-wrap video {
  object-fit: cover;
  object-position: center;
  background: var(--bg-surface);
}

/* Card body */
.cl-card__body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cl-card__title {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.cl-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Bullet points */
.cl-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-card__bullets li {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.cl-card__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.cl-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================================
   4. BENEFITS (Ce primești)
   ============================================================ */

.cl-benefits {
  padding-block: clamp(48px, 7vw, 96px);
}

.cl-benefits__header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.cl-benefits__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.cl-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  text-align: center;
}

.cl-benefits__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--cl-card-radius);
}

.cl-benefits__icon {
  width: 56px;
  height: 56px;
  background: rgba(246, 175, 29, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cl-benefits__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.cl-benefits__desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   5. REVIEWS
   ============================================================ */

.cl-reviews {
  padding-block: clamp(48px, 7vw, 96px);
}

.cl-reviews__header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.cl-reviews__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.cl-reviews__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 66ch;
  margin: 0 auto 0;
}

.cl-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.cl-reviews__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ============================================================
   6. CTA FINAL
   ============================================================ */

.cl-cta {
  padding-block: clamp(60px, 9vw, 100px);
}

.cl-cta__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}

.cl-cta__inner::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(246,175,29,.2) 0%, rgba(246,175,29,0) 70%);
  pointer-events: none;
}

.cl-cta__title {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-block: 0;
}

.cl-cta__text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-block: 0;
}

.cl-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 480px) {
  .cl-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cl-cta__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .cl-why__grid,
  .cl-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cl-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cl-why__header {
    grid-template-columns: 1fr;
  }

  .cl-grid__cards {
    grid-template-columns: 1fr;
  }

  .cl-why__grid,
  .cl-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .cl-why__grid,
  .cl-benefits__grid,
  .cl-reviews__grid {
    grid-template-columns: 1fr;
  }

  .cl-hero__stats {
    gap: 14px 20px;
  }
}
