/* ==========================================================================
   BOMBAR — RESERVAS
   Página única de solicitação de reserva. Mobile-first.
   ========================================================================== */

/* ------------------------------------------------------------------ 1 --
   TOKENS — mesma paleta e escala do site principal (site/css/tokens.css).
   Alterar aqui não afeta o site principal; os dois vivem em projetos
   separados de propósito, para poderem ser publicados em domínios
   diferentes sem depender um do outro.
   ---------------------------------------------------------------------- */
:root {
  --verde-profundo:  #08261F;
  --verde-escuro:    #0D3329;
  --preto:           #080807;
  --dourado:         #C9A227;
  --dourado-escuro:  #8F7018;
  --ambar:           #D88925;
  --creme:           #F1E6C8;
  --branco-quente:   #F7F3E8;

  --verde-vinheta:   #041710;
  --linha:           rgba(201, 162, 39, .22);
  --linha-forte:     rgba(201, 162, 39, .45);
  --linha-fraca:     rgba(241, 230, 200, .12);
  --sobre-preto:     rgba(8, 8, 7, .58);

  /* Cor funcional de erro — não faz parte da paleta decorativa da marca,
     existe só para o estado de validação do formulário. Tom terroso para
     não destoar do dourado/âmbar já usados na página. */
  --erro:        #C1443B;
  --erro-fundo:  rgba(193, 68, 59, .12);

  --texto:        var(--branco-quente);
  --texto-suave:  rgba(247, 243, 232, .68);
  --texto-tenue:  rgba(247, 243, 232, .45);

  --fonte-display: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  --fonte-texto:   'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

  --t-d1:    clamp(2.3rem, 8vw, 3.4rem);
  --t-d3:    clamp(1.15rem, 2.6vw, 1.3rem);
  --t-corpo: clamp(1rem, 1.05vw, 1.05rem);
  --t-peq:   .875rem;
  --t-micro: .75rem;

  --olho: .72rem;

  --e-1: .25rem; --e-2: .5rem; --e-3: .75rem; --e-4: 1rem;
  --e-5: 1.5rem; --e-6: 2rem; --e-7: 3rem; --e-8: 4rem;

  --r-1: 2px; --r-2: 4px; --r-3: 6px; --r-pill: 999px;

  --s-media: 0 14px 34px -18px rgba(4, 12, 9, .85);
  --s-alta:  0 34px 70px -30px rgba(4, 12, 9, .95);

  --trato-foto: contrast(1.07) saturate(1.06) brightness(.92);

  --rapido: 180ms;
  --padrao: 340ms;
  --lento:  520ms;
  --curva:  cubic-bezier(.22, .61, .36, 1);

  --alvo-toque: 46px;

  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.42'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ 2 --
   RESET E BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--verde-profundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--t-corpo);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--dourado); color: var(--preto); }

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

h1, h2, h3 {
  font-family: var(--fonte-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: var(--t-d1); }
h3 { font-size: var(--t-d3); }

p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--creme); }

.so-leitor {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--dourado);
  color: var(--preto);
  padding: var(--e-3) var(--e-5);
  font-weight: 700;
  font-size: var(--t-peq);
  border-radius: 0 0 var(--r-2) var(--r-2);
  transition: transform var(--rapido) var(--curva);
}
.pular:focus { transform: translate(-50%, 0); }

.olho {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  font-family: var(--fonte-texto);
  font-size: var(--olho);
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: var(--e-4);
}
.olho::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--dourado);
  flex: none;
  opacity: .8;
}

.texto-apoio {
  color: var(--texto-suave);
  max-width: 46ch;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
}

.fio {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--linha-forte) 22%, var(--linha-forte) 78%, transparent);
}

