/* ==========================================================================
   Lojas Próximas · BASE  (casca global — presente em TODAS as páginas)
   reset · página · cabeçalho · busca · menu · interruptor de tema · rodapé
   · primitivos (título, painel, botão, selo, nota)
   ========================================================================== */
* { box-sizing: border-box; }
html {background: var(--bg); scroll-behavior: smooth; }
body {
  padding: 0; margin: 0; color: var(--ink); background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Ícones do sprite (assets/img/icons.svg): <svg class="ico"><use href="#i-nome"/></svg> */
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-panel .ico, .search-where .ico, .note .ico { stroke-width: 1.8; }
.search-btn .ico { stroke-width: 2.2; }
button { -webkit-appearance: none; appearance: none; border: 0; box-shadow: none; font-family: inherit; }
.page { min-height: 100vh; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; background: var(--bg); }

/* Fundo de ícones + véu no topo */
.doodle-bg {
  position: absolute; z-index: -2; inset: 0;
  background: var(--bg) url("../img/doodle.svg") repeat; background-size: 1500px 1150px;
  filter: blur(1px);
  opacity: var(--doodle-opacity);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 90px, rgba(0,0,0,.5) 170px, #000 300px, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 90px, rgba(0,0,0,.5) 170px, #000 300px, #000 100%);
}
.white-wash {
  position: absolute; z-index: -1; inset: 0 0 auto; height: 240px; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 60%, transparent 100%);
}

/* Largura de conteúdo compartilhada */
.site-header, main, .footer-inner { width: var(--wrap); margin-inline: auto; }

/* ------------------------------ Cabeçalho ------------------------------ */
.site-header { height: 100px; display: flex; align-items: center; gap: 28px; position: relative; z-index: 5; flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand-logo, .footer-brand img { display: block; width: auto; background: var(--logo-bg); padding: var(--logo-pad); border-radius: var(--logo-radius); box-shadow: var(--logo-shadow); }
.brand-logo { height: 78px; }

/* Busca */
.search { position: relative; flex: 1 1 auto; max-width: 600px; margin: 0 auto; height: 52px; display: flex; align-items: center; padding: 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-ctl); transition: box-shadow .2s, border-color .2s; }
.search:focus-within { border-color: var(--heading); box-shadow: 0 8px 26px rgba(11,39,59,.12); }
.search-where { flex: 0 0 30%; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 0 12px; height: 30px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--heading); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.search-where svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--red-orange); }
.search-where span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--faint-2); }
.search-btn { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); cursor: pointer; transition: background .18s, transform .18s; }
.search-btn:hover { background: var(--brand-hover); transform: scale(1.05); }
.search-btn svg { width: 19px; height: 19px; }

/* Resultados da busca (painel flutuante) */
.results { position: absolute; left: 0; right: 0; top: 60px; z-index: 30; display: none; text-align: left; padding: 8px; background: var(--surface); border: 1px solid var(--line-faint); border-radius: 22px; box-shadow: var(--shadow-pop); }
.results.open { display: block; animation: rin .16s ease; }
@keyframes rin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.res-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px 8px; }
.res-title { font-size: 13px; color: var(--muted); }
.res-title b { color: var(--heading); }
.chips { display: flex; gap: 6px; }
.chip { white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.chip:hover { border-color: var(--heading); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.res-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 16px; text-decoration: none; color: inherit; }
.res-item:hover { background: var(--surface-hover); }
.res-ico { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--surface-soft); color: var(--heading); }
.res-ico svg { width: 24px; height: 24px; }
.res-ico.t-Produto { background: var(--prod-bg); color: var(--prod); }
.res-ico.t-Serviço { background: var(--ok-bg); color: var(--ok); }
.res-main { flex: 1 1 auto; min-width: 0; }
.res-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 750; font-size: 16px; color: var(--heading); }
.res-name mark { background: var(--mark-bg); color: inherit; border-radius: 4px; padding: 0 1px; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .3px; }
.res-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.open-s { color: var(--ok); font-weight: 650; }
.closed-s { color: var(--bad); font-weight: 650; }
.res-side { text-align: right; flex: 0 0 auto; }
.res-price { font-weight: 800; font-size: 16px; color: var(--ink); }
.res-price small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.res-rate { margin-top: 2px; font-size: 12.5px; color: var(--faint); }
.res-rate b { color: var(--star); }
.res-all { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 8px); margin: 6px 4px 4px; padding: 13px; border-radius: 14px; background: var(--surface-hover); color: var(--heading); font: inherit; font-weight: 750; font-size: 15px; cursor: pointer; transition: background .18s; }
.res-all:hover { background: var(--surface-pressed); }
.res-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 15px; }

