/* Site publico do produto (a pagina de cada cliente fica em clientes/<pasta>/publico/). Celular primeiro; a partir de 64rem o topo vira duas colunas. */
:root {
  --mata: #1f3a2e;
  --mata-2: #2f5444;
  --madeira: #9a5f2c;
  --mel: #e2b071;
  --noite: #22304a;
  --nevoa: #eef1ea;
  --papel: #f8f9f5;
  --tinta: #1b2420;
  --apagado: #4f5d56;
  --linha: #d3dacd;
  --whats: #17784a;
  --whats-escuro: #105c38;
  --titulo: "Literata", Georgia, serif;
  --texto: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nevoa);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--texto);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); color: var(--mata); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: var(--mata-2); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--madeira); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.pular {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--papel); padding: 0.6rem 1rem; border-radius: 6px;
}
.pular:focus { top: 1rem; }

.nota { color: var(--apagado); font-size: 0.95rem; }

/* ---------- Botoes ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 999px;
  font: 600 1.05rem/1.2 var(--texto); text-decoration: none; text-align: center;
}
.botao-whats { background: var(--whats); color: #fff; }
.botao-whats::before {
  content: ""; width: 1.15em; height: 1.15em; margin-right: 0.55em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.4 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.botao-whats:hover { background: var(--whats-escuro); }

.link-airbnb, .link-mapa { display: inline-block; margin-top: 0.75rem; font-weight: 500; }

/* ---------- Topo ---------- */
.topo { background: var(--noite); color: #f3efe6; }
.topo-foto { margin: 0 0 -1px; position: relative; }
.topo-foto img { width: 100%; height: 62svh; min-height: 22rem; object-fit: cover; object-position: center 40%; }
.topo-foto::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--noite));
}
.topo-texto { padding: 0 1rem 2.5rem; margin-top: -4.5rem; position: relative; max-width: 36rem; }
.marca { font-family: var(--titulo); font-size: 1.15rem; font-weight: 600; color: var(--mel); }
.marca span { display: block; font-family: var(--texto); font-size: 0.9rem; font-weight: 400; color: #c9d0dc; }
.topo h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin-top: 0.9rem; color: #fff; }
.sub { margin-top: 1rem; color: #d6dbe3; max-width: 34rem; }

/* A semana: o elemento que a pagina toda repete. Uma noite so, de quarta para quinta. */
.semana {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); position: relative;
  font-family: var(--titulo); font-size: 1.05rem; text-align: center; color: #8f9bb0;
}
.semana li { padding: 0.55rem 0; position: relative; z-index: 1; }
.semana .noite-ini, .semana .noite-fim { color: var(--noite); font-weight: 600; }
.semana::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0;
  left: calc(100% / 7 * 3 + 0.2rem); width: calc(100% / 7 * 2 - 0.4rem);
  background: var(--mel); border-radius: 999px;
}
.semana::after {
  content: "1 noite"; position: absolute; top: 100%; margin-top: 0.3rem;
  left: calc(100% / 7 * 3); width: calc(100% / 7 * 2);
  font: 500 0.85rem/1 var(--texto); color: var(--mel);
}
.pronto .semana::before { animation: noite 900ms 300ms cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes noite {
  from { transform: scaleX(0.5); transform-origin: left center; opacity: 0.4; }
  to { transform: scaleX(1); transform-origin: left center; opacity: 1; }
}

.preco { margin-top: 2.6rem; font-size: 1.1rem; }
.preco strong { font-family: var(--titulo); font-size: 1.6rem; color: #fff; }
.desconto {
  display: inline-block; margin-top: 0.6rem; padding: 0.3rem 0.8rem; border-radius: 6px;
  border: 1px solid var(--mel); color: var(--mel); font-weight: 600; font-size: 0.95rem;
}
.topo .botao { display: flex; width: 100%; margin-top: 1.4rem; }
.topo .nota { margin-top: 0.7rem; color: #b8c1cf; }

/* ---------- Secoes ---------- */
main > section { padding: 3.5rem 1rem; max-width: 72rem; margin: 0 auto; }
main > section > h2 + * { margin-top: 0.9rem; }
.intro { color: var(--apagado); max-width: 40rem; }

.lado-a-lado { display: grid; gap: 0.75rem; margin-top: 1.6rem; }
.lado { padding: 1.3rem 1.4rem; border-radius: 14px; }
.lado h3 { font-size: 1.1rem; }
.lado ul { margin: 0.7rem 0 0; padding: 0; list-style: none; }
.lado li { padding: 0.25rem 0; }
.lado-la { background: transparent; border: 1px dashed var(--linha); color: var(--apagado); }
.lado-la li { text-decoration: line-through; text-decoration-color: #9aa79f; }
.lado-aqui { background: var(--mata); color: #f1f4ee; }
.lado-aqui h3 { color: var(--mel); }
.pertinho { margin-top: 1.4rem; max-width: 40rem; }

/* Estudios: no celular, uma fileira que corre para o lado; no computador, quatro colunas. */
.lista-unidades {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 1rem; margin: 1.6rem -1rem 0; padding: 0 1rem 0.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.unidade { scroll-snap-align: start; background: var(--papel); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.unidade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.unidade-texto { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.unidade .cap { color: var(--apagado); margin-top: 0.3rem; flex: 1; }
.unidade .botao { margin-top: 1rem; }
.unidade .link-airbnb { text-align: center; }

.pedido-bloco { background: var(--papel); border-radius: 0; }
.pedido { display: grid; gap: 1rem; margin-top: 1.4rem; max-width: 40rem; }
.pedido label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; }
.pedido input, .pedido select {
  font: inherit; font-weight: 400; min-height: 3rem; padding: 0.6rem 0.8rem; width: 100%;
  border: 1px solid #b9c3b6; border-radius: 10px; background: #fff; color: var(--tinta);
}

.avaliacao figure { margin: 1.4rem 0 0; max-width: 40rem; }
.avaliacao blockquote { margin: 0; font-family: var(--titulo); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.35; color: var(--mata); }
.avaliacao blockquote p::before { content: "“"; }
.avaliacao blockquote p::after { content: "”"; }
.avaliacao figcaption { margin-top: 0.8rem; font-weight: 500; }
.avaliacao .nota { margin-top: 1rem; }

.lugar { display: grid; gap: 1.6rem; }
.lugar-texto > p:first-of-type { max-width: 40rem; }
.distancias { margin: 1.4rem 0 0; display: grid; gap: 0; max-width: 30rem; }
.distancias div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--linha); }
.distancias dt { margin: 0; }
.distancias dd { margin: 0; font-weight: 600; white-space: nowrap; }
.lugar .nota { margin-top: 0.6rem; }
.lugar-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.lugar-fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }

.passos ol { margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: passo; max-width: 40rem; }
.passos li { counter-increment: passo; position: relative; padding: 0 0 1.2rem 3rem; }
.passos li::before {
  content: counter(passo); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--mata); color: #fff; font: 600 1rem/1 var(--titulo);
}
.passos .nota { max-width: 40rem; }

.perguntas details { border-bottom: 1px solid var(--linha); max-width: 46rem; }
.perguntas summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style-position: outside; }
.perguntas details p { padding: 0 0 1rem; color: var(--apagado); }

.rodape { background: var(--mata); color: #dfe6dd; padding: 2.5rem 1rem 6.5rem; }
.rodape > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.rodape p + p { margin-top: 0.5rem; }
.rodape .nota { color: #b5c2b6; }

/* Botao fixo: so no celular, sempre a um toque. */
.whats-fixo {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 10;
  box-shadow: 0 6px 20px rgba(16, 92, 56, 0.35);
  transition: transform 250ms ease, opacity 250ms ease, visibility 250ms;
}
.whats-fixo.escondido { transform: translateY(150%); opacity: 0; visibility: hidden; }

@media (min-width: 40rem) {
  .lado-a-lado { grid-template-columns: 1fr 1fr; max-width: 52rem; }
  .pedido { grid-template-columns: 1fr 1fr; }
  .pedido .botao { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .topo { display: grid; grid-template-columns: 1fr 46%; height: max(100svh, 42rem); }
  .topo-foto { order: 2; margin: 0; }
  /* A foto e alta (retrato): fora do fluxo, ela cobre a coluna sem esticar a faixa do topo. */
  .topo-foto img { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .topo-foto::after { display: none; }
  .topo-texto { margin: 0; align-self: center; justify-self: end; padding: 2rem 3.5rem 2rem 2rem; max-width: 38rem; }
  .topo h1 { font-size: clamp(2.4rem, 1.2rem + 2.2vw, 3.2rem); }
  .topo .botao { width: auto; display: inline-flex; }
  .lista-unidades { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 1.6rem 0 0; padding: 0; }
  .lugar { grid-template-columns: 1fr 1fr; align-items: center; }
  .pedido { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .whats-fixo { left: auto; right: 1.5rem; bottom: 1.5rem; }
  .rodape { padding-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pronto .semana::before { animation: none; }
  .whats-fixo { transition: none; }
  .lista-unidades { scroll-behavior: auto; }
}
