/*
Theme Name: Projet Elétrica Moderno
Theme URI: https://www.projeteletrica.com.br
Author: Codex Modernização
Description: Tema moderno para a Projet Elétrica, com cadastro e busca de eletricistas armazenados no WordPress.
Version: 2.5.21
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: projet-moderno
*/

/* ==========================================================================
   ÍNDICE (mapa completo: MAPA-DESIGN.md, na raiz do projeto)
   00. Fontes (@font-face)
   01. Tokens (escala única)
   02. Base / reset
   03. Layout: container, seções, grids
   04. Tipografia: kicker, títulos, conteúdo
   05. Botões, chips, filtros
   06. Header + menu desktop
   07. Menu mobile (drawer à direita)
   08. Hero da home (parallax) + categorias + números + marcas + painéis
   09. Cabeçalho de página interna (.page-hero)
   10. Cards: genérico, eletricista, equipe, logos, painel
   11. Formulários (temas + CF7 + LGPD)
   12. Página de eletricistas (busca + filtros)
   13. Contato
   14. Quem Somos
   15. Páginas de gestão (tabelas)
   16. Rodapé + WhatsApp flutuante
   17. Animações de entrada
   18. Responsivo
   19. Movimento reduzido
   ========================================================================== */

/* ==== 00. Fontes (hospedadas no tema; antes vinham do Google Fonts e bloqueavam a 1ª pintura)
   Archivo e Inter — SIL Open Font License 1.1. Arquivos variáveis: 1 arquivo cobre todos os pesos. ==== */