/* Entrada suave, uma vez, ao carregar — não depende de scroll. */
@keyframes subir-suave {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entra {
  animation: subir-suave var(--lento) var(--curva) both;
}
.entra--2 { animation-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ 3 --
   BOTÃO — mesmo componente do site principal (site/css/components.css).
   ---------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--dourado);
  --btn-cor: var(--preto);
  --btn-borda: var(--dourado);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-3);
  min-height: var(--alvo-toque);
  padding: 1em 1.9em;
  background: var(--btn-bg);
  color: var(--btn-cor);
  border: 1px solid var(--btn-borda);
  border-radius: var(--r-2);
  font-size: var(--t-peq);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--padrao) var(--curva), box-shadow var(--padrao) var(--curva),
              background-color var(--padrao) var(--curva), border-color var(--padrao) var(--curva);
}
.btn:hover { transform: translateY(-2px) scale(1.014); box-shadow: 0 10px 28px -12px rgba(201, 162, 39, .55); }
.btn:active { transform: translateY(0) scale(.995); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--linha {
  --btn-bg: transparent;
  --btn-cor: var(--dourado);
  --btn-borda: var(--linha-forte);
}
.btn--linha:hover { --btn-borda: var(--dourado); background: rgba(201, 162, 39, .09); }

.btn--bloco { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ 4 --
   CABEÇALHO
   ---------------------------------------------------------------------- */
.topo {
  padding-block: var(--e-4);
  border-bottom: 1px solid var(--linha-fraca);
}

.topo__env {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.topo__marca {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  flex: none;
}
.topo__marca img { width: 100px; height: auto; }

.topo__selo {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dourado);
  border: 1px solid var(--linha-forte);
  border-radius: var(--r-pill);
  padding: .4em .9em;
  white-space: nowrap;
}

.topo__voltar {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--t-peq);
  font-weight: 600;
  color: var(--texto-suave);
  transition: color var(--padrao) var(--curva);
  min-height: var(--alvo-toque);
  padding-inline: var(--e-2);
}
.topo__voltar:hover { color: var(--dourado); }
.topo__voltar svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 420px) {
  .topo__voltar-texto { display: none; }
}

/* ------------------------------------------------------------------ 5 --
   LAYOUT PRINCIPAL — foto + conteúdo
   ---------------------------------------------------------------------- */
.pagina {
  position: relative;
}

.pagina__foto {
  position: relative;
  height: clamp(200px, 38vw, 320px);
  overflow: hidden;
  background: var(--preto);
}
.pagina__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: var(--trato-foto);
}
.pagina__foto-veu {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,7,.35) 0%, rgba(8,38,31,.25) 45%, rgba(8,8,7,.82) 100%);
}
.pagina__foto-grao {
  position: absolute;
  inset: 0;
  background-image: var(--grao);
  opacity: .05;
  mix-blend-mode: overlay;
}
.pagina__foto-tag {
  position: absolute;
  left: clamp(1.1rem, 4vw, 2.5rem);
  bottom: var(--e-4);
  display: flex;
  align-items: center;
  gap: .55em;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--creme);
}
.pagina__foto-tag svg { width: 14px; height: 14px; flex: none; color: var(--dourado); }

.pagina__conteudo {
  padding: var(--e-7) clamp(1.1rem, 4vw, 2.5rem) var(--e-8);
}

.cabecalho-reserva {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--e-6);
}
.cabecalho-reserva h1 { margin-bottom: var(--e-4); }

.local-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: var(--e-5);
  font-size: var(--t-peq);
  font-weight: 600;
  color: var(--texto-tenue);
}
.local-tag svg { width: 15px; height: 15px; flex: none; color: var(--dourado); }

/* ------------------------------------------------------------------ 6 --
   CARTÃO DO FORMULÁRIO
   ---------------------------------------------------------------------- */
.cartao {
  max-width: 600px;
  margin-inline: auto;
  background: var(--verde-escuro);
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-3);
  box-shadow: var(--s-media);
  padding: clamp(1.25rem, 5vw, 2.25rem);
}

/* ------------------------------------------------------------------ 7 --
   CAMPOS
   ---------------------------------------------------------------------- */
.campo { margin-bottom: var(--e-6); }
.campo:last-of-type { margin-bottom: 0; }

.campo__rotulo {
  display: block;
  font-size: var(--t-peq);
  font-weight: 700;
  color: var(--creme);
  margin-bottom: var(--e-3);
}

.campo__opcional {
  font-weight: 500;
  color: var(--texto-tenue);
  text-transform: none;
  letter-spacing: 0;
}

.campo__controle {
  display: block;
  width: 100%;
  min-height: var(--alvo-toque);
  background: var(--verde-profundo);
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-2);
  padding: .95em 1.1em;
  font-size: 1rem;
  color: var(--branco-quente);
  transition: border-color var(--padrao) var(--curva), box-shadow var(--padrao) var(--curva);
}
.campo__controle::placeholder { color: var(--texto-tenue); }
.campo__controle:focus-visible {
  outline: none;
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}

textarea.campo__controle {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.campo__erro {
  display: none;
  align-items: flex-start;
  gap: .5em;
  margin-top: var(--e-3);
  font-size: var(--t-peq);
  font-weight: 600;
  color: var(--erro);
}
.campo__erro svg { width: 16px; height: 16px; flex: none; margin-top: .1em; }

.campo--invalido .campo__controle {
  border-color: var(--erro);
  background: var(--erro-fundo);
}
.campo--invalido .campo__erro { display: flex; }

/* ------------------------------------------------------------------ 8 --
   CALENDÁRIO
   ---------------------------------------------------------------------- */
.calendario {
  background: var(--verde-profundo);
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-2);
  padding: var(--e-4);
}

