/* sections.css — estilos de cada seção do conteúdo, na ordem da página */

/* ===== Moldura de foto (fundo listrado aparece se a imagem falhar) ===== */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #2a2c2c, #2a2c2c 12px, #242626 12px, #242626 24px);
  position: relative;
}
/* Foto real por cima do placeholder: se a URL falhar, o <img> se remove
   (onerror) e o fundo listrado volta a aparecer. */
.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Hero ===== */
.hero { position: relative; height: 560px; background: #1a1c1c; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-gradiente {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}
.hero-conteudo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-lateral);
  gap: 20px;
}
.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amarelo);
}
.hero-titulo {
  font-family: var(--fonte-titulo);
  font-size: 76px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--branco);
  margin: 0;
  max-width: 640px;
  font-weight: normal;
}
.hero-titulo-destaque {
  background: var(--amarelo);
  color: var(--preto);
  padding: 0 12px;
  display: inline-block;
}
.hero-texto { font-size: 17px; line-height: 26px; color: #e2e2e2; max-width: 480px; margin: 0; }
.hero-acoes { display: flex; gap: 24px; align-items: center; }
.btn-hero { font-size: 16px; padding: 15px 32px; }
.hero-link {
  color: var(--branco);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-link:hover { color: var(--amarelo); }
.hero-ligar { display: none; } /* aparece só no celular (responsive.css) */
.hero-link-seta { width: 18px; height: 18px; }

/* ===== Cabeçalho padrão de seção ===== */
.section-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}
.link-seta-icone { width: 16px; height: 16px; }

/* ===== Como Funciona ===== */
.section-cinza { background: var(--fundo-secao); }
.comofunciona-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: stretch;
}
.comofunciona-foto { min-height: 420px; border-radius: 14px; overflow: hidden; }
.comofunciona-selo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--amarelo);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.comofunciona-conteudo { display: flex; flex-direction: column; gap: 8px; }
.comofunciona-titulo { margin-bottom: 16px; }

.passo { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid #dcdcdc; }
.passo-num {
  font-family: var(--fonte-titulo);
  font-size: 22px;
  background: var(--amarelo);
  border: 2px solid var(--preto);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.passo-titulo { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.passo-desc { font-size: 15px; line-height: 23px; color: var(--texto-suave); margin: 0; }

/* ===== Frota ===== */
.section-nota { font-size: 14px; color: #5e5e5e; }
.frota-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.frota-card {
  border: 1px solid var(--borda);
  border-radius: 14px;
  overflow: hidden;
  background: var(--branco);
}
.frota-foto { height: 220px; border-bottom: 1px solid #eeeeee; overflow: hidden; }
/* Fotos empilhadas; a .ativa aparece com crossfade */
.frota-img { opacity: 0; transition: opacity 250ms ease; }
.frota-img.ativa { opacity: 1; }
.frota-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--branco);
  color: var(--branco);
  cursor: pointer;
  z-index: 1;
}
.frota-nav:hover { background: var(--amarelo); color: var(--preto); border-color: var(--preto); }
.frota-nav .lucide { width: 16px; height: 16px; }
.frota-nav-prev { left: 10px; }
.frota-nav-next { right: 10px; }
.frota-pontos {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 1;
}
.frota-ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.frota-ponto.ativa { background: var(--amarelo); }
.frota-legenda { padding: 14px 18px 16px; }
.frota-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.frota-detalhe { font-size: 13px; color: var(--texto-suave); margin: 6px 0 0; }
.frota-nome { font-size: 15px; font-weight: 600; }
.frota-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--amarelo);
  border: 1px solid var(--preto);
  padding: 4px 10px;
}

/* ===== Depoimentos ===== */
.depoimentos { background: var(--preto); }
.depoimentos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: center;
}
.depoimentos-titulo { color: var(--branco); margin-bottom: 16px; }
.avaliacao-resumo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--branco);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
}
.avaliacao-estrela { width: 18px; height: 18px; color: var(--amarelo); fill: var(--amarelo); }
.avaliacao-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amarelo);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.avaliacao-link:hover { color: var(--branco); }

