/* =============================================
   Tereos - Jovens Talentos LP
   CSS Residual (animações, estados JS, pseudo-elements)
   Cores oficiais: Manual de Identidade Visual 2024
   Fontes: Playfair Display (títulos) + Work Sans (corpo)
   ============================================= */

/* ---------- Títulos bold ---------- */
h2, h3 {
  font-weight: 700 !important;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  animation: fadeInUp 1s ease-out 1s both;
}

/* ---------- Mobile Nav States ---------- */
#mobile-nav.is-open {
  transform: translateX(0);
}

#menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

#menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

#menu-toggle.is-active .hamburger-line {
  background-color: #d10a11;
}

/* ---------- Header scroll state: transparente → branco ---------- */
#header.is-scrolled {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

#header.is-scrolled .nav-link {
  color: #373737;
}

#header.is-scrolled .nav-link:hover {
  color: #0666b0;
}

#header.is-scrolled #header-logo {
  filter: none;
}

#header.is-scrolled .btn-cta {
  color: #0666b0;
  border-color: #0666b0;
}

#header.is-scrolled .btn-cta:hover {
  background: #0666b0;
  color: white;
}

#header.is-scrolled .hamburger-line {
  background-color: #373737;
}

/* ---------- Nav link active state ---------- */
.nav-link.is-active {
  position: relative;
}

#header:not(.is-scrolled) .nav-link.is-active {
  color: #fab900;
}

#header.is-scrolled .nav-link.is-active {
  color: #0666b0;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ---------- Button hover scale ---------- */
.btn-cta {
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: scale(1.03);
}

/* ---------- Reveal on Scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Glow Card (borda animada hover) ---------- */
.glow-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    #d10a11,
    #ec7607,
    #fab900,
    #0666b0,
    #d10a11
  );
  border-radius: inherit;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glow-card::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  border-radius: inherit;
  z-index: -1;
}

.glow-card:hover::before {
  opacity: 1;
  animation: glowRotate 3s linear infinite;
}

/* ---------- Etapa Cards (Uiverse glow - cores Tereos) ---------- */
.etapa-card-wrap {
  position: relative;
  width: 190px;
  height: 254px;
  /* scroll animation */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.etapa-card-wrap.is-active {
  opacity: 1;
  transform: translateY(0);
}

.etapa-card {
  position: relative;
  width: 190px;
  height: 254px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: default;
  color: #003057;
  z-index: 1;
}

.etapa-card-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  width: 200px;
  height: 264px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #0666b0 0%, #003057 100%);
  z-index: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.etapa-card-wrap::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #0666b0 0%, #003057 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

/* hover removido por feedback do cliente */

@media (max-width: 767px) {
  .etapa-card-wrap,
  .etapa-card {
    width: calc(50vw - 32px);
    height: 220px;
  }
  .etapa-card-wrap::before {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
  }
}

/* ---------- Keyframes ---------- */
@keyframes glowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Scroll ---------- */
html {
  scroll-padding-top: 80px;
}

/* ---------- Selection ---------- */
::selection {
  background: #d10a11;
  color: white;
}

/* ---------- Focus visible (acessibilidade) ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #0666b0;
  outline-offset: 2px;
  border-radius: 4px;
}
