:root {
  /* === PALETA — troque as cores aqui === */
  --cor-fundo:        #F3E7DD; /* creme blush — base da logo Dani Ateliê */
  --cor-fundo-2:      #EBDDCB; /* creme um tom mais profundo (textura) */
  --cor-tinta:        #34302A; /* tinta quente (texto principal) */
  --cor-tinta-suave:  #6B6357; /* texto secundário */
  --cor-sage:         #7C8C6B; /* verde sálvia/oliva — cor de apoio */
  --cor-sage-escuro:  #5C6A4D; /* sálvia profunda */
  --cor-terracota:    #C56B43; /* terracota/argila — acento quente */
  --cor-terracota-vivo:#B25C38;/* terracota do botão — contraste AA com texto claro */
  --cor-branco-quente:#FFFBF4; /* branco creme p/ texto sobre escuro */
  --cor-traco:        #C56B43; /* cor do traço/pincelada à mão */
  --cor-borda:        #D8C9B0; /* bordas suaves */
  /* acentos extra p/ variar as peças (galeria/vitrine) */
  --cor-azul:         #5E7A8C; /* azul-petróleo */
  --cor-mostarda:     #C9962B; /* mostarda */
  --cor-vendido:      #8A8175; /* cinza p/ peça vendida */
  --whats-verde:      #25D366; /* verde do WhatsApp (só no botão flutuante) */
}

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

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

body {
  font-family: "Mulish", "Segoe UI", Helvetica, sans-serif;
  background: var(--cor-fundo);
  color: var(--cor-tinta);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Sutil textura de papel/grão sobre o creme — feita com CSS, sem imagens */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(124,140,107,0.10), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(197,107,67,0.10), transparent 38%),
    radial-gradient(circle at 75% 95%, rgba(124,140,107,0.08), transparent 45%);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.35rem 1.6rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Barra superior / wordmark ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--cor-tinta);
}
.wordmark .brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.locality {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cor-sage-escuro);
  white-space: nowrap;
}
.locality .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cor-terracota);
}

/* ---------- Corpo do hero ---------- */
.hero-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.3rem;
  padding: 1.0rem 0 0.5rem;
}

/* Mobile: give the hero text some vertical breathing room (eyebrow → headline →
   subline → CTA). Without this, the reset's margin:0 leaves them cramped on small
   screens; desktop overrides the gap below. */
.text-col { display: flex; flex-direction: column; gap: 1.15rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cor-sage-escuro);
  background: rgba(124,140,107,0.12);
  border: 1px solid rgba(124,140,107,0.30);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
.eyebrow svg { width: 14px; height: 14px; }

h1.headline {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 11.5vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cor-tinta);
  max-width: 14ch;
}
h1.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--cor-terracota);
  position: relative;
  white-space: nowrap;
}
/* Traço à mão sob a palavra-chave (SVG inline posicionado) */
.underline-word {
  position: relative;
  display: inline-block;
}
.underline-word .brush {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.34em;
  width: 104%;
  height: 0.42em;
  overflow: visible;
}
.underline-word .brush path {
  fill: none;
  stroke: var(--cor-traco);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 0.9s 0.55s cubic-bezier(0.6,0,0.2,1) forwards;
}

.subline {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--cor-tinta-suave);
  max-width: 38ch;
  font-weight: 500;
}
.subline strong { color: var(--cor-tinta); font-weight: 700; }

/* ---------- CTA ---------- */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.btn-whats {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--cor-terracota-vivo);
  color: var(--cor-branco-quente);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.55rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px -8px rgba(197,107,67,0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-whats svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-whats:hover {
  transform: translateY(-2px);
  filter: brightness(0.94);
  box-shadow: 0 16px 30px -8px rgba(178,92,56,0.55);
}
.btn-whats:active { transform: translateY(0); }
.btn-whats:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 3px; }

.cta-note {
  font-size: 0.82rem;
  color: var(--cor-tinta-suave);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cta-note svg { width: 15px; height: 15px; color: var(--cor-sage-escuro); }

/* ---------- Visual: cartela "antes → depois" em SVG ---------- */
.showcase {
  position: relative;
  margin-top: 0.4rem;
}

/* PONTO DE TROCA DA FOTO REAL — ver comentário no HTML */
.frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cor-fundo-2);
  border: 1px solid var(--cor-borda);
  box-shadow: 0 24px 50px -22px rgba(52,48,42,0.32);
  aspect-ratio: 4 / 3;
}
.frame svg.illus { display: block; width: 100%; height: 100%; }
.frame img.illus { display:block; width:100%; height:100%; object-fit:cover; }
/* before/after slider used AS the hero visual — fill the frame, drop its own chrome */
.frame .ba { position:absolute; inset:0; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none; }

