/* =========================================================
   Navegação da Santa (js/site-nav.js)
   - barra (desktop): Serviços ▾  Cardápios ▾  ·  logo  ·  Empresa ▾  [Contato →]
     telas menores: [Menu]  ·  logo  ·  [Contato →] (os atalhos ficam no menu completo)
     usada no topo da Home (sobre o cartão vermelho) e no header fixo de todas as páginas
   - menu completo: diálogo azul de tela cheia com todas as páginas, prévia em foto e orçamento
   As cores vêm de --nav-fg / --cta-bg / --cta-fg (cada barra define as suas).
   ========================================================= */
.nav-group { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); min-width: 0; }
.nav-group--end { justify-content: flex-end; }

/* link de texto: caixa alta espaçada (como o SERVIÇOS · CONTATE originais), sublinhado que nasce do centro */
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 0;
  border: 0; background: none; cursor: pointer;
  font: 700 12px/1 "Montserrat", system-ui, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: inherit; text-decoration: none;
}
.nav-link > span { position: relative; }
.nav-link > span::after {
  content: ""; position: absolute; left: 0; right: .16em; bottom: -5px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.nav-link:hover > span::after, .nav-link:focus-visible > span::after,
.nav-link[aria-current="page"] > span::after, .nav-link[aria-expanded="true"] > span::after { transform: scaleX(1); }
.nav-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .35s cubic-bezier(.22, 1, .36, 1); }
.nav-link[aria-expanded="true"] svg { rotate: 180deg; }

/* botão Menu: pílula com contorno; o ícone de duas linhas desliza no hover */
.nav-menu {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: inherit;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent);
  font: 700 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  transition: box-shadow .3s, background-color .3s, color .3s;
}
.nav-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-menu svg path { transition: d .35s cubic-bezier(.22, 1, .36, 1); }
.nav-menu:hover svg path { d: path("M4 8h16M4 16h16"); }
.nav-menu:hover { box-shadow: inset 0 0 0 1.5px currentColor; }

/* CTA Contato: pílula cheia */
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 18px;
  border-radius: 999px;
  background: var(--cta-bg, #fdf2e1); color: var(--cta-fg, #eb4945);
  font: 700 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}
.nav-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate .4s cubic-bezier(.22, 1, .36, 1); }
.nav-cta:hover, .nav-cta:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(10, 20, 80, .45); }
.nav-cta:hover svg { translate: 3px 0; }

/* dropdowns Serviços, Cardápios e Empresa: cartões com foto
   (Serviços abre alinhado à esquerda do botão e Empresa à direita, para não encostar nas bordas) */
