/* Base compartilhada: reset, acessibilidade e estrutura dos componentes comuns.
   Cada modelo define as variáveis de cor, tipografia e forma. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--altura-header, 72px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--fonte-texto); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
html.menu-aberto { overflow: hidden; }

:focus-visible { outline: 2px solid var(--foco, currentColor); outline-offset: 3px; }
.sr-only { 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: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--fg); color: var(--bg); text-decoration: none; }
.pular:focus { top: 12px; }

svg.lucide { width: 1.1em; height: 1.1em; flex: none; }

/* Ícone do WhatsApp (Simple Icons) aplicado como máscara para herdar a cor do texto */
.wa-ico { display: inline-block; width: 1.15em; height: 1.15em; flex: none; background: currentColor;
  -webkit-mask: url("../assets/icones/whatsapp.svg") center / contain no-repeat;
  mask: url("../assets/icones/whatsapp.svg") center / contain no-repeat; }

/* Entrada ao rolar: só com JS e sem movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Galeria */
.foto[hidden] { display: none; }
.foto__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.foto__btn img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox[open] { display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] { animation: lb-in .35s cubic-bezier(.16, 1, .3, 1); } }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: grid; place-items: center; gap: 14px; width: 100%; height: 100%; padding: 64px 16px 24px; }
.lightbox__img { max-width: min(92vw, 1080px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__legenda { font-size: .9rem; color: rgba(255, 255, 255, .72); text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--raio-botao, 0); background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.lightbox__btn:hover { background: #fff; color: #000; border-color: #fff; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__fechar { top: 12px; right: 12px; }
.lightbox__ant { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__prox { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__ant, .lightbox__prox { top: auto; bottom: 16px; transform: none; } }

/* Mapa */
.mapa { position: relative; overflow: hidden; min-width: 0; background: var(--superficie); }
.mapa iframe { width: 100%; height: 100%; border: 0; }
.mapa__carregar { position: absolute; inset: 0; display: grid; place-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: var(--fg-suave); cursor: pointer; }

/* FAQ */
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.faq__item[open] summary svg { transform: rotate(45deg); }

/* Montador de agendamento */
.agendar { display: grid; gap: 22px; }
.agendar__grupo { margin: 0; padding: 0; border: 0; min-width: 0; }
.agendar__legenda { padding: 0; margin-bottom: 10px; font-weight: 600; }
.agendar__opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--linha-forte); border-radius: var(--raio-botao, 0); font-size: .92rem; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--foco, currentColor); outline-offset: 3px; }
.chip:hover span { border-color: var(--fg); }
.agendar__campo { display: grid; gap: 8px; }
.agendar__campo[hidden] { display: none; }
.agendar__campo label { font-weight: 600; }
.agendar__opcional { font-weight: 400; color: var(--fg-suave); }
.agendar__campo input { min-height: 48px; padding: 0 14px; border: 1px solid var(--linha-forte); border-radius: var(--raio-campo, 0); background: transparent; color: var(--fg); font: inherit; color-scheme: var(--esquema, light); }
.agendar__campo input:focus { border-color: var(--fg); outline: none; box-shadow: 0 0 0 1px var(--fg); }
.agendar__previa { padding: 16px 18px; border: 1px dashed var(--linha-forte); border-radius: var(--raio-campo, 0); }
.agendar__previa-titulo { font-size: .8rem; color: var(--fg-suave); margin-bottom: 6px; }
.agendar__previa-texto { white-space: pre-line; font-size: .92rem; }
.agendar__enviar { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--raio-botao, 0); background: var(--fg); color: var(--bg); font-weight: 600; cursor: pointer; transition: transform .15s, opacity .2s; }
.agendar__enviar:hover { opacity: .88; }
.agendar__enviar:active { transform: scale(.98); }
.agendar__aviso { font-size: .85rem; color: var(--fg-suave); }

/* Barra inferior no celular e botão flutuante no computador */
.barra-mobile { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--barra-bg, rgba(0, 0, 0, .9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linha); }
.barra-mobile a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--raio-botao, 0); text-decoration: none; font-weight: 600; font-size: .95rem; }
.barra-mobile__local { border: 1px solid var(--linha-forte); color: var(--fg); }
.barra-mobile__wa { background: var(--fg); color: var(--bg); }
.wa-flutuante { display: none; }
@media (max-width: 899px) { body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) {
  .barra-mobile { display: none; }
  .wa-flutuante { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .wa-flutuante .wa-ico { width: 26px; height: 26px; }
  .wa-flutuante:hover { transform: translateY(-3px); }
}
