/*
 * Nanbook — tema "Vitrine" (público/site/themes/vitrine-*.php).
 * Usa os tokens de marca do tenant (--ps-*, já definidos em tenant-public.css
 * a partir de admin/branding.php) — nada de cor fixa aqui, pra servir
 * qualquer paleta que o estabelecimento configurar, não só a da Love Lash.
 */

/* ---------- Capa / hero ---------- */
.vt-hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 210px 20px 72px;
  background: var(--ps-bg);
}
.vt-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(1.05);
}
.vt-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ps-bg) 55%, transparent) 0%, var(--ps-bg) 92%);
}
.vt-hero.has-cover .vt-hero-inner { color: var(--ps-text); }
.vt-hero-inner { position: relative; max-width: 640px; display: flex; flex-direction: column; align-items: center; }

.vt-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;
}

/* Logo ÚNICA do tema: fixa e centralizada o tempo todo, em TODA página (fica
   em ps_header(), não em cada hero — por isso existe só uma vez, nunca
   duplica e nunca "pula" de lugar ao trocar de página). Começa grande, perto
   do topo da home (".is-expanded", só lá — ver site-vitrine.js), e encolhe
   pra se encaixar no cabeçalho ao rolar ou em qualquer outra página. Sempre
   um pouco maior que a barra (64px), de propósito. */
.vt-fixed-logo {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ps-surface); display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--ps-shadow-sm), 0 0 0 1px var(--ps-border);
  transition: width .32s ease, height .32s ease, top .32s ease;
}
.vt-fixed-logo.is-expanded {
  top: 24px; width: 190px; height: 190px;
  box-shadow: var(--ps-shadow), 0 0 0 1px var(--ps-border);
}
/* sem respiro ao redor: a logo preenche a moldura toda. object-fit:cover já
   evita sobra nas bordas se a imagem for quadrada; o scale() compensa a
   margem que vem de dentro do PRÓPRIO arquivo da logo (fundo em volta da
   marca d'água), aproximando mais a marca do tamanho real da moldura. */
.vt-fixed-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); }
.vt-brand-fallback { font-size: 1.6rem; font-weight: 800; color: var(--ps-primary); }
.vt-fixed-logo.is-expanded .vt-brand-fallback { font-size: 2.6rem; }

/* escondido: o logo padrão do cabeçalho nunca aparece neste tema — só a
   logo única fixa/centralizada acima. */
.ps-layout-vitrine .ps-header .ps-brand { display: none; }

/* menu sempre pelo ☰, em qualquer largura de tela — neste tema o centro do
   cabeçalho é só da logo; links de texto ali colidiam com ela no desktop. */
.ps-layout-vitrine .ps-nav { display: none !important; }
.ps-layout-vitrine .ps-burger { display: inline-flex !important; }

/* menu compacto, ancorado embaixo do ícone (não a barra cheia padrão do site) */
.ps-layout-vitrine .ps-mobile-nav {
  position: fixed; top: calc(var(--ps-header-h, 64px) + 10px); right: 16px; left: auto;
  width: min(230px, calc(100vw - 32px)); z-index: 65;
  max-height: calc(100vh - var(--ps-header-h, 64px) - 24px); overflow-y: auto;
  border: 1px solid var(--ps-border); border-bottom: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-sm); box-shadow: var(--ps-shadow);
  padding: 8px; gap: 1px;
}
.ps-layout-vitrine .ps-mobile-nav a { padding: 10px 12px; font-size: .9rem; }

.vt-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ps-primary); margin: 0 0 8px;
}
.vt-intro { font-size: 1.08rem; color: var(--ps-muted); max-width: 46ch; margin: 18px 0; }

.vt-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 28px; }
.vt-pills li {
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-text);
}