/* Menu */
.menu-wrap { flex: 0 0 auto; position: relative; }
.menu { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-ctl); cursor: pointer; transition: border-color .2s; }
.menu:hover { border-color: var(--heading); }
.menu span { display: block; width: 20px; height: 2px; border-radius: 5px; background: var(--heading); transition: transform .22s, opacity .18s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 60px; z-index: 20; width: 330px; padding: 10px; background: var(--surface); border: 1px solid var(--line-faint); border-radius: 22px; box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .18s, transform .18s; }
.menu-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-panel a.item, .menu-panel button.item { display: flex; width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; cursor: pointer; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--heading); font-weight: 700; font-size: 16px; }
.menu-panel a.item:hover, .menu-panel button.item:hover { background: var(--surface-hover); }
.menu-panel a.item i, .menu-panel button.item i { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--heading); }
.menu-panel a.item i svg, .menu-panel button.item i svg { width: 19px; height: 19px; }
.menu-panel a.item small, .menu-panel button.item small { display: block; margin-top: 1px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.menu-sep { height: 1px; margin: 8px 10px; background: var(--line-soft); }

/* Interruptor de tema (sol / lua) */
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px 10px; }
.theme-label b { display: block; font-size: 16px; font-weight: 700; color: var(--heading); }
.theme-label small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.theme-switch { position: relative; flex: 0 0 auto; width: 68px; height: 34px; padding: 0; cursor: pointer; border: 1px solid var(--sw-border); border-radius: 999px; background: var(--sw-track); transition: background .3s, border-color .3s; }
.theme-switch:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ts-ico { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; display: grid; place-items: center; opacity: .7; transition: opacity .3s; }
.ts-sun-bg { left: 9px; } .ts-moon-bg { right: 9px; }
.ts-ico svg, .ts-thumb svg { width: 16px; height: 16px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-ico svg { stroke: var(--sw-icon); }
.ts-thumb { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--sw-thumb); box-shadow: 0 2px 6px rgba(11,39,59,.28); transition: transform .32s cubic-bezier(.4,.1,.2,1.2), background .3s; }
.ts-thumb svg { grid-area: 1 / 1; transition: opacity .25s, transform .4s; }
.ts-sun { stroke: #f08a0c; }
.ts-moon { stroke: #c9d6ff; fill: #c9d6ff; opacity: 0; transform: rotate(-60deg) scale(.6); }
.theme-switch[aria-checked="false"] .ts-sun-bg, .theme-switch[aria-checked="true"] .ts-moon-bg { opacity: 0; }
.theme-switch[aria-checked="true"] .ts-thumb { transform: translateX(34px); }
.theme-switch[aria-checked="true"] .ts-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
.theme-switch[aria-checked="true"] .ts-moon { opacity: 1; transform: none; }

/* ------------------------------- Conteúdo ------------------------------ */
main { margin-top: 34px; padding-bottom: 90px; flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
main > .panel { min-width: 0; }

/* Painel (seção) */
.panel { position: relative; padding: clamp(26px, 4.4vw, 56px); background: var(--surface-panel); border: 1px solid var(--panel-line); border-radius: var(--radius-panel); box-shadow: var(--shadow-md); backdrop-filter: blur(7px); scroll-margin-top: 24px; }
.panel-head { max-width: 680px; margin-bottom: 30px; }
.panel-head.center { margin-inline: auto; text-align: center; }
.panel-head.center .eyebrow { justify-content: center; }

/* Tipografia */
.eyebrow { display: inline-flex; justify-content: center; align-items: center; gap: 9px; margin-bottom: 20px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--eyebrow); }
.eyebrow:before, .footer-col h3:before { content: ""; width: 26px; height: 3px; border-radius: 8px; background: var(--orange); }
h1 { margin: 0 0 24px; color: var(--heading); font-size: clamp(42px, 5.6vw, 72px); line-height: .99; letter-spacing: -3.5px; font-weight: 850; }
h2 { margin: 0 0 14px; color: var(--heading); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -1.6px; font-weight: 850; }
.subtitle { margin: 0 auto 32px; max-width: 460px; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; color: var(--text-2); }
.lead { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--text-2); }
.sample-note { margin: 16px 0 0; font-size: 12.5px; color: var(--faint-2); }

/* Botões */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 34px; border-radius: 999px; background: var(--pill-bg, linear-gradient(180deg, var(--brand-hi), var(--brand))); color: var(--pill-fg, var(--on-brand)); text-decoration: none; font-weight: 750; font-size: 17px; box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .18s, background .18s; }
.cta:hover { transform: translateY(-2px); background: var(--brand-hover); }
.cta:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(7,59,96,.18), inset 0 2px 4px rgba(0,0,0,.18); }
.cta.ghost { background: var(--surface-2); color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--heading); }
.cta.ghost:hover { background: var(--surface-hover); }

