/* ==============================
   service-body.css
   ============================== */

.service-body {
  padding: 0px;
  margin-top: 30px;
}

.service-body__grid {
  display: grid;
  grid-template-columns: 0.52fr 1.48fr;
  gap: clamp(16px, 2.4vw, 26px);
  align-items: stretch;
}

/* ------------------------------
   LEFT
   ------------------------------ */
.service-body__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  height: 100%;
  background: transparent;
}

/* form gradiente */
.service-form {
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(18px, 2.8vw, 26px);
  background: var(--g-brand, linear-gradient(90deg, rgba(68, 109, 255, 0.95), rgba(255, 78, 140, 0.95)));
  box-shadow: 0 26px 80px rgba(11, 18, 32, 0.14);
  color: #fff;
  min-height: 300px;
}

.service-form__head {
  margin-bottom: 14px;
}

/* badge */
.contact-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.contact-panel__badgeIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
}

.contact-panel__badgeIcon svg {
  width: 18px;
  height: 18px;
}

.contact-panel__badgeText {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.service-form__title {
  margin: 0;
  font-size: clamp(20px, 2.05vw, 26px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.service-form__form {
  width: 100%;
}

.service-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-field {
  display: block;
}

.service-field input,
.service-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 12px;
  padding: 13px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.service-field textarea {
  resize: vertical;
  min-height: 120px;
}

.service-field input::placeholder,
.service-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.service-field input:focus,
.service-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.service-field--full {
  grid-column: 1 / -1;
}

.service-form__submit {
  width: 100%;
  margin-top: 14px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0b1220;
  padding: 13px 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, filter 160ms ease;
}

.service-form__submit:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

/* ------------------------------
   CTA 
   ------------------------------ */
.service-cta {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  flex: 1;
  min-height: 350px;

  background-image: var(--svc-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(11, 18, 32, 0.12);
  box-shadow: 0 18px 56px rgba(11, 18, 32, 0.12);
  color: #fff;
}

.service-cta__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 420px at 30% 0%, rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.50), rgba(11, 18, 32, 0.82));
  pointer-events: none;
}

.service-cta__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.service-cta__heading {
  margin: 0;
  text-align: center;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(24px, 2.35vw, 34px);
}

.service-cta__headingGrad {
  background: var(--g-brand, linear-gradient(90deg, rgba(68, 109, 255, 0.98), rgba(255, 78, 140, 0.98)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 26px rgba(11, 18, 32, 0.28);
}

.service-cta__glass {
  border-radius: 16px;
  padding: 14px;
  max-width: 520px;
  margin: 0 auto;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 18, 32, 0.10);
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.18);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-cta__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;

  color: rgba(11, 18, 32, 0.88);

  padding: 12px 12px;
  border-radius: 14px;

  background: rgba(11, 18, 32, 0.035);
  border: 1px solid rgba(11, 18, 32, 0.10);

  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.service-cta__item:hover {
  transform: translateY(-2px);
  background: rgba(11, 18, 32, 0.055);
  border-color: rgba(11, 18, 32, 0.14);
}

.service-cta__item:focus-visible {
  outline: 3px solid rgba(11, 18, 32, 0.18);
  outline-offset: 3px;
}

.service-cta__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--g-brand);
  border: 0;

  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.12);
  color: #fff;
}

.service-cta__icon svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.service-cta__text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-width: 0;
}

.service-cta__chev {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  color: rgba(11, 18, 32, 0.72);
}

.service-cta__chev svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------
   RIGHT
   ------------------------------ */
.service-body__right {
  min-height: 0;
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* imagem */
.service-media {
  margin: 0;
  padding: 0;
  display: flex;
}

.service-media img {
  width: 100%;
  height: clamp(300px, 32vw, 480px);
  object-fit: cover;
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.06);
  box-shadow: 0 18px 56px rgba(11, 18, 32, 0.12);
}

