/* ============================================
   PRESENÇA DIGITAL — Estilos específicos
   Prefixo: pd-
   ============================================ */

/* ============================================
   HERO COM IMAGEM REAL
   ============================================ */

.pd-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.pd-hero-img-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  border-radius: var(--raio-2xl);
  overflow: hidden;
  box-shadow: var(--sombra-xl), 0 24px 64px rgba(58, 134, 255, 0.2);
  aspect-ratio: 4 / 3;
}

.pd-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s ease;
}

.pd-hero-img-wrap:hover .pd-hero-img {
  transform: scale(1.04);
}

.pd-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(58, 134, 255, 0.08) 0%,
    rgba(106, 13, 173, 0.15) 100%
  );
  pointer-events: none;
}

/* Cards flutuantes sobre a imagem */
.pd-hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--raio-lg);
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(58, 134, 255, 0.12);
  z-index: 3;
  transition: all var(--t-suave);
}

.pd-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(58, 134, 255, 0.18);
}

/* Card: posição no Google */
.pd-hero-card-rank {
  top: -18px;
  right: 10%;
  animation: float 6s ease-in-out infinite;
}

.pd-hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--verde);
  margin-bottom: 4px;
}

.pd-hero-card-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--verde);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--verde);
  animation: pulse 2s ease-in-out infinite;
}

.pd-hero-card-domain {
  font-family: var(--fonte-mono);
  font-size: 0.75rem;
  color: var(--azul-eletrico);
}

.pd-hero-card-query {
  font-size: 0.6875rem;
  color: var(--cinza-500);
  margin-top: 2px;
}

/* Card: crescimento de tráfego */
.pd-hero-card-growth {
  bottom: -16px;
  left: 5%;
  min-width: 160px;
  animation: float 7s ease-in-out infinite reverse;
  animation-delay: 1.5s;
}

.pd-hero-card-label {
  font-size: 0.6875rem;
  color: var(--cinza-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.pd-hero-card-valor-sm {
  font-family: var(--fonte-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--verde);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.pd-hero-card-spark svg {
  width: 100%;
  height: 24px;
}

/* ============================================
   CASO DE USO COM DESTAQUE VISUAL
   ============================================ */

.pd-caso-destaque {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  background: linear-gradient(135deg, #1A1A24 0%, #0A0A0F 100%);
  border-radius: var(--raio-2xl);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--sombra-xl);
}

.pd-caso-destaque-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pd-caso-destaque-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7) saturate(1.2);
  transition: filter 0.6s ease;
}

.pd-caso-destaque:hover .pd-caso-destaque-img img {
  filter: brightness(0.85) saturate(1.3);
}

.pd-caso-destaque-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
}

.pd-caso-destaque-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--fonte-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--raio-full);
}

.pd-caso-destaque-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 40px;
  min-width: 220px;
}

.pd-caso-destaque-stat {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-caso-destaque-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pd-caso-destaque-stat strong {
  display: block;
  font-family: var(--fonte-display);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(135deg, #93b8ff 0%, #c89dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1;
}

.pd-caso-destaque-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* ============================================
   GALERIA COM IMAGENS REAIS
   ============================================ */

.pd-galeria-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-galeria-header .subtitulo {
  margin-top: 16px;
}

.pd-galeria-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.pd-galeria-item {
  position: relative;
  border-radius: var(--raio-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--sombra-md);
  transition: all var(--t-suave);
}

.pd-galeria-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-xl);
}

.pd-galeria-item-grande {
  grid-row: span 1;
  aspect-ratio: 4 / 3;
}

.pd-galeria-item:not(.pd-galeria-item-grande) {
  aspect-ratio: 4 / 3;
}

.pd-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.pd-galeria-item:hover img {
  transform: scale(1.06);
}

.pd-galeria-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 18px;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, transparent 100%);
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--branco);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--t-suave);
}

.pd-galeria-item:hover .pd-galeria-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
  .pd-hero-visual {
    min-height: 400px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .pd-caso-destaque {
    grid-template-columns: 1fr;
  }

  .pd-caso-destaque-info {
    flex-direction: row;
    justify-content: space-around;
    padding: 28px 32px;
    min-width: auto;
  }

  .pd-caso-destaque-stat {
    padding-bottom: 0;
    border-bottom: none;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pd-caso-destaque-stat:last-child {
    padding-right: 0;
    border-right: none;
  }

  .pd-galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .pd-galeria-item-grande {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .pd-hero-card-rank {
    top: -12px;
    right: 4%;
  }

  .pd-hero-card-growth {
    bottom: -12px;
    left: 2%;
  }

  .pd-caso-destaque-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
  }

  .pd-caso-destaque-stat {
    flex: 1;
    min-width: 80px;
  }

  .pd-galeria-grid {
    grid-template-columns: 1fr;
  }

  .pd-galeria-item-grande {
    grid-column: 1;
  }

  .pd-galeria-item-label {
    opacity: 1;
    transform: translateY(0);
  }
}
