/* Base comum dos modelos de site do salão: reset, carregamento, gaveta de
   agendamento e rodapé. O visual de cada modelo vem de templates/<id>.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.has-sheet { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Carregando: um brilho discreto até o modelo chegar. */
.site.is-loading { min-height: 100dvh; background: #f3f4ef; }
.site-loading { height: 100dvh; background: linear-gradient(90deg, #eceee8 25%, #f6f7f3 50%, #eceee8 75%); background-size: 200% 100%; animation: site-shimmer 1.4s linear infinite; }
@keyframes site-shimmer { to { background-position: -200% 0; } }
.site-error { max-width: 520px; margin: 0 auto; padding: 48px 20px; font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #0f1d17; }
.site-error h1 { font-size: 26px; margin: 0 0 10px; }
.site-error p { color: #33423a; }

/* Gaveta de agendamento. */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 9, .55); opacity: 0; transition: opacity .22s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(92dvh, 100%); display: flex; flex-direction: column; background: var(--bk-surface-sheet, var(--bk-bg, #fcfcf9)); color: var(--bk-ink, #0f1d17); border-radius: var(--bk-sheet-radius, 22px) var(--bk-sheet-radius, 22px) 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: translateY(0); }
.sheet-grip { width: 44px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: var(--bk-line, #d3d9cf); flex-shrink: 0; }
.sheet-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bk-sunk, #e8ebe3); color: var(--bk-ink, #0f1d17); line-height: 1; display: grid; place-items: center; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; }
@media (min-width: 720px) {
  .sheet-panel { left: 50%; right: auto; top: 50%; bottom: auto; width: min(560px, calc(100% - 40px)); max-height: min(86vh, 820px); transform: translate(-50%, -46%); opacity: 0; border-radius: var(--bk-sheet-radius, 22px); transition: transform .22s ease, opacity .22s ease, bottom .22s ease; }
  .sheet.is-open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
  .sheet-body { padding: 26px 28px 30px; }
}

/* Foco visível em tudo que se toca (cada modelo pode refinar). */
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Barra fixa de agendar (cada modelo estiliza): some enquanto o botão do topo está visível. */
.cta-bar { transition: transform .22s ease, opacity .22s ease, bottom .22s ease; }
.cta-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* WhatsApp flutuante do salão: verde do WhatsApp escurecido (texto branco com contraste AA),
   visível depois do topo; no celular sobe acima da barra de marcar quando ela aparece e some só com a gaveta aberta. */
.wa-float { position: fixed; z-index: 21; right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 56px; height: 56px; border-radius: 999px; background: #1f7a4d; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 28px -10px rgba(10, 30, 20, .6); transition: transform .22s ease, opacity .22s ease, bottom .22s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid #1f7a4d; outline-offset: 3px; }
/* No topo o WhatsApp já está ao lado de "Agendar horário": o flutuante só aparece depois que o topo sai da tela (não cobre o primeiro preço). */
body.at-top .wa-float { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
body.has-sheet .wa-float { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (min-width: 760px) { .wa-float { width: 60px; height: 60px; bottom: 24px; right: 24px; } .wa-float svg { width: 28px; height: 28px; } }

/* Rodapé comum: discreto, com o Hermelo. */
.site-foot { margin: 0; padding: 16px 72px 76px; font-size: 13px; text-align: center; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: inherit; }
body.no-services .cta-bar { display: none; }
