/* ==========================================================================
   LP Jovem Aprendiz — SEST SENAT MG
   Referência: _layout/desktop.png (1440) e _layout/mobile.png (440), escala 1:1
   ========================================================================== */

:root {
  --azul-escuro: #001D88;
  --azul-claro: #009EE2;
  --laranja: #FF6700;
  --laranja-forte: #EC5523;
  --amarelo: #FDB520;
  --menta: #C2EED7;
  --turquesa: #4FF1D7;
  --verde-bg: #DCFCF7;
  --verde-claro: #EFFFFC;
  --preto: #000000;
  --branco: #FFFFFF;
  --font-base: 'Roboto', sans-serif;
  --font-dm: 'DM Sans', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--preto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Botão padrão (amarelo, borda preta) ---------- */
.btn {
  display: inline-block;
  background: var(--amarelo);
  color: var(--preto);
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  letter-spacing: .02em;
  border: 3px solid var(--preto);
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.85); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* ---------- Título de seção ---------- */
.section-title {
  color: var(--azul-escuro);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.2;
}

/* ==========================================================================
   HERO
   ========================================================================== */
@keyframes flutuar {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}
@keyframes flutuar-girar {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-12px) rotate(8deg); }
}
@keyframes flutuar-suave {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.hero {
  background: #001071 url('../img/bg-hero.webp') center top / cover no-repeat;
  overflow: hidden;
  position: relative;
}
.hero__inner {
  position: relative;
  padding: 0 0 60px;
}
.hero__topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 30px;
}
.hero__logo-main { width: 124px; height: auto; }
.hero__logo-sys  { width: 102px; height: auto; }

.hero__deco { position: absolute; pointer-events: none; }
.hero__star-1, .hero__star-2, .hero__x, .hero__smile { display: none; }
.hero__star-1 { animation: flutuar-girar 4.2s ease-in-out infinite alternate; }
.hero__star-2 { animation: flutuar-girar 3.4s ease-in-out .8s infinite alternate; }
.hero__x      { animation: flutuar 3.8s ease-in-out .4s infinite alternate; }
.hero__smile  { animation: flutuar-girar 3s ease-in-out 1.2s infinite alternate; }

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
}
.hero__lettering {
  width: min(390px, 92vw);
  height: auto;
  animation: flutuar-suave 4.5s ease-in-out infinite alternate;
}
.hero__sub {
  color: var(--branco);
  font-weight: 700;
  font-size: 17px;
  margin-top: 16px;
  text-align: center;
}
.hero__cta { margin-top: 22px; }

.hero__foto {
  width: min(286px, 78vw);
  height: auto;
  margin: 36px auto 0;
  animation: flutuar 5s ease-in-out .6s infinite alternate;
}

/* ---------- Card do formulário ---------- */
.form-card {
  background: var(--laranja);
  border: 2px solid var(--amarelo);
  border-radius: 16px;
  width: min(320px, calc(100vw - 60px));
  margin: 48px auto 0;
  padding: 40px 25px 48px;
}
.form-card__title {
  font-family: var(--font-dm);
  font-weight: 700;
  font-size: 24px;
  color: var(--branco);
  text-align: center;
  margin-bottom: 18px;
}
.form-card__form { display: flex; flex-direction: column; }
.form-card__form input {
  width: 100%;
  height: 37px;
  background: var(--branco);
  border: 0;
  border-radius: 2px;
  padding: 0 14px;
  font-family: var(--font-outfit);
  font-size: 14px;
  color: #414141;
  margin-top: 16px;
}
.form-card__form input:first-of-type { margin-top: 0; }
.form-card__form input::placeholder { color: #414141; opacity: 1; }
.form-card__form input:focus { outline: 2px solid var(--amarelo); outline-offset: 1px; }
.form-card__submit {
  align-self: center;
  margin-top: 36px;
  font-size: 16px;
  border-radius: 12px;
  padding: 13px 26px;
  min-width: 114px;
}
.form-card__feedback {
  margin-top: 14px;
  color: var(--branco);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   O QUE É (sobre)
   ========================================================================== */
.sobre { background: var(--branco); padding: 70px 0; }
.sobre__grid { display: flex; flex-direction: column; align-items: center; }
.sobre__content { text-align: center; max-width: 520px; }
.sobre__content .section-title { max-width: 310px; margin: 0 auto 26px; }
.sobre__content p { font-size: 17px; line-height: 26px; margin-bottom: 26px; }
.sobre__content .btn { margin-top: 2px; }
.sobre__foto { margin-top: 44px; width: min(573px, 100%); }

/* ==========================================================================
   BENEFÍCIOS
   ========================================================================== */
.beneficios {
  background: #001071 url('../img/bg-beneficios.webp') center / cover no-repeat;
  padding: 40px 0 86px;
}

/* Caixa de "seleção" do título */
.select-box {
  position: relative;
  border: 2px solid var(--preto);
  max-width: 890px;
  margin: 0 -10px;
  padding: 22px 24px;
}
.select-box h2 {
  color: var(--branco);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
}
.select-box__handle {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--branco);
  border: 2px solid var(--preto);
  transform: rotate(45deg);
}
.h-tl { top: -8px; left: -8px; }
.h-tc { top: -8px; left: calc(50% - 7px); }
.h-tr { top: -8px; right: -8px; }
.h-ml { top: calc(50% - 7px); left: -8px; }
.h-mr { top: calc(50% - 7px); right: -8px; }
.h-bl { bottom: -8px; left: -8px; }
.h-bc { bottom: -8px; left: calc(50% - 7px); }
.h-br { bottom: -8px; right: -8px; }

.beneficios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 50px;
}
.card-beneficio {
  background: var(--laranja-forte);
  border: 2px solid var(--amarelo);
  border-radius: 10px;
  padding: 32px 23px 36px;
  min-height: 0;
}
.card-beneficio__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background: var(--amarelo);
  border-radius: 15px;
}
.card-beneficio__icone img { width: 40px; height: 40px; }
.card-beneficio h3 {
  color: var(--menta);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22;
  margin-top: 34px;
}
.card-beneficio p {
  color: var(--branco);
  font-size: 17px;
  line-height: 26px;
  margin-top: 12px;
}

