/* ============================================================
   ȘCOALĂ LANDING — Avatar Studio
   Stiluri pentru landing page-ul Școlii de fotografie Avatar.
   Prefix: sl- (scoala landing) pentru a evita coliziuni.
   ============================================================ */

/* ── Utilitare locale ─────────────────────────────────────── */
:root {
  --sl-radius: 10px;
  --sl-grid-gap: clamp(20px, 3vw, 32px);
}

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

.sl-hero {
  padding-block: clamp(72px, 12vw, 140px);
  position: relative;
  background-color: var(--bg);
}

.sl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,.85) 0%, rgba(15,15,15,.6) 100%);
  pointer-events: none;
}

/* Fade la bază — evită muchia dreaptă între imaginea hero și secțiunea următoare */
.sl-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(90px, 14vw, 160px);
  background: linear-gradient(to bottom, rgba(15,15,15,0) 0%, var(--bg) 100%);
  pointer-events: none;
}

.sl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.sl-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sl-hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: var(--text);
}

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

.sl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

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

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

/* ============================================================
   2. ABOUT
   ============================================================ */

.sl-about__inner {
  display: grid;
  gap: var(--sl-grid-gap);
  align-items: center;
}

/* Coloană de imagine proporțională, nu fixă — se adaptează la ecran (evită
   coloana de text prea strânsă pe laptop/tabletă între 768px și lățimea maximă).
   Lățime mărită (36% → 45%) pentru o imagine mai prezentă, editorială. */
.sl-about__inner--with-img {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 45%);
}

/* Varianta fără imagine: bloc editorial centrat */
.sl-about--centered .sl-about__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.sl-about__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.25;
}

/* Linie-accent decorativă sub titlu */
.sl-about__rule {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 26px;
}

.sl-about--centered .sl-about__rule {
  margin-inline: auto;
}

.sl-about__para {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sl-about__para:last-child { margin-bottom: 0; }

/* Primul paragraf — lead mai mare, mai luminos */
.sl-about__para--lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--text);
}

.sl-about__img {
  width: 100%;
  border-radius: var(--sl-radius);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Îmbinare imagine → text (gradient) */
.sl-about__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--sl-radius);
  box-shadow: var(--shadow-lg);
}

.sl-about__media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Textul e în stânga imaginii — opac spre marginea stângă (lângă text), transparent spre dreapta */
  background: linear-gradient(to right, rgba(20,20,20,1) 0%, rgba(20,20,20,.6) 32%, rgba(20,20,20,0) 62%);
  pointer-events: none;
}

/* Mozaic — imagine principală + 1-2 imagini mici stivuite alături */
.sl-about__media--collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
  gap: 10px;
}

.sl-about__media--collage .sl-about__img--main {
  height: 100%;
  aspect-ratio: auto;
}

.sl-about__img-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.sl-about__img-stack .sl-about__img--secondary {
  flex: 1 1 0;
  min-height: 0;
  aspect-ratio: auto;
}

@media (max-width: 768px) {
  .sl-about__inner--with-img {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sl-about__media--collage {
    grid-template-columns: 1fr;
  }
  .sl-about__media--collage .sl-about__img--main {
    aspect-ratio: 4/3;
    height: auto;
  }
  .sl-about__img-stack {
    flex-direction: row;
    height: 160px;
  }
}

/* ============================================================
   3. AUDIENCE
   ============================================================ */

.sl-audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sl-grid-gap);
}

.sl-audience__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--sl-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sl-audience__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(246,175,29,.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.sl-audience__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.sl-audience__card-desc {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   4. WHY
   ============================================================ */

.sl-why {
  position: relative;
  overflow: hidden;
}

.sl-why__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,15,.85) 0%, rgba(15,15,15,.6) 100%);
  pointer-events: none;
}

.sl-why .container {
  position: relative;
  z-index: 1;
}

.sl-why__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sl-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sl-grid-gap);
}

.sl-why__feat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.sl-why__feat-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.sl-why__feat-desc {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   5. CURRICULUM
   ============================================================ */

.sl-curriculum__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sl-curriculum__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sl-grid-gap);
}

.sl-curriculum__item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.sl-curriculum__icon {
  width: 48px;
  height: 48px;
  background: rgba(246,175,29,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sl-curriculum__item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.sl-curriculum__item-desc {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   6. OBJECTIONS / FAQ
   ============================================================ */

.sl-objections__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.sl-objections__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sl-objections__item {
  border: 1px solid var(--border);
  border-radius: var(--sl-radius);
  overflow: hidden;
  background: var(--bg-card);
}

.sl-objections__item + .sl-objections__item { margin-top: 8px; }

.sl-objections__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  user-select: none;
}

.sl-objections__question::-webkit-details-marker { display: none; }

.sl-objections__chevron {
  flex-shrink: 0;
  transition: transform .22s ease;
  color: var(--accent);
}

.sl-objections__item[open] .sl-objections__chevron {
  transform: rotate(180deg);
}

.sl-objections__answer {
  padding: 0 22px 18px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ============================================================
   7. ATMOSPHERE
   ============================================================ */

.sl-atmosphere__inner {
  display: grid;
  gap: var(--sl-grid-gap);
  align-items: center;
}

/* Coloană de imagine proporțională, nu fixă — se adaptează la ecran.
   Lățime mărită (36% → 45%) pentru o imagine mai prezentă, editorială. */
.sl-atmosphere__inner--with-img {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 45%);
}

/* Fără imagine: text constrâns, centrat — valorile devin accentul vizual */
.sl-atmosphere__inner:not(.sl-atmosphere__inner--with-img) {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.sl-atmosphere__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.25;
}

.sl-atmosphere__para {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sl-atmosphere__para:last-of-type { margin-bottom: 0; }

/* Valori — carduri-icon proeminente */
.sl-atmosphere__values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: clamp(36px, 5vw, 52px) 0 0;
}

@media (max-width: 720px) {
  .sl-atmosphere__values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .sl-atmosphere__values { grid-template-columns: 1fr; }
}

.sl-atmosphere__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--sl-radius);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s, transform .2s;
}

