/* ===================================================================
   Barbosa Informática: design tokens
   Base clara (branco/off-white) com uma faixa em vermelho sólido
   fiel à logo (CTA final), sem gradientes, sem "luzes".
=================================================================== */
:root {
  /* brand: extraído por amostragem de pixel dos arquivos reais da logo */
  --red-900: #860604;
  --red-700: #aa0a04;
  --red-600: #c81408;

  /* superfícies claras (branco -> leve realce quente) */
  --surface-0: #ffffff;
  --surface-1: #fdf4f1;
  --surface-2: #fff8f5;

  --border: rgba(40,12,8,.14);

  /* texto sobre fundo claro */
  --ink-900: #221009;
  --ink-700: #4d332c;
  --ink-500: #7c5f57;

  /* type */
  --font-head: "Baloo 2", sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* scale */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(34,16,9,.05), 0 6px 18px rgba(34,16,9,.08);
  --shadow-md: 0 2px 6px rgba(34,16,9,.06), 0 16px 32px rgba(34,16,9,.10);
  --shadow-lg: 0 4px 10px rgba(34,16,9,.06), 0 30px 60px rgba(34,16,9,.12);
  --shadow-glow: 0 0 0 1px rgba(200,20,8,.18), 0 20px 40px rgba(34,16,9,.14), 0 0 40px rgba(200,20,8,.18);

  --ease: cubic-bezier(.22,.9,.32,1);
  --container: 1180px;
}

/* ===================================================================
   Reset
=================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red-600); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   Barra de progresso de scroll
=================================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--red-600); z-index: 200;
  transition: width .1s linear;
}

/* ===================================================================
   Buttons
=================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn-sm { padding: 12px 20px; font-size: .88rem; min-height: 44px; }

.btn-primary {
  background: var(--red-600); color: #fff;
  box-shadow: 0 10px 26px rgba(200,20,8,.35);
}
.btn-primary:hover { background: var(--red-700); box-shadow: 0 16px 36px rgba(200,20,8,.48); }

.btn-outline {
  background: transparent; color: var(--ink-900);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--red-600); color: var(--red-700); }

.btn-light { background: #fff; color: var(--red-700); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.btn-light:hover { background: var(--red-900); color: #fff; }

/* ===================================================================
   Header
=================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease);
}
/* o desfoque fica num pseudo-elemento: se ficasse direto no .site-header,
   o backdrop-filter cria um containing block e quebra o position:fixed
   do menu mobile (.main-nav), que é descendente dele */
/* parado no topo: transparente. conforme rola, o vermelho da marca vai
   preenchendo junto com o desfoque e a sombra. --header-p vai de 0 a 1
   e é atualizado pelo JS a cada scroll */
.site-header {
  --header-p: 0;
  box-shadow: 0 8px 24px rgba(34,16,9, calc(.18 * var(--header-p)));
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(200,20,8, calc(.78 * var(--header-p)));
  backdrop-filter: blur(calc(14px * var(--header-p))) saturate(calc(1 + .2 * var(--header-p)));
  -webkit-backdrop-filter: blur(calc(14px * var(--header-p))) saturate(calc(1 + .2 * var(--header-p)));
  transition: background .2s linear;
}
.header-inner { display: flex; align-items: center; justify-content: center; height: 78px; transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 64px; }

