
/* CONFIGURAÇÃO GERAL */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
}

body {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* ESTRUTURA DO PORTFÓLIO */
.portfolio {
  width: 100%;
  margin: 0 auto;
}

/* PÁGINAS 1 A 39 */
.portfolio-images {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
}

.portfolio-images img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ÚLTIMA PÁGINA - PÁGINA 40 */
.last-page {
  position: relative;              /* referência para o botão */
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  container-type: inline-size;     /* permite o botão escalar com a largura da página */
}

.last-page-image {
  display: block;
  width: 100%;
  height: auto;
}

/* BOTÃO POSICIONADO SOBRE A IMAGEM */
.cta-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.8%;                      /* AJUSTE AQUI a altura do botão */
  display: flex;
  justify-content: center;
  padding: 0;
  background: none;
}

/* BOTÃO WHATSAPP */
.whatsapp-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;

  /* escala com a largura da página: mínimo 12px, máximo 20px */
  font-size: clamp(12px, 1.7cqw, 20px);
  padding: 0.95em 1.8em;

  border-radius: 999px;
  background: #20c766;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  transition: background-color 250ms ease, transform 250ms ease;
}

/* EFEITO: pulso suave ao redor do botão */
.whatsapp-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(32, 199, 102, 0.55); }
  70%  { box-shadow: 0 0 0 1.1em rgba(32, 199, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(32, 199, 102, 0); }
}

.whatsapp-button:hover {
  background: #19b85b;
  transform: scale(1.05);
}

.whatsapp-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* ÍCONE */
.whatsapp-icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 1.5em;
}

/* MENOS ANIMAÇÃO */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-button,
  .whatsapp-button:hover { transition: none; transform: none; }
  .whatsapp-button::after { animation: none; }
}


/* AJUSTES DO BOTÃO WHATSAPP - TABLET E MOBILE */

/* TABLETS */
@media (min-width: 768px) and (max-width: 1024px) {
  .cta-area {
    bottom: 2.2%;
  }

  .whatsapp-button {
    font-size: clamp(10px, 1.35cqw, 15px);
    padding: 0.8em 1.5em;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .cta-area {
    bottom: 2.5%;
  }

  .whatsapp-button {
    font-size: clamp(9px, 1.2cqw, 12px);
    padding: 0.75em 1.35em;
  }

  .whatsapp-icon {
    width: 1.3em;
    height: 1.3em;
    flex-basis: 1.3em;
  }
}
