/* ==========================================================================
   ARQUIVO: bio.css
   OBJETIVO: Estilo visual completo da página inicial (Link na Bio)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Contêiner Principal da Página
   -------------------------------------------------------------------------- */
.bio-wrapper {
  width: 100%;
  max-width: 580px; /* Largura focada para mobile e desktop */
  margin: 0 auto;
  padding: 24px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

/* Efeito sutil de brilho/glow ambiente no topo */
.bio-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 108, 74, 0.12) 0%, rgba(248, 249, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   2. Cabeçalho / Perfil do Corretor
   -------------------------------------------------------------------------- */
.bio-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Foto de Perfil com Anel em Gradiente */
.bio-avatar-container {
  position: relative;
  margin-bottom: 16px;
}

.bio-avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--cor-primaria, #006c4a), #131b2e);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e5eeff;
}

/* Selo de Verificado no Avatar */
.bio-avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.bio-avatar-badge .icone-svg {
  width: 18px;
  height: 18px;
  color: var(--cor-icone-verificado, #006c4a);
}

/* Nome do Corretor */
.bio-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bio-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--cor-texto-principal, #0b1c30);
  letter-spacing: -0.02em;
}

.bio-name-badge {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-icone-verificado, #006c4a);
}

.bio-name-badge .icone-svg {
  width: 20px;
  height: 20px;
}

/* Título / Especialidade */
.bio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cor-texto-principal, #0b1c30);
  margin-bottom: 10px;
}

/* Tag / Pílula do CRECI */
.bio-creci-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: #eaf1ff;
  color: #45464d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

/* Ponto indicador de status ativo (com contraste visível sobre fundos verdes ou claros) */
.status-dot {
  width: 7px;
  height: 7px;
  background-color: #85f8c4; /* Verde claro luminoso (quase menta/branco) para alto contraste */
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #85f8c4;
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 0 rgba(133, 248, 196, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(133, 248, 196, 0); }
  100% { transform: scale(1); opacity: 0; }
}

/* Bio descritiva */
.bio-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cor-texto-secundario, #45464d);
  max-width: 480px;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   3. Barra de Métricas de Autoridade (3 Cartões)
   -------------------------------------------------------------------------- */
.bio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  background: var(--cor-card, #ffffff);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bio-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
}

.bio-metric-highlight {
  background-color: #f0f4ff;
  border-radius: 12px;
}

.bio-metric-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--cor-texto-principal, #0b1c30);
  line-height: 1.2;
}