.badge-transform {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cor-branco-quente);
  border: 1px solid var(--cor-borda);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cor-sage-escuro);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 16px -8px rgba(52,48,42,0.4);
}
.badge-transform .arrow { color: var(--cor-terracota); font-size: 0.9rem; line-height: 1; }

.stamp {
  position: absolute;
  right: -0.4rem;
  bottom: -0.9rem;
  background: var(--cor-sage);
  color: var(--cor-branco-quente);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 0 14px 26px -10px rgba(92,106,77,0.7);
  border: 2px dashed rgba(255,251,244,0.55);
}
.stamp span {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.15;
}

/* ---------- Animação de entrada (revelação escalonada) ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.31s; }
.d4 { animation-delay: 0.44s; }
.d5 { animation-delay: 0.57s; }
.d6 { animation-delay: 0.70s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float-stamp { 0%,100% { transform: rotate(-9deg) translateY(0);} 50% { transform: rotate(-9deg) translateY(-5px);} }
.stamp { animation: float-stamp 5s ease-in-out 1.4s infinite; }

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .hero { padding: 1.8rem 2.6rem 2.2rem; }
  .hero-body {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.2rem;
    padding-top: 1.5rem;
  }
  .text-col { display: flex; flex-direction: column; gap: 1.7rem; }
  h1.headline { font-size: clamp(3.2rem, 5vw, 4.4rem); max-width: 13ch; }
  .subline { font-size: 1.13rem; }
  .wordmark .brand-logo { height: 76px; }
  .frame { aspect-ratio: 5 / 4; }
  .stamp { width: 116px; height: 116px; }
  .stamp span { font-size: 0.96rem; }
  .cta-row { flex-direction: row; align-items: center; gap: 1.2rem; }
}

@media (min-width: 1100px) {
  h1.headline { font-size: 4.6rem; }
}

/* =========================================================
   SEÇÕES (galeria · vitrine · encomenda · rodapé · WhatsApp flutuante)
   ========================================================= */
.section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 2rem 1.35rem; }
.section-head { max-width: 44ch; margin-bottom: 1.6rem; }
.kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cor-sage-escuro); display: inline-flex; align-items: center; gap: 0.55rem;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--cor-terracota); }
.section-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: clamp(1.95rem, 7vw, 2.8rem);
  line-height: 1.08; letter-spacing: -0.01em; margin: 0.55rem 0; color: var(--cor-tinta);
}
.section-title em { font-style: italic; color: var(--cor-terracota); }
.section-intro { color: var(--cor-tinta-suave); font-size: 1.02rem; line-height: 1.6; max-width: 52ch; }

/* revelação ao rolar (progressive enhancement) */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.7,0.2,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* paletas por peça (corpo / detalhe / puxador / tampo) — trocáveis via classe */
.peca-terracota { --peca-corpo:#C56B43; --peca-detalhe:#A6502F; --peca-puxador:#7C8C6B; --peca-tampo:#B05E38; }
.peca-sage      { --peca-corpo:#7C8C6B; --peca-detalhe:#5C6A4D; --peca-puxador:#C9962B; --peca-tampo:#6E7E5C; }
.peca-azul      { --peca-corpo:#5E7A8C; --peca-detalhe:#46606F; --peca-puxador:#C9962B; --peca-tampo:#557083; }
.peca-mostarda  { --peca-corpo:#C9962B; --peca-detalhe:#A87C1F; --peca-puxador:#5C6A4D; --peca-tampo:#BE8C24; }
.peca-velha     { --peca-corpo:#9a8a72; --peca-detalhe:#6f6253; --peca-puxador:#5d5142; --peca-tampo:#8a7c66; }

/* ===================== GALERIA antes → depois ===================== */
.ba-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 720px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba {
  --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--cor-borda); background: var(--cor-fundo-2);
  box-shadow: 0 18px 40px -22px rgba(52,48,42,0.32); touch-action: pan-y; user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg { width: 100%; height: 100%; display: block; }
.ba-clip { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--cor-branco-quente); box-shadow: 0 0 0 1px rgba(52,48,42,0.18); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--cor-branco-quente);
  border: 2px solid var(--cor-terracota); color: var(--cor-terracota); display: grid; place-items: center;
  cursor: ew-resize; touch-action: none; box-shadow: 0 6px 16px -4px rgba(52,48,42,0.45);
}
.ba-knob:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 3px; }
/* only the images open the lightbox — signal it */
.ba-layer img { cursor: zoom-in; }
.ba-tag {
  position: absolute; bottom: 0.65rem; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.26rem 0.6rem; border-radius: 999px; color: #fff; pointer-events: none;
}
.ba-tag-antes  { left: 0.65rem; background: rgba(52,48,42,0.62); }
.ba-tag-depois { right: 0.65rem; background: var(--cor-terracota); }
.ba-cap { margin-top: 0.7rem; }
.ba-cap h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.08rem; color: var(--cor-tinta); }
.ba-cap p { font-size: 0.86rem; color: var(--cor-tinta-suave); margin-top: 0.15rem; }

/* ===================== VITRINE (peças à venda) ===================== */
.vitrine-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 540px) { .vitrine-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .vitrine-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--cor-branco-quente); border: 1px solid var(--cor-borda);
  border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(52,48,42,0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 42px -18px rgba(52,48,42,0.32); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: var(--cor-fundo-2); border-bottom: 1px solid var(--cor-borda); }