/* ==========================================================================
   PLAY (vídeos)
   ========================================================================== */
.play { background: var(--laranja-forte); padding: 70px 0 84px; }
.play__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.play__title {
  color: var(--branco);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
  max-width: 270px;
}
.play__title strong { font-weight: 700; }
.play__title br { display: none; }

.play__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  margin-top: 48px;
}
.play__item { display: flex; flex-direction: column; }
.play__thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
}
.play__thumb img { width: 100%; height: auto; }
.play__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 113, 0);
  transition: background .2s ease;
}
.play__thumb:hover::after { background: rgba(0, 16, 113, .18); }
.play__icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -46%);
  background: rgba(20, 20, 20, .55);
  border-radius: 50%;
  z-index: 1;
}
.play__icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--branco);
}
.play__tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--amarelo);
  color: var(--preto);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 13px 18px 12px;
  margin-top: 18px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.play__tag:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.85); }
.play__tag:active { transform: translateY(0); box-shadow: none; }

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.depoimentos { background: var(--branco); padding: 74px 0 0; }
.depoimentos__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.depoimentos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 50px;
}
.card-depoimento {
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-depoimento blockquote {
  background: var(--azul-claro);
  color: var(--branco);
  font-size: 23px;
  line-height: 1.4;
  padding: 56px 34px 40px;
  flex: 1;
}
.card-depoimento footer {
  background: var(--laranja);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 34px;
  min-height: 112px;
}
.card-depoimento footer img {
  width: 65px;
  height: 65px;
  border-radius: 6px;
}
.card-depoimento footer strong {
  display: block;
  color: var(--branco);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
}
.card-depoimento footer span {
  color: var(--branco);
  font-weight: 500;
  font-size: 15px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--verde-bg);
  margin-top: 74px;
  padding: 90px 0 100px;
}
.faq__wrap {
  max-width: 770px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq__title {
  color: var(--preto);
  font-weight: 700;
  font-size: 34px;
  text-align: center;
}
.faq__list { width: 100%; margin-top: 34px; }
.faq__item { margin-top: 32px; }
.faq__item:first-child { margin-top: 0; }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: var(--turquesa);
  color: var(--preto);
  border: 0;
  border-radius: 8px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: left;
  padding: 17px 22px;
  min-height: 60px;
  cursor: pointer;
}
.faq__chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--preto);
  border-bottom: 2.5px solid var(--preto);
  transform: rotate(-45deg);
  transition: transform .25s ease;
  margin-right: 4px;
}
.faq__item.is-open .faq__chevron { transform: rotate(45deg); }
.faq__item.is-open .faq__question { border-radius: 8px 8px 0 0; }
.faq__answer {
  background: var(--verde-claro);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.faq__item.is-open .faq__answer { max-height: 400px; }
.faq__answer p {
  font-size: 17px;
  line-height: 26px;
  padding: 30px 22px 24px;
}
.faq__cta { margin-top: 34px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--azul-escuro); }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 40px;
  padding-bottom: 52px;
}
.footer__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer__logos img:first-child { width: 174px; }
.footer__logos img:last-child { width: 145px; }
.footer__social { display: flex; align-items: center; gap: 14px; }
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: opacity .2s ease;
}
.footer__social a img { display: block; }
.footer__social a:hover { opacity: .7; }
.footer__stripe { height: 4px; background: var(--azul-claro); }


/* ==========================================================================
   MODAL DE VÍDEO
   ========================================================================== */
