/* ============================================================================
   Treinamento Elpis Adições — estilos
   Cores em variáveis (oklch reais, amostrados do site oficial) para ajuste fino.
   ============================================================================ */

:root {
  /* Paleta oficial (oklch amostrado do bundle do site) */
  --cream:        oklch(97% .01 90);      /* fundo base creme quente   */
  --cream-alt:    oklch(95% .012 88);     /* fundo de seções alternadas */
  --charcoal:     #34322d;                /* texto principal            */
  --gray-warm:    oklch(55.1% .027 264.364); /* texto secundário        */
  --sage:         oklch(62% .05 143);     /* verde de marca (botões)    */
  --sage-dark:    oklch(45% .05 143);     /* verde escuro / hover       */
  --sage-light:   oklch(72% .05 143);     /* verde claro (itálicos)     */
  --border:       oklch(88% .012 90);     /* bordas sutis               */
  --white:        #fff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Lato", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1080px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ------------------------------ Cabeçalho ------------------------------ */
.site-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: flex-start;
}
.logo { width: auto; height: 56px; }

/* ------------------------------ Layout --------------------------------- */
.section { padding: clamp(2.75rem, 6vw, 5rem) 1.5rem; }
.section-alt { background: var(--cream-alt); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.wrap.narrow { max-width: var(--maxw-narrow); }

/* ------------------------------ Tipografia ----------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
h1.display { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem); }
h2.display { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); }
.display em { font-style: italic; color: var(--sage-dark); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--gray-warm);
  max-width: 40ch;
  margin: 0 0 2rem;
}

.section p { margin: 0 0 1.25rem; }
.section p:last-of-type { margin-bottom: 0; }

.emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--sage-dark);
  line-height: 1.4;
}

.overline {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--sage);
  margin: 0 0 1rem;
}

/* ------------------------------ Lista ---------------------------------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.1rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sage-light);
  box-shadow: 0 0 0 4px oklch(72% .05 143 / 0.18);
}

/* ------------------------------ Botões --------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-soft {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage);
}
.btn-soft:hover { background: var(--sage); color: var(--white); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border: 1.5px solid var(--sage);
  box-shadow: 0 6px 18px oklch(45% .05 143 / 0.18);
}
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); }

.btn-lg { font-size: 1.15rem; padding: 1.1rem 2.4rem; }

.cta-final { text-align: center; padding-bottom: clamp(4rem, 10vw, 7rem); }

/* ------------------------------ Vídeo ---------------------------------- */
.video-figure { margin: 2.5rem 0; }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sage-dark) linear-gradient(160deg, var(--sage-dark), #2b3a2a);
}
.video-embed img,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
}
.video-sound {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: oklch(20% .01 90 / 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .2s ease;
}
.video-sound:hover { transform: scale(1.06); background: oklch(20% .01 90 / 0.7); }
.video-sound-icon { font-size: 1.1rem; line-height: 1; }
.video-figure figcaption {
  margin-top: 1rem;
  color: var(--gray-warm);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ------------------------------ Rodapé --------------------------------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 6rem;
  border-top: 1px solid var(--border);
  color: var(--gray-warm);
  font-size: 0.9rem;
}
.logo-footer { height: 48px; width: auto; margin: 0 auto 0.75rem; opacity: 0.9; }

/* ------------------- WhatsApp sticky (mobile) -------------------------- */
.wa-sticky {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px oklch(45% .05 143 / 0.35);
}
.wa-sticky:active { transform: translateY(1px); }

@media (max-width: 768px) {
  .wa-sticky { display: inline-flex; }
  /* espaço para o botão fixo não cobrir o CTA final */
  .cta-final { padding-bottom: 8rem; }
}

/* ------------------------------ Foco ----------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