.card .ph svg { width: 100%; height: 100%; display: block; }
.state {
  position: absolute; top: 0.6rem; left: 0.6rem; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.state .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.disp { background: rgba(124,140,107,0.18); color: var(--cor-sage-escuro); }
.state.res  { background: rgba(201,150,43,0.20);  color: #8a6a14; }
.state.vend { background: rgba(138,129,117,0.22); color: #6b645a; }
.ribbon {
  position: absolute; top: 0.65rem; right: 0; background: var(--cor-terracota); color: #fff; font-size: 0.56rem;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem;
  border-radius: 6px 0 0 6px; box-shadow: 0 6px 12px -6px rgba(178,92,56,0.6);
}
.card.sold .ph { filter: grayscale(0.65) opacity(0.72); }
.card.sold .ph::after {
  content: "Vendido"; position: absolute; inset: 0; display: grid; place-items: center; font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-size: 1.5rem; color: #fff; background: rgba(52,48,42,0.3); transform: rotate(-8deg); letter-spacing: 0.03em;
  pointer-events: none;
}
.card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.95rem 1rem 1.1rem; flex: 1; }
.card-body h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.08rem; line-height: 1.15; color: var(--cor-tinta); }
.card-body .desc { font-size: 0.82rem; color: var(--cor-tinta-suave); line-height: 1.45; flex: 1; }
.price { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--cor-tinta); }
.price small { font-family: "Mulish", sans-serif; font-weight: 600; font-size: 0.7rem; color: var(--cor-tinta-suave); }
.card.sold .price { color: var(--cor-tinta-suave); text-decoration: line-through; }
.btn-interesse {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%;
  background: var(--cor-terracota-vivo); color: var(--cor-branco-quente); text-decoration: none; font-weight: 700;
  font-size: 0.86rem; padding: 0.66rem 0.9rem; border-radius: 11px; margin-top: 0.2rem; transition: filter 0.18s ease, transform 0.18s ease;
}
.btn-interesse svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-interesse:hover { filter: brightness(0.94); transform: translateY(-1px); }
.btn-interesse:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 2px; }
.btn-interesse.disabled { background: rgba(138,129,117,0.22); color: #6b645a; pointer-events: none; }

/* "Ver mais" — quiet centered link to the full listing pages (shown only on overflow) */
.ver-mais { text-align: center; margin-top: 1.8rem; }
.ver-mais[hidden] { display: none; }
.ver-mais a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: "Fraunces", Georgia, serif; font-size: 1.02rem; font-weight: 500;
  color: var(--cor-terracota-vivo); text-decoration: none;
  border-bottom: 1.5px solid rgba(197,107,67,0.35); padding-bottom: 0.15rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.ver-mais a:hover { color: var(--cor-terracota); border-color: var(--cor-terracota); }
.ver-mais a:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 3px; }

/* ===================== ENCOMENDA (serviço) ===================== */
.encomenda { position: relative; z-index: 1; background: linear-gradient(180deg, rgba(124,140,107,0.16), rgba(197,107,67,0.09)); border-top: 1px solid var(--cor-borda); border-bottom: 1px solid var(--cor-borda); }
.encomenda .inner { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.35rem; display: grid; gap: 1.8rem; }
@media (min-width: 820px) { .encomenda .inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; } }
.steps { display: grid; gap: 0.8rem; }
.step { display: flex; align-items: flex-start; gap: 0.85rem; background: var(--cor-branco-quente); border: 1px solid var(--cor-borda); border-radius: 14px; padding: 0.85rem 1rem; }
.step .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--cor-sage); color: #fff; font-family: "Fraunces", Georgia, serif; font-weight: 600; display: grid; place-items: center; }
.step b { display: block; font-size: 0.95rem; color: var(--cor-tinta); }
.step span { font-size: 0.82rem; color: var(--cor-tinta-suave); }

