/* Noah Facilities - Estilos customizados */

:root {
  --noah-blue: #2e3192;
  --noah-blue-light: #4a4db8;
  --noah-blue-dark: #1f2162;
  --noah-red: #b91c1c;
  --noah-red-light: #dc2626;
  --noah-red-dark: #991b1b;
  --sparkles-gradient: #2e3192;
  --sparkles-color: #2e3192;
}

/* Hero slider */
.hero-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s;
  cursor: pointer;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Depoimentos: carrossel vertical — só ~1 card inteiro + meio em cima/meio embaixo (como no print) */
/* Efeito "nuvem": cards entram suavemente por baixo e saem por cima sumindo no fade */
.testimonials-viewport {
  height: 320px;
  overflow: hidden;
  position: relative;
  /* Nuvem: cards “entram” pela nuvem de baixo e “saem” pela nuvem de cima (fade largo) */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 8%,
    black 25%,
    black 75%,
    rgba(0,0,0,0.3) 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 8%,
    black 25%,
    black 75%,
    rgba(0,0,0,0.3) 92%,
    transparent 100%
  );
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}
.testimonials-column {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}
/* Wrapper que sobe: elemento animado é block para evitar bugs em alguns browsers */
.testimonials-track {
  display: block;
  width: 100%;
  animation: depoimentos-subir linear infinite;
  -webkit-animation: depoimentos-subir linear infinite;
  will-change: transform;
  animation-play-state: running;
}
.testimonials-column[data-duration="15"] .testimonials-track { animation-duration: 15s; }
.testimonials-column[data-duration="17"] .testimonials-track { animation-duration: 17s; }
.testimonials-column[data-duration="19"] .testimonials-track { animation-duration: 19s; }
/* Conteúdo em coluna com espaçamento */
.testimonials-track-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  width: 100%;
}
@keyframes depoimentos-subir {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@-webkit-keyframes depoimentos-subir {
  0%   { -webkit-transform: translateY(0); transform: translateY(0); }
  100% { -webkit-transform: translateY(-50%); transform: translateY(-50%); }
}

/* Depoimentos: Swiper — um card por vez, paginação à esquerda (estilo print) */
.testimonials-section .testimonials-swiper {
  overflow: hidden;
  width: 100%;
}
.testimonials-section .swiper-wrapper {
  align-items: stretch;
}
.testimonials-section .swiper-slide {
  height: auto;
  display: flex;
}
.testimonials-section .swiper-slide .testimonial-card {
  width: 100%;
}
.testimonials-card-stack {
  position: relative;
}
.testimonials-card-stack::before {
  content: "";
  position: absolute;
  inset: -4px 8px 8px -4px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: -1;
  pointer-events: none;
}
.testimonial-card {
  transition: box-shadow 0.25s ease;
}
/* Paginação (bolinhas) na coluna esquerda — redonda inativa, alongada ativa */
#testimonials-pagination.swiper-pagination {
  position: relative;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  width: auto;
}
#testimonials-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  margin: 0;
  transition: width 0.2s, background 0.2s, border-radius 0.2s;
}
#testimonials-pagination .swiper-pagination-bullet:hover {
  background: #9ca3af;
}
#testimonials-pagination .swiper-pagination-bullet-active {
  background: #4b5563;
  width: 24px;
  border-radius: 9999px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Ajuste para header fixo */
body {
  padding-top: 0;
}

/* Placeholder para imagens do hero quando não existirem */
.hero-slide[style*="hero-1"] { background-color: var(--noah-blue); }
.hero-slide[style*="hero-2"] { background-color: var(--noah-blue-light); }
.hero-slide[style*="hero-3"] { background-color: var(--noah-blue-dark); }

/* Página Facilities - tons vermelhos */
.page-facilities .header-facilities {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
}
.page-facilities .btn-primary {
  background: #b91c1c;
}
.page-facilities .btn-primary:hover {
  background: #991b1b;
}
.page-facilities .text-brand {
  color: #b91c1c;
}

/* Página Portaria - azul e cinza */
.page-portaria .header-portaria {
  background: linear-gradient(135deg, #1f2162 0%, #2e3192 50%, #4a4db8 100%);
}

/* Botão flutuante WhatsApp - direita, verde com degradê cinza */
.btn-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #25D366 100%);
  background-size: 200% 200%;
}
.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(180,180,180,0.2) 25%, rgba(120,120,120,0.45) 50%, rgba(180,180,180,0.2) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: btn-whatsapp-shine 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-whatsapp-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.btn-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp svg {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  fill: #fff;
}
@media (max-width: 640px) {
  .btn-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }
  .btn-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

/* Animação: texto "Solicitar Orçamento" alternando branco e vermelho */
.text-pulse-attention {
  animation: text-pulse-attention 1.8s ease-in-out infinite;
}
@keyframes text-pulse-attention {
  0%, 100% { color: #ffffff; }
  50% { color: #ef4444; }
}

/* Ícone do telefone tremer (Fale conosco) */
.icon-phone-tremble {
  display: inline-block;
  animation: icon-phone-tremble 0.5s ease-in-out infinite;
}
@keyframes icon-phone-tremble {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-8deg); }
  20% { transform: rotate(8deg); }
  30% { transform: rotate(-6deg); }
  40% { transform: rotate(6deg); }
  50% { transform: rotate(-3deg); }
  60% { transform: rotate(3deg); }
  70% { transform: rotate(-2deg); }
  80% { transform: rotate(2deg); }
  90% { transform: rotate(-1deg); }
}