.main-nav ul { display: flex; gap: 32px; }
/* texto escuro enquanto o header está transparente sobre o branco;
   vira branco (.is-tinted) quando o vermelho já preencheu o suficiente */
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-700);
  position: relative; padding: 6px 2px;
  transition: color .3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red-600); transition: width .25s var(--ease), background .3s var(--ease);
}
.main-nav a:hover { color: var(--ink-900); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active { color: var(--ink-900); }
.main-nav a.is-active::after { width: 100%; }

/* só no desktop: no mobile os links ficam no painel claro do menu */
@media (min-width: 761px) {
  .site-header.is-tinted .main-nav a { color: rgba(255,255,255,.85); }
  .site-header.is-tinted .main-nav a::after { background: #fff; }
  .site-header.is-tinted .main-nav a:hover,
  .site-header.is-tinted .main-nav a.is-active { color: #fff; }
}

/* no desktop só existe o menu centralizado; o botão hambúrguer aparece no mobile */
.header-actions { display: none; align-items: center; gap: 14px; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; touch-action: manipulation; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease), background .3s var(--ease); }
.site-header.is-tinted .menu-toggle span { background: #fff; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  padding: 88px 0 60px;
  background: var(--surface-0);
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { opacity: 0; animation: heroIn .8s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .16s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-copy > *:nth-child(4) { animation-delay: .44s; }

@keyframes heroVisualIn { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.hero-visual { animation: heroVisualIn 1s var(--ease) .2s backwards; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-600); }

.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 22px; text-transform: uppercase; }
.text-accent { color: var(--red-600); }

.hero-sub { font-size: 1.08rem; max-width: 560px; color: var(--ink-700); margin-bottom: 34px; }
.hero-actions { position: relative; z-index: 5; display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.hero-cities { display: flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-head); font-size: .92rem; color: var(--ink-500); }
/* some enquanto o menu de lojas do WhatsApp estiver aberto, pra não sobrar
   texto atrás do cartão (o próprio menu já lista as cidades) */
.hero-copy:has(.wa-picker-menu:not([hidden])) .hero-cities { visibility: hidden; }

/* Seletor de loja no botão de WhatsApp da hero */
.wa-picker { position: relative; }
.wa-picker-chevron { transition: transform .2s var(--ease); margin-left: -4px; }
.wa-picker-toggle[aria-expanded="true"] .wa-picker-chevron { transform: rotate(180deg); }
.wa-picker-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; z-index: 20;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wa-picker-menu:not([hidden]) { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-picker-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-900);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.wa-picker-item .icon { color: var(--red-600); }
.wa-picker-item:hover, .wa-picker-item:focus-visible { background: var(--red-600); color: #fff; }
.wa-picker-item:hover .icon, .wa-picker-item:focus-visible .icon { color: #fff; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card {
  position: relative; width: min(360px, 80vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.hero-logo-spin {
  width: 72%; filter: drop-shadow(0 20px 40px rgba(200,20,8,.4)); animation: bob 6s ease-in-out infinite; z-index: 2;
  transition: filter .4s var(--ease);
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* destaque ao passar o cursor: a logo cresce e ganha um brilho vermelho mais forte */
.hero-card:hover { transform: scale(1.08); }
.hero-card:hover .hero-logo-spin { filter: drop-shadow(0 24px 50px rgba(200,20,8,.6)) brightness(1.06); }
.hero-card:hover .ring-1 { border-color: rgba(200,20,8,.35); }
.hero-card:hover .ring-2 { border-color: rgba(200,20,8,.55); }

.hero-ring { position: absolute; border-radius: 50%; border: 1.5px dashed var(--border); transition: border-color .4s var(--ease); }
.ring-1 { inset: 0; animation: spin 26s linear infinite; }
.ring-2 { inset: 14%; border-color: rgba(200,20,8,.3); animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ===================================================================
   Stats
=================================================================== */
.stats-section { padding: 56px 0; background: var(--surface-0); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--ink-900); }
.stat-plus { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--red-600); }
.stat p { font-size: .92rem; color: var(--ink-500); margin-top: 4px; }
/* cópias dos números criadas pelo JS: só aparecem na faixa infinita do mobile */
.stat-clone { display: none; }
@keyframes statsMarquee { to { transform: translateX(-50%); } }

/* ===================================================================
   Sections general
=================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-1); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-sub { margin-top: 12px; font-size: 1.02rem; color: var(--ink-500); }

/* seção em vermelho de marca: só o fundo muda de cor, cards e botões do
   carrossel continuam claros por cima pra se destacarem normalmente */
.section-brand { background: var(--red-600); }
.section-brand .eyebrow { color: #fff; }
.section-brand .eyebrow::before { background: #fff; }
.section-brand h2 { color: #fff; }
.section-brand .section-sub { color: rgba(255,255,255,.85); }

/* ===================================================================
   Sobre
=================================================================== */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media-frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }

/* Carrossel das fachadas: crossfade suave + zoom lento (Ken Burns).
   O tempo de cada slide é a duração da animação da barrinha ativa
   (--slide-time); o JS avança no animationend, então pausar a
   animação (hover, foco, fora da tela) pausa o carrossel junto. */
.about-slider { --slide-time: 5.5s; position: relative; aspect-ratio: 4/3; background: var(--surface-1); isolation: isolate; }
.about-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.about-slide.is-active { opacity: 1; z-index: 1; }
.about-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center);
  transform: scale(1.1);
  /* volta ao zoom inicial só depois que o slide terminou de sumir */
  transition: transform 0s linear 1.2s;
}
.about-slide.is-active img { transform: scale(1); transition: transform 7s cubic-bezier(.25,.6,.35,1); }
.about-slider.is-static .about-slide img { transform: none; }

/* degradê leve em cima e embaixo pra legenda e barrinhas lerem bem em qualquer foto */
.about-slider::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,6,4,.38), transparent 30%, transparent 70%, rgba(20,6,4,.42));
}

.about-slide-caption {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink-900);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.about-slide-caption .icon { color: var(--red-600); }
.about-slide.is-active .about-slide-caption { opacity: 1; transform: translateY(0); transition-delay: .45s; }

.about-slider-dots {
  position: absolute; right: 18px; bottom: 18px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px; border-radius: 999px;
  background: rgba(20,6,4,.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* área de toque de 24px de altura, a barrinha visível fica no span */
.about-dot { height: 24px; padding: 0 4px; display: flex; align-items: center; touch-action: manipulation; }
.about-dot span {
  position: relative; display: block; width: 8px; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,.5); overflow: hidden;
  transition: width .5s var(--ease), background .25s var(--ease);
}
.about-dot.is-active span { width: 34px; }
.about-dot:hover span { background: rgba(255,255,255,.85); }
.about-dot span::after {
  content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit;
  transform: scaleX(0); transform-origin: left;
}
.about-dot.is-active span::after { animation: slideProgress var(--slide-time) linear forwards; }
.about-slider:hover .about-dot.is-active span::after,
.about-slider:focus-within .about-dot.is-active span::after,
.about-slider.is-paused .about-dot.is-active span::after { animation-play-state: paused; }
.about-slider.is-static .about-dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes slideProgress { to { transform: scaleX(1); } }
.about-media-badge {
  position: absolute; left: -20px; bottom: -20px; background: var(--surface-2); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 2px;
  border-left: 4px solid var(--red-600);
}
.about-media-badge strong { font-family: var(--font-head); color: var(--ink-900); }
.about-media-badge span { font-size: .82rem; color: var(--ink-500); }

.about-copy p { margin-bottom: 16px; }
.about-copy h2 { margin-bottom: 20px; }

.check-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-900); }
.check-list .icon { color: #fff; background: var(--red-600); border-radius: 50%; padding: 5px; width: 1.6em; height: 1.6em; }

/* ===================================================================
   Galeria (bento grid)
=================================================================== */
/* fotos em pé ocupam 1 coluna x 2 linhas, fotos deitadas (.gallery-item-wide)
   ocupam 2x2. A altura da linha acompanha a largura da coluna pra manter as
   proporções das fotos em qualquer tela, sem cortar demais */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  grid-auto-rows: clamp(100px, calc(17.4vw - 27px), 178px);
}
.gallery-item {
  margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  grid-row: span 2;
}
.gallery-item-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform .5s var(--ease); }
.gallery-item { cursor: pointer; touch-action: manipulation; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:active img { transform: scale(1.02); }

/* ===================================================================
   Lightbox
=================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,3,3,.92); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox[hidden] { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1000px); max-height: 80vh; width: auto;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  transform: scale(.92); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--border); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-btn:hover { background: var(--red-600); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ===================================================================
   Botões flutuantes
=================================================================== */
.back-to-top {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transform: translateY(80px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease), background .25s var(--ease);
}
.back-to-top.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--red-600); color: #fff; }
.back-to-top:active { transform: translateY(0) scale(.94); }

.fab-whatsapp {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(200,20,8,.4);
  transform: translateY(100px) scale(.8); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.fab-whatsapp.is-visible { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
body.nav-open .fab-whatsapp,
body.nav-open .back-to-top { opacity: 0 !important; pointer-events: none !important; }
.fab-whatsapp:hover { transform: translateY(-3px) scale(1.05); }
.fab-whatsapp:active { transform: translateY(0) scale(.95); }
.fab-whatsapp .icon { width: 28px; height: 28px; position: relative; z-index: 1; }
.fab-ring {
  position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red-600);
  animation: ringPulse 2.2s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(.9); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===================================================================
   Cards de serviço
=================================================================== */
.cards-carousel { position: relative; }
.cards-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; scroll-padding-left: 4px;
  /* padding vertical generoso pra caber a sombra do hover (--shadow-glow);
     overflow-x:auto força o overflow-y a virar auto também, então sem esse
     respiro a sombra é cortada. margin negativa compensa pra não empurrar
     o layout da seção. */
  padding: 48px 40px 56px;
  margin: -48px -12px -56px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cards-track::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  flex: 0 0 clamp(270px, 28vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* foto no topo do card, com zoom leve no hover */
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-1); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { position: relative; padding: 24px 24px 28px; flex: 1; }

/* desktop e tablet: sempre um número inteiro de cards na tela (3 no desktop,
   2 no tablet), nunca card cortado. O respiro lateral da trilha é igual ao
   gap, então o card seguinte começa exatamente fora da área visível, e o
   snap obrigatório faz cada clique parar alinhado */
@media (min-width: 761px) {
  .cards-track {
    flex: 1 1 auto; min-width: 0;
    padding: 48px 22px 56px; margin: -48px 0 -56px;
    scroll-padding-inline: 22px; scroll-snap-type: x mandatory;
  }
  .card { flex-basis: calc((100% - 2 * 22px) / 3); }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .card { flex-basis: calc((100% - 22px) / 2); }
}
/* z-index: sem isso a sombra do hover fica escondida embaixo do card
   vizinho (que vem depois no HTML e tem fundo opaco) */
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: transparent; z-index: 2; }
.card:active { transform: translateY(-2px) scale(.98); }

/* setas abaixo dos cards: contorno fino branco sobre o vermelho, enchem de
   branco no hover e a seta dá um passinho na direção dela.
   position/z-index: o respiro de baixo da trilha (pra sombra) passa por cima
   das setas, e no celular a mask-image joga a trilha numa camada acima */
.carousel-nav { position: relative; z-index: 1; display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.carousel-btn {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.carousel-btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.carousel-btn:hover { background: #fff; border-color: #fff; color: var(--red-600); }
.carousel-prev:hover svg { transform: translateX(-2px); }
.carousel-next:hover svg { transform: translateX(2px); }
.carousel-btn:active { transform: scale(.92); }
.carousel-btn:focus-visible { outline-color: #fff; }
.card h3 { margin-bottom: 10px; font-size: 1.18rem; }
.card p { font-size: .95rem; color: var(--ink-500); }

/* ===================================================================
   Lojas
=================================================================== */
.stores-carousel { position: relative; }
/* as setas só existem no celular, onde as lojas viram carrossel */
.stores-nav { display: none; }
.stores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.store-card {
  background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.store-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.store-card:active { transform: translateY(-2px); }

.store-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-1); }
.store-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.store-card:hover .store-photo img { transform: scale(1.05); }
.store-tag {
  position: absolute; top: 14px; left: 14px; background: var(--red-600); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  animation: tagPulse 2.4s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,20,8,.5); }
  50% { box-shadow: 0 0 0 7px rgba(200,20,8,0); }
}
.store-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.store-body h3 { margin-bottom: 4px; }
.store-address, .store-hours { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; color: var(--ink-500); }
.store-address .icon, .store-hours .icon { color: var(--red-600); margin-top: 2px; }
.store-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.store-map { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.store-map iframe { width: 100%; height: 180px; border: 0; display: block; }

/* ===================================================================
   Footer
=================================================================== */
.site-footer { background: var(--surface-1); color: var(--ink-700); padding: 28px 0; border-top: 1px solid var(--border); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .82rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--ink-700); display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease); }
.social-links a:hover { background: var(--red-600); border-color: transparent; color: #fff; }
.social-links svg { width: 18px; height: 18px; }

/* ===================================================================
   Scroll reveal
=================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.cards-track .card.reveal:nth-child(1) { transition-delay: .02s; }
.cards-track .card.reveal:nth-child(2) { transition-delay: .08s; }
.cards-track .card.reveal:nth-child(3) { transition-delay: .14s; }
.cards-track .card.reveal:nth-child(4) { transition-delay: .2s; }
.cards-track .card.reveal:nth-child(5) { transition-delay: .26s; }
.cards-track .card.reveal:nth-child(6) { transition-delay: .32s; }
.cards-track .card.reveal:nth-child(7) { transition-delay: .38s; }
.cards-track .card.reveal:nth-child(8) { transition-delay: .44s; }
.stats-grid .stat.reveal:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat.reveal:nth-child(2) { transition-delay: .08s; }
.stats-grid .stat.reveal:nth-child(3) { transition-delay: .16s; }
.stats-grid .stat.reveal:nth-child(4) { transition-delay: .24s; }
.stores-grid .store-card.reveal:nth-child(2) { transition-delay: .1s; }
.stores-grid .store-card.reveal:nth-child(3) { transition-delay: .2s; }
.gallery-grid .gallery-item.reveal:nth-child(2) { transition-delay: .06s; }
.gallery-grid .gallery-item.reveal:nth-child(3) { transition-delay: .12s; }
.gallery-grid .gallery-item.reveal:nth-child(4) { transition-delay: .18s; }
.gallery-grid .gallery-item.reveal:nth-child(5) { transition-delay: .24s; }
.gallery-grid .gallery-item.reveal:nth-child(6) { transition-delay: .30s; }
.gallery-grid .gallery-item.reveal:nth-child(7) { transition-delay: .06s; }
.gallery-grid .gallery-item.reveal:nth-child(8) { transition-delay: .12s; }
.gallery-grid .gallery-item.reveal:nth-child(9) { transition-delay: .18s; }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 1024px) {
  .stores-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { order: -1; }
  /* coluna única: título em cima, logo no meio, texto e botões embaixo.
     display:contents solta os filhos da .hero-copy no grid pra poder
     intercalar a logo entre eles */
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero-title { order: 1; }
  .hero-visual { order: 2; margin-bottom: 28px; }
  .hero-sub { order: 3; }
  .hero-actions { order: 4; }
  .hero-cities { order: 5; }
  .hero-card { width: 240px; }
  .hero-logo-spin { width: 55%; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--surface-2); padding: 32px 24px;
    transform: translateX(100%); transition: transform .35s var(--ease), box-shadow .35s var(--ease); z-index: 90;
  }
  /* a sombra só entra com o menu aberto; fechado ela vazava na borda direita da tela */
  .main-nav.is-open { transform: translateX(0); box-shadow: -10px 0 40px rgba(34,16,9,.18); }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a {
    display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border);
    color: var(--ink-700);
  }
  .main-nav a::after { background: var(--red-600); }
  .main-nav a:hover, .main-nav a.is-active { color: var(--ink-900); }
  .header-inner { justify-content: flex-end; }
  .header-actions { display: flex; }
  .menu-toggle { display: flex; }

  /* números: faixa infinita passando pro lado. O JS duplica os 4 itens
     (.stat-clone) e a trilha anda -50%, então o loop emenda sem salto.
     Espaço entre itens é padding (não gap) pra metade da trilha ser exata */
  .stats-section { padding: 44px 0; }
  .stats-wrap {
    padding: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  }
  .stats-grid { display: flex; width: max-content; gap: 0; animation: statsMarquee 20s linear infinite; }
  .stats-wrap:active .stats-grid { animation-play-state: paused; }
  .stat { flex: 0 0 auto; padding: 0 28px; }
  .stat p { white-space: nowrap; }
  .stats-grid .stat-clone { display: block; }
  .card { flex-basis: 78vw; }
  .carousel-nav { margin-top: 28px; }

  /* carrossel sangrando até a borda da tela, com o respiro da página
     só no começo/fim da trilha, e um degradê real nas pontas */
  .cards-carousel { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .cards-track {
    padding: 48px 24px 56px;
    margin: -48px 0 -56px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .cards-track.is-at-start {
    -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000, #000 calc(100% - 24px), transparent);
  }
  .cards-track.is-at-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000);
  }

  /* lojas: mesmo carrossel dos serviços, uma loja por vez */
  .stores-carousel { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .stores-nav { display: flex; }
  .stores-grid {
    display: flex; gap: 22px; max-width: none;
    padding: 48px 24px 56px;
    margin: -48px 0 -56px;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .stores-grid::-webkit-scrollbar { display: none; }
  .store-card { flex: 0 0 78vw; scroll-snap-align: start; }
  .stores-grid.is-at-start {
    -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000, #000 calc(100% - 24px), transparent);
  }
  .stores-grid.is-at-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000);
    mask-image: linear-gradient(to right, transparent, #000 24px, #000);
  }

  .section { padding: 64px 0; }
  .hero { padding: 40px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  /* os dois botões com a mesma largura e altura (a borda transparente no
     primário iguala a altura com a borda do "Ver nossas lojas") */
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions .btn-primary { border: 1.5px solid transparent; }
  .wa-picker-menu { right: 0; }
  .hero-cities { justify-content: center; flex-wrap: wrap; text-align: center; }
  .hero-cities .icon { display: none; }
  /* no celular o parágrafo "Notebooks, celulares..." sai, fica só título e botões */
  .hero-sub { display: none; }
  .hero-title { margin-bottom: 20px; }
  .hero-visual { margin-bottom: 28px; }
  .hero-card { width: 168px; }
  .hero-logo-spin { width: 62%; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(96px, calc(34.7vw - 32px), 170px); }

  .back-to-top { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
  .fab-whatsapp { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .fab-whatsapp .icon { width: 25px; height: 25px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-img { max-width: 94vw; max-height: 70vh; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* quem prefere menos movimento: faixa parada, rolável com o dedo, sem cópias */
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .stats-wrap { overflow-x: auto; }
  .stats-grid { animation: none; }
  .stats-grid .stat-clone { display: none; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; }
  .gallery-grid { grid-auto-rows: calc(34.7vw - 21px); gap: 12px; }

  .cards-track,
  .stores-grid { padding-left: 16px; padding-right: 16px; }
  .cards-track,
  .cards-track.is-at-start,
  .cards-track.is-at-end,
  .stores-grid,
  .stores-grid.is-at-start,
  .stores-grid.is-at-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }
  .cards-track.is-at-start,
  .stores-grid.is-at-start {
    -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to right, #000, #000 calc(100% - 16px), transparent);
  }
  .cards-track.is-at-end,
  .stores-grid.is-at-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000);
  }
}