/* ===================== RODAPÉ ===================== */
.foot { position: relative; z-index: 1; background: var(--cor-tinta); color: var(--cor-branco-quente); }
.foot .inner { max-width: 1180px; margin: 0 auto; padding: 2.4rem 1.35rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; justify-content: space-between; align-items: center; }
/* footer brand: the official lockup on a small cream card (contrast on dark) */
.foot .fwm { display: inline-flex; align-items: center; background: var(--cor-fundo); padding: 0.5rem 0.85rem; border-radius: 14px; }
.foot .foot-logo { height: 58px; width: auto; display: block; }
.foot .flinks { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; font-size: 0.92rem; }
.foot a { color: var(--cor-branco-quente); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.foot a:hover { text-decoration: underline; }
.foot .ig { opacity: 0.6; }
.foot .made { width: 100%; font-size: 0.74rem; opacity: 0.55; border-top: 1px solid rgba(255,251,244,0.14); padding-top: 1rem; margin-top: 0.2rem; }

/* ===================== WhatsApp flutuante ===================== */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--whats-verde); color: #08351d; font-weight: 800; font-size: 0.92rem; text-decoration: none;
  padding: 0.72rem 1rem; border-radius: 999px; box-shadow: 0 12px 28px -8px rgba(0,0,0,0.38);
  opacity: 0; transform: translateY(22px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { filter: brightness(1.04); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fab svg { width: 24px; height: 24px; flex: 0 0 auto; }
@media (max-width: 480px) { .fab .lbl { display: none; } .fab { padding: 0.82rem; } }

/* desktop: secções respiram mais */
@media (min-width: 860px) {
  .section { padding: 2.7rem 2.6rem; }
  .encomenda .inner { padding: 2.9rem 2.6rem; }
  .foot .inner { padding: 3rem 2.6rem; }
}

/* fotos reais dentro dos placeholders */
.ph-img, .ba-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Phase 1: loading skeleton + empty/error states */
.empty-msg { color: var(--cor-tinta-suave); font-size: 0.95rem; padding: 1rem 0; }
.ba-empty { background: var(--cor-fundo-2); }

/* ===================== LIGHTBOX (peça: capa → ângulos) ===================== */
.ph-open { display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:zoom-in; position:absolute; inset:0; }
.ph-count { position:absolute; right:.6rem; bottom:.6rem; background:rgba(52,48,42,.72); color:#fff; font-size:.62rem; font-weight:700; letter-spacing:.04em; padding:.22rem .5rem; border-radius:999px; z-index:2; }
/* The cover is now an absolutely-positioned .ph-open button painting over the .ph;
   .state + .ribbon are absolute with no z-index, so lift them above the button
   (Phase 3 had no photos, so this only bites once pieces get covers). */
.state, .ribbon { z-index:2; }
#lightbox { position:fixed; inset:0; z-index:120; background:rgba(30,26,22,.92); display:flex; align-items:center; justify-content:center; }
#lightbox[hidden] { display:none; } /* author rule beats the UA [hidden] — Phase-3 lesson */
.lb-img { max-width:92vw; max-height:82vh; object-fit:contain; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); background:var(--cor-fundo-2); }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border:0; border-radius:50%; background:rgba(255,251,244,.9); color:var(--cor-tinta); font-size:1.8rem; line-height:1; display:grid; place-items:center; cursor:pointer; }
.lb-prev { left:1rem; } .lb-next { right:1rem; }
.lb-nav:disabled { opacity:.3; cursor:default; }
.lb-close { position:absolute; top:1rem; right:1rem; width:44px; height:44px; border:0; border-radius:50%; background:rgba(255,251,244,.9); color:var(--cor-tinta); font-size:1.4rem; line-height:1; cursor:pointer; }
.lb-count { position:absolute; bottom:1.1rem; left:50%; transform:translateX(-50%); color:#fff; font-size:.82rem; font-weight:700; background:rgba(52,48,42,.55); padding:.25rem .7rem; border-radius:999px; }
@media (max-width:560px) { .lb-nav { display:none; } } /* mobile uses swipe */
.lb-body { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 94vw; max-height: 88vh; overflow-y: auto; }
.lb-media { position: relative; display: flex; align-items: center; justify-content: center; }
/* Stacked (mobile/default): when the info panel is shown, cap the image so image + panel fit
   inside .lb-body's 88vh — otherwise a tall/portrait cover eats the height and clips the CTA. */
.lb-body:has(.lb-info:not([hidden])) .lb-img { max-height: 60vh; }
.lb-info { display: none; }
.lb-info:not([hidden]) { display: block; }
.lb-info {
  background: var(--cor-branco-quente); color: var(--cor-tinta);
  border-radius: 0 0 12px 12px; padding: 1rem 1.15rem 1.2rem; width: 100%;
  max-width: 92vw; box-sizing: border-box;
}
.lb-info h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.25rem; margin-bottom: 0.5rem; }
.lb-info .state { position: static; margin-bottom: 0.6rem; }
.lb-info .lb-preco { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
.lb-info .lb-desc { font-size: 0.9rem; color: var(--cor-tinta-suave); line-height: 1.5; margin-bottom: 0.9rem; }
.lb-info .btn-interesse { width: 100%; }
@media (min-width: 760px) {
  .lb-body { flex-direction: row; align-items: stretch; }
  .lb-media { flex: 1 1 auto; min-width: 0; }
  /* Cap the image to its (shrinkable) container, not the viewport, so a wide/landscape
     cover can't hold ~92vw and push the fixed 300px panel off-screen. */
  .lb-media .lb-img { max-width: 100%; }
  .lb-info:not([hidden]) { width: 300px; flex: 0 0 300px; border-radius: 0 12px 12px 0; overflow-y: auto; }
}

/* ---------- Reduz movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .stamp { animation: none !important; opacity: 1 !important; transform: none !important; }
  .stamp { transform: rotate(-9deg) !important; }
  .underline-word .brush path { animation: none !important; stroke-dashoffset: 0 !important; }
  .btn-whats { transition: none; }
  .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fab { transition: none !important; }
  .card, .btn-interesse { transition: none !important; }
}

/* Filtro/ordenação da página /pecas */
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; margin-bottom: 1.6rem; }
.filtro-estados { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--cor-borda);
  background: var(--cor-branco-quente); color: var(--cor-tinta-suave); transition: all 0.15s ease;
}
.chip:hover { border-color: var(--cor-terracota); color: var(--cor-terracota); }
.chip.is-active { background: var(--cor-terracota-vivo); color: var(--cor-branco-quente); border-color: var(--cor-terracota-vivo); }
.chip:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 2px; }
.filtro-ordem { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700; color: var(--cor-tinta-suave); }
.filtro-ordem select {
  font: inherit; font-size: 0.82rem; padding: 0.4rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--cor-borda); background: var(--cor-branco-quente); color: var(--cor-tinta);
}
.filtro-count { font-size: 0.8rem; color: var(--cor-tinta-suave); font-weight: 600; margin-left: auto; }