.sl-atmosphere__value:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.sl-atmosphere__value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(246,175,29,.12);
  flex-shrink: 0;
}

.sl-atmosphere__img {
  width: 100%;
  border-radius: var(--sl-radius);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Îmbinare imagine → text (gradient) */
.sl-atmosphere__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--sl-radius);
  box-shadow: var(--shadow-lg);
}

.sl-atmosphere__media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Textul e în stânga imaginii — opac spre marginea stângă (lângă text), transparent spre dreapta */
  background: linear-gradient(to right, rgba(15,15,15,1) 0%, rgba(15,15,15,.6) 32%, rgba(15,15,15,0) 62%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .sl-atmosphere__inner--with-img {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   8. RESULTS
   ============================================================ */

.sl-results__inner {
  display: grid;
  gap: var(--sl-grid-gap);
  align-items: center;
}

/* Text primul în DOM, coloană capată proporțional (nu fixă) — imaginea (a doua)
   ocupă spațiul rămas; se adaptează la ecran în loc să forțeze imaginea într-un
   spațiu prea îngust pe tabletă */
.sl-results__inner--with-img {
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
}

/* Varianta statement — bloc centrat cu badge-icon */
.sl-results--statement .sl-results__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.sl-results__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(246,175,29,.12);
  border: 1px solid rgba(246,175,29,.25);
  margin-bottom: 24px;
}

.sl-results__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.25;
}

.sl-results__para {
  line-height: 1.85;
  color: var(--text-muted);
}

.sl-results--statement .sl-results__para {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.sl-results__img {
  width: 100%;
  border-radius: var(--sl-radius);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Wrapper-ul imaginii — radius + umbră, pentru integrare vizuală cu textul */
.sl-results__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--sl-radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .sl-results__inner--with-img {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   9. GALLERY TEASER
   ============================================================ */

.sl-gallery-teaser__header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sl-gallery-teaser__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sl-gallery-teaser__subtitle {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 68ch;
  margin-inline: auto;
}

.sl-gallery-teaser__grid {
  display: grid;
  /* auto-fit — un rând incomplet rămâne centrat/umplut, nu tras spre stânga */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
  gap: 12px;
}

.sl-gallery-teaser__cell {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}

.sl-gallery-teaser__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.sl-gallery-teaser__cell:hover .sl-gallery-teaser__img {
  transform: scale(1.06);
}

/* ============================================================
   10. REVIEWS
   ============================================================ */

.sl-reviews__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.sl-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sl-grid-gap);
}

.sl-reviews__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--sl-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.sl-reviews__stars {
  display: flex;
  gap: 3px;
}

.sl-reviews__text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.sl-reviews__author {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   11. CTA
   ============================================================ */

.sl-cta__inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  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);
}

.sl-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;
}

.sl-cta__title {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.sl-cta__text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

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

/* ============================================================
   12. FORM
   ============================================================ */

.sl-form__inner {
  max-width: 640px;
  margin-inline: auto;
}

.sl-form__header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sl-form__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.sl-form__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.sl-form__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sl-form__row {
  display: grid;
  gap: 18px;
}

.sl-form__row--half {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
  .sl-form__row--half { grid-template-columns: 1fr; }
}

.sl-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sl-form__field label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sl-form__field label span { color: var(--accent); }

.sl-form__field input,
.sl-form__field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .18s;
  outline: none;
}

.sl-form__field input:focus,
.sl-form__field textarea:focus {
  border-color: var(--accent);
}

.sl-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.sl-form__btn { width: 100%; justify-content: center; }

.sl-form__success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(246,175,29,.08);
  border: 1px solid rgba(246,175,29,.3);
  border-radius: var(--sl-radius);
  padding: 18px 22px;
  font-weight: 500;
  color: var(--text);
}

.sl-form__errors {
  background: rgba(220,50,50,.1);
  border: 1px solid rgba(220,50,50,.3);
  border-radius: var(--sl-radius);
  padding: 14px 18px;
  color: #f99;
  font-size: .9rem;
}

.sl-form__errors p { margin: 0 0 4px; }
.sl-form__errors p:last-child { margin-bottom: 0; }