.calendario__cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--e-4);
}

.calendario__mes {
  font-family: var(--fonte-display);
  font-size: 1.15rem;
}

.calendario__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--linha-forte);
  border-radius: var(--r-pill);
  color: var(--dourado);
  transition: background-color var(--padrao) var(--curva), border-color var(--padrao) var(--curva);
}
.calendario__nav:hover:not(:disabled) { background: rgba(201, 162, 39, .12); border-color: var(--dourado); }
.calendario__nav:disabled { opacity: .3; cursor: not-allowed; }
.calendario__nav svg { width: 16px; height: 16px; }

.calendario__semana,
.calendario__grade {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendario__semana {
  margin-bottom: var(--e-2);
}
.calendario__semana span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-micro);
  font-weight: 700;
  color: var(--texto-tenue);
  padding-block: .4em;
}

.calendario__dia {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-peq);
  font-weight: 600;
  color: var(--texto-suave);
  border-radius: var(--r-2);
  border: 1px solid transparent;
  transition: background-color var(--padrao) var(--curva), border-color var(--padrao) var(--curva), color var(--padrao) var(--curva);
}
.calendario__dia:hover:not(:disabled):not(.calendario__dia--vazio) {
  background: rgba(201, 162, 39, .12);
  border-color: var(--linha-forte);
  color: var(--branco-quente);
}
.calendario__dia--vazio { visibility: hidden; }
.calendario__dia:disabled {
  color: var(--texto-tenue);
  opacity: .35;
  cursor: not-allowed;
}
.calendario__dia--hoje { border-color: var(--linha-forte); color: var(--dourado); }
.calendario__dia--selecionado,
.calendario__dia--selecionado:hover {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--preto);
  font-weight: 700;
}

/* ------------------------------------------------------------------ 9 --
   HORÁRIOS
   ---------------------------------------------------------------------- */
.horarios__aviso {
  font-size: var(--t-peq);
  color: var(--texto-tenue);
  font-style: italic;
}

.horarios__grade {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
}

.horario {
  min-width: 84px;
  min-height: var(--alvo-toque);
  padding-inline: 1.1em;
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-2);
  background: var(--verde-profundo);
  font-size: var(--t-peq);
  font-weight: 700;
  color: var(--texto-suave);
  transition: background-color var(--padrao) var(--curva), border-color var(--padrao) var(--curva), color var(--padrao) var(--curva);
}
.horario:hover:not(:disabled) { border-color: var(--dourado); color: var(--branco-quente); }
.horario:disabled { opacity: .35; cursor: not-allowed; }
.horario--selecionado, .horario--selecionado:hover {
  background: var(--dourado);
  border-color: var(--dourado);
  color: var(--preto);
}

/* ------------------------------------------------------------------ 10 --
   CONTADOR DE PESSOAS
   ---------------------------------------------------------------------- */
.contador {
  display: inline-flex;
  align-items: center;
  gap: var(--e-5);
  background: var(--verde-profundo);
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-pill);
  padding: var(--e-2);
}

.contador__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--alvo-toque);
  height: var(--alvo-toque);
  border-radius: var(--r-pill);
  border: 1px solid var(--linha-forte);
  color: var(--dourado);
  font-size: 1.3rem;
  font-weight: 700;
  transition: background-color var(--padrao) var(--curva);
}
.contador__btn:hover:not(:disabled) { background: rgba(201, 162, 39, .14); }
.contador__btn:disabled { opacity: .3; cursor: not-allowed; }

/* Teto de pessoas: o botão "+" continua clicável (para exibir a mensagem
   de validação), só perde ênfase visual — por isso não usa :disabled. */
.contador__btn--limite { opacity: .55; }

.contador__valor {
  min-width: 2.4ch;
  text-align: center;
  font-family: var(--fonte-display);
  font-size: 1.5rem;
}

.contador__legenda {
  display: block;
  margin-top: var(--e-3);
  font-size: var(--t-micro);
  color: var(--texto-tenue);
}

/* ------------------------------------------------------------------ 11 --
   TIPO DE RESERVA
   ---------------------------------------------------------------------- */
.tipos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--e-3);
}

