/* yas.homeclub: mobile-first, coluna única de no máximo 480px */

:root {
  --bege: #F3EEE7;
  --bege-lateral: #EAE2D7;
  /* paleta oficial (página de referência): greige, taupe, nogueira */
  --areia: #E7E3DC;
  --madeira: #907967;
  --marrom: #654430;
  --marrom-escuro: #54382C;
  --linha: #D6CDC0; /* linhas finas: areia um tom abaixo, visível no bege e no greige */
  --texto: #2B2420;
  --texto-suave: #5E5048;
  --branco: #FFFFFF;
  --tarja: rgba(84, 58, 44, .86);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --coluna: 480px;
  --lateral: 24px;
  --raio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bege-lateral);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--madeira);
  outline-offset: 3px;
}

.pagina {
  max-width: var(--coluna);
  margin: 0 auto;
  background: var(--bege);
  overflow-x: hidden;
}

/* ---------- Títulos no padrão da marca ---------- */

.titulo {
  font-family: var(--serif);
  color: var(--texto);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.titulo__base {
  display: block;
  font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  line-height: 1.12;
}

.titulo__destaque {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 9.6vw, 2.75rem);
  line-height: 1.08;
  margin-top: .1em;
}

.titulo--claro { color: var(--branco); }

h1.titulo .titulo__base { font-size: clamp(2rem, 9.4vw, 2.6rem); }
h1.titulo .titulo__destaque { font-size: clamp(2.4rem, 11.2vw, 3.1rem); }

/* ---------- Elementos da marca ---------- */

.tarja {
  display: inline-block;
  background: var(--tarja);
  color: var(--branco);
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .06em;
  padding: .45em .9em;
  margin-bottom: 18px;
}

.marca-dagua {
  position: absolute;
  top: 22px;
  right: var(--lateral);
  font-family: var(--sans);
  font-weight: 300;
  font-style: italic;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--marrom);
  opacity: .32;
  pointer-events: none;
  user-select: none;
}

.marca-dagua--clara { color: var(--branco); opacity: .55; z-index: 2; }

/* ---------- Botão ---------- */

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  background: var(--marrom);
  color: var(--branco);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 0;
  border-radius: var(--raio);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, transform .1s ease;
}

.botao:hover { background: var(--marrom-escuro); }
.botao:active { transform: scale(.985); }

.botao:focus-visible {
  outline: 3px solid var(--branco);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--marrom);
}

.nota {
  font-size: .8125rem;
  color: var(--texto-suave);
  text-align: center;
  margin-top: 12px;
}

.nota--clara { color: rgba(255, 255, 255, .9); }

/* ---------- Seções com foto de fundo ---------- */

.foto-fundo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--areia);
}

.foto-fundo__img,
.foto-fundo > .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay para garantir contraste do texto branco */
.foto-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(43, 36, 32, .10) 0%,
    rgba(43, 36, 32, .45) 45%,
    rgba(43, 36, 32, .78) 100%);
  pointer-events: none;
}

.foto-fundo__conteudo {
  position: relative;
  z-index: 1;
  padding: 32px var(--lateral) 32px;
}

/* ---------- Hero: foto na tela inteira, texto embaixo ---------- */

.hero {
  /* Enquadramento da foto. As fotos verticais são mais largas que a tela do celular,
     então o corte vertical vem do zoom: a foto cresce ancorada embaixo e o excesso
     sai por cima. Mais zoom = rosto mais alto na tela. --hero-foco acerta o lado. */
  --hero-zoom: 120%;
  --hero-altura-min: 880px; /* em telas baixas a foto cresce até aqui, para o rosto não ficar atrás do texto */
  --hero-foco: center 30%;

  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--marrom-escuro);
}

.hero__foto {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: max(var(--hero-zoom), var(--hero-altura-min));
  object-fit: cover;
  object-position: var(--hero-foco);
}

/* foto reserva (cozinha), se img/yasmin-hero.jpg faltar: mais bancada, menos parede */
.hero__foto--reserva {
  height: 125%;
  object-position: center 70%;
}

/* gradiente do topo: dá leitura ao logo e termina acima da cabeça (22%) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(30, 20, 14, .45) 0%, rgba(30, 20, 14, 0) 22%);
  pointer-events: none;
}

/* gradiente de baixo: transparente até 50%, escurece rápido sob o texto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(30, 20, 14, 0) 50%,
    rgba(30, 20, 14, .45) 66%,
    rgba(30, 20, 14, .78) 100%);
  pointer-events: none;
}

.hero__logo {
  position: absolute;
  z-index: 2;
  top: calc(20px + env(safe-area-inset-top));
  left: var(--lateral);
  width: auto;
  height: 62px;
  filter: brightness(0) invert(1);
}

.hero__conteudo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--lateral) 36px;
}

.hero__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 9.6vw, 36px);
  line-height: 1.05;
  color: var(--branco);
  hyphens: none;
}

/* três linhas fixas; o itálico do meio é o destaque. As duas medidas usam a mesma
   proporção (36/46), então encolhem juntas em telas estreitas */