.video-modal { position: fixed; inset: 0; z-index: 100; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 8, 60, .85); }
.video-modal__box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
}
.video-modal__player { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal__player iframe, .video-modal__player video { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--branco);
  font-size: 22px;
  font-weight: 700;
}
.video-modal__close {
  position: absolute;
  top: -44px; right: 0;
  background: none; border: 0;
  color: var(--branco);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   TABLET (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .beneficios__grid { grid-template-columns: repeat(2, 1fr); }
  .play__grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   DESKTOP (≥ 1200px) — coordenadas do layout 1440
   ========================================================================== */
@media (min-width: 1200px) {

  .section-title { font-size: 48px; line-height: 52px; }

  .btn { font-size: 16px; padding: 17px 22px; }

  /* ---------- HERO: composição absoluta 1440×720 ---------- */
  .hero__inner {
    width: 1440px;
    height: 720px;
    left: 50%;
    margin-left: -720px;
    padding: 0;
  }
  .hero__topbar {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding-top: 30px;
  }
  .hero__logo-main { width: 198px; }
  .hero__logo-sys  { width: 164px; }
  .form-card { padding: 38px 22px 44px; }
  .form-card__submit { font-size: 17px; padding: 15px 28px; margin-top: 35px; }

  .hero__deco { display: block; }
  .hero__star-1 { left: 50px;  top: 65px;  width: 90px; }
  .hero__star-2 { left: 1305px; top: 595px; width: 80px; }
  .hero__x      { left: 30px;  top: 650px; width: 52px; }
  .hero__smile  { left: 608px; top: 163px; width: 58px; }

  .hero__left {
    position: absolute;
    left: 182px;
    top: 176px;
    width: 500px;
    padding: 0;
    display: block;
  }
  .hero__lettering { width: 500px; }
  .hero__sub {
    font-size: 19px;
    margin-top: 30px;
    width: 100%;
  }
  .hero__cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 310px;
    margin: 0;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px); }
  .hero__cta:hover { transform: translateX(-50%) translateY(-2px); }
  .hero__cta:active { transform: translateX(-50%); }

  .hero__foto {
    position: absolute;
    left: 640px;
    top: 352px;
    width: 284px;
    margin: 0;
  }

  .form-card {
    position: absolute;
    right: 124px;
    top: 82px;
    width: 314px;
    margin: 0;
  }

  /* ---------- SOBRE ---------- */
  .sobre { padding: 104px 0 110px; }
  .sobre__grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .sobre__content {
    text-align: left;
    max-width: 474px;
    padding-top: 6px;
  }
  .sobre__content .section-title { max-width: none; margin: 0 0 26px; }
  .sobre__content p { font-size: 18px; margin-bottom: 26px; }
  .sobre__content .btn { margin-top: 2px; }
  .sobre__foto { margin-top: -6px; flex: 0 0 573px; width: 573px; }

  /* ---------- BENEFÍCIOS ---------- */
  .beneficios { padding: 76px 0 120px; }
  .footer__logos img:first-child { width: 198px; }
  .footer__logos img:last-child { width: 164px; }
  .select-box { margin: 0 auto; padding: 24px 30px; }
  .select-box h2 { font-size: 40px; }
  .beneficios__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin-top: 50px;
  }
  .card-beneficio { min-height: 357px; border-radius: 15px; }
  .card-beneficio h3 { font-size: 22px; }
  .card-beneficio p { font-size: 18px; }

  /* ---------- PLAY ---------- */
  .play { padding: 80px 0 92px; }
  .play__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .play__title {
    font-size: 40px;
    line-height: 42px;
    text-align: left;
    max-width: none;
  }
  .play__title br { display: inline; }
  .play__header .btn { margin-top: 8px; }
  .play__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 46px;
  }
  .play__tag { font-size: 16px; margin-top: 16px; }

  /* ---------- DEPOIMENTOS ---------- */
  .depoimentos { padding: 120px 0 0; }
  .depoimentos__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  .depoimentos__header .section-title { max-width: 476px; }
  .depoimentos__header .btn { margin-top: 16px; }
  .depoimentos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
    margin-top: 42px;
  }
  .card-depoimento { min-height: 409px; }
  .card-depoimento blockquote { font-size: 24px; line-height: 31px; padding: 70px 34px 24px; }
  .footer__inner { gap: 26px; }
  .footer__social { gap: 21px; }
  .footer__social a { width: 46px; height: 46px; }

  /* ---------- FAQ ---------- */
  .faq { margin-top: 136px; padding: 136px 0 138px; }
  .faq__title { font-size: 40px; }
  .faq__question { font-size: 20px; }
  .faq__answer p { font-size: 18px; padding: 33px 22px 20px; }
  .faq__item.is-open .faq__answer { min-height: 130px; }

  /* ---------- FOOTER ---------- */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 24px;
    min-height: 119px;
  }
  .footer__logos { flex-direction: row; gap: 18px; align-items: flex-start; }
  .footer__stripe { display: none; }
}

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero__deco, .hero__lettering, .hero__foto { animation: none; }
  html { scroll-behavior: auto; }
}
