/* =========================
   HERO
========================= */
.services-hero {
  color: #fff;
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 15rem 6rem;
  border-radius: 18px;
  overflow: hidden;
  background: none;
}

/* Imagem de fundo com parallax no hover */
.services-hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: url('/static/img/hero/hero-services.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(0);
  transition: transform 1.2s ease-out;
  z-index: 0;
}

/* Overlay: gradiente horizontal — escuro à esquerda, transparente à direita */
/* No hover, o overlay recua para a esquerda revelando a imagem da direita até o centro */
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.20) 60%,
    rgba(0, 0, 0, 0.00) 100%
  );
  transition: background 1s ease-out;
  z-index: 1;
}



/* =========================
   SHOWCASE
========================= */
.services-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1rem;
}

.service-block {
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: 28px;

  display: flex;
  align-items: center;
  gap: 4rem;

  background: #f5f5f5f8;
  box-shadow: 0 30px 60px rgba(0,0,0,.08);

  opacity: 0;
  transform: translateX(-120px) scale(1.02);
  filter: blur(6px);
  transition: .9s cubic-bezier(.22,.61,.36,1);
}

.service-block.reverse {
  flex-direction: row-reverse;
  transform: translateX(120px) scale(1.02); /* vem da direita */
}

.service-block.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: none;
}

.service-media {
  width: 480px;
  height: 360px;
  flex-shrink: 0;
  overflow: hidden; 
  border-radius: 20px;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
}

/* CONTENT */
.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 2.3rem;
  font-weight: 600;

  background: linear-gradient(90deg, #00b3a4, #00e0c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-content p {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-content i {
  color: #4b5563;
  font-size: 0.95rem;
}

.service-content ul {
  font-size: 1.1rem;
}

.service-content li {
  color: #1f2937;
  margin-bottom: .5rem;
  font-size: 1.1rem;
}



/* =========================
   FAQ
   ========================= */

.faq-section h3 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #00b3a4, #00e0c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Item */
.faq-item {
  margin-bottom: 1rem;
}

/* Toggle — estado inicial */
.faq-toggle {
  padding: 1rem 1.25rem;
  background: var(--background-clip);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  color: #fff;
  font-size: 1.05rem;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

/* Texto */
.faq-toggle span {
  flex: 1;
}

/* Ícone — estado inicial */
.faq-icon {
  color: #fff;
  transition: transform .3s ease, color .3s ease;
  flex-shrink: 0;
}

/* Toggle ativo (clicado) */
.faq-toggle.active {
  background: #fff;
  color: #1f2937; /* texto escuro */
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

/* Ícone ativo */
.faq-toggle.active .faq-icon {
  color: var(--background-dark);
  transform: rotate(180deg);
}

/* Painel (resposta) */
.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  border-radius: 14px;
  color: #ffff; /* texto escuro */
  background: #1f2937;
  transition: max-height .4s ease, padding .3s ease;
}

/* Painel aberto */
.faq-panel.open {
  margin-bottom: 0rem;
  padding: 1.25rem 1.25rem 1.25rem;
  max-height: 400px;
}

/* =========================
   CTA CARD
   ========================= */
.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}


@media (max-width: 580px) {
  .faq-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .faq-item {
    margin-bottom: 0.8rem;
  }

  .faq-toggle {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .faq-toggle svg {
    width: 24px;
    height: 24px;
  }

  .faq-panel {
    padding: 0 1rem;
  }

  .faq-panel.open {
    padding: 1rem;
  }

  .faq-panel p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .cta-card {
    padding: 0.65rem 1.1rem;
    font-size: 1.2rem;
  }

  .services-hero {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 3rem 1rem;
    overflow-x: hidden;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 560px;
  }

  .services-hero-title {
    font-size: 2rem;
    color: #ffffff;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 420px;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }


  .services-showcase {
    gap: 2rem;
    padding: 2.5rem 1rem;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .service-block {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 4rem;
    padding: 1.5rem;
    gap: 1.5rem;
    flex-direction: column;
    text-align: center;
    border-radius: 16px;
    box-sizing: border-box;
    clip-path: inset(0);
  }

  .service-block.reverse {
    flex-direction: column;
  }

  .service-media {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 20px;
    box-sizing: border-box;
  }
 
  .service-media img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,.18);
  }

  .service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    box-sizing: border-box;
  }

  .service-content p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    box-sizing: border-box;
  }

  .service-content li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    box-sizing: border-box;
  }

  .service-content ul {
    padding-left: 1rem;
    box-sizing: border-box;
  }
}



/* Desktop Grande 1920px+ */
@media (min-width: 1920px) {
  .services-hero {
    padding: 14rem 8rem;
    min-height: clamp(420px, 70vh, 800px);
  }

  .services-showcase {
    gap: 4.5rem;
    padding: 6rem 3rem;
  }

 .service-block {
    margin: 0 auto 1rem;
    padding: 1rem;
  }

  .service-content h3 {
    font-size: 2.8rem;
  }

  .service-content p {
    font-size: 1.2rem;
  }

  .service-content li {
    font-size: 1.15rem;
  }

  .faq-section h3 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
  }

  .faq-toggle {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
  }

  .faq-panel p {
    font-size: 1.05rem;
  }

  .cta-card {
    gap: 3rem;
  }
}