.hero__titulo > * { display: block; white-space: nowrap; }
.hero__titulo em { font-style: italic; font-size: clamp(35.8px, 12.27vw, 46px); }

.hero__texto {
  margin: 20px 0 26px;
  font-size: 1rem;
  text-wrap: balance;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  max-width: 34ch;
}

.hero__nota {
  margin-top: 12px;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .75);
}

/* botões em pílula com ícone do WhatsApp */

.botao-creme,
.botao-fixo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, transform .1s ease;
}

.botao-creme { background: var(--bege); color: var(--marrom-escuro); }
.botao-creme:hover { background: var(--branco); }

.botao-fixo {
  width: 100%;
  background: var(--marrom-escuro);
  color: var(--bege);
}

.botao-fixo:hover { background: #462E24; }

.botao-creme:active,
.botao-fixo:active { transform: scale(.985); }

.botao-creme:focus-visible,
.botao-fixo:focus-visible {
  outline: 3px solid var(--branco);
  outline-offset: 3px;
}

.icone-wpp { width: 22px; height: 22px; flex-shrink: 0; }

.final {
  min-height: 82vh;
  min-height: 82svh;
}

.final .titulo { margin-bottom: 28px; }

/* ---------- Seções comuns ---------- */

.secao {
  position: relative;
  padding: 72px var(--lateral);
}

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

.secao__texto {
  margin-top: 16px;
  color: var(--texto-suave);
}

/* listas numeradas (critérios): sem caixas, só linhas finas */

.lista-num { margin-top: 28px; }

.lista-num li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--linha);
}

.lista-num li:last-child { border-bottom: 1px solid var(--linha); }

.lista-num__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.25rem;
  line-height: .9;
  color: var(--madeira);
  min-width: 48px;
}

.lista-num h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
}

/* assinatura de quem escolhe, no fim dos critérios */

.assinatura {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 32px 0 0;
}

.assinatura__foto {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  background: var(--bege);
}

.assinatura__fala {
  font-weight: 300;
  line-height: 1.55;
}

.assinatura__nome {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--marrom);
}

.nota--esq { text-align: left; margin-top: 16px; }

/* carrosséis (seleção e prints) */

.carrossel {
  display: flex;
  gap: 14px;
  margin: 28px calc(var(--lateral) * -1) 0;
  padding: 0 var(--lateral) 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--lateral);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.carrossel::-webkit-scrollbar { display: none; }
.carrossel.arrastando { cursor: grabbing; scroll-snap-type: none; }
.carrossel.arrastando * { pointer-events: none; }

.carrossel > * {
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
}

.carrossel--prints > * {
  flex: 0 0 74%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: var(--raio);
  background: var(--areia);
}

.carrossel--pecas > * { flex: 0 0 70%; }

.dica {
  margin-top: 14px;
  font-size: .8125rem;
  font-weight: 300;
  font-style: italic;
  color: var(--texto-suave);
}

/* card da seleção */

.peca__foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--raio);
  background: var(--areia);
}

.peca__nome {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.35;
  margin-top: 12px;
}

.peca__preco {
  font-weight: 500;
  font-size: 1rem;
  color: var(--marrom);
  margin-top: 2px;
}

.peca__nota {
  font-style: italic;
  font-weight: 400;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--texto-suave);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--linha);
}

/* passos na chamada final */

.passos-linha {
  margin-bottom: 16px;
  font-size: .875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

/* madeira clareada: a madeira da paleta some sobre a foto escura */
.passos-linha span { color: #D2B49A; }

/* ---------- Rodapé ---------- */

.rodape {
  padding: 28px var(--lateral) calc(28px + env(safe-area-inset-bottom));
  font-size: .875rem;
  color: var(--texto-suave);
}

.rodape__afiliado {
  font-size: .8125rem;
  line-height: 1.5;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--linha);
}

.rodape__linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rodape a {
  color: var(--marrom);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}

.rodape a:hover { text-decoration: underline; }

/* ---------- Botão fixo ---------- */

.fixo {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: var(--coluna);
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  transform: translate(-50%, 130%);
  transition: transform .3s ease;
}

.fixo.visivel { transform: translate(-50%, 0); }

.fixo .botao-fixo { box-shadow: 0 6px 18px rgba(30, 20, 14, .18); }

/* ---------- Placeholder de imagem que falta ---------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--areia);
  border: 1px dashed var(--madeira);
  color: var(--marrom);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  word-break: break-all;
}

.foto-fundo > .placeholder { align-items: flex-start; padding-top: 28px; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .fixo, .botao { transition: none; }
}
