:root {
  --bg-main:#121b24;
  --bg-card:#1f2f3d;
  --text-main:#f5f7f8;
  --text-muted:#aab4bc;
  --gold:#c8a45d;
}

* { box-sizing:border-box; margin:0; padding:0; }

body {
  font-family:'Inter',sans-serif;
  background:var(--bg-card);
  color:var(--text-main);
}
html, body {
  overflow-x: hidden;
}

.container {
  width:90%;
  max-width:1200px;
  margin:auto;
  padding:20px 0;
}

h1,h2,h3 {
  font-family:'Playfair Display',serif;
}

header {
  padding:20px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.header-flex {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

nav a {
  margin-left:20px;
  color:var(--text-main);
}
/* ===============================
   HERO COM VÍDEO
================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* VÍDEO */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* OVERLAY (legibilidade + luxo) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,.45),
    rgba(0,0,0,.85)
  );
  z-index: 2;
}

/* CONTEÚDO */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.hero p {
  color: var(--text-muted);
  margin: 20px 0 40px;
  font-size: 1.1rem;
}

/* ===============================
   SEÇÃO CORRETOR
================================ */

.corretor {
  padding: 100px 0;
}

.corretor-grid {
  display: grid;
  grid-template-columns: 320px 1fr; /* foto controlada */
  gap: 60px;
  align-items: center;
}

/* FOTO */
.corretor-foto img {
  width: 100%;
  max-width: 280px;     /* limita o tamanho */
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

/* TEXTO */
.corretor-info h2 {
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.corretor-info .creci {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  letter-spacing: 1px;
  font-weight: 500;
}

.corretor-info h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.corretor-info p {
  max-width: 560px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ===============================
   BOTÃO PRINCIPAL – BASE
================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 34px;
  border-radius: 40px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: 
    background-color .3s ease,
    color .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

/* ===============================
   HOVER GLOBAL – FUNCIONAL
================================ */

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--gold);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* ===============================
   SISTEMA DE ABAS (TABS)
================================ */

.tabs-container {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 16px 40px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.tab-btn:hover::before {
  width: 300px;
  height: 300px;
}

.tab-btn:hover {
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 164, 93, 0.3);
}

.tab-btn.active {
  background: var(--gold);
  color: #111;
  box-shadow: 0 8px 20px rgba(200, 164, 93, 0.4);
  transform: translateY(-2px);
}

.tab-content {
  display: none;
  animation: fadeIn 0.6s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(15px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ===============================
   GRID DE IMÓVEIS
================================ */

.grid-imoveis {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:40px;
}

/* ===============================
   SOMBRA PREMIUM NOS CARDS
================================ */

.card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  transition: 
    transform .4s ease,
    box-shadow .4s ease;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .35),
    0 1px 0 rgba(255,255,255,.04);
}

/* Hover refinado */
.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .55),
    0 1px 0 rgba(255,255,255,.06);
}

.card-content {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TÍTULO */
.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0;
}

/* DESCRIÇÃO */
.card-content p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===============================
   BOTÃO "SAIBA MAIS" – LUXO
================================ */

.card-content .btn-primary {
  align-self: flex-start;
  margin-top: 18px;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .3s ease;
}

/* Hover refinado */
.card:hover .btn-primary {
  background: var(--gold);
  color: #111;
}

/* ===============================
   CARROSSEL – 1 IMAGEM POR VEZ
================================ */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}

.carousel-track img {
  min-width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
}

/* SETAS */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(70, 44, 44, 0.6);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* ===============================
BOLINHAS
================================ */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
}

.carousel-dots span.active {
  background: var(--gold);
}

/* ===============================
   MODAL FULLSCREEN
================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
}

/* BOTÕES MODAL */
.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

.modal-prev { left: 40px; }
.modal-next { right: 40px; }

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ===============================
   FOOTER – LUXO / CONFIANÇA
================================ */

.footer {
  position: relative;
  overflow: hidden;
  padding: 60px 0 30px;
  max-height: 520px; /* controla o limite */
  background: #0d151d;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 120px;
}

/* IMAGEM DEFINE O TAMANHO VISUAL */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    url("../img/footer.jfif") center center / contain no-repeat;
  z-index: 1;
}

/* OVERLAY PARA LEITURA */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,20,30,.85);
  z-index: 2;
}

/* CONTEÚDO DO FOOTER */
.footer > * {
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
  padding: 80px 0 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 40px;
}

/* COLUNAS */
.footer-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--gold);
  letter-spacing: .5px;
}

.footer-col p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .95rem;
}

/* MAPA */
.map-embed iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 14px;
  filter: none;
}

.map-embed {
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

/* ASSINATURA */
.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  background: #0a1016;
  color: #7f8b93;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .7;
}

/* ===============================
   WHATSAPP FLUTUANTE – PREMIUM
================================ */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: #1f2f3d;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all .3s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

/* ÍCONE */
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}

/* HOVER */
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,.6);
  background: #263a4a;
}

/* ===============================
   REDES SOCIAIS – FOOTER
================================ */

.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

/* Hover elegante */
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-social a:hover svg {
  fill: #111;
}

/* =========================================================
   ESTILIZAÇÃO DAS AVALIAÇÕES (TESTEMUNHOS)
========================================================= */
.testimonials {
    padding: 100px 0;
    background: var(--bb-green); /* Fundo escuro conforme index.html */
    color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05); /* Efeito translúcido */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.stars {
    color: var(--gold); /* Cor dourada definida no :root */
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.testimonial-card .client-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.testimonial-card .client-tag {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Aspas decorativas (opcional) */
.testimonial-card p::before {
    content: '"';
    font-size: 2rem;
    color: var(--gold);
    display: block;
    height: 10px;
    margin-bottom: 10px;
}

/* ==FORMULÁRIO / QUIZ== */
.quiz-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.form-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    background: var(--accent-color);
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}
.email-link {
    color: #f5f7f8; /* texto claro */
    text-decoration: none;
    transition: .3s ease;
}

.email-link:hover {
    color: var(--gold); /* fica dourado no hover */
}
/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 768px) {
  .corretor-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .corretor-foto img {
    margin: 0 auto;
    max-width: 220px;
  }

  .corretor-info p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 0;
  }

  .footer-map {
    justify-self: center;
  }

  .footer-map h3 {
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 30px;
  }

  .tabs-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .tab-btn {
    width: 100%;
    padding: 14px 30px;
  }
}

/* Animação de fade-in para elementos */
.fade-in {
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
