/* Variáveis (Dark Mode) */
:root {
  --brand-gold: #c8a951;
  --brand-gold-hover: #a68a3f;
  --bg-main: #0b1120;
  --bg-alt: #111827;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-heading: #ffffff;
  --text-body: #94a3b8;
  --bg-footer: #ffffff;
  --text-footer-heading: #0f172a;
  --text-footer-body: #475569;
  --whatsapp: #25d366;
  --border-light: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* Estrutura */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}
/* O cabeçalho é sticky: sem isto, os links de âncora param embaixo dele. */
section[id] {
  scroll-margin-top: 110px;
}
.bg-alt {
  background-color: var(--bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.subtitle {
  color: var(--brand-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.btn-primary {
  background-color: var(--brand-gold);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--brand-gold-hover);
  transform: scale(1.05);
}
.btn-outline {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}
.btn-outline:hover {
  background-color: var(--brand-gold);
  color: #fff;
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* Ícones SVG inline (WhatsApp e menu): herdam cor e tamanho do texto. */
.svg-sprite {
  display: none;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
}

/* Cabeçalho */
/*Menu Hambúrguer */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-heading);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--brand-gold);
}
.menu-toggle .icon {
  width: 1.8rem;
  height: 1.8rem;
}
/* Alterna abrir/fechar a partir do aria-expanded, que é a fonte da verdade
   também para leitores de tela. */
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Responsividade do Cabeçalho para Celular */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    /* Em coluna, "center" encolheria os links à largura do texto; aqui eles
       devem ocupar a linha inteira do menu. */
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
header {
  background-color: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo img {
  height: 75px;
  width: auto;
  border-radius: 0;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  /* Sem isto os links esticam até a altura do botão "Agendar" e o texto deles
     fica encostado no topo da caixa, 11px acima do texto do botão. */
  align-items: center;
}
.nav-links a {
  color: var(--text-heading);
  font-size: 0.9rem;
}
.nav-links a:hover {
  color: var(--brand-gold);
}
/* CTA no cabeçalho: acompanha a pessoa durante toda a rolagem no desktop.
   No celular ele some, porque a barra fixa inferior já cumpre esse papel. */
/* Especificidade acima de `.nav-links a:hover`, senão o texto ficaria dourado
   sobre fundo dourado ao passar o mouse. */
.nav-links a.header-cta,
.nav-links a.header-cta:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .header-cta {
    display: none;
  }
}

/* Grids Responsivos */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Hero Section */
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: var(--brand-gold);
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Os dois botões dividem a largura da coluna: lado a lado quando cabem, um
   por linha e com a mesma largura quando não cabem. Sem isto eles quebram em
   linhas de larguras diferentes e a pilha fica torta. */
.hero-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}
.hero-img-box {
  position: relative;
}
.hero-img-box img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}
/* Linha de prova e informação prática logo abaixo do CTA do hero: responde
   "é confiável?", "está aberto?" e "é perto?" antes da primeira rolagem. */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.8rem;
  font-size: 0.9rem;
}
/* Sem separador entre os itens: como a lista quebra de linha conforme a
   largura, qualquer marcador entre itens acaba pendurado no fim de uma linha.
   O espaçamento do gap já separa o suficiente. */
.hero-proof li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-proof strong {
  color: var(--text-heading);
}
@media (max-width: 768px) {
  .hero-proof {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.trust-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-alt);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 2rem);
}
.trust-badge:hover {
  border-color: var(--brand-gold);
}
.trust-badge-score {
  color: var(--text-heading);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
}
.trust-badge .stars {
  display: block;
  font-size: 0.85rem;
  line-height: 1;
}
.trust-badge p {
  color: var(--text-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2px 0 0;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-8px);
}

.card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(200, 169, 81, 0.1);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--brand-gold);
  margin-bottom: 1.8rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--text-heading);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Sobre Nós */
.check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  color: var(--text-heading);
}
.check-list i {
  color: var(--brand-gold);
  margin-top: 5px;
}

