/* Página de família de produtos (templates/tpl-familia-produtos.php) */

.fp-page,
.fp-page * {
  font-family: "Archivo", sans-serif !important;
}

/* Botão "Saiba mais": pílula, borda preta, texto preto com sublinhado azul.
 * Hover: preenchimento preto sobe por baixo, texto vira branco e a seta desliza. */
.fp-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 154.45px !important;
  height: 38.6px !important;
  overflow: hidden !important;
  isolation: isolate;
  border: 1px solid #1a1410 !important;
  border-radius: 100px !important;
  background: transparent !important;
  color: #1a1410 !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease !important;
}

.fp-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: #1a1410;
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-btn__label {
  text-decoration: underline !important;
  text-decoration-color: #099bf5 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), text-underline-offset 0.45s ease;
}

.fp-btn__arrow {
  position: absolute;
  right: 18px;
  color: #099bf5;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-btn:hover,
.fp-btn:focus-visible {
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(9, 155, 245, 0.55);
}

.fp-btn:hover::before,
.fp-btn:focus-visible::before {
  transform: translateY(0);
}

.fp-btn:hover .fp-btn__label,
.fp-btn:focus-visible .fp-btn__label {
  transform: translateX(-9px);
  text-underline-offset: 6px !important;
}

.fp-btn:hover .fp-btn__arrow,
.fp-btn:focus-visible .fp-btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

.fp-btn:focus-visible {
  outline: 2px solid #099bf5;
  outline-offset: 3px;
}

.fp-btn:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .fp-btn,
  .fp-btn::before,
  .fp-btn__label,
  .fp-btn__arrow {
    transition: none !important;
  }
}

/* Animações de entrada do hero (o resto da página usa AOS via data-aos). */
@keyframes fp-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes fp-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fp-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.fp-hero-img {
  animation: fp-zoom 2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-rise {
  animation: fp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

.fp-pill {
  transform-origin: left center;
  animation: fp-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/*
 * Hero mobile: a imagem/vídeo acompanha a largura da tela na proporção original (sem corte)
 * e o texto vem logo abaixo. section.fp-hero para ganhar das utilities do Tailwind (min-h-*).
 */
@media (max-width: 1023px) {
  section.fp-hero {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    background-color: #1d1d1b;
  }

  .fp-hero picture {
    display: block;
  }

  .fp-hero .fp-hero-img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .fp-hero > .container {
    padding-top: 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero-img,
  .fp-rise,
  .fp-pill {
    animation: none;
  }
}

/* Logo em SVG colado no painel: mantém o tamanho do próprio SVG, sem estourar a coluna. */
.fp-logo svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Descrição + botão num único link: o hover em qualquer parte ativa o botão. */
.fp-link {
  display: flex !important;
  flex-direction: column;
  color: inherit !important;
  text-decoration: none !important;
}

.fp-link:hover .fp-btn,
.fp-link:focus-visible .fp-btn {
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(9, 155, 245, 0.55);
}

.fp-link:hover .fp-btn::before,
.fp-link:focus-visible .fp-btn::before {
  transform: translateY(0);
}

.fp-link:hover .fp-btn__label,
.fp-link:focus-visible .fp-btn__label {
  transform: translateX(-9px);
  text-underline-offset: 6px !important;
}

.fp-link:hover .fp-btn__arrow,
.fp-link:focus-visible .fp-btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

.fp-link:focus-visible {
  outline: 2px solid #099bf5;
  outline-offset: 6px;
}

.fp-link:active .fp-btn {
  transform: scale(0.97);
}

/* Logo SVG: normal em repouso; no hover os contornos são desenhados e o preenchimento volta.
 * Cor do traço: defina --fp-logo-stroke no .fp-logo se a logo não for escura. */
@keyframes fp-draw {
  0%   { stroke-dashoffset: 1; fill-opacity: 0; stroke-opacity: 1; }
  65%  { stroke-dashoffset: 0; fill-opacity: 0; stroke-opacity: 1; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
}

.fp-logo:hover :is(path, rect, circle, ellipse, line, polyline, polygon) {
  stroke: var(--fp-logo-stroke, #1a1410);
  stroke-width: 1;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: fp-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .fp-logo:hover :is(path, rect, circle, ellipse, line, polyline, polygon) {
    animation: none;
    stroke: none;
    stroke-dasharray: none;
  }
}
