/* CTA SECTION */
.cta-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 2;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(4px);
  transform: scale(1.04);
  animation: none !important;
  transition: none !important;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
}

/* CTA Decoration Wrapper - fora do container da imagem */
.cta-decoration-wrapper {
  position: relative;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  margin-top: 0;
}

.cta-decoration {
  position: absolute;
  top: -80px;
  left: 0;
  width: 250px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.cta-decoration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.cta-content {
  position: relative;
  z-index: 4;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.cta-content > .btn-cta {
  justify-self: center;
}

.cta-headline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 1 auto;
  max-width: 720px;
}

.cta-clock-icon {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.cta-headline-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  text-align: left;
  margin: 0;
}

.cta-subtitle,
.cta-line {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.cta-subtitle {
  white-space: nowrap;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-cta svg {
  transition: transform 0.3s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

.btn-cta-white {
  background: #ffffff;
  color: #0d0d0d;
}

.btn-cta-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-cta-primary {
  background: #e85107;
  color: #ffffff;
  border-radius: 8px;
}

.btn-cta-primary:hover {
  background: #e64a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 86, 0, 0.4);
}

/* A .cta-section nunca deve subir/animar — nem mesmo quando recebe carta-animate.
   A imagem de fundo permanece imóvel; só os filhos de conteúdo é que animam. */
.cta-section.carta-animate,
.cta-section.carta-animate-up,
.cta-section.carta-animate-down,
.cta-section.carta-animate-fade,
.cta-section.carta-animate-left,
.cta-section.carta-animate-right {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Slide-up reveal animation for content above the image */
.cta-headline,
.cta-content > .btn-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.cta-section.is-visible .cta-headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.cta-section.is-visible .cta-content > .btn-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .cta-headline,
  .cta-content > .btn-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .cta-section {
    min-height: 450px;
    padding: 3rem 2rem;
  }

  .cta-content {
    grid-template-columns: 1fr;
    justify-items: flex-start;
    gap: 2rem;
  }

  .cta-content > .btn-cta {
    justify-self: flex-start;
  }

  .cta-headline {
    max-width: 100%;
    gap: 0.6rem;
  }

  .cta-clock-icon {
    width: 120px;
    height: 120px;
  }

  .cta-buttons {
    align-self: flex-end;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .cta-decoration {
    width: 220px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .cta-section {
    min-height: 400px;
    padding: 2.5rem 1.5rem;
  }

  .cta-headline {
    gap: 0.5rem;
  }

  .cta-clock-icon {
    width: 88px;
    height: 88px;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-subtitle,
  .cta-line {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-wrap: nowrap;
    width: 100%;
    align-items: flex-end;
  }

  .btn-cta {
    width: auto;
    justify-content: center;
  }

  .cta-decoration {
    width: 180px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .cta-section {
    min-height: 350px;
    padding: 2rem 1rem;
  }

  .cta-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cta-clock-icon {
    width: 76px;
    height: 76px;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .cta-decoration {
    width: 150px;
    height: auto;
  }
}

/* ===== Escalonamento para telas grandes ===== */
@media (min-width: 1440px) {
  .cta-section {
    min-height: 680px;
    padding: 5rem;
  }
  .cta-content { gap: 3rem; }
  .cta-title { font-size: 3rem; }
  .cta-subtitle, .cta-line { font-size: 1.5rem; }
  .cta-clock-icon { width: 170px; height: 170px; }
  .cta-decoration { width: 290px; }
  .btn-cta { padding: 1.15rem 2.8rem; font-size: 1.1rem; }
}

@media (min-width: 1680px) {
  .cta-section {
    min-height: 740px;
    padding: 6rem;
  }
  .cta-title { font-size: 3.4rem; }
  .cta-subtitle, .cta-line { font-size: 1.65rem; }
  .cta-clock-icon { width: 190px; height: 190px; }
  .cta-decoration { width: 330px; }
  .btn-cta { padding: 1.25rem 3rem; font-size: 1.15rem; }
}

@media (min-width: 1920px) {
  .cta-section {
    min-height: 820px;
    padding: 7rem;
  }
  .cta-title { font-size: 3.8rem; }
  .cta-subtitle, .cta-line { font-size: 1.8rem; }
  .cta-clock-icon { width: 220px; height: 220px; }
  .cta-decoration { width: 380px; }
  .btn-cta { padding: 1.35rem 3.4rem; font-size: 1.25rem; }
}

@media (min-width: 2400px) {
  .cta-section {
    min-height: 960px;
    padding: 8rem;
  }
  .cta-title { font-size: 4.6rem; }
  .cta-subtitle, .cta-line { font-size: 2.1rem; }
  .cta-clock-icon { width: 260px; height: 260px; }
  .cta-decoration { width: 460px; }
  .btn-cta { padding: 1.6rem 4rem; font-size: 1.4rem; }
}