/* Archivo latin-ext (variável) */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(assets/fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Archivo latin (variável) */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(assets/fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Inter latin-ext (variável) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Inter latin (variável) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==== 01. Tokens ==== */
:root {
  /* Cor — preto e vermelho (regra inegociável) */
  --brand: #e11d2d;
  --brand-dark: #a30f1e;
  --brand-bright: #f02a3a;
  --brand-glow: rgba(225, 29, 45, .32);
  --brand-tint: rgba(225, 29, 45, .07);
  --brand-on-dark: #ff6b76;  /* vermelho claro para texto pequeno em fundo escuro (contraste AA) */
  --black: #0a0a0c;
  --charcoal: #16161a;
  --graphite: #1d1f26;
  --ink: #101014;
  --body: #3a3d45;
  --muted: #646775;
  --paper: #fbfbfd;
  --soft: #f1f2f6;
  --soft-2: #eef1f5;
  --edge: rgba(16, 24, 40, .08);
  --edge-strong: rgba(20, 20, 24, .14);
  --wa: #25d366;
  --wa-dark: #15803d;   /* fundo de botão com texto branco (5:1); o #25d366 com branco dá só 1,98:1 */
  --wa-darker: #116a33; /* hover */

  /* Raios — escala única */
  --radius-lg: 24px;   /* cards, painéis, tiles, mapa */
  --radius-md: 14px;   /* campos de form, avisos, imagens */
  --radius-sm: 10px;   /* chips, botões pequenos */
  --radius-pill: 999px;/* pílulas: botões, filtros, tags */

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(15, 20, 30, .04);
  --shadow-md: 0 20px 60px rgba(15, 20, 30, .06);
  --shadow-lg: 0 28px 70px rgba(15, 20, 30, .12);

  /* Layout */
  --max: 1280px;
  --gutter: 48px;              /* 24px de cada lado; 18px no celular */
  --header-h: 80px;
  --section-y: clamp(56px, 7vw, 96px);

  /* Movimento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  /* Fontes (carregadas em functions.php) */
  --font-display: "Archivo", "Inter", system-ui, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ==== 02. Base / reset ==== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
::selection { background: var(--brand); color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--black); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { letter-spacing: -.04em; font-weight: 800; }
h3 { letter-spacing: -.015em; font-weight: 700; }

/* Foco visível em vermelho — substitui o anel azul do navegador.
   Acessibilidade: o foco precisa continuar bem visível (nunca outline:none). */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 20000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ==== 03. Layout ==== */
.container { width: min(var(--max), calc(100% - var(--gutter))); margin-inline: auto; }
.container.is-narrow { max-width: 900px; }
.container.is-form { max-width: 860px; }

.section { padding: var(--section-y) 0; background: var(--paper); position: relative; }
/* Fundos de seção — classes explícitas (nunca :nth-of-type, ver MAPA-DESIGN.md §9) */
.section.is-white { background: #fff; }
.section.is-soft  { background: var(--soft); }
.section.is-dark  { background: var(--black); color: #fff; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* Eletricistas da home: 3 colunas (6 cards = 3 + 3, sem buraco) */
.ele-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 36px);
}
.section-head > div { min-width: 0; }
.section-head.is-spaced { margin-top: clamp(48px, 6vw, 80px); }
.section-head p { margin: 0; max-width: 460px; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ==== 04. Tipografia ==== */
/* Hierarquia única:
   h1 de hero ......... clamp(2.4rem, 5.6vw, 4.6rem)  ~74px
   h1 de página ....... clamp(1.9rem, 3.6vw, 2.9rem)  ~46px
   .section-title ..... clamp(1.65rem, 2.9vw, 2.35rem) ~38px
   h3 dentro de card .. 1.18rem                         ~19px
   texto de card ...... .95rem                          ~15px */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
  color: var(--brand); font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; line-height: 1.3;
}
.kicker::before { content: ''; width: 36px; height: 2px; background: currentColor; display: block; flex-shrink: 0; }

.section-title {
  font-size: clamp(1.65rem, 2.9vw, 2.35rem); line-height: 1.1;
  color: var(--black); letter-spacing: -.035em; font-weight: 800; margin: 0 0 8px;
  text-wrap: balance;
}
.section-subtitle { color: var(--muted); margin: 0 0 24px; max-width: 760px; font-size: 1rem; }
.is-dark .section-title, .is-dark h2, .is-dark h3 { color: #fff; }
.is-dark .kicker, .page-hero .kicker { color: var(--brand-on-dark); }
.is-dark p { color: rgba(255, 255, 255, .78); }


/* Conteúdo de páginas (política, termos, textos longos) */
.entry-content { color: var(--body); font-size: 1rem; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
/* `.card .entry-content p` — especificidade maior que `.card p` (ver MAPA-DESIGN.md §9) */
.card .entry-content p, .card .entry-content li { color: var(--body); font-size: 1rem; }
.card .entry-content p { margin: 0 0 14px; }
.entry-content h2 {
  color: var(--black); letter-spacing: -.025em; font-weight: 800;
  font-size: 1.32rem; line-height: 1.25;
  margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--edge);
}
.entry-content > *:first-child + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.entry-content h3 { color: var(--black); font-size: 1.05rem; margin: 22px 0 8px; }
.entry-content h4 { color: var(--black); font-size: .95rem; margin: 18px 0 6px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px; padding-left: 22px; }
.entry-content li { margin-bottom: 7px; }
.entry-content li::marker { color: var(--brand); }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--brand-dark); }
.entry-content strong { color: var(--black); font-weight: 700; }
.entry-content hr { border: 0; border-top: 1px solid var(--edge); margin: 26px 0; }
.entry-content blockquote {
  margin: 18px 0; padding: 14px 18px; background: var(--soft-2);
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .policy-updated {
  display: inline-block; margin: 0 0 24px; padding: 7px 14px;
  background: var(--soft-2); border: 1px solid var(--edge); border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 700; color: var(--muted);
}
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }

/* ==== 05. Botões, chips, filtros ==== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 22px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; line-height: 1.2;
  letter-spacing: .01em; text-align: center; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button svg { flex-shrink: 0; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.is-primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark)); color: #fff;
  box-shadow: 0 14px 34px rgba(225, 29, 45, .28);
}
.button.is-primary:hover { color: #fff; box-shadow: 0 18px 44px rgba(225, 29, 45, .38); }
.button.is-ghost { background: #fff; color: var(--charcoal); border-color: var(--edge-strong); box-shadow: var(--shadow-sm); }
.button.is-ghost:hover { border-color: var(--brand); color: var(--brand); }
.button.is-outline { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.button.is-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.button.is-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.button.is-on-dark:hover { border-color: var(--brand); color: #fff; background: rgba(225, 29, 45, .12); }
.button.is-wa { background: var(--wa-dark); color: #fff; box-shadow: 0 12px 30px rgba(21, 128, 61, .28); }
.button.is-wa:hover { background: var(--wa-darker); color: #fff; }
.button.is-sm { min-height: 38px; padding: 8px 16px; font-size: .88rem; }
.button .arrow { transition: transform .2s var(--ease); }
.button:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 800; font-family: var(--font-display); font-size: .95rem; color: var(--black);
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover::after { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--radius-pill); background: var(--soft); color: var(--body);
  font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
}

/* Fileira de filtros (pílulas). No celular vira faixa com rolagem horizontal. */
.pill-scroll { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pill-scroll a, .filters a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border-radius: var(--radius-pill); font-size: .88rem; font-weight: 700; white-space: nowrap;
  color: var(--graphite); background: #fff; border: 1px solid var(--edge-strong);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pill-scroll a:hover, .filters a:hover { border-color: var(--brand); color: var(--brand); }
.pill-scroll a.is-active, .filters a.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px var(--brand-glow);
}

/* ==== 06. Header + menu desktop ==== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20, 20, 24, .06);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
/* Sombra e fundo mais sólido só quando a página rola (classe via main.js) */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(20, 20, 24, .1);
  box-shadow: 0 10px 30px rgba(15, 20, 30, .08);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; line-height: 1; flex-shrink: 0; }
.brand img { display: block; height: 52px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav li { position: relative; }
.site-nav a {
  position: relative; display: block; padding: 10px 15px; border-radius: var(--radius-pill);
  color: var(--graphite); font-weight: 600; font-size: .95rem; transition: color .2s ease, background .2s ease;
}
.site-nav a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease);
}
/* Hover: texto vermelho + fundo vermelho bem claro (nunca cinza/azul) */
.site-nav a:hover { background: var(--brand-tint); color: var(--brand); }
.site-nav a:hover::after { transform: scaleX(1); }
/* Página atual: vermelho + sublinhado permanente */
.site-nav li.current-menu-item > a,
.site-nav a[aria-current="page"] { color: var(--brand-dark); background: rgba(225, 29, 45, .09); } /* brand-dark: contraste AA sobre o fundo rosado */
.site-nav li.current-menu-item > a::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav li.current-menu-item > a:hover,
.site-nav a[aria-current="page"]:hover { background: rgba(225, 29, 45, .14); color: var(--brand-dark); }
.site-nav a:focus-visible, .mobile-nav-inner a:focus-visible { outline-offset: 0; border-radius: var(--radius-pill); }
/* Submenu desktop (dropdown) — pronto caso o cliente crie submenus */
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; display: block; padding: 8px;
  background: #fff; border: 1px solid var(--edge); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { border-radius: var(--radius-sm); }

.header-cta { flex-shrink: 0; min-height: 42px; padding: 10px 18px; font-size: .88rem; }