.nav-drop { position: relative; }
.nav-pop {
  position: absolute; z-index: 20; top: calc(100% + 14px); left: 50%;
  display: grid; gap: 6px;
  width: 340px; padding: 8px;
  border-radius: 24px;
  background: #fdf2e1; color: #1737c3;
  box-shadow: 0 24px 60px -20px rgba(10, 20, 80, .45);
  opacity: 0; visibility: hidden; translate: -50% -8px;
  transition: opacity .25s ease, translate .35s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .35s;
}
.nav-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* ponte para o mouse */
.nav-drop.is-open .nav-pop { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.nav-drop--start .nav-pop { left: -10px; translate: 0 -8px; }
.nav-drop--end .nav-pop { left: auto; right: -10px; translate: 0 -8px; }
.nav-drop--start.is-open .nav-pop, .nav-drop--end.is-open .nav-pop { translate: 0 0; }
.nav-pop__card {
  display: grid; grid-template-columns: 64px 1fr 18px; align-items: center; gap: 14px;
  padding: 8px 14px 8px 8px; border-radius: 18px;
  color: inherit; text-decoration: none;
  transition: background-color .25s;
}
.nav-pop__card:hover, .nav-pop__card:focus-visible { background: #fff; }
.nav-pop__img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #1737c3; overflow: hidden; }
.nav-pop__img img { width: 100%; height: 100%; object-fit: cover; }
.nav-pop__img--contain img { object-fit: contain; padding: 4px; }
/* página que ainda não existe: sem link, foto apagada e selo "Em breve" */
.nav-pop__card.is-soon { cursor: default; }
.nav-pop__card.is-soon:hover { background: rgba(255, 255, 255, .5); }
.nav-pop__card.is-soon .nav-pop__img img { opacity: .55; filter: grayscale(.4); }
.nav-pop__soon {
  align-self: center; justify-self: end;
  padding: 5px 8px; border-radius: 999px;
  background: #f7d3cf; color: #eb4945;
  font: 700 9px/1 "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  rotate: -3deg;
}
.nav-pop__card.is-soon { grid-template-columns: 64px 1fr auto; }
.nav-pop__txt { display: grid; gap: 3px; font: 400 12px/1.35 "Montserrat", sans-serif; color: rgba(23, 55, 195, .72); }
.nav-pop__txt strong { font-size: 14px; font-weight: 700; color: #1737c3; }
.nav-pop__card > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate .35s cubic-bezier(.22, 1, .36, 1); }
.nav-pop__card:hover > svg { translate: 3px 0; }

.nav-link:focus-visible, .nav-menu:focus-visible, .nav-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 999px; }

/* ---------- topo da Home (sobre o cartão vermelho) ---------- */
.hnav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #fff;
  --cta-bg: #fdf2e1; --cta-fg: #eb4945;
}

/* desktop: a barra fica no alto do cartão vermelho, com o logo grande da Santa no meio.
   As bordas seguem o conteúdo do cartão: Serviços começa onde começa "serviço de bartenders" (x 132)
   e Contato termina onde termina "Role a página" (x 1317), longe dos cantos arredondados */
@container page (min-width: 1180px) {
  .hnav { position: absolute; top: calc(42 * var(--u)); left: calc(132 * var(--u)); right: calc(123 * var(--u)); }
  .hnav .nav-menu { display: none; }
}
@container page (max-width: 599px) {
  .hnav { margin: -6px -6px 0; }
}

