/* Estilos por seção, na ordem da página. */

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 58rem);
  display: grid;
  align-items: end;
  padding-block: calc(var(--header-space) + clamp(2rem, 8vh, 5rem)) 0;
  isolation: isolate;
  z-index: 1; /* os selos atravessam a divisa e ficam por cima da seção seguinte */
}
/* Vídeo da transformação, sempre emoldurado e sem texto por cima.
   Celular/tablet: abaixo do botão, centralizado. Desktop: painel à direita (colunas 8–12).
   Moldura dupla fina: borda dourada + segunda linha suave 12px para fora (passe-partout);
   a margem recua o vídeo para que a linha externa encoste na borda do grid. */
.hero__video {
  --frame-gap: 12px;
  position: relative;
  order: 2;
  justify-self: center;
  width: calc(100% - 2 * var(--frame-gap));
  max-width: 26rem;
  margin: var(--frame-gap);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-black) url('../video/hero-poster.jpg') center / cover no-repeat;
  border: 1px solid rgb(226 170 94 / 0.7);
  border-radius: 10px;
  outline: 1px solid rgb(201 144 74 / 0.35);
  outline-offset: calc(var(--frame-gap) - 1px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}
.hero__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(26 26 26 / 0.35) 0%, transparent 35%);
  pointer-events: none;
}
.hero__text { order: 1; }
.hero__proofs { order: 3; }

.hero__content { row-gap: 1.5rem; }
.hero__text { display: grid; row-gap: 1.5rem; align-content: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.7vw, 3.4rem); color: #fff; }
.hero__lead {
  font-size: var(--t-lead);
  color: var(--c-on-dark);
}
.hero__lead { max-width: 34rem; }
@media (min-width: 37.5rem) {
  .hero__content > .hero__text { grid-column: 1 / span 7; }
}
@media (min-width: 64rem) {
  .hero__content > .hero__video {
    grid-column: 8 / span 5;
    grid-row: 1;
    justify-self: end;
    max-width: none;
    max-height: calc(100svh - var(--header-space) - 12rem);
  }
  .hero__content > .hero__text { grid-column: 1 / span 7; grid-row: 1; padding-right: var(--grid-gap); }
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* Selos: três cartões de vidro escuro que atravessam a divisa entre o hero e a seção seguinte.
   No desktop cada um ocupa 4 das 12 colunas (3 colunas iguais com o mesmo espaço do grid). */
.hero__proofs {
  --proof-overlap: 3.25rem; /* quanto os cartões descem para dentro da seção seguinte */
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(2rem, 6vh, 4rem);
  margin-bottom: calc(-1 * var(--proof-overlap));
}
.hero__proofs li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  padding: 1.25rem 0.5rem;
  text-align: center;
  background: rgb(26 26 26 / 0.86);
  border: 1px solid rgb(201 144 74 / 0.35);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.proof__icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.25rem;
  fill: none;
  stroke: var(--c-gold-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__proofs strong {
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 0.8rem + 1.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-gold-light);
}
.hero__proofs span { font-size: clamp(0.6875rem, 0.62rem + 0.3vw, 0.8125rem); line-height: 1.35; color: var(--c-on-dark); }

/* A seção seguinte ganha espaço extra no topo para os cartões. */
.hero + .section { padding-top: calc(var(--section-y) + var(--proof-overlap, 3.25rem)); }

@media (max-width: 37.4375rem) {
  /* celular: botões na largura do texto, um embaixo do outro, alinhados à esquerda */
  .hero__ctas { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 37.5rem) {
  .hero__proofs li { padding: 1.75rem 1rem; }
  .proof__icon { width: 2rem; height: 2rem; }
}
@media (min-width: 64rem) {
  .hero__proofs { --proof-overlap: 4.25rem; }
  .hero + .section { padding-top: calc(var(--section-y) + 4.25rem); }
}

/* ---------- Desejo ---------- */
.desejo__intro {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.desejo__intro h2 { max-width: 18ch; }
.desejo__intro p { margin-inline: auto; }
.desejo__sub {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-gold-dark);
  margin-bottom: 0.75rem;
}
.desejo__body { color: var(--c-ink-muted); }

/* Carrossel de resultados: fotos verticais 3:4, mesmo acabamento dos cartões de depoimento. */
.results { min-width: 0; }
.result {
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgb(201 144 74 / 0.6);
  border-radius: 14px;
  background: var(--c-warm-white);
}
.result img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tipos de piso (guia de escolha) ---------- */
/* Mesmo creme dos resultados logo acima: um espaçamento só entre as duas, não dois somados. */
.desejo + .tipos { padding-top: 0; }
.tipos h2 { text-align: center; }
.tipos__intro { margin: 1rem auto 0; text-align: center; color: var(--c-ink-muted); }

/* Seletores: pílulas lado a lado, a escolhida em preto com texto dourado. */
.tipos__picker {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.tipos__picker::-webkit-scrollbar { display: none; }
.tipos__picker [role='tab'] {
  flex: none;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgb(138 90 34 / 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--c-black);
  font: 600 0.9375rem var(--f-body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tipos__picker [role='tab']:hover { border-color: var(--c-gold-dark); }
.tipos__picker [role='tab'][aria-selected='true'] { background: var(--c-black); border-color: var(--c-black); color: var(--c-gold-light); }

/* Painel: foto 4:5 com moldura dupla + conteúdo. Sem JS, os três aparecem empilhados. */
.tipo { row-gap: 1.75rem; align-items: center; touch-action: pan-y; }
.tipo + .tipo { margin-top: 3rem; } /* só sem JavaScript, com os três empilhados */
.tipos.is-tabs .tipo + .tipo { margin-top: 0; }
.tipo[hidden] { display: none; }
.tipo:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 6px; }
.tipo__media {
  --frame-gap: 12px;
  width: calc(100% - 2 * var(--frame-gap));
  max-width: 26rem;
  margin: var(--frame-gap) auto;
  border: 1px solid rgb(201 144 74 / 0.7);
  border-radius: 10px;
  outline: 1px solid rgb(201 144 74 / 0.35);
  outline-offset: calc(var(--frame-gap) - 1px);
}
.tipo__body { display: grid; gap: 1rem; justify-items: start; }
.tipo__body h3 { font-family: var(--f-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 500; line-height: 1.1; }
.tipo__lead { font-size: var(--t-lead); color: var(--c-gold-dark); font-weight: 500; }
.tipo__label { margin-top: 0.5rem; font-size: var(--t-small); font-weight: 600; color: var(--c-ink-muted); }
.tipo__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: -0.5rem; }
.tipo__tags li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--c-cream);
  border: 1px solid rgb(138 90 34 / 0.25);
  font-size: var(--t-small);
  font-weight: 500;
}
.tipo__ratings { display: grid; gap: 0.85rem; width: 100%; max-width: 26rem; margin: 0.5rem 0 0; }
.tipo__ratings > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.tipo__ratings dt { font-size: 0.9375rem; font-weight: 500; }
.tipo__ratings dd { margin: 0; }
/* Barra de 5 segmentos: dourado até o valor (--v), cinza-creme depois. */
.meter {
  display: block;
  width: 9.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), var(--c-warm-white) calc(20% - 3px) 20%),
    linear-gradient(90deg, var(--c-gold) 0 calc(var(--v) * 20%), rgb(138 90 34 / 0.18) calc(var(--v) * 20%) 100%);
}
.tipo__note { font-size: 0.9375rem; color: var(--c-ink-muted); }
.tipo__note strong { color: var(--c-black); }
.tipo__cta { margin-top: 0.5rem; }
@media (max-width: 37.4375rem) {
  /* celular: os três seletores dividem a largura, sem rolar para o lado */
  .tipos__picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; overflow: visible; }
  .tipos__picker [role='tab'] { padding: 0.5rem 0.35rem; font-size: 0.8125rem; line-height: 1.2; }
}
@media (min-width: 64rem) {
  .tipo > .tipo__media { grid-column: 1 / span 5; max-width: none; } /* a linha externa da moldura encosta na borda do grid */
  .tipo > .tipo__body { grid-column: 7 / span 6; }
}