.menu-toggle {
  display: none; position: relative; z-index: 10001;
  width: 40px; height: 40px; padding: 0; border-radius: 11px;
  border: 1px solid var(--edge-strong); background: #fff; color: var(--charcoal);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }

/* ==== 07. Menu mobile (drawer à direita) ==== */
.nav-overlay {
  position: fixed; inset: 0; z-index: 10020;
  background: rgba(6, 6, 9, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10030;
  width: min(360px, 88vw); height: 100dvh;
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 100% 0%, rgba(225, 29, 45, .18), transparent 52%), var(--black);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .5);
  transform: translateX(102%); visibility: hidden;
  transition: transform .38s var(--ease-drawer), visibility .38s;
  overflow: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .09); flex-shrink: 0;
}
.mobile-nav-title {
  color: #fff; font-family: var(--font-display); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; font-size: .74rem;
}
.mobile-nav-close {
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.mobile-nav-close:hover { background: var(--brand); border-color: var(--brand); }
.mobile-nav-inner {
  flex: 1; overflow-y: auto; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.mobile-nav-inner ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-inner ul li { width: 100%; position: relative; }
.mobile-nav-inner ul ul { padding-left: 14px; display: none; border-left: 1px solid rgba(225, 29, 45, .35); margin: 0 0 6px; }
.mobile-nav-inner ul li.is-open > ul { display: block; }
.mobile-nav-inner a {
  display: flex; align-items: center; min-height: 52px;
  color: rgba(255, 255, 255, .95); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  padding: 12px 10px; line-height: 1.3; border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.mobile-nav-inner ul ul a { font-size: .95rem; font-weight: 600; color: #c9ccd3; min-height: 44px; }
.mobile-nav-inner li:last-child > a { border-bottom: 0; }
.mobile-nav-inner a:hover { color: #fff; background: rgba(225, 29, 45, .16); padding-left: 16px; }
.mobile-nav-inner li.current-menu-item > a,
.mobile-nav-inner a[aria-current="page"] {
  color: var(--brand); background: rgba(225, 29, 45, .12); box-shadow: inset 3px 0 0 var(--brand);
}
.mobile-nav-inner li.current-menu-item > a:hover,
.mobile-nav-inner a[aria-current="page"]:hover { color: #fff; background: rgba(225, 29, 45, .2); }
/* Entrada escalonada dos itens */
.mobile-nav .menu > li, .mobile-cta { opacity: 0; transform: translateX(16px); transition: opacity .35s ease, transform .4s var(--ease); }
.mobile-nav.is-open .menu > li, .mobile-nav.is-open .mobile-cta { opacity: 1; transform: none; }
.mobile-nav.is-open .menu > li:nth-child(1) { transition-delay: .06s; }
.mobile-nav.is-open .menu > li:nth-child(2) { transition-delay: .09s; }
.mobile-nav.is-open .menu > li:nth-child(3) { transition-delay: .12s; }
.mobile-nav.is-open .menu > li:nth-child(4) { transition-delay: .15s; }
.mobile-nav.is-open .menu > li:nth-child(5) { transition-delay: .18s; }
.mobile-nav.is-open .menu > li:nth-child(6) { transition-delay: .21s; }
.mobile-nav.is-open .menu > li:nth-child(n+7) { transition-delay: .24s; }
.mobile-nav.is-open .mobile-cta { transition-delay: .26s; }

.submenu-toggle {
  position: absolute; top: 6px; right: 0; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; background: transparent;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.submenu-toggle[aria-expanded="true"] { background: rgba(225, 29, 45, .18); border-color: rgba(225, 29, 45, .5); }
.submenu-toggle svg { transition: transform .25s ease; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.mobile-cta .button { width: 100%; }
.mobile-nav-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: #9a9da7; font-size: .88rem; line-height: 1.6; }
.mobile-nav-inner .mobile-nav-foot a {
  display: inline-flex; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: #fff;
}
.mobile-nav-inner .mobile-nav-foot a:hover { padding-left: 0; background: none; color: var(--brand); }

body.nav-open { overflow: hidden; }

/* ==== 08. Hero da home + categorias + números + marcas + painéis ==== */
.hero-parallax {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center;
  min-height: min(86vh, 880px);
  background: var(--black); color: #fff;
}
.hero-parallax.is-bottom { align-items: end; }
.hero-parallax .hero-bg {
  position: absolute; inset: -12% -5% 0 -5%; z-index: -2;
}
/* Foto real (<img> com fetchpriority=high — é o LCP). Clara o bastante para ver o trabalho da loja;
   a legibilidade vem do degradê só do lado do texto. */
.hero-parallax .hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; filter: brightness(.7) saturate(.6); }
.hero-parallax .hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 10%, rgba(225, 29, 45, .18), transparent 45%),
    linear-gradient(90deg, rgba(8, 8, 10, .92) 0%, rgba(8, 8, 10, .72) 40%, rgba(8, 8, 10, .15) 72%, transparent);
}
/* Grade técnica sutil (remete a planta elétrica) */
.hero-parallax .hero-overlay::before, .page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-parallax .hero-overlay::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(transparent, rgba(5, 5, 6, .7));
}
/* Corrente elétrica correndo pelo quadriculado (canvas desenhado no main.js) + entrada em sequência — só na home */
.hero-circuit {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 78%);
}
.hero-parallax .hero-grid > div > *, .hero-parallax .store-card { animation: hero-in .8s var(--ease) both; }
.hero-parallax .hero-grid > div > :nth-child(2) { animation-delay: .1s; }
.hero-parallax .hero-grid > div > :nth-child(3) { animation-delay: .2s; }
.hero-parallax .hero-grid > div > :nth-child(4) { animation-delay: .3s; }
.hero-parallax .store-card { animation-delay: .45s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-parallax .hero-content { position: relative; z-index: 2; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero-parallax h1, .hero-parallax h2, .hero-parallax h3 { color: #fff; }
.hero-parallax p { color: rgba(255, 255, 255, .84); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero-grid h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -.045em;
  margin: 0 0 20px; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); text-wrap: balance;
}
.hero-grid .lede { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; max-width: 620px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(225, 29, 45, .7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 45, .65); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 45, 0); }
}

.word-rotate {
  color: var(--brand); display: inline-block; min-width: 9ch; white-space: nowrap;
  text-shadow: 0 0 22px rgba(225, 29, 45, .45);
  transition: opacity .18s ease, text-shadow .18s ease;
}
/* Troca de palavra = lâmpada que apaga e acende piscando */
.word-rotate.is-out { opacity: .12; text-shadow: none; }
.word-rotate.is-on { animation: word-on .75s linear both; }
@keyframes word-on {
  0%   { opacity: .12; text-shadow: none; }
  12%  { opacity: 1;   text-shadow: 0 0 30px rgba(255, 60, 75, .9); }
  22%  { opacity: .25; text-shadow: none; }
  36%  { opacity: 1;   text-shadow: 0 0 34px rgba(255, 60, 75, .95); }
  46%  { opacity: .55; text-shadow: 0 0 10px rgba(255, 60, 75, .4); }
  100% { opacity: 1;   text-shadow: 0 0 22px rgba(225, 29, 45, .45); }
}

/* Card de vidro com números (home) */
.glass-card {
  position: relative; padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

/* Card "Visite a loja" no hero da home */
.store-card-label { font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-on-dark); margin-bottom: 16px; }
/* Cabeçalho do card: rótulo + status da loja ao vivo (main.js) */
.store-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; min-height: 28px; }
.store-card-head .store-card-label { margin-bottom: 0; }
.loja-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem; line-height: 1.2; color: rgba(255, 255, 255, .78);
}
.loja-status strong { color: #fff; font-weight: 700; }
.loja-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9a9da7; }
.loja-status[data-estado="aberto"]::before { background: #22c55e; animation: loja-pulso 2s infinite; }
.loja-status[data-estado="feriado"]::before { background: #f59e0b; }
@keyframes loja-pulso { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.store-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.5; }
.store-list svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.store-list a { color: #fff; font-weight: 700; }
.store-list a:hover { color: var(--brand); }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.store-actions .button { flex: 1 1 auto; }

/* Categorias de produtos: o tile inteiro é o link (WhatsApp com mensagem pronta) */
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%;
  padding: clamp(18px, 2vw, 24px); background: #fff; color: var(--black);
  border: 1px solid var(--edge); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.cat-icon {
  width: 48px; height: 48px; margin-bottom: 8px; border-radius: var(--radius-md);
  display: inline-grid; place-items: center; color: var(--brand); background: var(--brand-tint);
  transition: background .25s ease, color .25s ease;
}
.cat-tile strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.cat-cta { margin-top: auto; padding-top: 4px; font-size: .88rem; font-weight: 700; color: var(--muted); transition: color .2s ease; }
.cat-tile:hover { color: var(--black); border-color: rgba(225, 29, 45, .3); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat-tile:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-tile:hover .cat-cta { color: var(--brand); }
.cat-tile:focus-visible { border-radius: var(--radius-lg); }

/* Faixa de números — `.section.stats-strip` tem especificidade suficiente */
.section.stats-strip { background: var(--black); color: #fff; padding: clamp(36px, 5vw, 64px) 0; }
.stats-strip .grid-4 {
  gap: 1px; background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { padding: clamp(20px, 2.6vw, 32px); background: var(--black); }
.stat strong {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 900; letter-spacing: -.045em; line-height: 1; color: #fff; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat span { color: #a7aab2; font-size: .88rem; }
.stat.is-red strong { color: var(--brand); }
/* Home: faixa com 3 números reais (anos, marcas, eletricistas) — 3 colunas também no celular */
.stats-strip .grid-4.has-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Faixa de painéis (serviço próprio): foto real + texto */
.painel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.painel-grid.is-single { grid-template-columns: minmax(0, 760px); }
.painel-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 28px 70px rgba(0, 0, 0, .45); }
.painel-copy p { margin: 0; max-width: 560px; }
.painel-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(225, 29, 45, .22), transparent 50%);
}
.painel-band .container { position: relative; }

/* ==== 09. Cabeçalho de página interna ==== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--graphite), var(--charcoal));
  color: #fff; padding: clamp(40px, 5vw, 64px) 0;
  /* Altura única para todas as páginas internas (o título não "pula" ao trocar de página) */
  display: grid; align-items: center; min-height: clamp(240px, 24vw, 340px);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 86% 8%, rgba(225, 29, 45, .3), transparent 54%);
}
.page-hero::after { z-index: -1; -webkit-mask-image: radial-gradient(ellipse at 90% 0%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 90% 0%, #000 0%, transparent 60%); }
.page-hero .container { position: relative; }
/* Corrente discreta no canto da grade (canvas criado pelo main.js) */
.page-hero-circuit {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 90% 0%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse at 90% 0%, #000 5%, transparent 70%);
}
.page-hero h1 {
  color: #fff; font-weight: 800; margin: 0; max-width: 40ch;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance;
}
.page-hero .kicker { margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 14px 0 0; max-width: 760px; font-size: 1.05rem; }

/* ==== 10. Cards ==== */
.card {
  position: relative; background: #fff; border: 1px solid var(--edge);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.card-body { padding: clamp(20px, 2.4vw, 28px); }
.card h3 { font-size: 1.18rem; margin: 0 0 8px; color: var(--black); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.6; }
img.card { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(225, 29, 45, .18); }
  .ele-card:hover .ele-photo img { transform: scale(1.04); }
  .card.is-static:hover { transform: none; box-shadow: var(--shadow-md); border-color: var(--edge); }
}

.icon-card {
  width: 52px; height: 52px; border-radius: var(--radius-md); margin-bottom: 18px;
  display: inline-grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark));
  box-shadow: 0 14px 30px rgba(225, 29, 45, .25);
}
.icon-card svg { width: 26px; height: 26px; }

/* Card de valor (numerado) */
.value-card .value-num {
  display: block; margin-bottom: 14px; font-family: var(--font-display); font-weight: 900;
  font-size: .88rem; letter-spacing: .1em; color: var(--brand);
}

/* Card de eletricista */
.ele-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); }
.ele-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.ele-photo img, .ele-card > img {
  width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  transition: transform .6s var(--ease);
}
.ele-photo .chip { position: absolute; left: 12px; bottom: 12px; background: rgba(10, 10, 12, .78); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Sequência de fotos (stop-motion): .ele-flip cresce da foto até cobrir o card, main.js troca as fotos em corte seco
   (a de cima some com .is-virada; a nova entra com um leve zoom, .is-atual), para na última e o card volta.
   --foto-h = altura da foto (main.js) */
.flip-play {
  display: none; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  place-items: center; padding: 0 0 0 2px; color: #fff; background: rgba(10, 10, 12, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, transform .2s var(--ease);
}
.js .flip-play { display: grid; } /* sem JS o botão não faria nada */
/* Com mouse a foto já folheia no hover: o ▶ some, mas continua no teclado (aparece ao receber o foco) */
@media (hover: hover) {
  .js .flip-play:not(:focus-visible) { opacity: 0; pointer-events: none; }
}
.flip-play:hover { background: var(--brand); transform: scale(1.06); }
.ele-flip {
  position: absolute; inset: 0; z-index: 5; overflow: hidden; background: var(--charcoal);
  clip-path: inset(0 0 calc(100% - var(--foto-h, 50%)) 0); visibility: hidden; opacity: 0;
  transition: clip-path .42s var(--ease), opacity .3s ease, visibility 0s linear .42s;
}
.ele-card.is-folheando .ele-flip { clip-path: inset(0); visibility: visible; opacity: 1; transition: clip-path .42s var(--ease), opacity .3s ease; cursor: pointer; }
.ele-flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ele-flip img.is-virada { opacity: 0; }
.ele-flip img.is-atual { animation: fotoEntra .32s var(--ease); }
@keyframes fotoEntra { from { transform: scale(1.06); } to { transform: none; } }
.ele-avatar {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(225, 29, 45, .25), transparent 60%), var(--graphite);
  color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; letter-spacing: -.04em;
}
.ele-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ele-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.ele-card .services {
  color: var(--muted); font-size: .95rem; line-height: 1.55; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ele-meta { list-style: none; margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid var(--edge); display: grid; gap: 6px; }
.meta-row { display: flex; align-items: flex-start; gap: 8px; color: var(--body); font-size: .88rem; line-height: 1.4; margin: 0; min-width: 0; }
.meta-row svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.meta-row span { min-width: 0; overflow-wrap: anywhere; }
.ele-card .actions { margin-top: auto; display: flex; gap: 8px; }
.ele-card .actions .button { flex: 1 1 auto; }
/* WhatsApp do card mais discreto (21 cards com verde cheio brigavam com as fotos); fica verde cheio no hover */
.ele-card .actions .button.is-wa { background: #ecfbf2; color: #0a6b34; border-color: rgba(37, 211, 102, .45); box-shadow: none; }
.ele-card .actions .button.is-wa:hover { background: var(--wa-dark); color: #fff; border-color: var(--wa-dark); }
/* E-mail só com o ícone, ao lado: o WhatsApp tem a mesma largura em todos os cards */
.ele-card .actions .button.is-icon { flex: 0 0 auto; width: 38px; padding: 0; }

/* Equipe — flex para centralizar a última linha incompleta (ex.: 5 pessoas) */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.team-grid > * { flex: 0 1 calc((100% - 3 * 18px) / 4); }
.team-card { text-align: center; }
.team-card .card-body { padding: 14px 14px 18px; }
.team-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  border-radius: var(--radius-md); background: var(--soft); margin-bottom: 14px;
}
.team-card h3 { margin: 0; font-size: 1.05rem; }

/* Logos (clientes / fornecedores) */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-tile {
  aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--edge); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; padding: 14px;
  box-shadow: 0 12px 34px rgba(15, 20, 30, .05);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.logo-tile img {
  max-height: 72%; max-width: 82%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .8; transition: filter .25s ease, transform .25s ease, opacity .25s ease;
}
.logo-tile:hover { border-color: rgba(225, 29, 45, .18); box-shadow: 0 20px 48px rgba(15, 20, 30, .1); }
.logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.03); }

/* Faixa de marcas da home: grade estática (sem animação contínua — WCAG 2.2.2) */
.brand-band { background: #fff; padding: 28px 0 32px; border-bottom: 1px solid var(--edge); }
.brand-band-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.brand-band-head .kicker { margin: 0; }
.brand-band-head .link-arrow { margin-top: 0; }
/* flex centralizado: qualquer quantidade de logos fecha sem buraco à esquerda (hoje 11 → 6 + 5) */
.brand-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-grid .logo-tile { flex: 0 0 calc((100% - 5 * 12px) / 6); aspect-ratio: auto; height: 84px; border-radius: var(--radius-md); box-shadow: none; padding: 8px 12px; }
.brand-grid .logo-tile img { max-height: 100%; max-width: 100%; opacity: .75; }
#home-ele { transition: opacity .2s ease; }
#home-ele.is-loading { opacity: .45; pointer-events: none; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.stack { display: grid; gap: 18px; }
.card-title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 12px; }
.card-title a { color: inherit; }
.panel { background: #fff; border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-md); }

/* Avisos */
.notice, .warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid; margin: 0 0 18px; font-weight: 600; font-size: .95rem;
}
.notice { background: #eaf7ef; color: #175e30; border-color: #c4e8d2; }
.warn { background: #fde8ea; color: #8a1a23; border-color: #f2c1c6; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--black); font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 6px; }

/* Faixa CTA compacta (convite a eletricistas na home, atalho no contato) */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--radius-lg);
  background: #fff; border: 1px dashed rgba(225, 29, 45, .35);
}
.cta-strip strong { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--black); margin-bottom: 2px; }
.cta-strip span { color: var(--muted); font-size: .95rem; }
.section.is-compact { padding: clamp(32px, 4vw, 48px) 0; }