.depoimento { border-left: 3px solid var(--amarelo); padding-left: 32px; }
.depoimento-aspas {
  font-family: var(--fonte-titulo);
  font-size: 80px;
  line-height: 0.5;
  color: var(--amarelo);
  display: block;
  margin-bottom: 8px;
}
.depoimento-texto {
  font-size: 22px;
  line-height: 34px;
  font-weight: 300;
  color: var(--branco);
  margin: 0 0 20px;
  min-height: 170px; /* altura do maior depoimento: controles não pulam na troca */
}
.depoimento-rodape { display: flex; justify-content: space-between; align-items: center; }
.depoimento-autor { font-size: 14px; font-weight: 600; color: var(--amarelo); }
.depoimento-controles { display: flex; align-items: center; gap: 12px; }
.depoimento-contador { font-size: 13px; color: #848484; }
.depoimento-btn {
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.depoimento-btn .lucide { width: 20px; height: 20px; }
.depoimento-btn-prev { background: transparent; border: 2px solid var(--branco); color: var(--branco); }
.depoimento-btn-prev:hover { border-color: var(--amarelo); color: var(--amarelo); }
.depoimento-btn-next { background: var(--amarelo); border: 2px solid var(--amarelo); color: var(--preto); }
.depoimento-btn-next:hover { opacity: 0.9; }

/* ===== CTA final ===== */
.cta {
  background: var(--amarelo);
  padding: 56px var(--pad-lateral);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-titulo {
  font-family: var(--fonte-titulo);
  font-size: 44px;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  font-weight: normal;
}
.cta-btn {
  background: var(--preto);
  color: var(--amarelo);
  border: 2px solid var(--preto);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  transition: all 120ms ease;
}
.cta-btn:hover {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  transform: translate(2px, 2px);
  color: var(--amarelo);
}
.cta-btn-icone { width: 20px; height: 20px; }

/* Botão flutuante de WhatsApp (aparece só no mobile/tablet — ver responsive.css) */
.zap-flutuante {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amarelo);
  border: 2px solid var(--preto);
  box-shadow: 4px 4px 0 var(--preto);
  align-items: center;
  justify-content: center;
  color: var(--preto);
  z-index: 60;
}
.zap-flutuante .lucide { width: 26px; height: 26px; }


/* ===== Sobre nós ===== */
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center; /* texto centralizado na altura da foto */
}
.sobre-conteudo { display: flex; flex-direction: column; gap: 8px; }
.sobre-texto { font-size: 15px; line-height: 24px; color: var(--texto-suave); margin: 12px 0 0; }
.sobre-foto { min-height: 420px; border-radius: 14px; overflow: hidden; position: relative; }
.sobre-local {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}
.sobre-mapa {
  border: 2px solid var(--preto);
  box-shadow: 6px 6px 0 var(--preto);
  min-height: 320px;
  background: var(--fundo-secao);
}
.sobre-mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.sobre-endereco {
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--branco);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sobre-endereco-titulo { font-family: var(--fonte-titulo); font-size: 24px; text-transform: uppercase; margin: 0 0 4px; font-weight: normal; }
.sobre-endereco p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--texto-suave); }
.sobre-endereco-icone { width: 18px; height: 18px; color: var(--preto); }
.sobre-endereco a[data-tel] { color: inherit; }
.sobre-endereco a[data-tel]:hover { color: var(--preto); text-decoration: underline; }
.sobre-endereco .btn-amarelo { align-self: flex-start; margin-top: auto; text-align: center; }
.sobre-selo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--amarelo);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ===== Instrutores ===== */
.instrutores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.instrutor-card {
  border: 1px solid var(--borda);
  border-radius: 14px;
  overflow: hidden;
  background: var(--branco);
  transition: all 150ms ease;
}
.instrutor-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--amarelo);
}
.instrutor-foto { height: 240px; border-bottom: 1px solid #eeeeee; }
.instrutor-info { padding: 12px 16px 14px; }
.instrutor-nome { font-size: 16px; font-weight: 600; margin: 0; text-align: center; }
/* Setas da equipe: só existem no celular (responsive.css) */
.equipe-controles { display: none; }

/* ===== Mural de aprovados (carrossel compacto) ===== */
.apr-carrossel { position: relative; }
.apr-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding: 12px 4px 16px;
}
.apr-viewport::-webkit-scrollbar { display: none; }
.apr-trilho { display: flex; gap: 24px; width: max-content; }
.apr-controles {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}
.apr-btn {
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apr-btn .lucide { width: 20px; height: 20px; }
.apr-btn-prev { background: transparent; border: 2px solid var(--preto); color: var(--preto); }
.apr-btn-prev:hover { background: var(--preto); color: var(--amarelo); }
.apr-btn-next { background: var(--amarelo); border: 2px solid var(--preto); color: var(--preto); }
.apr-btn-next:hover { opacity: 0.85; }
.polaroid {
  width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  --rot: -2deg;
  background: var(--branco);
  border: 2px solid var(--preto);
  box-shadow: 6px 6px 0 var(--preto);
  padding: 12px 12px 14px;
  transform: rotate(var(--rot));
  transition: transform 150ms ease;
}
.polaroid:nth-child(even) { --rot: 2deg; }
.apr-trilho .polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid-foto { height: 320px; }