.service-desc {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-desc__content {
  flex: 1;
  min-height: 0;
  color: var(--c-text, #0b1220);
  line-height: 1.85;
  font-size: 15px;

  /* ✅ desktop: ocupa todo o espaço disponível */
  max-width: 100%;

  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
  overflow: hidden;
  max-height: calc(12 * 1.85em);
}

.service-desc:not(.is-open) .service-desc__content {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.service-desc.is-open .service-desc__content {
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;

  -webkit-mask-image: none;
  mask-image: none;
}

.service-desc.is-open .service-desc__content::after {
  content: none;
}

.service-desc__content p {
  margin: 0 0 0.9rem;
}

.service-desc__content p:last-child {
  margin-bottom: 0;
}

.service-desc__content strong {
  color: var(--c-text, #0b1220);
  font-weight: 800;
}

.service-desc__toggle {
  align-self: flex-start;
  margin-top: auto;
  gap: 10px;
}

.service-desc__toggle.btn.btn--gradient {
  box-shadow: 0 16px 44px rgba(11, 18, 32, 0.14);
}

/* ✅ corrigido: faltava o "s" no seletor */
.service-desc__toggle.btn.btn--gradient:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.service-desc__toggle:focus-visible {
  outline: 3px solid rgba(68, 109, 255, 0.35);
  outline-offset: 3px;
}

.service-desc__toggle svg {
  transition: transform 180ms ease;
  transform-origin: 50% 50%;
}

.service-desc.is-open .service-desc__toggle svg {
  transform: rotate(180deg);
}

/* ------------------------------
   Responsive
   ------------------------------ */
@media (max-width: 980px) {
  .service-body__grid {
    grid-template-columns: 1fr;
  }

  .service-body__left,
  .service-body__right {
    height: auto;
  }

  .service-form__grid {
    grid-template-columns: 1fr;
  }

  .service-media img {
    height: clamp(220px, 56vw, 380px);
  }

  .service-cta__glass {
    max-width: 100%;
  }

  .service-body__right {
    overflow: visible;
  }

  .service-desc__content {
    /* ✅ mobile: pode manter leitura mais confortável sem "apertar" demais */
    max-width: 100%;
    -webkit-line-clamp: 12;
    max-height: calc(12 * 1.85em);
  }

  .service-desc.is-open .service-desc__content {
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
  }

  .service-desc__toggle {
    align-self: center;
  }
}

/* ------------------------------
   Mobile order fix: hero -> image -> text -> form -> cta
   (sem mexer no HTML)
   ------------------------------ */
@media (max-width: 980px) {
  .service-body__grid {
    display: flex;
    /* troca grid por flex só no mobile */
    flex-direction: column;
    gap: 16px;
    /* mantém um gap controlado */
  }

  /* RIGHT (imagem + texto) vem antes */
  .service-body__right {
    order: 1;
  }

  /* LEFT (form + cta) vem depois */
  .service-body__left {
    order: 2;
  }

  /* garante que cada bloco use a largura inteira */
  .service-body__left,
  .service-body__right {
    width: 100%;
    min-width: 0;
  }

  /* dentro do RIGHT: imagem -> texto */
  .service-media {
    order: 1;
  }

  .service-desc {
    order: 2;
  }

  /* dentro do LEFT: form -> cta */
  .service-form {
    order: 3;
  }

  .service-cta {
    order: 4;
  }
}

/* ------------------------------
   Mobile order fix: hero -> image -> text -> form -> cta
   (sem mexer no HTML)
   ------------------------------ */
@media (max-width: 980px) {
  .service-body__grid {
    display: flex;
    /* troca grid por flex só no mobile */
    flex-direction: column;
    gap: 16px;
    /* mantém um gap controlado */
  }

  /* RIGHT (imagem + texto) vem antes */
  .service-body__right {
    order: 1;
  }

  /* LEFT (form + cta) vem depois */
  .service-body__left {
    order: 2;
  }

  /* garante que cada bloco use a largura inteira */
  .service-body__left,
  .service-body__right {
    width: 100%;
    min-width: 0;
  }

  /* dentro do RIGHT: imagem -> texto (já é a ordem natural, mas deixo explícito) */
  .service-media {
    order: 1;
  }

  .service-desc {
    order: 2;
  }

  /* dentro do LEFT: form -> cta (já é a ordem natural, mas deixo explícito) */
  .service-form {
    order: 3;
  }

  .service-cta {
    order: 4;
  }
}

/* =========================================
   WHAT YOU'LL GET (ajustado)
   - título maior
   - subtítulo “distribuído” (duas colunas no desktop)
   - cards um abaixo do outro
   - section mais estreita (container interno)
   ========================================= */

.what-you-get {
  position: relative;
  margin: clamp(18px, 3vw, 34px) auto;
  width: 100%;
  max-width: min(920px, calc(100% - 2 * var(--pad, 20px)));
  padding: clamp(20px, 3vw, 34px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.06);
  overflow: hidden;
}

/* brilho sutil */
.what-you-get::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 18% 0%, rgba(47, 107, 255, 0.10), transparent 60%),
    radial-gradient(760px 420px at 92% 6%, rgba(255, 106, 138, 0.10), transparent 58%);
  opacity: 0.9;
}

.what-you-get__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 clamp(14px, 2.4vw, 20px);
}

.what-you-get__title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: rgba(11, 18, 32, 0.94);
}

/* “Distribuído”: duas colunas no desktop para ocupar melhor a largura */
.what-you-get__subtitle {
  margin: 0;
  color: rgba(11, 18, 32, 0.70);
  font-size: 15px;
  line-height: 1.75;
  max-width: 100%;
}

/* Cards sempre empilhados */
.what-you-get__list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.what-you-get__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.what-you-get__item:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 18, 32, 0.12);
  box-shadow: 0 22px 54px rgba(11, 18, 32, 0.08);
}

.what-you-get__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--g-brand, linear-gradient(135deg, #2f6bff 0%, #ff6a8a 55%, #ffb86b 100%));
  box-shadow:
    0 12px 26px rgba(47, 107, 255, 0.16),
    0 12px 26px rgba(255, 106, 138, 0.14);
}

.what-you-get__icon img {
  width: 30px;
  height: 30px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.what-you-get__content {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.what-you-get__itemTitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(11, 18, 32, 0.92);
}

.what-you-get__itemText {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(11, 18, 32, 0.70);
}

/* Mobile: subtítulo em 1 coluna + padding mais enxuto */
@media (max-width: 820px) {
  .what-you-get {
    max-width: calc(100% - 2 * var(--pad, 16px));
    padding: 18px;
  }

  .what-you-get__subtitle {
    column-count: 1;
  }
}