/* Faixa CTA escura */
.cta-band { text-align: center; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(225, 29, 45, .35), transparent 60%);
}
.cta-band .container { position: relative; max-width: 780px; }
.cta-band .kicker { justify-content: center; }
.cta-band p { margin: 0 auto; max-width: 620px; }

/* ==== 11. Formulários ==== */
.form-card { padding: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .is-full, .wpcf7-form .form-field.is-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label, .form-card label:not(.check-item):not(.check-chip), .wpcf7-form label {
  display: block; font-size: .88rem; font-weight: 700; color: var(--graphite); letter-spacing: .01em;
}
.field-label .req, .wpcf7-form label .req { color: var(--brand); margin-left: 2px; }
.field-hint { font-size: .78rem; color: var(--muted); }
.form-section { margin-top: 22px; }
.fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.input,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"],
.wpcf7-form select, .wpcf7-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--radius-md); border: 1px solid var(--edge-strong); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input::placeholder, .wpcf7-form ::placeholder { color: #9a9da7; }
.input:hover, .wpcf7-form input:hover, .wpcf7-form select:hover, .wpcf7-form textarea:hover { border-color: rgba(20, 20, 24, .26); }
.input:focus, .wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(225, 29, 45, .12); /* + anel do :focus-visible (seção 02) */
}
textarea.input, .wpcf7-form textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
select.input, .wpcf7-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23646775' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type="file"].input { padding: 8px; min-height: 52px; cursor: pointer; color: var(--muted); font-size: .95rem; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 9px 16px; border: 0; border-radius: var(--radius-pill);
  background: var(--black); color: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .2s ease;
}
input[type="file"]::file-selector-button:hover { background: var(--brand); }