.vt-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* botão principal com tratamento tipográfico PRÓPRIO — se distingue do resto do texto */
a.vt-btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 999px;
  background: var(--ps-primary); color: var(--ps-primary-contrast);
  font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; box-shadow: var(--ps-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.vt-btn-cta:hover { transform: translateY(-2px); box-shadow: var(--ps-shadow); }
a.vt-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  background: transparent; color: var(--ps-text); border: 1px solid var(--ps-border);
  font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.vt-btn-ghost:hover { border-color: var(--ps-primary); background: var(--ps-tint); }

a.vt-scroll-cue {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-primary);
  animation: vt-bob 2.2s ease-in-out infinite; z-index: 1;
}
@keyframes vt-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- balão de informações — mora no cabeçalho, em toda página do tema ---------- */
.vt-info { position: relative; flex: none; }
.vt-info-trigger {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-primary);
  font-size: 1.05rem; cursor: pointer; box-shadow: var(--ps-shadow-sm);
}
.vt-info-trigger:hover { background: var(--ps-tint); }
.vt-info-balloon {
  position: fixed; top: calc(var(--ps-header-h, 64px) + 8px); left: 16px;
  width: min(280px, calc(100vw - 32px)); max-height: calc(100vh - var(--ps-header-h, 64px) - 20px);
  overflow-y: auto; z-index: 66;
  background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius-sm);
  box-shadow: var(--ps-shadow); padding: 12px; text-align: left;
}
.vt-info-balloon p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 7px; font-size: .8rem; line-height: 1.3; color: var(--ps-text); }
.vt-info-balloon p:last-of-type { margin-bottom: 0; }
.vt-info-balloon i { color: var(--ps-primary); margin-top: 2px; flex: none; font-size: .85em; }
.vt-info-today { font-weight: 700; color: var(--ps-text); background: var(--ps-tint); margin: 0 -8px 7px; padding: 4px 8px; border-radius: 6px; }
.vt-info-today i { color: var(--ps-primary); }
a.vt-info-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--ps-primary); text-decoration: none; }
.vt-info-map {
  width: 100%; aspect-ratio: 16 / 7; border-radius: var(--ps-radius-sm); overflow: hidden;
  margin-bottom: 8px; background: var(--ps-tint);
}
.vt-info-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- textos/cartões que surgem ao rolar ---------- */
[data-vt-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-vt-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-vt-reveal][data-vt-reveal-delay="1"] { transition-delay: .08s; }
[data-vt-reveal][data-vt-reveal-delay="2"] { transition-delay: .16s; }
[data-vt-reveal][data-vt-reveal-delay="3"] { transition-delay: .24s; }
[data-vt-reveal][data-vt-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-vt-reveal] { opacity: 1; transform: none; transition: none; }
  .vt-scroll-cue { animation: none; }
}

/* ---------- seção de serviços ---------- */
.vt-section { padding: 64px 0; }
.vt-section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.vt-section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 0; }

.vt-cat-group { margin-bottom: 40px; }
.vt-cat-group:last-child { margin-bottom: 0; }
.vt-cat-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 16px; padding-left: 2px; }

.vt-swiper-wrap { position: relative; }
.vt-swiper .swiper-slide { height: auto; }
.vt-swiper .swiper-button-next, .vt-swiper .swiper-button-prev {
  color: var(--ps-primary); background: var(--ps-surface); width: 38px; height: 38px;
  border-radius: 50%; box-shadow: var(--ps-shadow-sm);
}
.vt-swiper .swiper-button-next::after, .vt-swiper .swiper-button-prev::after { font-size: 14px; font-weight: 800; }
.vt-swiper .swiper-pagination-bullet-active { background: var(--ps-primary); }

/* cartão de serviço — imagem retangular (não círculo) */
.vt-card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius);
  overflow: hidden; box-shadow: var(--ps-shadow-sm);
}
.vt-card-media { aspect-ratio: 4 / 3; background: var(--ps-tint); overflow: hidden; }
.vt-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-card-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; color: var(--ps-primary); }
.vt-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vt-card-body h4 { margin: 0; font-size: 1.02rem; }
.vt-card-body p { margin: 0; font-size: .84rem; color: var(--ps-muted); flex: 1; }

.vt-card-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.vt-card-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: var(--ps-radius-sm);
  background: var(--ps-tint); border: 1px solid transparent; text-decoration: none; color: var(--ps-text);
  transition: border-color .15s ease, background .15s ease;
}
.vt-card-option:hover { border-color: var(--ps-primary); background: var(--ps-surface); }
.vt-card-option-label { font-weight: 700; font-size: .88rem; }
.vt-card-option-meta { font-size: .8rem; color: var(--ps-muted); white-space: nowrap; }
.vt-card-option.is-single { background: var(--ps-primary); border-color: var(--ps-primary); }
.vt-card-option.is-single .vt-card-option-label,
.vt-card-option.is-single .vt-card-option-meta { color: var(--ps-primary-contrast); }

@media (min-width: 680px) {
  .vt-hero { padding: 72px 24px 90px; }
}

/* ---------- botão flutuante único (só ícone real do WhatsApp) ---------- */
a.vt-fab-whatsapp {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 1.5rem;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.45);
}
@media (min-width: 900px) { .vt-fab-whatsapp { display: none; } }

/* ---------- equipe em slides — só a foto, sem moldura nem fundo atrás ---------- */
.vt-pro-card {
  height: 100%; display: flex; flex-direction: column; border-radius: var(--ps-radius);
  overflow: hidden; background: var(--ps-surface); box-shadow: var(--ps-shadow-sm);
}
.vt-pro-media { aspect-ratio: 1 / 1; background: var(--ps-tint); }
.vt-pro-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-pro-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: var(--ps-primary); }
.vt-pro-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vt-pro-body h4 { margin: 0; font-size: 1.02rem; }
