/* Importação de fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
  /* Cores Base da AP Construtora */
  --color-primary-brand: #A92B2B;
  --color-primary-dark: #8F2323;
  --color-primary-light: #D55C5C;
  --color-brand-gray: #8E8585;
  --color-brand-dark: #3B3B3B;
  --color-brand-light-gray: #F5F5F5;
  --color-accent-gold: #C5A880; /* Tom dourado/bronze do layout */
  
  /* Cores Adicionais para a Página */
  --bg-dark-overlay: rgba(15, 15, 15, 0.88);
  --bg-card-glass: rgba(0, 0, 0, 0.45);
  --border-glass: 1px solid var(--color-primary-brand); /* Borda padrão vermelha */
  --border-glass-hover: 1.5px solid var(--color-primary-brand);
  
  /* Fontes */
  --font-sans: "Inter", sans-serif;
  --font-display: "Montserrat", sans-serif;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: #0A0A0A;
  color: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

/* Plano de Fundo com Imagem de Calógeras e Efeito Parallax */
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('calogeras.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* Overlay Escuro para Legibilidade Máxima */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(10, 10, 10, 0.75) 100%);
  z-index: -1;
  display: block;
}

/* Container Principal centralizado no estilo Mobile */
.main-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 48px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Cabeçalho */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.logo-wrapper {
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-out;
}

.logo-img {
  width: 220px;
  height: auto;
  display: block;
}

.bio-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.6;
  max-width: 340px;
  margin-top: 10px;
  margin-bottom: 24px;
  animation: fadeIn 1s ease-out 0.4s both;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  animation: fadeIn 1s ease-out 0.5s both;
}

/* Links / Botões */
.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.link-btn {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 110px; /* Altura confortável para conter os textos e a imagem */
  padding: 12px 12px 12px 36px; /* Espaço na esquerda para o distintivo flutuante */
  background-color: var(--bg-card-glass);
  border: var(--border-glass);
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
  position: relative;
  overflow: visible; /* CRÍTICO: Permitir que o distintivo do ícone flutue fora da borda */
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Distintivo de Ícone Flutuante (Lado Esquerdo) */
.btn-icon-badge {
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background-color: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--color-accent-gold);
  z-index: 5;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-icon-badge svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-brand);
}

/* Distintivo Especial para WhatsApp (ícone verde de início) */
.btn-icon-badge.whatsapp-badge svg {
  color: #25D366;
}

/* Conteúdo de Texto do Botão (Lado Esquerdo) */
.btn-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  padding-right: 12px;
  z-index: 2;
}

/* Estilo Exclusivo do Botão do WhatsApp (sem imagem na direita) */
.link-btn.whatsapp-btn {
  padding-right: 24px; /* Ocupa todo o espaço sem restrição de imagem */
}

.btn-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.btn-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: #DDDDDD;
  line-height: 1.35;
  margin-bottom: 10px;
}

/* Botão de Ação interno (Fundo branco e texto em vermelho) */
.btn-cta {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-brand);
  background: #FFFFFF;
  padding: 5px 16px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(169, 43, 43, 0.2);
}

/* Contêiner da Imagem (Lado Direito) */
.btn-img-container {
  width: 100px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.35s ease;
  z-index: 2;
}

.btn-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

/* Efeitos Hover nos Botões */
.link-btn:hover {
  background-color: rgba(59, 59, 59, 0.85); /* Tom escuro levemente destacado */
  border-color: var(--color-primary-brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(169, 43, 43, 0.25), 
              0 0 15px rgba(197, 168, 128, 0.1);
}

/* Efeito Hover nas Bordas e Ícones do Distintivo */
.link-btn:hover .btn-icon-badge {
  border-color: var(--color-primary-brand);
  transform: translateY(-50%) scale(1.05);
}

/* Zoom na Imagem da Direita no Hover */
.link-btn:hover .btn-img-container {
  border-color: var(--color-primary-brand);
}

.link-btn:hover .btn-img-container img {
  transform: scale(1.1);
}

/* Destacar o Botão ACESSAR no Hover - Inverte para fundo vermelho e texto branco */
.link-btn:hover .btn-cta {
  background: var(--color-primary-brand);
  color: #FFFFFF;
  border-color: var(--color-primary-brand);
  box-shadow: 0 4px 10px rgba(169, 43, 43, 0.3);
}

/* Efeito ativo/toque para Mobile - Cor vermelha aparente no toque */
.link-btn:active {
  background-color: rgba(169, 43, 43, 0.75) !important;
  border-color: var(--color-primary-brand) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(169, 43, 43, 0.4), 
              0 0 10px rgba(197, 168, 128, 0.1);
}

.link-btn:active .btn-icon-badge {
  border-color: var(--color-primary-brand) !important;
}

.link-btn:active .btn-cta {
  background: var(--color-primary-brand) !important;
  color: #FFFFFF !important;
  border-color: var(--color-primary-brand) !important;
  box-shadow: 0 4px 10px rgba(169, 43, 43, 0.3);
}

/* Efeito de brilho reflexivo premium (Shine Pass) no hover */
.link-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  z-index: 1;
}

.link-btn:hover::after {
  left: 150%;
  transition: 0.75s;
}

/* Rodapé e Localização */
.social-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  animation: fadeIn 1s ease-out 0.8s both;
}

.location-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  justify-content: center;
  width: 100%;
}

.location-text svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent-gold);
}

.footer {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-brand-gray);
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* Animações CSS */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ajuste da imagem de fundo para dispositivos móveis (deslocar 10% esquerda, 5% baixo) */
@media (max-width: 768px) {
  .bg-container {
    background-size: auto 125%;
    background-position: 60% 0%;
  }
}

/* Otimização para telas muito pequenas */
@media (max-height: 680px) {
  .main-container {
    padding: 32px 20px 24px 20px;
  }
  .header {
    margin-bottom: 20px;
  }
  .logo-wrapper {
    margin-bottom: 12px;
  }
  .logo-img {
    width: 180px;
  }
  .links-stack {
    gap: 12px;
    margin-bottom: 24px;
  }
  .link-btn {
    min-height: 100px;
    padding: 10px 10px 10px 32px;
  }
  .btn-icon-badge {
    width: 32px;
    height: 32px;
    left: -12px;
  }
  .btn-icon-badge svg {
    width: 14px;
    height: 14px;
  }
  .btn-img-container {
    width: 80px;
    height: 70px;
  }
  .btn-title {
    font-size: 11px;
  }
  .btn-desc {
    font-size: 9.5px;
    margin-bottom: 8px;
  }
  .btn-cta {
    font-size: 8px;
    padding: 4px 12px;
  }
  .footer {
    margin-top: 24px;
  }
}
