/* O site institucional (T-081). Carregado DEPOIS de `css/mesagarantida.css`: herda os tokens de
 * cor da marca (`--acento` #7a2230, `--acento-escuro` #5c1a24, `--papel`, `--tinta`, as cores da
 * planta e do mapa de calor) e a pilha de fonte de sistema. Nenhuma webfont, nenhum framework.
 * Prefixo `s-` em tudo, para não esbarrar nas classes da gestão.
 *
 * A cor entra como CAMPO da página (herói e contato em bordô), não como acento solto: o resto é
 * o neutro do portal Vorgen. Contrastes conferidos: branco sobre #5c1a24 12,9:1; branco sobre
 * #7a2230 10:1; #5c1a24 sobre branco 12,9:1; --tinta-fraca (#5c636a) sobre #f3f4f6 5,6:1.
 */

.site {
  --s-furo: #7a2230; /* cor do check do símbolo: a do fundo em que ele está */
  --s-foco: #7a2230;
  --s-bordo-topo: #7a2230;
  --s-bordo-fundo: #5c1a24;
  --s-rosa: #f0c9d0; /* "Garantida" sobre bordô: tinta do próprio bordô clareada */
  scroll-padding-top: 1rem;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.site ::selection {
  background: var(--acento);
  color: #fff;
}

.site {
  caret-color: var(--acento);
  scrollbar-color: var(--acento) var(--papel);
}

.site :focus-visible {
  outline: 3px solid var(--s-foco);
  outline-offset: 3px;
  border-radius: 4px;
}

.s-topo,
.s-heroi,
.s-contato,
.s-rodape {
  --s-foco: #ffd6dc;
}

.s-pular {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--acento);
  font-weight: 700;
  border-radius: var(--raio);
}

.s-pular:focus {
  top: 0.75rem;
}

.s-miolo {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- cabeçalho ------------------------------------------------------------ */

.s-topo {
  background: var(--s-bordo-topo);
  color: #fff;
}

.s-topo-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.s-topo-claro {
  --s-furo: #fff;
  --s-foco: #7a2230;
  background: #fff;
  color: var(--tinta);
  border-bottom: 1px solid var(--borda);
}

.s-topo-claro .s-marca {
  color: var(--tinta);
}

.s-topo-claro .s-simbolo {
  color: var(--acento);
}

.s-topo-claro .s-marca-nome span {
  color: var(--acento);
}

.s-marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}

.s-simbolo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.s-marca-nome {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  line-height: 1;
  white-space: nowrap;
}

.s-marca-nome span {
  color: var(--s-rosa);
}

.s-topo-acoes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Em 320 px a marca com o espaçamento largo e o "Entrar" ainda passam da largura. */
@media (max-width: 23rem) {
  .s-marca {
    gap: 0.4rem;
  }

  .s-marca-nome {
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }

  .s-topo-acoes .s-link-claro {
    padding: 0 0.5rem;
  }
}

/* No celular o topo só cabe a marca e o "Entrar" (T-089): o "Quero conhecer" já está no herói,
 * e os dois juntos passavam de 360 px e faziam a página rolar de lado. */
@media (max-width: 39.99rem) {
  .s-topo-acoes .s-topo-conhecer {
    display: none;
  }
}

.s-link-claro {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--raio);
}

.s-link-claro:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* --- botões --------------------------------------------------------------- */

.s-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--raio);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.s-botao-grande {
  min-height: 52px;
  padding: 0 1.5rem;
  font-size: 1.05rem;
}

.s-botao-claro {
  background: #fff;
  color: var(--acento-escuro);
}

.s-botao-claro:hover {
  background: #f8ecee;
}