/* ---------- Diferenciais ---------- */
.diferenciais h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); text-align: center; }
/* Cada diferencial numa caixa — mesmo acabamento dos cartões de depoimento. */
.diffs { display: grid; gap: var(--grid-gap); }
.diff {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--c-black-soft);
  border: 1px solid rgb(201 144 74 / 0.35);
  border-radius: 14px;
}
.diff__icon {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border: 1.5px solid rgb(201 144 74 / 0.7);
  border-radius: 50%;
  fill: none;
  stroke: var(--c-gold-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diff h3 { color: #fff; font-size: 1.1875rem; }
.diff p { color: var(--c-on-dark-muted); }
@media (min-width: 37.5rem) {
  .diffs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .diff { padding: 2.25rem; }
}

/* ---------- Depoimentos ---------- */
.depoimentos h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); text-align: center; }
/* Carrossel genérico (trilho, setas, indicadores) + cartão de depoimento no estilo do vídeo do hero. */
.reviews { min-width: 0; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: var(--grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* respiro para o anel de foco do teclado */
  padding-block: 0.25rem;
  margin-block: -0.25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }
.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: rgb(26 26 26 / 0.94);
  border: 1px solid rgb(201 144 74 / 0.6);
  border-radius: 14px;
  color: var(--c-on-dark);
}
.review__head { display: flex; align-items: center; gap: 0.85rem; }
.review__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--c-black-soft);
  border: 1.5px solid var(--c-gold);
  color: var(--c-gold-light);
  font-weight: 700;
  font-size: 1.125rem;
}
.review figcaption { display: grid; min-width: 0; }
.review__name { font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.review__meta { font-size: var(--t-small); color: var(--c-on-dark-muted); }
.review__text { flex: 1; font-size: 1.0625rem; font-weight: 500; line-height: 1.55; color: var(--c-on-dark); }
.review__stars { display: flex; gap: 0.2rem; }
.review__stars svg { width: 1.125rem; height: 1.125rem; fill: var(--c-gold-light); }
.review__likes { display: flex; align-items: center; gap: 0.45rem; font-size: var(--t-small); font-weight: 600; color: var(--c-on-dark-muted); }
.review__likes svg { width: 1.125rem; height: 1.125rem; fill: var(--c-gold-light); }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.carousel__controls[hidden] { display: none; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--c-gold-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--c-black);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.carousel__btn:hover { background: var(--c-gold); border-color: var(--c-gold); }
.carousel__btn svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__dots { display: flex; align-items: center; gap: 0.25rem; }
.carousel__dots button {
  width: 1.25rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  transition: width 0.25s var(--ease);
}
.carousel__dots button::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgb(138 90 34 / 0.35);
}
.carousel__dots button[aria-current='true'] { width: 2.25rem; }
.carousel__dots button[aria-current='true']::before { background: var(--c-gold-dark); }
@media (max-width: 37.4375rem) {
  .carousel__dots { display: none; } /* no celular, as setas e o deslizar bastam */
}
@media (min-width: 37.5rem) {
  .carousel__track { grid-auto-columns: calc((100% - var(--grid-gap)) / 2); }
}
@media (min-width: 64rem) {
  .carousel__track { grid-auto-columns: calc((100% - 2 * var(--grid-gap)) / 3); }
  .review { padding: 1.75rem 1.75rem 1.5rem; }
}
.depoimentos__proof {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
}
.depoimentos__highlight { display: block; margin-top: 0.2em; color: var(--c-gold-dark); }
.depoimentos__cta { justify-self: center; margin-top: 1.75rem; }