/* Especialidades: checkbox em formato de chip */
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px;
  border: 1px solid var(--edge-strong); border-radius: var(--radius-pill); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--graphite); cursor: pointer; user-select: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.check-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.check-chip:hover { border-color: rgba(225, 29, 45, .4); }
.check-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }

/* LGPD (temas + CF7) */
.check-item,
.wpcf7-acceptance .wpcf7-list-item label {
  display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px;
  border: 1px solid var(--edge-strong); border-radius: var(--radius-md); background: #fff;
  font-size: .88rem; font-weight: 500; color: var(--body); line-height: 1.55; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.check-item:hover, .wpcf7-acceptance .wpcf7-list-item label:hover { border-color: rgba(225, 29, 45, .35); background: rgba(225, 29, 45, .03); }
.check-item:has(input:checked) { border-color: rgba(225, 29, 45, .45); background: rgba(225, 29, 45, .04); }
.check-item input[type="checkbox"], .wpcf7-acceptance input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); cursor: pointer;
}
.check-item a, .wpcf7-acceptance a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* CF7 */
.wpcf7-form { display: flex; flex-direction: column; }
.wpcf7-form .form-field p { margin: 0; }
.wpcf7-form .form-field .wpcf7-form-control-wrap { margin-top: 7px; }
.wpcf7-form .form-grid { margin-bottom: 18px; }
.wpcf7 form .wpcf7-response-output:empty { display: none; }
.wpcf7-form p { margin: 0 0 16px; }
.wpcf7-form p:last-of-type { margin-bottom: 0; }
.wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-form .wpcf7-form-control-wrap, .wpcf7-form .wpcf7-acceptance { align-self: stretch; }
.wpcf7-form .wpcf7-acceptance { display: block; margin: 6px 0 18px; }
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item { display: block; margin-left: 0; }
.wpcf7-form .wpcf7-submit, .wpcf7-form button[type="submit"] {
  align-self: flex-start; min-height: 50px; padding: 13px 30px; border: 0; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark)); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 14px 34px rgba(225, 29, 45, .28);
  transition: transform .2s var(--ease), box-shadow .2s ease, opacity .2s ease;
}
.wpcf7-form .wpcf7-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(225, 29, 45, .36); }
.wpcf7-form .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0; padding: 13px 16px; border-radius: var(--radius-md); border: 1px solid;
  font-size: .95rem; font-weight: 600; animation: cf7In .3s ease;
}
@keyframes cf7In { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.wpcf7 form.sent .wpcf7-response-output { background: #eaf7ef; color: #175e30; border-color: #c4e8d2; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { background: #fdeaea; color: #8a1a23; border-color: #f2c1c6; }
.wpcf7 .wpcf7-not-valid-tip { color: #b3121f; font-size: .78rem; margin-top: 5px; display: block; font-weight: 600; }
.wpcf7-form p:has(> .wpcf7-submit) { position: relative; margin-bottom: 0; display: flex; }
.wpcf7-form .wpcf7-spinner { position: absolute; top: 13px; left: 12px; margin: 0; background-color: rgba(255, 255, 255, .4); }

/* ==== 12. Página de eletricistas ==== */
.search-panel {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 10px; align-items: center; padding: 10px; margin: 0 0 18px;
  background: #fff; border: 1px solid var(--edge); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.search-panel .input { border-color: transparent; background: var(--soft); }
.search-panel .input:focus { background: #fff; }
.search-field { position: relative; min-width: 0; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 42px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; align-items: center; }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.results-meta strong { color: var(--black); }
#eletricistas-results { transition: opacity .2s ease; }
#eletricistas-results.is-loading { opacity: .5; pointer-events: none; }

/* Paginação da listagem de eletricistas */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--edge-strong); background: #fff;
  font-weight: 700; font-size: .95rem; color: var(--graphite);
}
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* ==== 13. Contato ==== */
.contact-page .container { max-width: 1160px; }
.contact-page h2 { margin-top: 0; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.card .contact-intro { color: var(--muted); margin-bottom: 24px; }
.contact-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 22px; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-page > .container > .card { margin-top: 22px; }

.aside-card { background: #fff; border: 1px solid var(--edge); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.aside-card.is-dark {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 90% 0%, rgba(225, 29, 45, .24), transparent 55%), var(--black);
  border-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9); box-shadow: 0 24px 60px rgba(10, 10, 14, .28);
}
.aside-card h2 { margin: 0 0 10px; font-size: 1.18rem; letter-spacing: -.02em; }
.aside-card.is-dark h2 { color: #fff; }
.aside-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.aside-card.is-dark p { color: rgba(255, 255, 255, .74); }
.aside-card .button { width: 100%; margin-top: 18px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.aside-list li svg { flex-shrink: 0; color: var(--brand); margin-top: 2px; }
.aside-list a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.aside-list a:hover { color: var(--brand); }

.aside-list small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }

/* Mapa + "Como chegar" lado a lado */
.contact-map-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); overflow: hidden; }
.map-info { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.map-info h2 { margin: 0 0 14px; }
.map-address { font-style: normal; color: var(--body); font-size: 1.05rem; line-height: 1.7; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.map-box {
  position: relative; min-height: 380px; overflow: hidden; background: var(--soft);
  display: grid; place-items: center; color: var(--muted);
}
.map-box iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; display: block; }

/* Faixa "Precisa de um eletricista?" */
.contact-map-card + .cta-strip { margin-top: 22px; }

/* ==== 14. Quem Somos ==== */
.qs-story { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.qs-copy .qs-lead { color: var(--graphite); font-size: clamp(1.02rem, 1.3vw, 1.12rem); line-height: 1.8; margin: 0; max-width: 62ch; }
.qs-info { position: relative; overflow: hidden; }
.qs-nums { list-style: none; margin: 0; padding: 0; }
.qs-nums li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--edge); }
.qs-nums li:first-child { border-top: 0; padding-top: 4px; }
.qs-nums li:last-child { padding-bottom: 0; }
.qs-nums strong {
  flex: none; min-width: 3.2ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.qs-nums li.is-red strong { color: var(--brand); }
.qs-nums span { color: var(--muted); }
.qs-info::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand); z-index: 1; }

/* ==== 15. Páginas de gestão ==== */
.admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head .section-subtitle { margin: 0; }
.admin-thumb { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; margin-top: 14px; }
.table-card { padding: 0; }
.table-card h3 { padding: 22px 24px 0; margin: 0 0 12px; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 24px 0 0; margin-bottom: 12px; }
.table-head h3 { margin: 0; padding-bottom: 0; }
.table-busca { display: flex; align-items: center; gap: 10px; padding: 18px 0 0 24px; flex: 0 1 380px; }
.table-busca .input { min-width: 0; }
.table-busca .field-hint { white-space: nowrap; margin: 0; }
/* Animação de fotos (gestão): lista das fotos com ordem e remover */
.seq-box { display: grid; gap: 10px; }
.seq-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.seq-lista li { display: grid; gap: 6px; justify-items: start; }
.seq-lista .admin-thumb { margin-top: 0; }
.seq-ordem { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.seq-ordem .input { width: 64px; padding: 6px 8px; }
.seq-tirar { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--edge);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--edge); vertical-align: middle; color: var(--body); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:hover { background: rgba(225, 29, 45, .025); }
.admin-table .t-name { font-weight: 700; color: var(--black); }
.admin-table .t-photo { width: 72px; }
.admin-table .t-actions { text-align: right; white-space: nowrap; }
.admin-table .t-actions form { display: inline; }
.admin-table .t-avatar { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; display: block; }
.admin-table .t-avatar.is-empty { display: grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 800; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9a9da7; }
.status-dot.is-publish::before { background: #22c55e; }
.status-dot.is-pending::before { background: #e3a008; }

/* ==== 16. Rodapé + WhatsApp ==== */
.site-footer {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .9); padding: clamp(48px, 6vw, 80px) 0 24px;
  background: radial-gradient(circle at 90% 0%, rgba(225, 29, 45, .18), transparent 45%), var(--black);
  border-top: 4px solid var(--brand);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.footer-brand img, .logo-footer { height: 64px; width: auto; margin-bottom: 18px; display: block; }
.footer-brand p { color: #c9ccd3; max-width: 420px; line-height: 1.7; }
.footer-contact .footer-title { color: #fff; margin: 0 0 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-list li { display: flex; gap: 12px; align-items: flex-start; color: #c9ccd3; line-height: 1.5; }
.footer-list svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.footer-contact .button { margin-top: 24px; }
.footer-contact .button:hover { color: #fff; }
/* Redes sociais — rodapé e menu mobile (ambos em fundo escuro) */
.social-links { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 10px; }
.social-links a, .mobile-nav-inner .social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .04); color: #fff;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.social-links a:hover, .mobile-nav-inner .social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; padding: 0; }
.mobile-nav-foot .social-links { margin-top: 12px; }
.mobile-nav-inner .social-links li { width: auto; }

.copyright {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; margin-top: 40px;
  color: #a7aab2; font-size: .88rem;
}
.copyright a { color: #a7aab2; text-decoration: underline; text-underline-offset: 2px; }
.copyright-main { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
/* Crédito: centralizado, separado por uma linha que some nas pontas (mesmo tom da borda do .copyright) */
.copyright-credit {
  flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px;
  margin-top: 6px; padding-top: 14px; font-size: .78rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent) top / 100% 1px no-repeat;
}
.copyright .credit-icon { display: inline-flex; padding: 4px; text-decoration: none; }
.copyright a:hover { color: #fff; }

.pjt-wa { position: fixed; right: 20px; bottom: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 9999; transition: opacity .25s ease, transform .25s var(--ease), visibility .25s; }
/* Home: escondido enquanto o card "Visite a loja" (que já tem o WhatsApp) está na tela — main.js */
.pjt-wa.is-away { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.pjt-wa-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--wa-dark), var(--wa-darker)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(21, 128, 61, .34); transition: transform .2s var(--ease), box-shadow .2s ease;
}
.pjt-wa-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: waRing 2.8s ease-out infinite; pointer-events: none;
}
.pjt-wa.is-open .pjt-wa-btn::after { display: none; }
@keyframes waRing { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.pjt-wa-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 44px rgba(21, 128, 61, .42); }
.pjt-wa-panel {
  position: absolute; right: 0; bottom: 66px; width: min(330px, calc(100vw - 32px));
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--edge);
  box-shadow: 0 24px 70px rgba(15, 20, 30, .22);
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, transform .25s var(--ease), visibility .2s;
}
.pjt-wa.is-open .pjt-wa-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.pjt-wa-head { display: flex; gap: 12px; align-items: center; background: var(--charcoal); color: #fff; padding: 14px 16px; }
.pjt-wa-head strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.pjt-wa-head span { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: rgba(255, 255, 255, .65); }
.pjt-wa-head span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.pjt-wa-logo {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 900; letter-spacing: -.04em; font-family: var(--font-display);
}
.pjt-wa-close {
  margin-left: auto; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: transparent; border: 0; color: rgba(255, 255, 255, .78); font-size: 22px; cursor: pointer; line-height: 1;
}
.pjt-wa-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pjt-wa-body {
  padding: 16px; background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 14px 14px;
}
.pjt-wa-msg {
  position: relative; max-width: 88%; background: #fff; border-radius: 4px 14px 14px 14px;
  padding: 10px 12px; font-size: .95rem; color: var(--body); line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.pjt-wa-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--edge); background: #fff; }
.pjt-wa-input { flex: 1; min-width: 0; border: 1px solid var(--edge-strong); border-radius: var(--radius-pill); padding: 10px 14px; font-size: 1rem; }
.pjt-wa-input:focus { border-color: var(--wa); box-shadow: 0 0 0 3px rgba(37, 211, 102, .18); }
.pjt-wa-send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--wa-dark); color: #fff; display: grid; place-items: center; }
.pjt-wa-send:hover { background: var(--wa-darker); }

/* ==== 17. Animações de entrada (main.js adiciona .reveal só com JS) ==== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==== 18. Responsivo ==== */
@media (max-width: 1180px) {
  .header-cta { display: none; }
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ele-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid > * { flex-basis: calc((100% - 2 * 18px) / 3); }
  .search-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search-panel .search-field:first-child { grid-column: 1 / -1; }
  }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-parallax .hero-overlay { background: linear-gradient(180deg, rgba(8, 8, 10, .55), rgba(8, 8, 10, .9) 60%); }
  .painel-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-grid .logo-tile { flex-basis: calc((100% - 3 * 12px) / 4); }
  .hero-parallax { min-height: 0; }
  .glass-card { max-width: 560px; }
  .qs-story { grid-template-columns: 1fr; }
  .site-nav a { padding: 10px 11px; font-size: .88rem; }
  .site-nav a::after { left: 11px; right: 11px; }
}
@media (max-width: 940px) {
  .contact-cols { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .contact-map-card { grid-template-columns: minmax(0, 1fr); }
  .map-box { min-height: 300px; }
}
@media (max-width: 700px) {
  .ele-grid, .ele-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Celular: hambúrguer 40×40 à esquerda, logo centralizado, drawer à direita */
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .site-header .bar { position: relative; justify-content: center; }
  .brand { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10002; }
  .brand img { height: 44px; }
  .site-header { z-index: 10000; }
  /* Com JS o drawer assume; sem JS o menu do topo vira lista empilhada */
  body.js .site-nav { display: none; }
  body:not(.js) .site-nav { display: block; width: 100%; order: 3; margin: 0; }
  body:not(.js) .site-nav ul { flex-direction: column; gap: 0; }
  body:not(.js) .site-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--edge); border-radius: 0; }
  body:not(.js) .site-header .bar { flex-wrap: wrap; padding-bottom: 10px; }
  body:not(.js) .brand { position: static; transform: none; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head p { max-width: none; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery img { border-radius: var(--radius-md); }

  .hero-actions .button { flex: 1 1 200px; }

  /* Filtros: faixa com rolagem horizontal, sem quebrar em várias linhas */
  .pill-scroll, .filters {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) / -2); padding: 4px calc(var(--gutter) / 2) 10px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .pill-scroll::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
  .pill-scroll a, .filters a { scroll-snap-align: start; flex-shrink: 0; }

  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 14px 16px; border-bottom: 1px solid var(--edge); }
  .admin-table td { padding: 3px 0; border: 0; }
  .admin-table td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--muted); font-size: .78rem; }
  .admin-table .t-actions { text-align: left; padding-top: 10px; }
  /* Linha com foto (equipe): foto à esquerda, dados à direita */
  .admin-table tr:has(.t-avatar) { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .admin-table tr:has(.t-avatar) td:first-child { grid-row: span 3; width: auto; }
}

@media (max-width: 620px) {
  .form-grid, .wpcf7-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .wpcf7-form .wpcf7-submit { width: 100%; align-self: stretch; }
  .form-actions .button { flex: 1 1 auto; }
  .stat { padding: 18px 12px; }
  .stat strong { font-size: clamp(1.6rem, 7vw, 2rem); }
  .stat span { font-size: .78rem; line-height: 1.35; display: block; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stats-strip .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip .grid-4.has-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 16px; }
  .cat-icon { width: 42px; height: 42px; margin-bottom: 4px; }
  .cat-tile strong { font-size: .95rem; }
  .cat-cta { font-size: .78rem; }
  /* Marcas: linha com rolagem e encaixe (sem animação) */
  .brand-grid {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; gap: 10px;
    margin-inline: calc(var(--gutter) / -2); padding: 2px calc(var(--gutter) / 2) 6px;
  }
  .brand-grid::-webkit-scrollbar { display: none; }
  .brand-grid .logo-tile { flex: 0 0 140px; height: 72px; scroll-snap-align: start; }
  /* Card da loja compacto: com o status ao vivo visível, o horário completo sai */
  .store-card { padding: 18px; }
  .store-card:has([data-loja-status]:not([hidden])) .is-horario { display: none; }
  .store-list { gap: 10px; }
  .store-list li { font-size: .95rem; }
  .store-actions { margin-top: 14px; padding-top: 14px; }
  /* Quem atendemos: ícone ao lado do texto (4 cards empilhados ficavam longos demais) */
  .audience-grid { gap: 12px; }
  .audience-grid .card-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .audience-grid .icon-card { width: 44px; height: 44px; margin: 0; grid-row: span 3; box-shadow: none; }
  .audience-grid .icon-card svg { width: 22px; height: 22px; }
  .audience-grid h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .audience-grid .link-arrow { margin-top: 10px; }
  .cta-strip { padding: 20px; }
  .cta-strip .button { width: 100%; }
  /* Equipe: um por linha, foto grande */
  .team-grid { gap: 16px; }
  .team-grid > * { flex-basis: 100%; }
  .team-card .card-body { padding: 14px 14px 18px; }
  .team-card h3 { font-size: 1.18rem; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .copyright, .copyright-main, .copyright-credit { justify-content: center; text-align: center; }

  /* Celular: um card por linha — foto grande em cima, dados embaixo.
     Foto 4:3 enquadrada pelo topo (rosto) para a lista de 21 não ficar longa demais. */
  .ele-grid, .ele-grid.is-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ele-photo { aspect-ratio: 4 / 3; }
  .ele-photo img { aspect-ratio: 4 / 3; object-position: center top; }
  .ele-card .body { padding: 18px 18px 20px; }
  .ele-card h3 { font-size: 1.18rem; }
  .ele-card .actions .button { min-height: 46px; }
  .ele-card .actions .button.is-icon { width: 46px; }
  .flip-play { width: 44px; height: 44px; }

  .search-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 8px; gap: 8px; }
  .search-panel > label { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 36px; }
  .aside-card { padding: 22px; }
  .contact-aside { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { font-size: .66rem; letter-spacing: .1em; }
  .glass-card { padding: 20px; }
  .page-hero p { font-size: 1rem; }
  .pjt-wa { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .pjt-wa-btn { width: 50px; height: 50px; }
}

/* ==== 19. Movimento reduzido ==== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-parallax .hero-bg { transform: none !important; }
  .hero-circuit, .page-hero-circuit { display: none; }
}

/* ==== 20. Impressão ==== */
@media print {
  .site-header, .mobile-nav, .nav-overlay, .pjt-wa, .skip-link, .hero-circuit, .page-hero-circuit, .brand-band { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
  .hero-parallax .hero-bg, .hero-parallax .hero-overlay { display: none !important; }
  .hero-parallax, .page-hero, .section.is-dark, .section.stats-strip, .stat, .aside-card.is-dark, .site-footer { background: #fff !important; color: #000 !important; }
  :is(.hero-parallax, .page-hero, .section.is-dark, .section.stats-strip, .aside-card.is-dark, .site-footer) * { color: #000 !important; }
}
