/* Template BELEZA — mobile-first, editorial premium. Cores/tipografia vêm das CSS vars injetadas no build (tokens.json + cores do cliente). */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fonte-corpo);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cor-primaria) 14%, var(--cor-fundo)) 0%, var(--cor-fundo) 340px);
  color: var(--cor-texto);
  line-height: 1.55;
}

.pagina {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--esp-md) var(--esp-xl);
}

/* animação de entrada sutil (respeita reduced-motion) */
@keyframes subir { from { transform: translateY(14px); } to { transform: none; } }
.hero-card, .cta-whatsapp { animation: subir 0.55s ease-out both; }
.cta-whatsapp { animation-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) { .hero-card, .cta-whatsapp { animation: none; } }

/* 1. HERO — foto sangrada + card sobreposto */
.hero { margin: 0 calc(-1 * var(--esp-md)); }

.hero-moldura { position: relative; }

.hero-foto {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  object-fit: cover;
  display: block;
}

.hero-moldura::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--cor-fundo) 55%, transparent));
  pointer-events: none;
}

.hero-card {
  position: relative;
  margin: -3.2rem var(--esp-md) 0;
  background: color-mix(in srgb, var(--cor-superficie) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--cor-texto) 35%, transparent);
  padding: var(--esp-md) var(--esp-md) var(--esp-lg);
  text-align: center;
}

.hero-nome {
  font-family: var(--fonte-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.hero-profissao {
  color: var(--cor-primaria);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: var(--esp-xs);
}

.hero-profissao::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin: 0.65rem auto 0;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.hero-frase {
  color: var(--cor-texto-suave);
  font-size: 1.02rem;
  margin-top: var(--esp-sm);
}

/* 2. CTA WHATSAPP */
.cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: var(--esp-md);
  padding: 1.1rem var(--esp-md);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cor-primaria) 88%, #fff), var(--cor-primaria));
  color: var(--cor-primaria-texto);
  border-radius: var(--raio-botao);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 10px 26px -8px color-mix(in srgb, var(--cor-primaria) 65%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-whatsapp:hover { transform: translateY(-1px); }
.cta-whatsapp:active { transform: scale(0.985); }

/* SEÇÕES */
.secao { margin-top: var(--esp-xl); }

/* contraste de fundo por tópico (bandas alternadas) */
.secao:nth-of-type(even) {
  background: color-mix(in srgb, var(--cor-primaria) 7%, var(--cor-fundo));
  margin-inline: calc(-1 * var(--esp-md));
  padding: var(--esp-lg) var(--esp-md);
  border-radius: var(--raio-card);
}

.secao-titulo {
  font-family: var(--fonte-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--esp-md);
  text-align: center;
}

.secao-titulo::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  margin: 0.55rem auto 0;
  background: var(--cor-primaria);
  border-radius: 2px;
  opacity: 0.7;
}

/* 3. SERVIÇOS */
.servicos { display: grid; gap: var(--esp-md); }

.servico-card {
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card);
  overflow: hidden;
  box-shadow: 0 10px 26px -18px color-mix(in srgb, var(--cor-texto) 45%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.servico-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--cor-texto) 45%, transparent);
}

.servico-foto {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.servico-info { padding: var(--esp-md); }

.servico-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--esp-sm);
}

.servico-nome { font-family: var(--fonte-display); font-size: 1.12rem; }

.servico-preco {
  color: var(--cor-primaria);
  font-weight: 700;
  white-space: nowrap;
  background: color-mix(in srgb, var(--cor-primaria) 10%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.9rem;
}

.servico-resultado {
  color: var(--cor-texto-suave);
  font-size: 0.92rem;
  margin-top: var(--esp-xs);
}

/* 4. GALERIA ANTES/DEPOIS */
.galeria { display: grid; gap: var(--esp-md); }

.galeria-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--esp-xs);
}

.galeria-item { position: relative; }

.galeria-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--raio-foto);
  display: block;
}

.galeria-chip {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: color-mix(in srgb, var(--cor-texto) 55%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.galeria-chip-depois { background: var(--cor-primaria); }

.galeria-legenda {
  text-align: center;
  color: var(--cor-texto-suave);
  font-size: 0.88rem;
  margin-top: var(--esp-xs);
}

/* 5. DEPOIMENTOS */
.depoimentos { display: grid; gap: var(--esp-md); }

.depoimento {
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card);
  padding: var(--esp-md);
  position: relative;
  box-shadow: 0 10px 26px -20px color-mix(in srgb, var(--cor-texto) 45%, transparent);
}

.depoimento::before {
  content: '“';
  font-family: var(--fonte-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--cor-primaria);
  opacity: 0.5;
  display: block;
  margin-bottom: -0.9rem;
}

.depoimento-texto { font-size: 0.98rem; }

.depoimento-nome {
  display: block;
  margin-top: var(--esp-sm);
  color: var(--cor-primaria);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

/* 6. LOCALIZAÇÃO / HORÁRIOS */
.local-card {
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-card);
  padding: var(--esp-md);
  text-align: center;
  box-shadow: 0 10px 26px -20px color-mix(in srgb, var(--cor-texto) 45%, transparent);
}

.local-endereco { font-weight: 600; }

.local-horarios {
  list-style: none;
  color: var(--cor-texto-suave);
  font-size: 0.95rem;
  margin: var(--esp-sm) 0 var(--esp-md);
}

/* 7. FECHO */
.fecho { margin-top: var(--esp-xl); text-align: center; }

.fecho-frase {
  font-family: var(--fonte-display);
  font-size: 1.15rem;
  color: var(--cor-texto);
  margin-bottom: 0.25rem;
}

/* BOTÕES SECUNDÁRIOS */
.botao-secundario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem var(--esp-md);
  border: 1.5px solid var(--cor-primaria);
  border-radius: var(--raio-botao);
  color: var(--cor-primaria);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease;
}

.botao-secundario:hover { background: color-mix(in srgb, var(--cor-primaria) 8%, transparent); }

.botao-instagram { margin-top: var(--esp-lg); }

/* 8. RODAPÉ */
.rodape {
  margin-top: var(--esp-xl);
  text-align: center;
  font-size: 0.8rem;
  color: var(--cor-texto-suave);
}

.rodape a { color: var(--cor-texto-suave); }

/* DESKTOP (adaptação) */
@media (min-width: 720px) {
  .pagina { max-width: 560px; }
  .hero { border-radius: 0 0 var(--raio-card) var(--raio-card); overflow: hidden; }
  .hero-nome { font-size: 2.3rem; }
  .servicos { grid-template-columns: 1fr 1fr; }
}
