/* J Beauty — biomedicina estética, Paraíso SP
   Paleta: tinta-ameixa, porcelana, rosa-pó, rosewood.
   Tipos: Bodoni Moda (display) + Figtree (texto). */

:root {
  --tinta: #2a151d;
  --tinta-suave: #3b222b;
  --porcelana: #fbf7f4;
  --po: #f3e4de;
  --rosewood: #9e4f58;
  --rosewood-escuro: #7c3b45;
  --grafite: #4a3a40;
  --neblina: #8a7379;
  --ouro: #c99a63;
  --raio: 16px;
  --display: "Fraunces", Georgia, serif;
  --texto: "Figtree", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--texto);
  font-weight: 300;
  color: var(--grafite);
  background: var(--porcelana);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.14; color: var(--tinta); font-variation-settings: "opsz" 40; }

h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 21ch; }

:focus-visible { outline: 2px solid var(--rosewood); outline-offset: 3px; border-radius: 2px; }

/* ---------- utilitários ---------- */

.rotulo {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rosewood);
  margin-bottom: 0.9rem;
}

.botao {
  display: inline-block;
  font-family: var(--texto);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.botao:hover { transform: translateY(-2px); }
.botao--grande { padding: 1rem 2.2rem; font-size: 1.02rem; }
.botao--rosewood { background: var(--rosewood); color: #fff; box-shadow: 0 10px 28px rgba(158, 79, 88, 0.35); }
.botao--rosewood:hover { background: var(--rosewood-escuro); }
.botao--claro { background: var(--porcelana); color: var(--tinta); }
.botao--claro:hover { background: #fff; }

.estrelas { color: var(--ouro); letter-spacing: 0.18em; font-size: 0.9rem; }

/* ---------- topo ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(251, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 21, 29, 0.08);
}

.topo__marca {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.32em;
  text-decoration: none;
  color: var(--tinta);
}

.topo__nav { display: flex; gap: 1.4rem; }
.topo__nav a {
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--grafite);
}
.topo__nav a:hover { color: var(--rosewood); }

.topo__acoes { display: flex; align-items: center; gap: 1.1rem; }
.topo__fone { font-size: 0.88rem; font-weight: 500; text-decoration: none; color: var(--tinta); }
.topo__fone:hover { color: var(--rosewood); }
.topo .botao--claro { background: var(--tinta); color: var(--porcelana); font-size: 0.85rem; padding: 0.65rem 1.3rem; }
.topo .botao--claro:hover { background: var(--tinta-suave); }

/* ---------- herói ---------- */

.heroi {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  background: var(--tinta);
  color: var(--porcelana);
  overflow: hidden;
}

.heroi__texto {
  align-self: center;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem) clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 5vw, 5rem);
}

.heroi__rotulo { color: var(--ouro); }

.heroi__titulo {
  color: var(--porcelana);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  max-width: 14ch;
}
.heroi__titulo em {
  font-style: italic;
  font-weight: 400;
  color: #ecc9c4;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.traco {
  position: absolute;
  left: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.32em;
  color: var(--rosewood);
  overflow: visible;
}
.traco path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: tracar 1.1s cubic-bezier(0.6, 0, 0.3, 1) 0.9s forwards;
}
@keyframes tracar { to { stroke-dashoffset: 0; } }

.heroi__sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.06rem;
  color: rgba(251, 247, 244, 0.82);
}

.heroi__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.2rem; }
.heroi__tel { font-size: 0.95rem; color: rgba(251, 247, 244, 0.85); text-decoration-color: rgba(251, 247, 244, 0.4); }
.heroi__tel:hover { color: #fff; }

.heroi__prova { margin-top: 2.4rem; font-size: 0.95rem; color: rgba(251, 247, 244, 0.85); display: flex; align-items: center; gap: 0.7rem; }
.heroi__prova strong { color: var(--porcelana); font-weight: 600; }

.heroi__foto {
  margin: 0;
  position: relative;
  min-height: 100%;
}
.heroi__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.97);
}
/* funde a foto ao fundo: ela nasce da tinta em vez de terminar numa aresta */
.heroi__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--tinta) 0%, rgba(42, 21, 29, 0.55) 18%, rgba(42, 21, 29, 0) 52%),
    linear-gradient(to top, rgba(42, 21, 29, 0.5) 0%, rgba(42, 21, 29, 0) 30%),
    linear-gradient(to bottom, rgba(42, 21, 29, 0.35) 0%, rgba(42, 21, 29, 0) 18%);
}