.s-botao-contorno {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.s-botao-contorno:hover {
  background: rgba(255, 255, 255, 0.12);
}

.s-botao-escuro {
  background: var(--acento);
  color: #fff;
  border-color: var(--acento-escuro);
}

.s-botao-escuro:hover {
  background: var(--acento-escuro);
}

.s-botao:active {
  transform: translateY(1px);
}

/* --- herói ---------------------------------------------------------------- */

.s-heroi {
  background: linear-gradient(180deg, var(--s-bordo-topo) 0, var(--s-bordo-fundo) 100%);
  color: #fff;
  padding: 2.5rem 0 4rem;
}

.s-heroi-grade {
  display: grid;
  gap: 2.5rem;
}

.s-heroi h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.s-heroi-chamada {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 600;
  color: var(--s-rosa);
}

.s-heroi-apoio {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f3e3e6;
}

.s-heroi-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.s-heroi-figura {
  margin: 0;
}

.s-heroi-figura figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #f3e3e6;
}

.s-ilus {
  display: block;
  width: 100%;
  height: auto;
}

.s-planta {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

@media (min-width: 56rem) {
  .s-heroi {
    padding: 4rem 0 5.5rem;
  }

  .s-heroi-grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 3.5rem;
  }
}

/* --- as figuras desenhadas em SVG ----------------------------------------- */