/* ---------- Navegação do cabeçalho ---------- */
/* z-index lifts the whole topbar subtree above the hero body — the .headline's
   reveal transform makes its own stacking context, which would otherwise paint
   over the absolutely-positioned mobile dropdown and swallow taps on its links. */
.topbar { position: relative; z-index: 60; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--cor-borda); border-radius: 10px;
  color: var(--cor-tinta); padding: 0.35rem 0.45rem; cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 2px; }
.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column; gap: 0.2rem;
  position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 70;
  background: var(--cor-branco-quente); border: 1px solid var(--cor-borda);
  border-radius: 14px; padding: 0.6rem; min-width: 190px;
  box-shadow: 0 16px 34px -12px rgba(52,48,42,0.34);
}
.site-nav a {
  text-decoration: none; color: var(--cor-tinta); font-weight: 700; font-size: 0.95rem;
  padding: 0.55rem 0.7rem; border-radius: 9px; transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: rgba(124,140,107,0.14); color: var(--cor-terracota); }
.site-nav a[aria-current="page"] { color: var(--cor-terracota-vivo); }
.site-nav a:focus-visible { outline: 3px solid var(--cor-sage-escuro); outline-offset: 2px; }
.site-nav .locality { margin-top: 0.35rem; padding: 0.4rem 0.7rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: 1.4rem;
    position: static; background: none; border: 0; padding: 0; box-shadow: none; min-width: 0;
  }
  .site-nav a { padding: 0.35rem 0.15rem; border-radius: 0; }
  .site-nav a:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
  .site-nav a[aria-current="page"] { border-bottom: 2px solid var(--cor-terracota); }
  .site-nav .locality { margin-top: 0; margin-left: 0.4rem; padding: 0; }
}