.tipo {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  min-height: var(--alvo-toque);
  padding: .9em 1em;
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-2);
  background: var(--verde-profundo);
  color: var(--texto-suave);
  font-size: var(--t-peq);
  font-weight: 700;
  text-align: left;
  transition: background-color var(--padrao) var(--curva), border-color var(--padrao) var(--curva), color var(--padrao) var(--curva);
}
.tipo:hover { border-color: var(--dourado); color: var(--branco-quente); }
.tipo__icone { width: 20px; height: 20px; flex: none; color: var(--dourado); }
.tipo--selecionado {
  background: rgba(201, 162, 39, .14);
  border-color: var(--dourado);
  color: var(--branco-quente);
}
.tipo--selecionado .tipo__icone { color: var(--dourado); }

/* ------------------------------------------------------------------ 12 --
   ENVIO
   ---------------------------------------------------------------------- */
.formulario__enviar { margin-top: var(--e-7); }

.aviso-importante {
  display: flex;
  gap: .6em;
  margin-top: var(--e-5);
  padding: var(--e-4);
  background: var(--verde-profundo);
  border: 1px solid var(--linha-fraca);
  border-left: 2px solid var(--dourado-escuro);
  border-radius: var(--r-2);
  font-size: var(--t-micro);
  line-height: 1.55;
  color: var(--texto-tenue);
}
.aviso-importante svg { width: 16px; height: 16px; flex: none; margin-top: .15em; color: var(--dourado-escuro); }

/* ------------------------------------------------------------------ 13 --
   ESTADO DE SUCESSO
   ---------------------------------------------------------------------- */
.sucesso { text-align: center; }

.sucesso__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--e-5);
  border-radius: var(--r-pill);
  background: rgba(201, 162, 39, .14);
  border: 1px solid var(--linha-forte);
  color: var(--dourado);
}
.sucesso__icone svg { width: 30px; height: 30px; }

.sucesso h3 { margin-bottom: var(--e-3); }
.sucesso__texto {
  color: var(--texto-suave);
  max-width: 40ch;
  margin-inline: auto;
}

.sucesso__resumo {
  margin: var(--e-6) 0;
  padding: var(--e-4) var(--e-5);
  background: var(--verde-profundo);
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-2);
  text-align: left;
  font-size: var(--t-peq);
}
.sucesso__resumo dl { display: grid; grid-template-columns: auto 1fr; gap: var(--e-2) var(--e-4); }
.sucesso__resumo dt { color: var(--texto-tenue); font-weight: 600; }
.sucesso__resumo dd { color: var(--branco-quente); font-weight: 600; text-align: right; }

.sucesso__acoes {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  margin-top: var(--e-6);
}

/* ------------------------------------------------------------------ 14 --
   RODAPÉ
   ---------------------------------------------------------------------- */
.rodape {
  background: var(--preto);
  border-top: 1px solid var(--linha-fraca);
  padding-block: var(--e-7);
}
.rodape__env {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-5);
  text-align: center;
}
.rodape__marca { display: flex; align-items: center; gap: var(--e-3); }
.rodape__marca img { width: 84px; height: auto; }
.rodape__local {
  font-size: var(--t-peq);
  color: var(--texto-tenue);
}
.rodape__social {
  display: flex;
  align-items: center;
  gap: var(--e-5);
}
.rodape__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--linha-fraca);
  border-radius: var(--r-pill);
  color: var(--creme);
  transition: border-color var(--padrao) var(--curva), color var(--padrao) var(--curva);
}
.rodape__social a:hover { border-color: var(--dourado); color: var(--dourado); }
.rodape__social svg { width: 18px; height: 18px; }

.rodape__voltar {
  font-size: var(--t-peq);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--dourado);
  border-bottom: 1px solid var(--linha-forte);
  padding-bottom: .2em;
}

.rodape__mini {
  font-size: var(--t-micro);
  color: var(--texto-tenue);
}

/* ------------------------------------------------------------------ 15 --
   RESPONSIVO
   ---------------------------------------------------------------------- */
@media (min-width: 560px) {
  .tipos { grid-template-columns: repeat(4, 1fr); }
  .tipo { flex-direction: column; text-align: center; gap: var(--e-2); padding-block: 1.1em; }
}

@media (min-width: 980px) {
  .pagina {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }
  .pagina__foto {
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .pagina__foto-tag { font-size: var(--t-peq); }
  .pagina__conteudo {
    padding: clamp(3.5rem, 6vw, 6rem) clamp(2rem, 5vw, 4.5rem);
  }
  .cabecalho-reserva, .cartao { margin-inline: 0; max-width: 560px; }
}

@media (min-width: 1400px) {
  .pagina__conteudo { padding-inline: clamp(2rem, 5vw, 6rem); }
}
