/* --- ESTILO GERAL DO HERO --- */
.hero {
  display: flex;
  justify-content: center;

  min-height: 40vh;
  padding: 0px 132px;
}

/* --- CONTEÚDO DO HERO --- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 80px;
}

/* --- ESTILO DO HAT --- */
.hero-hat {
  color: var(--Grey-50);
  font-size: 16px;
  font-weight: 100;
  letter-spacing: 1px;

  border: 1px solid rgb(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 64px;
}

/* --- ESTILO DO TÍTULO --- */
.hero-title {
  color: var(--Grey-50);
  font-size: 64px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  max-width: 1176px;
}

/* --- ESTILO DA DESCRIÇÃO --- */
.hero-description {
  color: var(--Grey-50);
  font-size: 16px;
  font-weight: 100;
  text-align: center;
  max-width: 498px;
  opacity: 0.8;
}

/* --- ESTILO DOS BOTÕES --- */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.hovered-secondary {
  padding: 14px 32px;
  border: 1px solid var(--S-900);
  background-color: var(--S-700);
  border-radius: 64px;

  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;

  transition: all 0.3s ease-in-out;
}

.hovered-secondary:hover {
  background-color: var(--S-800);
  border: 1px solid var(--S-600);
  cursor: pointer;
}

/* utilidade para 'levantar' um pouco ao passar o mouse, preservando sombra existente */
.lift-on-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.lift-on-hover:hover {
  transform: translateY(-4px);
}

/* aplicar levitação também em botões que abrem o modal para unificar comportamento */
.js-open-modal.lift-on-hover,
.js-open-modal:hover {
  transform: translateY(-4px);
}

.default-textButton svg {
  padding-top: 2px;
  fill: #ffffff;
}

.default-textButton {
  padding: 14px 32px;
  border: none;
  background-color: transparent;

  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition: all 0.3s ease-in-out;
}

.default-textButton:hover {
  text-decoration: underline var(--S-700);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  cursor: pointer;
  font-size: 17px;
}

/* Estilo chamativo para CTA externo */
.btn-external-cta {
  padding: 14px 28px;
  border-radius: 64px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(90deg, #0473ff 0%, #1f2a9b 100%);
  box-shadow: 0 10px 30px rgba(4, 115, 255, 0.12);
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.btn-external-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% 10%,
    rgba(255, 255, 255, 0.08),
    transparent 25%
  );
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.btn-external-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(31, 42, 155, 0.18);
}
.btn-external-cta:focus {
  outline: 3px solid rgba(31, 42, 155, 0.12);
}

/* pulse */
@keyframes pulse-cta {
  0% {
    box-shadow: 0 6px 18px rgba(122, 43, 255, 0.06);
  }
  70% {
    box-shadow: 0 18px 40px rgba(122, 43, 255, 0.12);
  }
  100% {
    box-shadow: 0 6px 18px rgba(122, 43, 255, 0.06);
  }
}
.btn-external-cta.pulse {
  animation: pulse-cta 2.2s infinite;
}

@media (max-width: 720px) {
  .btn-external-cta {
    width: 100%;
    text-align: center;
  }
}

/* botão flutuante vertical (fixed) */
.promo-fab {
  position: fixed;
  left: 0; /* colado à margem esquerda */
  top: 45%;
  transform: translateY(-50%);
  /* degradê verde->azul (levemente mais escuro para melhor contraste) */
  background: linear-gradient(180deg, #02b85c 0%, #0350c9 100%);
  color: #ffffff; /* texto branco para contraste com o degradê */
  border: none;
  padding: 10px 8px;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 8px 28px rgba(3, 80, 177, 0.14);
  z-index: 1500; /* abaixo do modal (modal z-index = 2000) */
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* empurra o texto para a borda interna direita do botão */
  justify-content: center;
  gap: 4px;
  width: 56px; /* compacto e alto */
  height: 160px; /* mais esticado conforme pedido */
  left: -6px; /* puxar levemente para fora da tela para ficar colado à borda */
  /* transições suaves para background e sombra (não animar transform pra evitar movimento) */
  transition: background 280ms ease,
    box-shadow 220ms cubic-bezier(0.2, 0.9, 0.3, 1), filter 220ms ease;
  background-size: 100% 200%;
}

.promo-icon {
  display: none;
}
.promo-fab-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
  height: 100%;
  padding: 0 6px 0 0;
  box-sizing: border-box;
}

@media (min-width: 721px) {
  /* Desktop: aumentar largura/altura e deslocar um pouco mais para a esquerda */
  .promo-fab {
    width: 55px; /* mais largo para dar espaço às letras */
    height: 130px; /* reduzido conforme solicitado */
    left: -28px; /* levemente menos escondido */
    padding: 10px 10px 10px 6px; /* espaço equilibrado */
    align-items: center; /* centralizar quando a label curta for mostrada */
    justify-content: center;
  }
  .promo-fab-text {
    display: flex; /* mostrar o texto rotacionado no desktop */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: rotate(-90deg); /* rotaciona a palavra inteira */
    transform-origin: center;
    align-items: center;
    justify-content: center;
    padding: 0 8px 0 0; /* encostar na borda interna */
  }
  .promo-fab-short {
    display: none; /* esconder a label curta no desktop quando mostramos o texto vertical */
  }
}

/* label curto (mobile) - por padrão escondido no desktop */
/* a exibição da label curta é controlada por media queries abaixo */

/* responsividade: em telas menores ajustar tamanho */
@media (max-width: 480px) {
  .promo-fab {
    width: 52px;
    height: 140px;
    left: -4px;
  }
  .promo-fab-text {
    font-size: 11px;
  }
}

/* foco acessível (keyboard) */
.promo-fab:focus {
  outline: none;

  /* mobile: reorder nav-buttons so client-area is after contact button */
  @media (max-width: 720px) {
    .nav-buttons {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: stretch;
    }
    .nav-buttons .client-area {
      order: 2;
    }
    .nav-buttons .mobile-only {
      order: 1;
    }
    .nav-buttons .desktop-only {
      display: none;
    }
  }
  box-shadow: 0 0 0 4px rgba(2, 184, 92, 0.12),
    0 24px 60px rgba(3, 80, 177, 0.28);
}

/* hover: efeito tipo ClickUp - mudança suave de cor/tonalidade dentro do tema */
.promo-fab:hover {
  background: linear-gradient(180deg, #029e53 0%, #0a54c7 100%);
  background-position: center 30%;
  /* sombra/halo mais pronunciado sem mover o botão */
  box-shadow: 0 24px 60px rgba(3, 80, 177, 0.28),
    0 0 40px rgba(2, 184, 92, 0.16);
  /* manter a mesma transformação inicial (translateY(-50%)) para não deslocar verticalmente */
  filter: brightness(1.06) saturate(1.05);
}

/* centralizar texto do botão dentro do modal promocional */
#promo-modal .btn-external-cta {
  display: inline-block;
  text-align: center;
  min-width: 220px;
}

@media (max-width: 720px) {
  /* Mostrar um botão compacto no mobile com label curto */
  .promo-fab {
    display: flex;
    left: auto;
    right: 16px;
    top: auto;
    bottom: 24px;
    transform: none;
    width: auto;
    height: 44px;
    min-width: 120px;
    border-radius: 24px;
    padding: 8px 14px;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(3, 80, 177, 0.22);
    left: auto;
    right: 16px;
  }
  .promo-fab-text {
    display: none;
  }
  .promo-fab-short {
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    align-items: center;
    opacity: 0.92;
  }
}

/* --- ESTILO DA ILUSTRAÇÃO --- */
.illustration {
  margin-top: 80px;
}

.illustration img {
  width: 100%;
  max-width: 1176px;
}

/* ---- Client area dropdown ---- */
.client-area {
  position: relative;
  display: inline-block;
}
.client-area-btn {
  position: relative;
  z-index: 1600;
}
.client-area-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(10, 20, 40, 0.95); /* more subtle, blends with header */
  padding: 8px;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 12px 30px rgba(3, 80, 177, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.25, 1),
    background-position 450ms ease;
  pointer-events: none;
}
.client-area-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.client-area-item {
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.client-area-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Mobile: make it full width and anchored to bottom of header */
@media (max-width: 720px) {
  .client-area-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 80px;
    min-width: auto;
    border-radius: 12px;
    padding: 12px;
  }
}

/* caret rotation */
.client-area-btn .client-area-caret {
  display: inline-flex;
  margin-left: 8px;
  transition: transform 220ms ease;
}
.client-area-btn[aria-expanded="true"] .client-area-caret {
  transform: rotate(180deg);
}
