/* ==========================================================
   VIVA COM ESPERANÇA — LANDING PAGE
   Paleta: verde institucional grounded + dourado (esperança/amanhecer)
   Tipografia: Fraunces (display) + Inter (corpo) + Space Mono (rótulos)
   ========================================================== */

.lp {
  --paper: #FAF7F0;
  --paper-deep: #F1EBDD;
  --ink: #16261E;
  --ink-soft: #4A5B50;
  --ink-faint: #7C8A80;
  --emerald: #146C43;
  --emerald-bright: #2E9A63;
  --emerald-deep: #0E4F32;
  --gold: #3ec822;
  --gold-soft: #F3E4C2;
  --line: rgba(22, 38, 30, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;

  font-family: 'Inter', sans-serif;
  overflow-x: clip;
  overflow-y: visible;
}

.lp * { box-sizing: border-box; }

.lp em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--emerald);
}

/* ---------- Reveal on scroll ---------- */
.lp [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lp [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lp [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lp * { animation: none !important; transition: none !important; }
}

/* ==========================================================
   HERO
   ========================================================== */
.lp-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.lp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero__fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(217,164,65,0.25), transparent 55%),
    linear-gradient(160deg, var(--emerald-deep), var(--emerald) 60%, #0B3B26);
}

.lp-carousel {
  position: absolute;
  inset: 0;
}

.lp-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.lp-carousel__slide.is-active { opacity: 1; }

.lp-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: lpKenBurns 14s ease-in-out infinite alternate;
}
@keyframes lpKenBurns {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}

.lp-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,25,18,0.86) 0%, rgba(11,25,18,0.45) 42%, rgba(11,25,18,0.15) 68%, rgba(11,25,18,0.35) 100%);
}

.lp-carousel__dots {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.lp-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}
.lp-carousel__dot.is-active {
  background: var(--gold);
  width: 22px;
  border-radius: 5px;
}

.lp-hero__arc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  width: 100%;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
.lp-hero__arc path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: lpDrawArc 2.4s 0.3s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes lpDrawArc {
  to { stroke-dashoffset: 0; }
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 6vw 7vw;
  max-width: 780px;
}

.lp-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  opacity: 0;
  animation: lpFadeUp 0.8s 0.5s ease forwards;
}
.lp-eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex-shrink: 0;
}
.lp-eyebrow__word {
  color: #fff;
  font-weight: 700;
  transition: opacity 0.4s ease;
}

.lp-hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  opacity: 0;
  animation: lpFadeUp 0.9s 0.65s ease forwards;
}
.lp-hero__title em { color: var(--gold); font-weight: 600; }

.lp-hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  max-width: 560px;
  margin: 0 0 32px;
  opacity: 0;
  animation: lpFadeUp 0.9s 0.8s ease forwards;
}

.lp-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: lpFadeUp 0.9s 0.95s ease forwards;
}

@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
  border: 1.5px solid transparent;
}
.lp-btn:active { transform: scale(0.97); }

.lp-btn--solid {
  background: var(--gold);
  color: var(--emerald-deep);
}
.lp-btn--solid:hover { filter: brightness(1.08); color: var(--emerald-deep); }

.lp-btn--ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.lp-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.lp-btn--paper {
  background: var(--paper);
  color: var(--emerald-deep);
}
.lp-btn--paper:hover { filter: brightness(0.97); color: var(--emerald-deep); }

/* ==========================================================
   STATS STRIP — floats over hero/mission boundary
   ========================================================== */
.lp-stats {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: -64px auto 0;
  padding: 0 clamp(20px, 6vw, 60px);
}
.lp-stats__grid {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(20, 108, 67, 0.16);
  padding: 30px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-stat {
  text-align: center;
  border-right: 1px solid var(--line);
}
.lp-stat:last-child { border-right: none; }

.lp-stat__value {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--emerald);
  line-height: 1;
}
.lp-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ==========================================================
   MISSION / PULL QUOTE
   ========================================================== */
.lp-mission {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px clamp(20px, 6vw, 60px) 80px;
  text-align: center;
}
.lp-mission__eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 20px;
}
.lp-mission__quote {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================
   COURSES
   ========================================================== */
.lp-courses {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(20px, 6vw, 60px) 100px;
}
.lp-courses__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.lp-eyebrow-static {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 10px;
}
.lp-section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0;
}
.lp-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--emerald);
  text-decoration: none;
  white-space: nowrap;
}
.lp-link:hover { color: var(--emerald-deep); text-decoration: underline; }

.lp-courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  justify-content: center;
  gap: 22px;
}

.lp-course-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: #eefcf4;

    background:
        linear-gradient(180deg, #0f1d16 0%, #09120d 100%);

    border: 1px solid rgba(62, 200, 34, .15);
    border-radius: var(--radius-md);
    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255,255,255,.04);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

/* brilho superior */
.lp-course-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top right,
            rgba(62,200,34,.14),
            transparent 55%);
    pointer-events:none;
}

.lp-course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(62,200,34,.45);
    box-shadow:
        0 22px 50px rgba(0,0,0,.60),
        0 0 24px rgba(62,200,34,.16),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.lp-course-card__media {
  aspect-ratio: 4/3;
  background: var(--paper-deep);
  overflow: hidden;
}
.lp-course-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.lp-course-card:hover .lp-course-card__media img { transform: scale(1.05); }

.lp-course-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--paper-deep), var(--gold-soft));
}

.lp-course-card__body { padding: 18px 18px 20px; }

.lp-course-card__tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(20,108,67,0.08);
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.lp-course-card__body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.lp-course-card__meta {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
}

/* ==========================================================
   VALUE PROPS — editorial list, not icon-cards
   ========================================================== */
.lp-values {
  background: var(--paper-deep);
  max-width: 980px;
  margin: 0 auto;
  padding: 90px clamp(20px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.lp-value {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  align-items: start;
}
.lp-value--reverse { justify-self: end; }

.lp-value__icon {
  width: 44px;
  height: 44px;
  stroke: var(--emerald);
  flex-shrink: 0;
}

.lp-value h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 21px;
  margin: 4px 0 8px;
  color: var(--ink);
}
.lp-value p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

/* ==========================================================
   FINAL CTA
   ========================================================== */
.lp-cta {
  background: linear-gradient(150deg, var(--emerald-deep), var(--emerald) 75%);
  color: #fff;
  text-align: center;
  padding: 100px clamp(20px, 6vw, 60px);
}
.lp-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.lp-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 14px;
}
.lp-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin: 0 0 32px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .lp-stats__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lp-stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }
  .lp-stat:last-child { border-bottom: none; padding-bottom: 0; }

  .lp-value, .lp-value--reverse {
    grid-template-columns: 48px 1fr;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .lp-hero { min-height: 92vh; }
  .lp-hero__content { padding: 0 5vw 12vw; }
  .lp-stats { margin-top: -40px; }
  .lp-mission { padding: 80px 5vw 56px; }
  .lp-courses { padding: 20px 5vw 70px; }
  .lp-values { padding: 60px 5vw; gap: 42px; }
  .lp-cta { padding: 70px clamp(20px, 5vw, 60px); }
}