/* FAQ */
.faq-box {
  max-width: 800px;
  margin: 0 auto;
}
details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
}
summary {
  padding: 1.2rem;
  color: var(--text-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "▼";
  color: var(--brand-gold);
  font-size: 0.8rem;
}
details[open] summary::after {
  content: "▲";
}
.faq-content {
  padding: 0 1.2rem 1.2rem;
}

/* Footer */
footer {
  background-color: var(--bg-footer);
  color: var(--text-footer-body);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--brand-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
/* Logo do Rodapé - Tamanho aumentado */
.footer-brand img {
  height: 75px;
  /* Sem isto a largura vem do atributo width="300" do HTML (que existe para
     reservar espaço e evitar CLS) e a logo estica. */
  width: auto;
  filter: contrast(0) brightness(0.2);
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: #fff;
  font-size: 1.2rem;
}
.footer-social a:hover {
  background: var(--brand-gold-hover);
  transform: translateY(-3px);
}
.footer-contact a:hover {
  color: var(--brand-gold);
}
.footer-title {
  color: var(--text-footer-heading);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 0.8rem;
  display: flex;
  gap: 10px;
}
.footer-links a:hover {
  color: var(--brand-gold);
}
.footer-contact i {
  color: var(--brand-gold);
  margin-top: 5px;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--whatsapp);
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float .icon {
  width: 1.8rem;
  height: 1.8rem;
}

/* Resultados (Prova Social) */
.results-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.results-wrapper:hover {
  transform: translateY(-5px);
  border-color: var(--brand-gold);
}
.results-wrapper img {
  width: 100%;
  border-radius: 0;
  margin: 0;
}
/* Identificação profissional exigida pela Resolução CFO-196/2019. */
.results-legal {
  max-width: 800px;
  margin: 1.2rem auto 0;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.75;
}

/* ===== Prova social ===== */
.rating-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
}
.rating-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-3px);
}
.rating-score {
  text-align: center;
  line-height: 1;
}
.rating-score strong {
  display: block;
  font-size: 3rem;
  color: var(--text-heading);
  font-weight: 700;
}
.rating-score .stars {
  font-size: 1rem;
}
.rating-meta p {
  margin: 0;
}
.rating-meta strong {
  color: var(--text-heading);
}
.rating-link {
  color: var(--brand-gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.4rem !important;
}

/* ===== Faixa de CTA repetida ao longo da página ===== */
/* Um CTA só, no topo, obriga quem se convenceu no meio da página a rolar de
   volta. Cada faixa fecha o caminho no ponto em que a decisão amadurece. */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  text-align: center;
}
.cta-band p {
  margin: 0;
  color: var(--text-heading);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ===== Rodapé: responsável técnico ===== */
.footer-cro {
  font-weight: 600;
  color: var(--text-footer-heading);
  margin-bottom: 0.4rem;
}

/* ===== Barra fixa de CTA no celular ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
}
.mobile-cta .btn {
  width: 100%;
  justify-content: center;
  background-color: var(--whatsapp);
}
.mobile-cta .btn:hover {
  background-color: var(--whatsapp);
  transform: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }
  /* A bolha e a barra fazem a mesma coisa: manter as duas só empilha ruído
     em cima do conteúdo. */
  .whatsapp-float {
    display: none;
  }
  /* Espaço para a barra não cobrir o fim do rodapé. */
  body {
    padding-bottom: 80px;
  }
}

/* Página Legal (Política de Privacidade) */
.legal-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-heading);
  margin: 0.5rem 0;
}
.legal-hero p {
  max-width: 640px;
  margin: 0 auto;
}
.legal-content {
  padding-top: 2rem;
}
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  overflow-wrap: break-word;
}
.legal-body h2 {
  color: var(--text-heading);
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}
.legal-body h2:first-of-type {
  margin-top: 0;
}
.legal-body p {
  margin-bottom: 1rem;
}
.legal-body ul.legal-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.legal-body ul.legal-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.9rem;
  overflow-wrap: break-word;
}
.legal-body ul.legal-list li i {
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--brand-gold);
}
.legal-body a {
  color: var(--brand-gold);
  font-weight: 500;
}
.legal-body a:hover {
  color: var(--brand-gold-hover);
}
.legal-body strong {
  color: var(--text-heading);
}
.legal-updated {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .legal-body {
    padding: 2rem 1.5rem;
  }
}

/* Localização / Mapa */
.map-wrapper {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