/* ---------- Objeção de preço ---------- */
.preco__grid { row-gap: 2rem; align-items: start; }
.preco h2 { color: #fff; }
.preco__text { display: grid; gap: 1.1rem; font-size: 1.0625rem; }
.preco__text p { color: var(--c-on-dark); }
.preco__closing {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(201 144 74 / 0.45);
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}
.preco__text .preco__closing { color: var(--c-gold-light); }
@media (min-width: 64rem) {
  .preco__grid > h2 { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-space) + 1rem); }
  .preco__grid > .preco__text { grid-column: 7 / span 6; }
}

/* ---------- Perguntas frequentes ---------- */
.faq__grid { row-gap: 2rem; align-items: start; }
.faq__list { border-top: 1px solid rgb(26 26 26 / 0.15); }
.faq details { border-bottom: 1px solid rgb(26 26 26 / 0.15); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(var(--c-gold-dark), var(--c-gold-dark)) center / 100% 2px no-repeat,
    linear-gradient(var(--c-gold-dark), var(--c-gold-dark)) center / 2px 100% no-repeat;
  transition: rotate 0.2s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 1.5rem; color: var(--c-ink-muted); }
@media (min-width: 64rem) {
  .faq__grid > h2 { grid-column: 1 / span 5; }
  .faq__grid > .faq__list { grid-column: 7 / span 6; }
}

/* ---------- CTA final ---------- */
.cta-final__inner { row-gap: 1.25rem; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: var(--c-on-dark); font-size: var(--t-lead); }
.cta-final__btn { justify-self: center; margin-top: 0.75rem; min-height: 3.5rem; padding-inline: 2.25rem; font-size: 1rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--c-warm-white); color: var(--c-black); font-size: 0.9375rem; }
.site-footer__inner {
  row-gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}
.site-footer__logo { width: 5rem; margin-bottom: 1rem; }
.site-footer__title { font-weight: 600; margin-bottom: 0.5rem; }
.site-footer__cities { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--c-ink-muted); }
.site-footer__contact { display: grid; gap: 0.35rem; align-content: start; }
.site-footer__contact .site-footer__title { margin-bottom: 0.15rem; }
.site-footer a { text-underline-offset: 3px; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem 5.5rem;
  border-top: 1px solid rgb(26 26 26 / 0.1);
  font-size: var(--t-small);
  color: var(--c-ink-muted);
}
@media (min-width: 37.5rem) {
  .site-footer__inner > .site-footer__area { grid-column: 1 / span 4; }
  .site-footer__inner > .site-footer__contact { grid-column: 5 / span 4; }
}
@media (min-width: 64rem) {
  .site-footer__inner > .site-footer__brand { grid-column: 1 / span 4; }
  .site-footer__inner > .site-footer__area { grid-column: 5 / span 4; }
  .site-footer__inner > .site-footer__contact { grid-column: 9 / span 4; }
  .site-footer__legal { padding-bottom: 1.5rem; }
}

/* ---------- Política de privacidade ---------- */
.legal { padding-top: calc(var(--header-space) + var(--section-y)); }
@media (min-width: 37.5rem) {
  .legal__inner > * { grid-column: 2 / span 6; }
}
@media (min-width: 64rem) {
  .legal__inner > * { grid-column: 3 / span 8; }
}
.legal h1 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.75rem; margin: 2.25rem 0 0.6rem; }
.legal p + p { margin-top: 0.75rem; }