/* entrada orquestrada do herói */
.heroi__texto > * { opacity: 0; transform: translateY(18px); animation: subir 0.7s ease forwards; }
.heroi__texto > *:nth-child(1) { animation-delay: 0.05s; }
.heroi__texto > *:nth-child(2) { animation-delay: 0.15s; }
.heroi__texto > *:nth-child(3) { animation-delay: 0.3s; }
.heroi__texto > *:nth-child(4) { animation-delay: 0.45s; }
.heroi__texto > *:nth-child(5) { animation-delay: 0.6s; }
.heroi__foto { opacity: 0; transform: translateY(26px); animation: subir 0.9s ease 0.35s forwards; }
@keyframes subir { to { opacity: 1; transform: none; } }

/* ---------- faixa de provas ---------- */

.faixa {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem clamp(2rem, 6vw, 5rem);
  padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
  background: var(--po);
  color: var(--tinta);
  font-size: 0.92rem;
  text-align: center;
}
.faixa strong { font-weight: 600; }

/* ---------- seções ---------- */

.secao { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 5rem); }
.secao__cabeca { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.secao--po { background: var(--po); }

.secao--tinta { background: var(--tinta); }
.secao--tinta h2, .secao--tinta h3 { color: var(--porcelana); }
.secao--tinta .rotulo { color: var(--ouro); }

/* ---------- serviços ---------- */

.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}

.cartao {
  background: #fff;
  border: 1px solid rgba(42, 21, 29, 0.07);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cartao__foto { overflow: hidden; border-radius: var(--raio); margin-bottom: 0.5rem; }
.cartao__foto img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform 0.6s ease; }
.cartao:hover .cartao__foto img { transform: scale(1.04); }
.cartao h3 { font-size: 1.45rem; }
.cartao p { font-size: 0.95rem; }