.s-t-titulo { font-size: 14px; font-weight: 700; fill: #212529; }
.s-t-area { font-size: 13px; font-weight: 700; fill: #3a3f47; }
.s-t-mesa { font-size: 12px; font-weight: 700; fill: #fff; }
.s-t-estado { font-size: 11px; font-weight: 500; fill: #fff; }
.s-t-rodape { font-size: 11px; font-weight: 500; fill: #5c636a; }
.s-t-botao { font-size: 10px; font-weight: 700; fill: #fff; }
.s-t-botao-g { font-size: 13px; font-weight: 700; fill: #fff; }
.s-t-leg { font-size: 12px; font-weight: 500; fill: #5c636a; }
.s-t-grande { font-size: 56px; font-weight: 800; fill: #7a2230; }
.s-t-mesa-escuro { font-size: 12px; font-weight: 700; fill: #212529; }
.s-t-passo { font-size: 12px; font-weight: 600; fill: #5c636a; }
.s-eixo { font-size: 11px; font-weight: 500; fill: #5c636a; }

.s-seta {
  fill: none;
  stroke: #7a2230;
  stroke-width: 3;
  stroke-linecap: round;
}

.s-livre rect { fill: var(--planta-livre); }
.s-reserva rect { fill: var(--planta-com-hora); }
.s-ocupada rect { fill: var(--planta-ocupada); }
.s-bloqueada rect {
  fill: var(--planta-bloqueada);
  stroke: var(--planta-bloqueada-traco);
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
}
.s-bloqueada text { fill: var(--tinta); }

/* O único movimento da página: as mesas do herói entram uma a uma, uma vez. */
.s-mesa {
  transform-box: fill-box;
  transform-origin: center;
  animation: s-mesa-entra 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 70ms + 200ms);
}

@keyframes s-mesa-entra {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-mesa {
    animation: none;
  }
}

/* --- seções --------------------------------------------------------------- */

.s-secao {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  background: var(--papel);
}

.s-fundo-alto {
  background: var(--papel-alto);
}

.s-secao h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.s-secao p {
  max-width: 38rem;
  font-size: 1.075rem;
  line-height: 1.65;
}

/* Como funciona: três passos em linha, numerados porque a ordem importa. */
.s-passos-lista {
  list-style: none;
  counter-reset: passo;
  display: grid;
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
}

.s-passos-lista li {
  counter-increment: passo;
  padding-top: 1rem;
  border-top: 2px solid var(--acento);
}

.s-passos-lista li::before {
  content: counter(passo);
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--acento);
  font-variant-numeric: tabular-nums;
}

.s-passos-lista h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.25rem;
}

.s-passos-lista p {
  margin: 0;
  font-size: 1rem;
}

@media (min-width: 48rem) {
  .s-passos-lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* Um recurso: texto de um lado, figura do outro, alternando. */
.s-recurso-grade {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.s-recurso-texto p {
  margin: 0 0 1rem;
}

.s-recurso-figura {
  margin: 0;
}

.s-recurso-figura .s-ilus {
  max-width: 30rem;
  margin: 0 auto;
}

.s-recurso-figura .s-celular {
  max-width: 14.5rem;
}

.s-recurso-figura figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--tinta-fraca);
}

@media (min-width: 52rem) {
  .s-recurso-grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .s-invertido .s-recurso-figura {
    order: -1;
  }
}

/* Para quem é */
.s-para-quem {
  background: var(--mapa-calor-0-20);
}

.s-para-quem-grade {
  display: grid;
  gap: 1.5rem;
}

.s-lista-simples {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.s-lista-simples li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mapa-calor-20-40);
  font-size: 1.1rem;
  line-height: 1.5;
}

.s-lista-simples li:first-child {
  border-top: 1px solid var(--mapa-calor-20-40);
}

@media (min-width: 52rem) {
  .s-para-quem-grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }
}

/* Perguntas frequentes */
.s-faq-miolo {
  max-width: 50rem;
}

.s-faq-lista details {
  border-bottom: 1px solid var(--borda);
}

.s-faq-lista details:first-child {
  border-top: 1px solid var(--borda);
}

.s-faq-lista summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.6rem 2.5rem 0.6rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.s-faq-lista summary::-webkit-details-marker {
  display: none;
}

.s-faq-lista summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--acento);
  border-bottom: 2px solid var(--acento);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.s-faq-lista details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.s-faq-lista details p {
  margin: 0 0 1.1rem;
  max-width: 42rem;
}

/* --- contato -------------------------------------------------------------- */

.s-contato {
  background: var(--s-bordo-fundo);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  scroll-margin-top: 0;
}

.s-contato-grade {
  display: grid;
  gap: 2rem;
}

.s-contato h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.s-contato-texto p {
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f3e3e6;
}

.s-contato-formulario {
  background: #fff;
  color: var(--tinta);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  --s-foco: #7a2230;
}

.s-form .s-campo {
  margin: 0 0 1rem;
}

.s-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.s-form input,
.s-form textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #b8bec6;
  border-radius: var(--raio);
}

.s-form textarea {
  resize: vertical;
}

.s-erro-campo {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--erro);
}

.s-erro-geral {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--erro-fundo);
  border: 1px solid var(--erro-borda);
  border-radius: var(--raio);
  color: var(--erro);
}

.s-nota {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tinta-fraca);
}

.s-obrigado h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.s-obrigado p {
  margin: 0;
}

@media (min-width: 52rem) {
  .s-contato-grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
    align-items: start;
  }

  .s-contato-formulario {
    padding: 2rem;
  }
}

/* --- rodapé --------------------------------------------------------------- */

.s-rodape {
  --s-furo: #212529;
  background: #212529;
  color: #dee2e6;
  padding: 2rem 0;
}

.s-rodape-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.s-rodape .s-marca-nome span {
  color: var(--s-rosa);
}

.s-rodape-links {
  display: flex;
  gap: 0.25rem;
}

.s-rodape-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  color: #dee2e6;
}

.s-credito {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.8rem;
}

.s-credito img {
  display: block;
  height: auto;
  padding: 0.35rem 0.6rem;
  background: #fff;
  border-radius: var(--raio);
}

/* --- aviso de privacidade ------------------------------------------------- */

.s-leitura {
  padding: 2.5rem 0 4rem;
}

.s-leitura-miolo {
  max-width: 44rem;
}

.s-leitura h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.s-leitura-data {
  margin: 0 0 1.5rem;
  color: var(--tinta-fraca);
}

.s-leitura h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.5rem;
}

.s-leitura h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.05rem;
}

.s-leitura p,
.s-leitura li {
  font-size: 1.05rem;
  line-height: 1.65;
}

.s-leitura ul {
  padding-left: 1.25rem;
}

.s-leitura li {
  margin: 0.25rem 0;
}
