html {
  scroll-behavior: smooth;
}

/* CUSTOM CSS */
.btn-flutuante {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.btn-flutuante.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.section-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vh; /* 16:9 ratio */
  height: 120vh;
  transform: translate(-50%, -50%);
}

.video-bg iframe {
  width: 100%;
  height: 100%;
}

.overlay {
  width: 240vh; /* 16:9 ratio */
  height: 100vh;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.content {
  position: relative;

}

.box-shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.bg-qs {
  background-image: url('../img/qs.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: center;
}

.active{
  width: 36px;
  height: 20px;
}

/* HAMBÚRGUER → X */
.hamburger-btn {
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 30000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--blue-500);
  transition: all 0.4s ease;
  border-radius: 2px;
}

/* Quando o menu estiver aberto → vira X */
.hamburger-btn.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* MENU MOBILE - DESCE DE CIMA */
.mobile-menu {
  position: fixed;
  top: -110%;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  color: var(--blue-500);
  z-index: 10;
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  top: 0;
}

.close-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  padding: 0 10px;
}

.menu-links {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-item {
  color: var(--blue-500);
  text-decoration: none;
  font-size: 1.35rem;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.btn-inscreva {
  display: block;
  text-align: center;
  background: #00AEEF;
  color: white;
  padding: 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* MODAL DEPOIMENTOS */
#testimonialModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-testimonial-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 60%;
  max-height: auto;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.modal-image-side {
  width: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.modal-image-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.modal-text-side {
  width: 50%;
  padding: 50px 45px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-text-side h3 {
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.modal-text-side .texto {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--blue-500);
  flex: 1;
}

/* Responsivo */
@media (max-width: 1024px) {
  .modal-testimonial-content {
    flex-direction: column;
    max-width: 100%;
    max-height: 96vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-image-side,
  .modal-text-side {
    width: 100%;
  }
  .modal-image-side {
    width: 100%;
    height: 50px;
    min-height: 320px;
  }
  .modal-text-side {
    width: 50%;
    padding: 35px 25px;
    /* max-height: calc(100vh - 390px); */
  }

  #testimonialModal {
    padding: 0;
  }
  .modal-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .modal-text-side {
    width: 85%;
  }

  .close-btn {
    right: 28px !important;
  }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.75) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
  top: 92px;
  right: 18px;
  z-index: 30;
  background: rgba(0,0,0,0);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #002D62;
  transform: rotate(90deg);
}


/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.90);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 85vh;
  max-height: 85vh;
  background: #000;
  overflow: hidden;
}

/* Botão X fora do vídeo - no canto superior direito */
.close-btn {
  position: absolute;
  top: 25px;
  right: 60px;
  z-index: 20;
  border: none;
  font-size: 34px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* Container do vídeo */
#videoContainer {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* preenche sem barras pretas */
}


/* STEPS */
.cardsteps {
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 20px 15px;
  border-radius: 12px;
}

/* Estado Ativo */
.cardsteps-active {
  background: #FFF !important;
}

.cardsteps-active .step-number,
.cardsteps-active .step-title {
  color: #002D62;
}

/* Alternar ícones */
.icon-wrapper {
  position: relative;
  min-height: 40px;
}

.active-icon,
.inactive-icon {
  transition: opacity 0.4s ease;
}

.cardsteps-active .active-icon {
  display: block;
}

.cardsteps-active .inactive-icon {
  display: none;
}

.cardsteps-inactive .active-icon {
  display: none;
}

.cardsteps-inactive .inactive-icon {
  display: block;
}


/* ACCORDION */
.accordion-item {
  border-bottom: 1px solid #e5e7eb; /* border-gray */
}

.accordion-header {
  background: white;
  transition: background 0.3s ease;
  user-select: none;
}

.accordion-header.open {
  background: #D7E6F5;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.accordion-content.open {
  opacity: 1;
}

.arrow {
  transition: transform 0.3s ease;
  transform: rotate(0deg);   /* começa fechado */
}

.arrow.open {
  transform: rotate(180deg); /* abre apontando para cima */
}

/* @MEDIA */
@media (max-width: 639px) {
  h2 {
    font-size: 3rem; /* 48px */
    line-height: 3rem; /* 48px */
  }

  h2.dev {
    font-size: 2.25rem; /* 36px */
    line-height: 2.25rem; /* 36px */
  }


  /* SLIDER */
  .slider-container {
    width: 170%;
    max-width: 1280px;
    overflow: hidden;
    padding-left: 40px;
    margin-inline: auto;
  }

  .slider-track {
    max-width: 100%;
    display: flex;
    align-items: stretch;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
  }

  .slider-dots {
    margin-top: 8px;
  }

  .slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: var(--blue-300);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .slider-dot.active {
    background: var(--blue-500);
    transform: scale(1.2);
  }

  .cardtip.active-tip {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
  }
}


/* SM Mobile */
@media (min-width: 640px) {
  h2 {
    font-size: 3rem; /* 48px */
    line-height: 3rem; /* 48px */
  }
  
  .modal-testimonial-content {
    max-width: 90%;
  }

  .slider-container {
    width: 100%;
    max-width: 768px;
    overflow: hidden;
    margin-inline: auto;
  }

  /* SLIDER */
  .slider-container {
    width: 200%;
    max-width: 1050px;
    overflow: hidden;
    padding-left: 60px;
    margin-inline: auto;
  }

  .slider-track {
    max-width: 100%;
    display: flex;
    align-items: stretch;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
  }

  .slider-dots {
    margin-top: 8px;
  }

  .slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: var(--blue-300);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .slider-dot.active {
    background: var(--blue-500);
    transform: scale(1.2);
  }

  .cardtip.active-tip {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
  }

  .modal-content {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 85vh;
    max-height: 85vh;
    background: #000;
    overflow: hidden;
  }
}

/* MD Tablet */
@media (min-width: 768px) {
  h2 {
    font-size: 4.5rem; /* 72px */
    line-height: 4.5rem; /* 72px */
  }

  /* SLIDER */
  .slider-container {
    width: 200%;
    max-width: 1290px;
    overflow: hidden;
    padding-left: 70px;
    margin-inline: auto;
  }

  .slider-track {
    max-width: 100%;
    display: flex;
    align-items: stretch;
    gap: 32px;
    transition: transform 0.4s ease;
    will-change: transform;
  }
}

/* LG Desktop */
@media (max-width: 1023px) {
  .hamburger-btn {
    margin-right: 20px;
  }

  .cardlife {
    width: 100%;
    height: auto;
    border-radius: 20px;
    padding: 60px 20px;
  }
  .cardtrainee {
    width: 100%;
    max-width: 200px;
    height: 246px;
    border-radius: 20px;
    padding-top: 48px;
  }

  .cardsteps-active {
    background: var(--white);
    border-radius: 20px;
    padding: 20px 20px 12px 20px;

    p {
      color: var(--blue-500);
    }
  }

  .cardjob {
    max-width: 580px;
    height: auto;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-color: var(--blue-400);
    padding: 16px;
  }

  .cardtip {
    width: 100%;
    max-width: 1024px;
    height: auto;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
  }

}

@media (min-width: 1024px) {
  .hamburger-btn {
    margin-right: 20px;
  }
  .lg\:max-w-240 {
    width: 100%;
    max-width: 240px;
  }
  .lg\:max-w-280 {
    width: 100%;
    max-width: 280px;
  }
  .lg\:max-w-300 {
    width: 100%;
    max-width: 300px;
  }
  .lg\:max-w-336 {
    width: 100%;
    max-width: 356px;
  }
  .lg\:max-w-400 {
    width: 100%;
    max-width: 400px;
  }
  .lg\:max-w-440 {
    width: 100%;
    max-width: 440px;
  }
  .lg\:max-w-470 {
    width: 100%;
    max-width: 470px;
  }
  .lg\:max-w-500 {
    width: 100%;
    max-width: 500px;
  }
  .lg\:max-w-730 {
    width: 100%;
    max-width: 730px;
  }
  .lg\:max-w-900 {
    width: 100%;
    max-width: 900px;
  }
  .lg\:max-w-lg {
    width: 100%;
    max-width: 64rem; /* 1024px */
  }
  .lg\:max-w-1080 {
    width: 100%;
    max-width: 1080px;
  }

  .cardlife {
    height: 280px;
    border-radius: 20px;
    padding-top: 48px;
  }
  .cardtrainee {
    width: 200px;
    height: 456px;
    border-radius: 20px;
    padding-top: 48px;
  }
  .cardsteps-active {
    width: fit-content;
    height: auto;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 16px 12px;

    p {
      color: var(--blue-500);
    }
  }
  .cardsteps-inactive {
    width: fit-content;
    height: auto;
    background-color: var(--blue-500);
    border-radius: 20px 20px 0 0;
    padding: 16px 12px
  }
  .cardstepscontent {
    width: 100%;
    height: 92px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 0 0 20px 20px;
  }
  .cardjob {
    max-width: 580px;
    height: 204px;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background-color: var(--blue-400);
    padding: 16px;
  }
  .cardtip {
    max-width: 1024px;
    height: auto;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px;
  }


  /* SLIDER */
  .slider-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    padding-left: 60px;
    margin-inline: auto;
  }

  .slider-track {
    max-width: 800px;
    display: flex;
    align-items: stretch;
    gap: 32px;
    transition: transform 0.4s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
  }

  .slider-track:active {
    cursor: grabbing;
  }

  .slider-track .cardtip {
    min-width: 100%;
    max-width: 100%;
  }

  .slider-card {
    cursor: pointer;
  }

  .slider-dots {
    margin-top: 8px;
  }

  .slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: var(--blue-300);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .slider-dot.active {
    background: var(--blue-500);
    transform: scale(1.2);
  }

  .cardtip.active-tip {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
  }
}

/* XL Widescreen */
@media (min-width: 1280px) {
  .hamburger-btn {
    margin-right: 0;
  }

  /* SLIDER */
  .slider-container {
    width: 100%;
    max-width: 1430px;
    overflow: hidden;
    padding-left: 80px;
    margin-inline: auto;
  }

  .slider-track {
    max-width: 1024px;
    display: flex;
    align-items: stretch;
    gap: 32px;
    transition: transform 0.4s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
  }

  .slider-track:active {
    cursor: grabbing;
  }

}

@media (min-width: 1366px) {
  .modal-testimonial-content {
    max-width: 80%;
    max-height: 96vh;
  }
}


/* 2XL Widescreen */
@media (min-width: 1536px) {
  .modal-testimonial-content {
    max-width: 60%;
  }

  .slider-container {
    width: 100%;
    max-width: 1700px;
    overflow: hidden;
    padding-left: 200px;
    margin-inline: auto;
  }

  .slider-track {
    max-width: 1024px;
    display: flex;
    align-items: stretch;
    gap: 32px;
    transition: transform 0.4s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
  }

  .modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 85vh;
    max-height: 85vh;
    background: #000;
    overflow: hidden;
  }
  
}

@media (min-width: 2000px) {
  .modal-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 85vh;
    max-height: 85vh;
    background: #000;
    overflow: hidden;
  }
}