.cartao--tinta { background: var(--tinta); border: none; justify-content: center; gap: 1rem; padding: 2rem 1.6rem; }
.cartao--tinta h3 { color: var(--porcelana); font-size: 1.6rem; }
.cartao--tinta p { color: rgba(251, 247, 244, 0.82); }
.cartao__link { color: #ecc9c4; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.cartao__link:hover { color: #fff; }

/* ---------- a doutora ---------- */

.doutora {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.doutora__foto { width: min(100%, 400px); margin: 0 auto; }
.doutora__foto img { border-radius: var(--raio); box-shadow: 0 24px 50px rgba(42, 21, 29, 0.18); }
.doutora__texto h2 { margin-bottom: 1.2rem; }
.doutora__texto p + p { margin-top: 1rem; }
.doutora__texto p { max-width: 56ch; }

.doutora__selos { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.doutora__selos li {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border: 1px solid var(--rosewood);
  border-radius: 999px;
  color: var(--rosewood-escuro);
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- passos ---------- */

.passos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: passo;
}
.passos li { counter-increment: passo; border-top: 2px solid var(--po); padding-top: 1.2rem; position: relative; }
.passos li::before {
  content: counter(passo);
  font-family: var(--display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--rosewood);
  display: block;
  margin-bottom: 0.4rem;
}
.passos h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.passos p { font-size: 0.95rem; max-width: 34ch; }

/* ---------- galeria ---------- */

.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 245px);
  grid-auto-flow: dense;
  gap: 1rem;
}
.galeria figure { margin: 0; overflow: hidden; border-radius: 14px; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.galeria figure:hover img { transform: scale(1.03); }
.g-alto { grid-row: span 2; }
.g-grande { grid-column: span 2; grid-row: span 2; }
.g-largo { grid-column: span 2; }
.g-olho img { object-position: 50% 32%; }

.galeria__mais {
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(251, 247, 244, 0.3);
  border-radius: 14px;
  color: var(--porcelana);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.galeria__mais strong { font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.galeria__mais:hover { border-color: #ecc9c4; background: rgba(251, 247, 244, 0.06); }

.galeria__nota { margin-top: 1.6rem; font-size: 0.85rem; color: rgba(251, 247, 244, 0.6); }
.galeria__nota a { color: rgba(251, 247, 244, 0.85); }

/* ---------- avaliações ---------- */

.resenhas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.resenha {
  background: #fff;
  border: 1px solid rgba(42, 21, 29, 0.07);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.resenha p:not(.estrelas) { font-size: 0.97rem; }
.resenha footer { font-weight: 600; font-size: 0.85rem; color: var(--tinta); letter-spacing: 0.02em; }
.resenha footer::before { content: "— "; color: var(--rosewood); }

.resenhas__link { margin-top: 2rem; }
.resenhas__link a { font-weight: 500; color: var(--rosewood-escuro); text-decoration-color: rgba(158, 79, 88, 0.4); }
.resenhas__link a:hover { color: var(--rosewood); }

/* ---------- faq ---------- */

#faq .secao__cabeca { text-align: center; }
#faq .secao__cabeca h2 { margin-inline: auto; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(42, 21, 29, 0.14); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--tinta);
  padding: 1.1rem 2.2rem 1.1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--texto);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--rosewood);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; max-width: 62ch; font-size: 0.97rem; }

/* ---------- cta final ---------- */

.final {
  background: linear-gradient(160deg, var(--tinta) 0%, #46232e 100%);
  color: var(--porcelana);
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 5rem);
}
.final h2 { color: var(--porcelana); margin: 0 auto 1rem; }
.final p { max-width: 44ch; margin: 0 auto; color: rgba(251, 247, 244, 0.82); }
.final__ctas { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; }
.final__tel { font-size: 1.05rem; font-weight: 500; color: var(--porcelana); text-decoration-color: rgba(251, 247, 244, 0.4); }

/* ---------- rodapé ---------- */

.rodape { background: #1e0f15; color: rgba(251, 247, 244, 0.75); padding: 3rem clamp(1.2rem, 5vw, 5rem) 2rem; font-size: 0.9rem; }
.rodape a { color: rgba(251, 247, 244, 0.85); text-decoration-color: rgba(251, 247, 244, 0.3); }
.rodape a:hover { color: #fff; }
.rodape__colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.rodape__marca { font-family: var(--display); font-weight: 600; letter-spacing: 0.32em; font-size: 1.05rem; color: var(--porcelana); margin-bottom: 0.6rem; }
.rodape h3 { font-family: var(--texto); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ouro); margin-bottom: 0.6rem; }
.rodape__nota { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(251, 247, 244, 0.12); font-size: 0.8rem; color: rgba(251, 247, 244, 0.45); }

/* ---------- botão flutuante ---------- */

.zap {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease;
}
.zap:hover { transform: scale(1.08); }
.zap svg { width: 30px; height: 30px; }

/* ---------- revelação ao rolar ---------- */

.revela { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.revela.visivel { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */

@media (max-width: 900px) {
  .topo__nav { display: none; }
  .heroi { grid-template-columns: 1fr; }
  .heroi__texto { padding-bottom: 2.8rem; }
  .heroi__foto { min-height: 0; }
  .heroi__foto img { position: static; height: auto; aspect-ratio: 4 / 5; }
  .heroi__foto::after {
    background:
      linear-gradient(to bottom, var(--tinta) 0%, rgba(42, 21, 29, 0.4) 14%, rgba(42, 21, 29, 0) 40%),
      linear-gradient(to top, rgba(42, 21, 29, 0.45) 0%, rgba(42, 21, 29, 0) 22%);
  }
  .doutora { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 30vw, 220px); }
}

@media (max-width: 560px) {
  .topo__fone { display: none; }
}

/* ---------- movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heroi__texto > *, .heroi__foto { animation: none; opacity: 1; transform: none; }
  .traco path { animation: none; stroke-dashoffset: 0; }
  .revela { opacity: 1; transform: none; transition: none; }
  .botao, .zap, .cartao__foto img, .galeria img { transition: none; }
}