/* Selos de status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; white-space: nowrap; font-size: 11.5px; font-weight: 750; letter-spacing: .2px; }
.badge:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.st-disponivel, .badge.st-concluida { color: var(--ok); background: var(--ok-bg); }
.badge.st-desenvolvimento, .badge.st-andamento { color: var(--warn); background: var(--warn-bg); }
.badge.st-planejado, .badge.st-planejada { color: var(--muted); background: var(--surface-soft); }

/* Nota informativa */
.note { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; padding: 16px 20px; border-radius: 16px; background: var(--surface-note); color: var(--text-2); font-size: 14px; line-height: 1.6; }
.note svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; color: var(--heading); }

/* ------------------------------- Rodapé -------------------------------- */
.site-footer { flex: 0 0 auto; width: 100%; position: relative; z-index: 5; background: var(--bg); }
.site-footer:before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--orange) 50% 75%, var(--red-orange) 75% 100%); }
.footer-inner { padding: 56px 0 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 80px; }
.footer-brand img { height: 64px; margin-bottom: 18px; }
.footer-brand p { margin: 0; max-width: 360px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.footer-col h3 { display: flex; align-items: center; gap: 9px; margin: 4px 0 18px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--eyebrow); }
.footer-col h3:before { width: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); text-decoration: none; font-weight: 650; font-size: 16px; transition: color .18s; }
.footer-links a:after { content: "→"; opacity: 0; transform: translateX(-4px); transition: .18s; color: var(--orange); }
.footer-links a:hover { color: var(--brand-hover); }
.footer-links a:hover:after { opacity: 1; transform: none; }
.footer-bottom { grid-column: 1 / -1; margin-top: 16px; padding: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; line-height: 1.6; }

/* ------------------------------ Responsivo ----------------------------- */
@media (max-width: 760px) {
  :root { --wrap: calc(100% - 28px); --radius-panel: 23px; }
  .page { overflow: clip; }
  .site-header { position: sticky; top: 0; z-index: 50; width: 100%; height: auto; flex-wrap: nowrap; gap: 8px; padding: 8px 14px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
  .brand { order: 1; flex: 0 0 auto; margin-right: 0; }
  .brand-logo { height: 50px; }
  .menu-wrap { order: 3; }
  .menu { width: 42px; height: 42px; }
  .menu-panel { width: min(330px, calc(100vw - 28px)); }
  .search { order: 2; flex: 1 1 auto; min-width: 0; max-width: none; height: 44px; margin: 0; }
  .search-where { display: none; }
  .search input { padding-left: 16px; }
  .results { top: 56px; }
  .chips { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .chip { padding: 6px 11px; font-size: 12px; }
  .res-ico { width: 42px; height: 42px; }
  .res-item { gap: 11px; padding: 10px 8px; }
  .res-side { min-width: 74px; }
  main { margin-top: 14px; gap: 18px; padding-bottom: 60px; }
  .panel { padding: 26px 20px; }
  h1 { font-size: clamp(39px, 11vw, 58px); letter-spacing: -2px; }
  .subtitle { font-size: 17px; margin-bottom: 24px; }
  .cta { min-height: 54px; width: 100%; }
  .footer-inner { padding-top: 40px; grid-template-columns: 1fr; gap: 32px; }
  .footer-brand img { height: 54px; }
  .footer-bottom { flex-direction: column; padding-bottom: 26px; }
  .doodle-bg { background-size: 1200px 920px; }
  .white-wash { height: 200px; }
}
@media (max-width: 380px) { .panel { padding-inline: 15px; } }

/* Painel flutuante de resultados da busca do cabeçalho: mais largo que o campo, centralizado.
   O conteúdo (cartões vit-*) é estilizado em lp-components.css. */
#results {
  position: fixed; top: 88px; left: 16px; right: 16px; width: auto; max-width: 920px; margin-inline: auto; translate: none;
  box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  max-height: min(72vh, 680px); max-height: min(72dvh, 680px);
  padding: 12px; border-radius: 20px;
}
@media (max-width: 760px) {
  #results { top: 72px; left: 12px; right: 12px; max-width: none; padding: 9px; border-radius: 17px; }
}