.bio-metric-highlight .bio-metric-number {
  color: var(--cor-primaria, #006c4a);
}

.bio-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cor-texto-secundario, #45464d);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   4. Botão Principal de Conversão (WhatsApp Destaque)
   -------------------------------------------------------------------------- */
.bio-cta-whatsapp {
  width: 100%;
  background-color: var(--cor-btn-whats-bg, var(--cor-primaria, #006c4a));
  color: var(--cor-btn-whats-text, #ffffff);
  padding: 14px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(0, 108, 74, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  animation: softPulse 3s infinite ease-in-out;
}

.bio-cta-whatsapp:hover {
  background-color: var(--cor-primaria-hover, #005137);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(0, 108, 74, 0.45);
}

.bio-cta-whatsapp:active {
  transform: translateY(0) scale(0.99);
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 10px 25px -5px rgba(0, 108, 74, 0.35); }
  50% { box-shadow: 0 12px 30px -4px rgba(0, 108, 74, 0.5); }
}

.bio-cta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bio-cta-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-icone-whats-principal, #ffffff);
}

.bio-cta-icon-circle .icone-svg {
  width: 24px;
  height: 24px;
}

.bio-cta-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bio-cta-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.bio-cta-subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.bio-cta-arrow {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  color: var(--cor-btn-whats-text, #ffffff);
}

.bio-cta-whatsapp:hover .bio-cta-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Seção de Imóveis em Destaque (Carrossel Horizontal com Peek)
   -------------------------------------------------------------------------- */
.bio-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bio-section-header {
  display: flex;
  flex-direction: column;
}

.bio-section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cor-primaria, #006c4a);
}

.bio-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cor-texto-principal, #0b1c30);
  letter-spacing: -0.01em;
}

/* Trilho do Carrossel */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Card do Imóvel */
.property-card {
  flex: 0 0 84%; /* Permite ver o próximo card (efeito Peek) */
  max-width: 320px;
  scroll-snap-align: start;
  background: var(--cor-card, #ffffff);
  border-radius: var(--arredondamento, 24px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Capa da Foto */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #e5eeff;
  overflow: hidden;
  cursor: pointer; /* Indica que a imagem é clicável */
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.property-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

/* Badges sobre a foto */
.card-badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--cor-primaria, #006c4a);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-badge-photos {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 28, 48, 0.75);
  backdrop-filter: blur(4px);
  color: var(--cor-icone-camera-card, #ffffff);
  padding: 4px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-badge-photos .icone-svg {
  width: 13px;
  height: 13px;
}

/* Conteúdo do Card */
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cor-texto-secundario, #45464d);
}

.card-code-badge {
  font-size: 10px;
  font-weight: 700;
  color: #45464d;
  background-color: #f1f5fd;
  border: 1px solid #e2e8f5;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.card-location .icone-svg {
  width: 14px;
  height: 14px;
  color: var(--cor-icone-localizacao-card, #006c4a);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cor-texto-principal, #0b1c30);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--cor-texto-secundario, #45464d);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Barra de Especificações Rápidas */
.card-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f1f5fd;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #45464d;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spec-item .icone-svg {
  width: 15px;
  height: 15px;
  color: var(--cor-icone-specs-card, #0b1c30);
}

.spec-divider {
  color: #b0b8c8;
}

/* Rodapé do Card: Preço e Botão Detalhes */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.card-price-block {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cor-texto-secundario, #45464d);
}

.card-price-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--cor-texto-principal, #0b1c30);
}

.card-price-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--cor-texto-secundario, #45464d);
}

/* Botão "Ver Detalhes" */
.btn-card-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--cor-btn-detalhes-bg, #0b1c30);
  color: var(--cor-btn-detalhes-text, #ffffff);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-card-details:hover {
  background-color: var(--cor-btn-detalhes-hover, var(--cor-primaria, #006c4a));
  transform: translateY(-1px);
}

.btn-card-details .icone-svg {
  width: 14px;
  height: 14px;
  color: inherit;
}

/* Controles de Navegação do Carrossel */
.carousel-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0 4px;
}

.carousel-swipe-hint {
  font-size: 12px;
  color: var(--cor-texto-secundario, #45464d);
  font-weight: 500;
}

.carousel-nav-buttons {
  display: flex;
  gap: 8px;
}

.btn-carousel-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cor-card, #ffffff);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-icone-setas, #0b1c30);
  transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.btn-carousel-nav:hover {
  background-color: var(--cor-primaria, #006c4a);
  color: #ffffff;
}

.btn-carousel-nav:active {
  transform: scale(0.92);
}

.btn-carousel-nav .icone-svg {
  width: 16px;
  height: 16px;
  color: inherit;
}

/* --------------------------------------------------------------------------
   6. Botão para o Catálogo Completo
   -------------------------------------------------------------------------- */
.bio-catalog-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 6px;
}

.btn-catalog-full {
  width: 100%;
  max-width: 360px;
  padding: 14px 24px;
  background-color: var(--cor-btn-cat-bg, var(--cor-primaria, #006c4a));
  color: var(--cor-btn-cat-text, #ffffff);
  font-size: 15px;
  font-weight: 700;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(0, 108, 74, 0.4);
  position: relative;
  overflow: hidden; /* Mantém o feixe de brilho dentro dos cantos arredondados */
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Feixe de luz/brilho suave passando pelo botão */
.btn-catalog-full::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  animation: shimmerBrilho 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmerBrilho {
  0% {
    left: -120%;
  }
  25% {
    left: 140%;
  }
  100% {
    left: 140%; /* Pausa suave entre um brilho e o próximo */
  }
}

.btn-catalog-full:hover {
  background-color: var(--cor-primaria-hover, #005137);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(0, 108, 74, 0.5);
}

.btn-catalog-full .icone-svg {
  width: 18px;
  height: 18px;
  color: inherit;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn-catalog-full span {
  position: relative;
  z-index: 1;
}

.btn-catalog-full:hover .icone-svg {
  transform: translateX(4px);
}

.catalog-caption {
  font-size: 12px;
  color: var(--cor-texto-secundario, #45464d);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. Seção de Vantagens ("Por que alugar/comprar comigo?")
   -------------------------------------------------------------------------- */
.bio-advantages-box {
  background-color: #f1f5fd;
  border-radius: var(--arredondamento, 24px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advantages-header {
  display: flex;
  flex-direction: column;
}

.advantages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advantage-item {
  background: var(--cor-card, #ffffff);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.advantage-item:hover {
  transform: translateY(-2px);
}

.advantage-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--cor-icone-vantagens-bg, #d1f2e2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cor-icone-vantagens, var(--cor-primaria, #006c4a));
}

.advantage-icon-bubble .icone-svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

.advantage-text-col {
  display: flex;
  flex-direction: column;
}

.advantage-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cor-texto-principal, #0b1c30);
  line-height: 1.3;
}

.advantage-desc {
  font-size: 12px;
  color: var(--cor-texto-secundario, #45464d);
  margin-top: 3px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. Rodapé & Redes Sociais
   -------------------------------------------------------------------------- */
.bio-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-social-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cor-texto-secundario, #45464d);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.social-link-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--cor-card, #ffffff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-icone-redes, #0b1c30);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-link-btn:hover {
  background-color: var(--cor-primaria, #006c4a);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
}

.social-link-btn .icone-svg {
  width: 20px;
  height: 20px;
  color: inherit;
}

.footer-info-text {
  font-size: 12px;
  color: var(--cor-texto-secundario, #45464d);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-badge-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cor-texto-principal, #0b1c30);
  margin-top: 4px;
}

.footer-badge-legal .icone-svg {
  width: 16px;
  height: 16px;
  color: var(--cor-icone-verificado, #006c4a);
}

.footer-copyright {
  font-size: 10px;
  color: #8c8e96;
}