/* ---------- header fixo ---------- */
.sitebar .sitebar__inner { --cta-bg: var(--bar-fg); --cta-fg: var(--bar-bg); }
.sitebar--on-blue .sitebar__inner { --cta-bg: #fff; --cta-fg: #1737c3; }
.sitebar .sitebar__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.sitebar .nav-menu, .sitebar .nav-cta { height: 38px; }

/* abaixo dessas larguras ficam só Menu, logo e Contato (todos os atalhos continuam no menu):
   no topo da Home o logo grande ocupa o meio; no header fixo o logo é pequeno e sobra mais espaço */
@container page (max-width: 1179px) { .hnav .nav-wide { display: none !important; } }   /* mesma régua do cartão (container) */
@media (max-width: 1023px) { .sitebar .nav-wide { display: none !important; } }
@media (min-width: 1024px) { .sitebar .nav-menu { display: none; } }   /* com os atalhos à vista, o Menu sai */
@media (min-width: 1024px) and (max-width: 1279px) {
  .sitebar .nav-group { gap: 14px; }
  .sitebar .nav-link, .sitebar .nav-menu, .sitebar .nav-cta { letter-spacing: .1em; font-size: 11px; }
}
/* telas de toque: Menu e Contato com 44px de altura (dentro da barra de 56px) */
@media (pointer: coarse) {
  .nav-menu, .nav-cta, .sitebar .nav-menu, .sitebar .nav-cta { height: 44px; }
  .sitebar__logo, .smenu__logo { min-width: 44px; min-height: 44px; justify-content: center; }   /* só a área de toque cresce; o desenho do logo é o mesmo */
}
@media (max-width: 480px) {
  .nav-menu { height: 44px; padding: 0 14px 0 12px; letter-spacing: .12em; }
  .nav-cta { height: 44px; padding: 0 14px 0 16px; letter-spacing: .12em; font-size: 11px; }
  .nav-cta svg { display: none; }
  .sitebar .nav-menu span { display: none; }
  .sitebar .nav-menu { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .sitebar .nav-cta { height: 44px; }
  .sitebar .sitebar__inner { padding: 0 6px; }   /* botões de 44px concêntricos às pontas da pílula de 56px */
}

/* =========================================================
   MENU COMPLETO
   ========================================================= */
.smenu {
  position: fixed; inset: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #1737c3; color: #fdf2e1;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0 round 0 0 48px 48px);
  transition: clip-path .6s cubic-bezier(.76, 0, .24, 1);
  --cta-bg: #fdf2e1; --cta-fg: #eb4945;
}
.smenu.is-in { clip-path: inset(0 0 0 0 round 0); }
.smenu::backdrop { background: transparent; }
html.has-menu { overflow: hidden; }
.smenu::before {                                    /* luz suave, como o fundo da seção de números */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 25% 35%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%);
}
.smenu__bar {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(1378px, calc(100% - 2 * clamp(12px, 2.08vw, 30px)));
  height: clamp(56px, 4.6vw, 66px);
  margin: clamp(10px, 1.2vw, 16px) auto 0;
  padding: 0 clamp(14px, 2.2vw, 30px);
}
.smenu__close { justify-self: start; }
.smenu__cta { justify-self: end; }
.smenu__logo { display: flex; align-items: center; gap: 10px; color: inherit; }
.smenu__logo i { display: block; background: currentColor; -webkit-mask: var(--m) no-repeat center / 100% 100%; mask: var(--m) no-repeat center / 100% 100%; }

.smenu__body {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px);
  width: min(1300px, calc(100% - 2 * clamp(20px, 4vw, 60px)));
  margin: clamp(20px, 2.6vw, 40px) auto 0;
  padding-bottom: 48px;
}
.smenu__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.smenu__row {
  padding: clamp(10px, .9vw, 14px) 0;
  border-top: 1.5px dashed rgba(253, 242, 225, .22);
  opacity: 0; translate: 0 18px;
  transition: opacity .5s ease, translate .7s cubic-bezier(.22, 1, .36, 1);
}
.smenu.is-in .smenu__row { opacity: 1; translate: 0 0; transition-delay: calc(.18s + var(--i) * 55ms); }
.smenu__row:last-child { border-bottom: 1.5px dashed rgba(253, 242, 225, .22); }
.smenu__item {
  display: flex; align-items: baseline; gap: clamp(12px, 1.4vw, 22px);
  color: inherit; text-decoration: none;
}
.smenu__num { flex: none; width: 2.2em; font: 700 12px/1 "Montserrat", sans-serif; letter-spacing: .14em; color: #f7d3cf; translate: 0 -.4em; }
.smenu__label {
  font-family: var(--font-display, "Spalla", serif); font-weight: 800;
  font-size: clamp(30px, 3.4vw, 50px); line-height: .95; text-transform: uppercase;
  transition: color .3s, translate .5s cubic-bezier(.22, 1, .36, 1);
}
a.smenu__item:hover .smenu__label, a.smenu__item:focus-visible .smenu__label,
.smenu__row.is-hot a.smenu__item .smenu__label { color: #f7d3cf; translate: 10px 0; }
.smenu__item[aria-current="page"] .smenu__label { color: #f7d3cf; }
.smenu__item:focus-visible { outline: 2px solid #fdf2e1; outline-offset: 6px; border-radius: 8px; }
.is-soon .smenu__label { color: transparent; -webkit-text-stroke: 1.2px rgba(253, 242, 225, .7); font-weight: 300; }
.smenu__soon {
  align-self: center; flex: none;
  padding: 6px 10px; border-radius: 999px;
  background: #f7d3cf; color: #eb4945;
  font: 700 10px/1 "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  rotate: -3deg;
}
.smenu__desc { margin: 4px 0 0; font: 400 13px/1.5 "Montserrat", sans-serif; color: rgba(253, 242, 225, .66); }
.smenu__desc { margin-left: calc(26px + clamp(12px, 1.4vw, 22px)); }

.smenu__aside {
  position: sticky; top: 24px; align-self: start;
  display: grid; gap: 20px;
  opacity: 0; translate: 0 24px;
  transition: opacity .6s ease .35s, translate .8s cubic-bezier(.22, 1, .36, 1) .35s;
}
.smenu.is-in .smenu__aside { opacity: 1; translate: 0 0; }
.smenu__preview {
  position: relative; margin: 0;
  aspect-ratio: 4 / 4.6; max-height: 62vh;
  border-radius: 32px; overflow: hidden;
  background: rgba(253, 242, 225, .08);
}
.smenu__preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; scale: 1.06;
  transition: opacity .5s ease, scale 1.2s cubic-bezier(.22, 1, .36, 1);
}
.smenu__preview img.is-on { opacity: 1; scale: 1; }
.smenu__where { display: flex; gap: 10px; font: 700 11px/1.6 "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(253, 242, 225, .75); }
.smenu__where svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 1023px) {
  .smenu__body { grid-template-columns: minmax(0, 1fr); }
  .smenu__aside { position: static; }
  .smenu__preview { display: none; }
}
/* ---------- menu completo em tablet e celular ----------
   Sem mouse não há prévia por hover: a página atual ganha uma faixa rosa à esquerda da linha (além do rótulo rosa),
   para quem abre o menu saber onde está. No desktop continua só a cor. */
.smenu__cta-m { display: none; }
@media (max-width: 1023px) {
  .smenu__row.is-here { position: relative; }
  .smenu__row.is-here::before {
    content: ""; position: absolute; left: calc(-1 * clamp(10px, 2vw, 18px)); top: clamp(12px, 1vw, 16px); bottom: clamp(12px, 1vw, 16px);
    width: 4px; border-radius: 4px; background: #f7d3cf;
  }
  .smenu__row.is-here .smenu__label { color: #f7d3cf; }
}
/* telas de toque: o deslocamento do rótulo no hover ficaria "preso" depois do toque */
@media (hover: none) {
  a.smenu__item:hover .smenu__label, .smenu__row.is-hot a.smenu__item .smenu__label { translate: none; }
}
/* alvo de toque com 44px de altura (Fechar) */
@media (pointer: coarse) {
  .smenu__close { height: 44px; }
}
/* tablet e celular: a barra fica com Fechar à esquerda e o logo à direita (o "Solicite um orçamento" saiu dela);
   os itens ficam no alto e o orçamento, num botão largo, desce com Chapecó até o pé da tela, ao alcance do polegar */
@media (max-width: 1023px) {
  .smenu__bar { grid-template-columns: auto 1fr; gap: 10px; }
  .smenu__logo { justify-self: end; }
  .smenu__cta { display: none; }
  .smenu[open] { display: flex; flex-direction: column; }
  .smenu__body { flex: 1; display: flex; flex-direction: column; gap: 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .smenu__nav { margin-bottom: 32px; }
  .smenu__cta-m {
    display: flex; justify-content: center; gap: 10px;
    height: 54px; margin-top: auto; padding: 0 20px;
    font-size: 12px; letter-spacing: .14em;
    opacity: 0; translate: 0 18px;
    transition: opacity .5s ease .5s, translate .7s cubic-bezier(.22, 1, .36, 1) .5s;
  }
  .smenu.is-in .smenu__cta-m { opacity: 1; translate: 0 0; }
  .smenu__cta-m:focus-visible { outline: 2px solid #fdf2e1; outline-offset: 4px; }
  .smenu__aside { margin-top: 16px; }
  .smenu__where { justify-content: center; text-align: center; }
}
/* celular: Fechar vira só o X (círculo de 44px, como o botão Menu do header); as descrições saem e os nomes
   ficam menores, para a lista caber numa tela sem rolar */
@media (max-width: 600px) {
  .smenu__close { width: 44px; padding: 0; justify-content: center; }
  .smenu__close span { display: none; }
  .smenu__body { margin-top: 14px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .smenu__nav { margin-bottom: 28px; }
  .smenu__num { display: none; }
  .smenu__desc { display: none; }
  .smenu__row { padding: 12px 0; }
  .smenu__label { font-size: clamp(26px, 8vw, 32px); }
  .is-soon .smenu__label { font-size: clamp(22px, 6.6vw, 26px); }
}

@media (prefers-reduced-motion: reduce) {
  .smenu, .smenu__row, .smenu__aside, .smenu__cta-m, .smenu__preview img, .nav-pop { transition: none !important; }
  .smenu__row, .smenu__aside, .smenu__cta-m { opacity: 1; translate: none; }
}

/* =========================================================
   PÁGINAS INTERNAS (header .sitebar--sub): [voltar] logo ··· [Solicite um orçamento]; no celular [Menu] logo [WhatsApp]
   O botão é o mesmo verde dos botões de WhatsApp da Home (glifo e texto brancos)
   ========================================================= */
.sitebar.sitebar--sub .sitebar__inner { display: flex; justify-content: space-between; gap: 16px; }   /* logo à esquerda, botão à direita */
/* tablet e celular: [Menu] logo ··· [orçamento]. O botão Menu só existe até 1023px (regra do header fixo acima) */
.nav-menu--sub { flex: none; }
.sitebar--sub .sitebar__logo { margin-right: auto; }
@media (max-width: 1023px) { .sitebar.sitebar--sub .sitebar__inner { gap: 12px; } }
/* tablets deitados (1024px ou mais, sem mouse): continuam com o Menu, já que as páginas internas não têm atalhos */
@media (min-width: 1024px) and (hover: none) {
  .sitebar.sitebar--sub .nav-menu--sub { display: inline-flex; }
  .sitebar.sitebar--sub .sitebar__inner { gap: 14px; }
}
.nav-wa {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px 0 5px;
  border-radius: 999px;
  background: #188741; color: #fff;                 /* verde do WhatsApp escurecido: texto branco com contraste 4.6:1 */
  font: 700 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(10, 60, 30, .6);
  transition: background-color .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}
.nav-wa__ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: rotate .6s cubic-bezier(.34, 1.56, .64, 1); }
.nav-wa__ico svg { width: 18px; height: 18px; }
.nav-wa__short { display: none; }
.nav-wa:hover, .nav-wa:focus-visible { background: #147137; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(10, 60, 30, .7); }
.nav-wa:hover .nav-wa__ico { rotate: -12deg; }
.sitebar .nav-wa:focus-visible { outline-color: #188741; border-radius: 999px; }
@media (pointer: coarse) { .nav-wa { height: 44px; } }
/* tablet e celular: o orçamento vira só o círculo verde com o glifo do WhatsApp (o nome acessível continua no
   aria-label do link). No celular, [Menu] · logo · [WhatsApp], sem a seta de voltar (o gesto de voltar do aparelho
   faz isso) e com o logo no meio, como no header da Home */
@media (max-width: 1023px), (hover: none) {        /* tablet e celular (e tablets deitados): só o ícone */
  .nav-wa { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; }
  .nav-wa__full { display: none; }
  .nav-wa__ico { width: 44px; height: 44px; background: none; }
  .nav-wa__ico svg { width: 21px; height: 21px; }
}
@media (max-width: 600px) {
  .sitebar--sub .sitebar__back { display: none; }
  .sitebar.sitebar--sub .sitebar__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .sitebar--sub .sitebar__logo { margin-right: 0; }
  .sitebar--sub .nav-wa { justify-self: end; }
}
