/* ==== assets/css/tokens.css ==== */
/**
 * YES Elétrica — Design Tokens
 * Cores, tipografia, espaçamento, raios, sombras.
 * Esta é a fonte da verdade — TODA cor/tipo/espaço deve sair daqui.
 */

/* ===== Fontes self-hosted (ex-Google Fonts) ==========================
   Baixadas de fonts.gstatic.com (subset latin — cobre PT-BR) e servidas
   da nossa origem: elimina 2 conexões third-party, o CSS bloqueante do
   fonts.googleapis.com e o swap tardio que causava layout shift.
   Ambas são fontes VARIÁVEIS: 1 arquivo cobre todos os pesos usados. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  /* 'optional': com preload a fonte chega ANTES do 1º paint em conexões normais
     (medido: 61ms vs paint 371ms) — visual idêntico ao 'swap'. Em 4G muito lento,
     pinta de vez com a fallback (sem repaint/reflow) → LCP = FCP no Lighthouse. */
  font-display: optional;
  src: url(../fonts/bricolage-grotesque-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-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;
}

:root {
  /* ===== Brand ====================================== */
  --brand-deep:    #1A1170;
  --brand-violet:  #3D1A8F;
  --brand-teal:    #0EA5A5;     /* decorativo: borders, atom, gradients, accents */
  --brand-teal-700:#0F6E56;     /* TEXTO em fundo claro + CTA bg (5.6:1 white — passa AA) */
  --brand-teal-2:  #14B8A6;     /* fundo escuro (footer): passa AAA em #0B0B2E */
  --brand-teal-3:  #5DE2C8;
  --accent-yellow: #FBC72E;
  --accent-yellow-2: #FFE082;

  /* ===== Surfaces (light → dark) ==================== */
  --surface-base:  #FFFFFF;
  --surface-soft:  #F5F7FB;
  --surface-card:  #FFFFFF;
  --surface-dark:  #0B0B2E;

  /* ===== Ink (text) ================================ */
  --ink-primary:        #0F1235;
  --ink-secondary:      #4B5573;
  --ink-muted:          #5F6680;     /* WCAG AA: 5.68:1 em white, 5.29:1 em surface-soft */
  --ink-on-dark:        #E7E9F5;
  --ink-on-dark-muted:  #A6ABCB;

  /* ===== Border ==================================== */
  --border-subtle: #E6E9F2;
  --border-strong: #C9CFE0;
  --border-dark:   rgba(255,255,255,.10);

  /* ===== Type ======================================= */
  /* Stack tipográfico: Bricolage Grotesque domina (display + body — uma única
     família traz cohesão e identidade. Skill frontend-design proíbe Inter). */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --fs-xs:   0.72rem;
  --fs-sm:   0.86rem;
  --fs-base: 1rem;
  --fs-md:   1.06rem;
  --fs-lg:   1.18rem;
  --fs-xl:   1.4rem;
  --fs-2xl:  1.85rem;
  --fs-3xl:  2.4rem;
  --fs-4xl:  3.2rem;

  --lh-tight: 1.05;
  --lh-snug:  1.25;
  --lh-base:  1.55;
  --lh-loose: 1.7;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-wide:    0.12em;
  --tracking-wider:   0.22em;

  /* ===== Spacing scale (4px base) ================== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ===== Radius ===================================== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ===== Shadow (low elevation by default) ========= */
  --shadow-soft: 0 1px 2px rgba(15, 18, 53, .04), 0 4px 14px rgba(15, 18, 53, .04);
  --shadow-pop:  0 8px 24px rgba(26, 17, 112, .12), 0 2px 6px rgba(15, 18, 53, .06);
  --shadow-cta:  0 8px 18px rgba(14, 165, 165, .35);

  /* ===== Layout ===================================== */
  --container-max: 1240px;
  --container-pad: 24px;       /* mobile (Apple HIG / Material padrão — respiro confortável) */

  /* ===== Z-index ==================================== */
  --z-header: 50;
  --z-modal:  100;

  /* ===== Motion ===================================== */
  --ease-out:  cubic-bezier(.25, .8, .35, 1);
  --t-fast:    .15s;
  --t-base:    .25s;
  --t-slow:    .55s;
}

@media (min-width: 720px) {
  :root {
    --container-pad: var(--space-6);
  }
}

/* ==== assets/css/base.css ==== */
/**
 * YES Elétrica — Base styles (mobile-first)
 * Reset minimal + tipografia base + container + utilitários.
 *
 * Estratégia: tudo começa mobile (sem media query), e media queries
 * com (min-width: ...) sobem progressivamente.
 */

/* ===== Reset enxuto ================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* overflow-x:hidden quebra position:sticky em descendentes (cria scroll
     container que rouba o sticky do viewport). Usamos `clip` que recorta
     visualmente igual ao hidden MAS não cria scroll container.
     Suporte: Chrome 90+, Firefox 81+, Safari 16+ (universal em 2026). */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink-primary);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0;
}

p { margin: 0; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Container ==================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ===== Section base (mobile-first) ================== */
section.s {
  padding-block: var(--space-7);  /* 48px no mobile */
}
@media (min-width: 720px) {
  section.s { padding-block: var(--space-8); }   /* 64px tablet */
}
@media (min-width: 980px) {
  section.s { padding-block: var(--space-9); }   /* 96px desktop */
}

/* ===== Section head ================================= */
.section-head {
  margin-bottom: var(--space-6);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-teal-700);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: 1.7rem;          /* clamp via mobile-first */
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0;
  max-width: 720px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--brand-teal) 0%, var(--brand-teal-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 720px) {
  .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-bottom: var(--space-7);
  }
  .section-title { font-size: var(--fs-2xl); }
}
@media (min-width: 980px) {
  .section-title { font-size: var(--fs-3xl); }
}

/* ===== "See all" link ============================== */
.see-all {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.see-all:hover { color: var(--brand-teal-700); }
@media (min-width: 720px) {
  .see-all { margin-top: 0; }
}

/* ===== Reveal animation ============================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Utility ===================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==== assets/css/components.css ==== */
/**
 * YES Elétrica — Components (mobile-first)
 * Buttons, header, footer, cards e demais componentes reusáveis.
 */

/* ============================================================
   BANNER DE CONSENTIMENTO (LGPD) — canto inferior
   ============================================================ */
.consent {
  position: fixed;
  z-index: 9999;
  left: 16px; right: 16px; bottom: 16px;
}
.consent[hidden] { display: none; }
.consent-card {
  max-width: 460px;
  background: var(--brand-deep);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--space-4);
}
.consent-text {
  font-size: .86rem;
  line-height: 1.5;
  margin: 0 0 var(--space-3);
  color: rgba(255, 255, 255, .9);
}
.consent-text a { color: var(--brand-teal-2); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.consent-btn {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), filter var(--t-fast) var(--ease-out);
}
.consent-btn-primary { background: var(--brand-teal-2); color: #06251f; }
.consent-btn-primary:hover { filter: brightness(1.07); }
.consent-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.consent-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.consent-btn-link { background: transparent; color: rgba(255, 255, 255, .8); padding: 9px 8px; text-decoration: underline; }
.consent-btn-link:hover { color: #fff; }
.consent-prefs {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: var(--space-2);
}
.consent-prefs[hidden] { display: none; }
.consent-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
}
.consent-opt input { margin-top: 3px; accent-color: var(--brand-teal-2); }
.consent-opt strong { color: #fff; }
.consent-prefs .consent-btn-primary { justify-self: start; margin-top: var(--space-2); }
@media (max-width: 520px) {
  .consent-card { max-width: none; }
}

/* ============================================================
   MENSAGENS DE FORMULÁRIO DE LEAD (sucesso/erro inline via AJAX)
   ============================================================ */
.lead-msg {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: var(--space-4);
  font-size: .95rem;
  line-height: 1.55;
}
.lead-msg-ok {
  background: rgba(16, 185, 129, .10);
  border: 1px solid rgba(16, 185, 129, .35);
  color: #0f7a52;
}
.lead-msg-ok strong { color: #0b5e3f; }
.lead-msg-err {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .30);
  color: #b91c1c;
}
.lead-msg-err ul { margin: 8px 0 0 18px; padding: 0; }

/* ============================================================
   BREADCRUMB (global — aplica em produto, categoria, blog, contato)
   ============================================================ */
.breadcrumb {
  padding-block: var(--space-6) var(--space-3);  /* respiro do header sticky */
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--ink-secondary); }
.breadcrumb a:hover { color: var(--brand-teal-700); }
.breadcrumb .sep { color: var(--ink-muted); opacity: .6; }
.breadcrumb [aria-current="page"] { color: var(--brand-deep); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-teal-700);                    /* WCAG AA: white text 5.6:1 */
  color: white;
  box-shadow: 0 8px 18px rgba(15, 110, 86, .35);
}
.btn-primary:hover { background: #0a523f; transform: translateY(-1px); }

.btn-deep {
  background: var(--brand-deep);
  color: white;
}
.btn-deep:hover { background: #15095a; transform: translateY(-1px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .08);
  color: white;
  border: 1px solid rgba(255, 255, 255, .22);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }

.btn-outline {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand-deep); }

/* Header CTA escondido no mobile (libera espaço pro hamburger) */
.header-cta { display: none; }
@media (min-width: 880px) {
  .header-cta { display: inline-flex; }
  .btn { padding: 12px 22px; }
}

/* ============================================================
   FABs — Floating Action Buttons
   - WhatsApp: bottom-right, sempre visível, conversão B2B
   - Back-to-top: bottom-left, aparece após scroll > 400px
   ============================================================ */
.fab {
  position: fixed;
  z-index: 90;                                     /* abaixo de modal 100, acima de header sticky 50 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: var(--font-body);
  transition: transform var(--t-fast) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: translateY(0); }

/* WhatsApp FAB
   - Default (mobile + desktop): círculo 56×56 só com ícone
   - Desktop com hover (mouse): expande pra pill ao passar o mouse
   - Cor: #075E54 (oficial WhatsApp dark) — AAA com white text (7.55:1)
*/
.fab-whatsapp {
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  right: 16px;
  display: inline-flex;
  align-items: center;
  width: auto;                        /* cresce naturalmente com o texto */
  height: 56px;
  padding: 0;
  border-radius: 999px;
  background: #075E54;
  color: white;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 24px rgba(7, 94, 84, .42),
              0 2px 6px rgba(15, 18, 53, .14);
  transition: padding-right 0.4s cubic-bezier(.4,0,.2,1),
              transform var(--t-fast) var(--ease-out),
              background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              bottom 0.3s ease;
}
.fab-whatsapp:hover {
  background: #075E54;
  box-shadow: 0 12px 32px rgba(7, 94, 84, .50),
              0 4px 8px rgba(15, 18, 53, .18);
}
.fab-whatsapp .ico {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: transparent;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fab-whatsapp .ico svg { width: 28px; height: 28px; }
.fab-whatsapp .ico::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  animation: fab-pulse 2.2s ease-out infinite;
  transition: opacity 0.25s ease;
}
/* Texto colapsado por default (não aparece no mobile/touch) */
.fab-whatsapp > span:not(.ico) {
  display: none;
  white-space: nowrap;
}

/* Hover-expand SÓ em devices com mouse + viewport >= 720px */
@media (hover: hover) and (min-width: 720px) {
  .fab-whatsapp > span:not(.ico) {
    display: block;
    max-width: 0;                     /* colapsado por default */
    overflow: hidden;
    opacity: 0;
    padding-left: 0;
    transition: max-width 0.4s cubic-bezier(.4,0,.2,1),
                opacity 0.2s ease,
                padding-left 0.4s ease;
  }
  .fab-whatsapp:hover { padding-right: 22px; }
  .fab-whatsapp:hover > span:not(.ico) {
    max-width: 280px;
    opacity: 1;
    padding-left: 4px;
    transition: max-width 0.4s cubic-bezier(.4,0,.2,1),
                opacity 0.25s ease 0.15s,
                padding-left 0.4s ease;
  }
  /* Pulse pausa no hover — quando texto aparece, halo distrai */
  .fab-whatsapp:hover .ico::before {
    animation: none;
    opacity: 0;
  }
}
@keyframes fab-pulse {
  0%   { transform: scale(0.85); opacity: 0.85; }
  70%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}

/* Back-to-top circle — bottom-left, hidden até scroll
   Cor: brand-teal (vibrante) — visível em fundo claro (3:1 UI) E escuro (5.5:1) */
.fab-top {
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-teal);                    /* visível em qualquer bg */
  color: white;
  box-shadow: 0 8px 22px rgba(14, 165, 165, .42),
              0 2px 6px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: bottom 0.3s ease, opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab-top:hover {
  background: #0c9595;
  box-shadow: 0 12px 28px rgba(14, 165, 165, .50),
              0 4px 8px rgba(0, 0, 0, .25);
}

/* Tablet+ : posições mais generosas */
@media (min-width: 720px) {
  .fab-whatsapp { bottom: 18px; right: 24px; }       /* 6px mais perto da borda */
  .fab-top {
    bottom: 18px;
    left: 24px;
    width: 48px; height: 48px;
  }
}

/* Lift dos FABs ao chegar perto do rodapé (não cobrir crédito do dev) */
.near-bottom .fab-whatsapp,
.near-bottom .fab-top {
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 720px) {
  .near-bottom .fab-whatsapp,
  .near-bottom .fab-top { bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp .ico::before { animation: none; }
  .fab { transition: opacity var(--t-base) var(--ease-out); }
  .fab:hover { transform: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;          /* toolbar industrial — altura previsível */
  padding-block: var(--space-2);
  gap: var(--space-3);
}
@media (min-width: 880px) {
  .header-inner {
    min-height: 84px;
    padding-block: var(--space-4);
    gap: var(--space-4);
  }
}
/* ============================================================
   BRAND LOGO (WebP responsivo)
   - Header: logo-{200,400}.webp     → fundo claro
   - Footer: logo-white-{200,400}.webp → fundo escuro (.brand--light)
   - <img> tem width/height attrs intrinsic → zero CLS
   ============================================================ */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 100px;       /* mobile — toolbar industrial, ~25% viewport */
  height: auto;       /* aspect-ratio derivado do width/height attrs */
}
@media (min-width: 880px) {
  .brand-logo { width: 168px; }
}

/* Nav escondido no mobile, aparece desktop */
.nav-primary {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav-primary > a,
.nav-mega-trigger {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  position: relative;
  transition: color var(--t-fast) var(--ease-out);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-primary > a:hover,
.nav-mega-trigger:hover { color: var(--ink-primary); }
.nav-primary > a.active,
.nav-mega-trigger.active { color: var(--brand-deep); }
.nav-primary > a.active::after {
  content: "";
  position: absolute;
  inset: auto 0 -22px 0;
  height: 2px;
  background: var(--brand-teal);
}
/* Trigger ativo usa ::before pra não conflitar com hover-bridge ::after */
.nav-mega-trigger.active::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--brand-teal);
}

/* ============================================================
   HEADER SEARCH (desktop ≥1024px) e MOBILE SEARCH (drawer)
   ============================================================ */
.header-search {
  display: none;                         /* mobile esconde — search vai no drawer */
  position: relative;
  flex: 1 1 auto;
  max-width: 380px;
  margin-inline: var(--space-5);
}
.header-search input {
  width: 100%;
  height: 44px;                          /* tap target ≥44px */
  padding: 0 16px 0 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink-primary);
  transition: border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.header-search input::placeholder { color: var(--ink-muted); }
.header-search input:hover { border-color: var(--border-strong); }
.header-search input:focus {
  outline: 0;
  border-color: var(--brand-teal-700);
  background: var(--surface-base);
  box-shadow: 0 0 0 4px rgba(15, 110, 86, .12);
}
.header-search .icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  transition: color var(--t-fast) var(--ease-out);
}
.header-search input:focus ~ .icon { color: var(--brand-teal-700); }
@media (min-width: 1024px) { .header-search { display: block; } }

.mobile-search {
  position: relative;
  padding: 14px var(--container-pad);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-base);
}
.mobile-search input {
  width: 100%;
  height: 44px;                          /* tap target ≥44px */
  padding: 0 16px 0 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  font-size: 16px;                       /* previne zoom no iOS */
  color: var(--ink-primary);
}
.mobile-search input:focus {
  outline: 0;
  border-color: var(--brand-teal-700);
  background: var(--surface-base);
  box-shadow: 0 0 0 4px rgba(15, 110, 86, .12);
}
.mobile-search .icon {
  position: absolute;
  left: calc(var(--container-pad) + 16px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* ============================================================
   MEGA-MENU SIDEBAR (DESKTOP) — substitui o 4-col grid antigo
   ============================================================ */
.nav-mega {
  position: static;                       /* painel absolute relativo ao header */
}
.nav-mega-trigger .chevron {
  transition: transform var(--t-fast) var(--ease-out);
}
.nav-mega.open .nav-mega-trigger,
.nav-mega:hover .nav-mega-trigger,
.nav-mega-trigger:focus-visible {
  color: var(--brand-deep);
}
.nav-mega.open .nav-mega-trigger .chevron,
.nav-mega:hover .nav-mega-trigger .chevron {
  transform: rotate(180deg);
}

/* Hover bridge ESTREITA (só sob o trigger) + close-delay 300ms no JS.
   Antes era -50vw a +50vw e abria o menu ao passar o mouse embaixo de
   QUALQUER item do header. Agora cobre só a largura do trigger + folga. */
.nav-mega-trigger { position: relative; }
.nav-mega-trigger::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 18px;                           /* cobre o gap header->painel sob o trigger */
}

.nav-mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface-base);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 18, 53, .08);
  z-index: var(--z-header);
  animation: mega-fade-in 0.2s var(--ease-out);
}
.nav-mega.open .nav-mega-panel { display: block; }
@keyframes mega-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shell: grid sidebar (cats) + conteúdo (pane ativo) — mobile-first */
.nav-mega-shell {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 240px 1fr;     /* default = layout mais compacto */
  gap: var(--space-5);
  min-height: 380px;
}
@media (min-width: 1101px) {
  .nav-mega-shell {
    grid-template-columns: 280px 1fr;   /* desktop largo = sidebar mais espaçosa */
    gap: var(--space-7);
    padding: var(--space-6);
  }
}

/* Coluna esquerda: lista de categorias (tablist) */
.nav-mega-cats {
  list-style: none;
  padding: 0; margin: 0;
  border-right: 1px solid var(--border-subtle);
  padding-right: var(--space-3);
}
.nav-mega-cats li { margin: 0; }
.nav-mega-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.94rem;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.nav-mega-cat-item:hover,
.nav-mega-cat-item.active {
  background: var(--surface-soft);
  color: var(--brand-deep);
}
.nav-mega-cat-item .arrow {
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  color: var(--brand-teal-700);
  flex-shrink: 0;
}
.nav-mega-cat-item.active .arrow,
.nav-mega-cat-item:hover .arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Coluna direita: conteúdo da categoria ativa */
.nav-mega-content {
  padding-block: 4px;
  min-height: 320px;
}
.nav-mega-pane { display: none; }
.nav-mega-pane.active {
  display: block;
  animation: mega-pane-fade 0.25s var(--ease-out);
}
@keyframes mega-pane-fade {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav-mega-pane header {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-mega-pane h4 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
  margin: 0 0 6px;
}
.nav-mega-pane p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}
.nav-mega-products {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;            /* mobile-first: 1 coluna */
  gap: 4px var(--space-5);
}
@media (min-width: 981px) {
  .nav-mega-products { grid-template-columns: 1fr 1fr; }
}
.nav-mega-products a {
  display: block;
  padding: 9px 12px;
  margin-inline: -12px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--ink-primary);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-mega-products a:hover {
  background: var(--surface-soft);
  color: var(--brand-teal-700);
}
.nav-mega-pane .see-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-teal-700);
  font-weight: 600;
}
.nav-mega-pane .see-cat:hover { color: var(--brand-deep); }

/* ============================================================
   MOBILE ACCORDION (Produtos no mobile-menu)
   ============================================================ */
.mobile-acc {
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--container-pad);
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.mobile-acc summary::-webkit-details-marker { display: none; }
.mobile-acc summary .chevron {
  transition: transform var(--t-fast) var(--ease-out);
}
.mobile-acc[open] > summary .chevron { transform: rotate(180deg); }
.mobile-acc[open] > summary { color: var(--brand-deep); }

.mobile-acc-list {
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
}
.mobile-acc-list li { border-bottom: 1px solid var(--border-subtle); }
.mobile-acc-list li:last-child { border-bottom: 0; }
.mobile-acc-list a {
  display: block;
  padding: var(--space-3) var(--container-pad);
  padding-left: calc(var(--container-pad) + var(--space-4));
  color: var(--ink-secondary);
  font-size: 0.92rem;
  border-bottom: 0 !important;
}

/* Hamburger = sibling visual da CTA "Fale conosco" do desktop.
   No mobile é a ÚNICA porta da navegação — merece peso de CTA, não de ícone secundário. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 0;
  color: white;
  background: var(--brand-teal-700);                    /* white icon 5.6:1 ✓ AA */
  box-shadow: 0 6px 18px rgba(15, 110, 86, .35);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-base) var(--ease-out);
}
.nav-toggle:hover { background: #0a523f; transform: translateY(-1px); }
.nav-toggle:active { transform: translateY(0); }

@media (min-width: 880px) {
  .nav-primary { display: flex; }
  .nav-toggle { display: none; }
  .header-inner { padding-block: var(--space-4); }
}

/* Mobile menu (toggled via JS) */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-4);
  background: var(--surface-base);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--container-pad);
  color: var(--ink-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 880px) {
  .mobile-menu { display: none !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 90% 0%, rgba(14, 165, 165, .25), transparent 60%),
    radial-gradient(40% 40% at 10% 100%, rgba(61, 26, 143, .35), transparent 60%);
  pointer-events: none;
}

.contact-bar {
  position: relative;
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--border-dark);
}
.contact-bar h2 {
  font-size: 1.7rem;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-6);
  max-width: 580px;
}
.contact-bar h2 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--brand-teal-2), var(--brand-teal-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Linha horizontal: contatos + CTA orçamento */
.contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-list li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.contact-list .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(14, 165, 165, .14);
  border: 1px solid rgba(14, 165, 165, .35);
  display: grid;
  place-items: center;
  color: var(--brand-teal-2);
  flex-shrink: 0;
}
.contact-list .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
  display: block;
  margin-bottom: 2px;
}
.contact-list .value {
  font-family: var(--font-mono);     /* assinatura industrial */
  font-weight: 500;
  font-size: 0.9rem;
  color: white;
  white-space: nowrap;               /* phones nunca quebram */
  letter-spacing: -0.01em;
}
.contact-list .value:hover { color: var(--brand-teal-2); }
.quote-cta { align-self: flex-start; }

@media (min-width: 720px) {
  .contact-bar { padding-block: var(--space-8); }
  .contact-bar h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-7); }
  .contact-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .contact-list {
    flex-direction: row;
    gap: var(--space-6);
    flex-wrap: wrap;
  }
  .quote-cta { align-self: auto; margin-left: auto; }
}
@media (min-width: 980px) {
  .contact-bar { padding-block: var(--space-9) var(--space-7); }
  .contact-bar h2 { font-size: var(--fs-3xl); }
  .contact-list { gap: var(--space-7); }
}

.footer-grid {
  position: relative;
  padding-block: var(--space-7);
  display: grid;
  gap: var(--space-6);
}
.footer-brand p {
  color: var(--ink-on-dark-muted);
  font-size: var(--fs-sm);
  max-width: 320px;
  margin-top: var(--space-3);
}
.footer-brand .logo { color: white; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand-teal-2);
  margin: 0 0 var(--space-3);
  font-weight: 500;
}
.footer-col li { margin-bottom: var(--space-3); }
.footer-col a {
  color: var(--ink-on-dark);
  font-size: var(--fs-sm);
  opacity: 0.82;
  transition: opacity var(--t-fast) var(--ease-out);
}
.footer-col a:hover { opacity: 1; }

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-7);
  }
}

.footer-bottom {
  position: relative;
  padding-block: var(--space-4);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--ink-on-dark-muted);
}
.dev-credit {
  color: var(--brand-teal-2);                  /* AAA: 7.66:1 em surface-dark */
  text-decoration: none;
  border-bottom: 1px dotted rgba(20, 184, 166, .4);
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.dev-credit:hover {
  color: var(--brand-teal-3);
  border-bottom-color: var(--brand-teal-3);
}

/* ============================================================
   FOOTER — ícones sociais
   ============================================================ */
.footer-social-icon:hover {
  background: rgba(14, 165, 165, 0.30) !important;
  transform: translateY(-2px);
}

/* ==== assets/css/pages/category.css ==== */
/* BREADCRUMB: estilos movidos para components.css (global) — antes ficavam
   só aqui e não aplicavam na página de produto (que não carrega category.css). */

/* ============================================================
   CATEGORY HERO
   ============================================================ */
.cat-hero {
  position: relative;
  background: linear-gradient(135deg, #11084d 0%, var(--brand-deep) 50%, var(--brand-violet) 100%);
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.cat-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, black 30%, black 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, black 30%, black 70%, transparent 100%);
  z-index: -1; opacity: .4;
}
.cat-hero-inner { padding-block: var(--space-7); }
@media (min-width: 980px) { .cat-hero-inner { padding-block: var(--space-9) var(--space-7); } }

.cat-hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-teal-2);
  background: rgba(14,165,165,.12);
  border: 1px solid rgba(14,165,165,.35);
  padding: 6px 11px; border-radius: 999px;
  margin-bottom: var(--space-3);
}
.cat-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -.025em;
  line-height: 1.0;
  margin: 0 0 var(--space-3);
}
.cat-hero h1 .accent {
  background: linear-gradient(95deg, var(--brand-teal-2), var(--brand-teal-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cat-hero p.lead {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-on-dark-muted);
  margin: 0 0 var(--space-5);
}
.cat-hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 680px;
}
.cat-hero-meta .stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: white; line-height: 1;
}
.cat-hero-meta .stat span {
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-on-dark-muted); margin-top: 5px; display: block;
}
@media (min-width: 720px) {
  .cat-hero-meta .stat strong { font-size: 1.7rem; }
  .cat-hero-meta .stat span { font-size: .62rem; }
}

/* ============================================================
   CATEGORY CONTENT — sidebar + grid produtos
   ============================================================ */
.cat-content {
  background: var(--surface-soft);
  border-block: 1px solid var(--border-subtle);
}
.cat-layout {
  padding-block: var(--space-7);
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 980px) {
  .cat-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-7);
    padding-block: var(--space-8);
  }
}

/* ===== Sidebar filtros ===== */
.cat-sidebar {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  height: max-content;
}
@media (min-width: 980px) {
  .cat-sidebar { position: sticky; top: 100px; }
}

.filter-group { margin-bottom: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.filter-group h2 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 var(--space-3);
}
.filter-group ul { display: flex; flex-direction: column; gap: 2px; }
.filter-group ul li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; margin-inline: -10px;
  border-radius: var(--radius-sm);
  font-size: .92rem; color: var(--ink-secondary);
  transition: background .15s, color .15s;
}
.filter-group ul li a:hover { background: var(--surface-soft); color: var(--brand-deep); }
.filter-group ul li.active a { background: rgba(14,165,165,.08); color: var(--brand-deep); font-weight: 600; }
.filter-group ul .count { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-muted); }
.filter-group label {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 8px 0;
  font-size: .92rem;
  color: var(--ink-secondary);
  cursor: pointer;
}
.filter-group label:hover { color: var(--brand-deep); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--brand-teal-700);
  cursor: pointer;
}
.filter-group label .count { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-muted); }

.filter-clear {
  margin-top: var(--space-4);
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-secondary);
  background: white;
  cursor: pointer;
}
.filter-clear:hover { border-color: var(--brand-deep); color: var(--brand-deep); }

/* Toggle de filtros mobile */
.filter-mobile-toggle {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%;
  padding: 14px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--brand-deep); color: white;
  font-weight: 600;
  cursor: pointer;
}
@media (min-width: 980px) { .filter-mobile-toggle { display: none; } .cat-sidebar.collapsed-mobile { display: block; } }
@media (max-width: 979px) {
  .cat-sidebar { display: none; padding: 0; border: 0; background: transparent; }
  .cat-sidebar.open { display: block; }
}

/* ===== Toolbar e grid de produtos ===== */
.cat-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.cat-toolbar .results { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-secondary); }
.cat-toolbar .results strong { color: var(--brand-deep); }
.cat-toolbar select {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: white;
  font-family: var(--font-body); font-size: .9rem;
  color: var(--ink-primary);
  cursor: pointer;
}

.prod-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
/* Variante "rich" — cards maiores quando categoria tem poucos produtos */
.prod-grid--rich { gap: var(--space-5); }
@media (min-width: 720px) { .prod-grid--rich { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .prod-grid--rich { grid-template-columns: repeat(2, 1fr); } }
.prod-grid--rich .prod-card .img { height: 180px; }
.prod-grid--rich .prod-card h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: var(--space-2); }
.prod-grid--rich .prod-card .desc {
  font-size: .94rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.prod-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  position: relative;
  text-decoration: none;       /* card é <a> agora — clique no card todo */
  color: inherit;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--brand-teal); }
.prod-card .img {
  height: 140px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 30% 30%, rgba(14,165,165,.12), transparent 60%), var(--surface-soft);
  display: grid; place-items: center;
  margin-bottom: var(--space-3);
  color: var(--brand-deep);
}
.prod-card .code {
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .14em; color: var(--ink-muted);
  text-transform: uppercase; margin-bottom: 4px;
}
.prod-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: .96rem; margin: 0 0 var(--space-3);
  line-height: 1.25; letter-spacing: -.01em;
  color: var(--ink-primary);
}
.prod-card .specs {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--ink-muted); line-height: 1.4;
  margin-bottom: var(--space-4);
}
.prod-card .mode-tag {
  font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
  align-self: flex-start; margin-bottom: var(--space-3);
}
.prod-card .mode-tag.quote { background: rgba(26,17,112,.08); color: var(--brand-deep); }
.prod-card .mode-tag.sale  { background: rgba(15,110,86,.12); color: var(--brand-teal-700); }
.prod-card .cta {
  margin-top: auto; padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--brand-deep); font-weight: 600;
  font-size: .85rem;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s;
}
.prod-card:hover .cta { background: var(--brand-deep); color: white; }

/* ===== Paginação ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  font-family: var(--font-mono); font-size: .85rem;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.pagination a:hover { border-color: var(--brand-teal); color: var(--brand-deep); }
.pagination .current { background: var(--brand-deep); color: white; border-color: var(--brand-deep); }
.pagination .gap { border: 0; background: transparent; }

/* ============================================================
   RICH CONTENT (TOC + article)
   ============================================================ */
.cat-rich {
  background: white;
  padding-block: var(--space-8);
}
@media (min-width: 980px) { .cat-rich { padding-block: var(--space-9); } }

.rich-layout {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 980px) {
  .rich-layout {
    grid-template-columns: 1fr 240px;
    gap: var(--space-8);
    /* PROPOSITAL: align-items default (stretch). O .toc estica até a altura
       do .rich-content e o .toc-stuck (sticky filho) desliza DENTRO dele.
       Sem stretch, .toc colapsa pro tamanho do conteúdo e sticky fica preso. */
  }
}

.rich-content { max-width: 760px; }
.rich-content header { margin-bottom: var(--space-6); }
.rich-content > header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -.025em;
  margin-bottom: var(--space-3);
}
.rich-content > header h2 em { font-style: normal; color: var(--brand-teal-700); }
.rich-content > header > p {
  font-size: 1.1rem; line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 680px;
}
.rich-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2;
  margin: var(--space-7) 0 var(--space-3);
  color: var(--ink-primary);
  scroll-margin-top: 160px;
}
.rich-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.2;
  margin: var(--space-7) 0 var(--space-3);
  color: var(--ink-primary);
  scroll-margin-top: 160px;  /* match com top do .toc-stuck para clicks no TOC nao caírem embaixo do header */
}
.rich-content p {
  font-size: 1rem; line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: var(--space-4);
}
.rich-content p a { color: var(--brand-teal-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
.rich-content p a:hover { color: var(--brand-deep); }
.rich-content ul:not(.bare), .rich-content ol {
  margin: var(--space-3) 0 var(--space-5);
  padding-left: 1.5em;
  list-style: disc;
  color: var(--ink-secondary);
}
.rich-content ul li, .rich-content ol li { margin-bottom: var(--space-2); line-height: 1.6; }

.rich-content .video-embed {
  position: relative;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 16/9;
  display: grid; place-items: center;
}
.rich-content .video-embed::before {
  content: "▶  Vídeo embed (placeholder — receberá iframe do YouTube/Vimeo)";
  font-family: var(--font-mono); font-size: .82rem;
  color: var(--ink-secondary);
  letter-spacing: .03em;
}
.rich-content .video-caption {
  font-family: var(--font-mono); font-size: .76rem;
  color: var(--ink-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

.rich-cta {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-violet));
  color: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin: var(--space-7) 0;
  display: grid; gap: var(--space-3);
}
@media (min-width: 720px) {
  .rich-cta { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-5); padding: var(--space-7); }
}
.rich-cta h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin: 0 0 var(--space-2);
}
.rich-cta p { color: var(--ink-on-dark-muted); margin: 0; font-size: .94rem; }
.rich-cta .btn { background: var(--brand-teal-700); color: white; /* AA: 5.6:1 (o teal claro dava 2.6:1) */ font-size: .92rem; padding: 14px 24px; }
.rich-cta .btn:hover { background: #0a523f; }

/* ===== TOC desktop sticky =====
   Estratégia "nested sticky":
   - .toc (filho do grid): ESTICA na vertical (align-items default = stretch)
     -> ganha altura = altura do .rich-content adjacente
   - .toc-stuck (filho do .toc): faz o sticky DENTRO do .toc esticado
     -> tem espaço real pra deslizar enquanto o usuário rola */
.toc { display: none; }
@media (min-width: 980px) {
  .toc {
    display: block;
    /* sem align-self: start - precisa esticar pra dar scroll room ao sticky filho */
    padding: var(--space-5);
    border-left: 2px solid var(--border-subtle);
  }
  .toc-stuck {
    position: -webkit-sticky;
    position: sticky;
    /* top = altura do header sticky (.site-header = 141px) + 20px de respiro.
       Sem isso, o primeiro item do TOC fica embaixo do header e some. */
    top: 160px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.toc h3, .toc-title {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: var(--space-4);
  font-weight: 600; transition: opacity .25s ease, max-height .25s ease, margin-bottom .25s ease;
  overflow: hidden;
}
.scrolled .toc-title { opacity: 0; max-height: 0; margin-bottom: 0; }
.toc ul li { margin-bottom: var(--space-2); }
.toc ul li a {
  display: block; padding: 6px 0; font-size: .88rem;
  color: var(--ink-secondary); border-left: 2px solid transparent;
  padding-left: var(--space-3); margin-left: -2px;
  transition: color .15s, border-color .15s;
}
.toc ul li a:hover { color: var(--brand-deep); }
.toc ul li a.active { color: var(--brand-teal-700); border-left-color: var(--brand-teal-700); font-weight: 600; }

/* ===== TOC share buttons ===== */
.toc-share { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px dashed var(--border-subtle); }
.toc-share-label {
  display: block; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--space-3);
}
.toc-share-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.toc-share-btn {
  position: relative; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-soft);
  color: var(--ink-secondary); border: 0; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.toc-share-btn:hover { background: var(--brand-teal-700); color: white; transform: translateY(-2px); }
.toc-share-btn .copied-msg {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand-deep); color: white;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toc-share-btn.copied .copied-msg { opacity: 1; }

/* ===== TOC mobile floating button + drawer ===== */
.toc-mobile-trigger {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 80; background: var(--brand-deep); color: white;
  padding: var(--space-3) var(--space-2); border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .15em; text-transform: uppercase; cursor: pointer;
  writing-mode: vertical-rl; text-orientation: mixed;
  box-shadow: -2px 0 12px rgba(0,0,0,.18); display: flex; align-items: center; gap: var(--space-2);
  transition: right .25s ease;
}
.toc-mobile-trigger svg { transform: rotate(90deg); }
.toc-mobile-trigger:hover { background: var(--brand-violet); }
@media (min-width: 980px) { .toc-mobile-trigger { display: none; } }

.toc-mobile-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(320px, 85vw);
  background: white; z-index: 90; padding: var(--space-6);
  box-shadow: -8px 0 32px rgba(0,0,0,.12); transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.toc-mobile-panel.open { transform: translateX(0); }
.toc-mobile-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-subtle);
}
.toc-mobile-panel-head h3 { font-size: 1.1rem; }
.toc-mobile-panel-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-soft); display: grid; place-items: center;
}
.toc-mobile-panel ul li { margin-bottom: 4px; }
.toc-mobile-panel ul li a {
  display: block; padding: 12px var(--space-3); font-size: .96rem;
  color: var(--ink-secondary); border-radius: var(--radius-sm); border-left: 2px solid transparent;
}
.toc-mobile-panel ul li a:hover, .toc-mobile-panel ul li a.active {
  background: rgba(14,165,165,.08); color: var(--brand-teal-700);
  border-left-color: var(--brand-teal-700); font-weight: 600;
}
.toc-mobile-overlay {
  position: fixed; inset: 0; background: rgba(15,18,53,.55);
  backdrop-filter: blur(2px); z-index: 85; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.toc-mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--surface-soft); padding-block: var(--space-8); border-block: 1px solid var(--border-subtle); }
.faq-inner { max-width: 820px; margin-inline: auto; }
.faq h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.025em; text-align: center; margin-bottom: var(--space-3); }
.faq h2 em { font-style: normal; color: var(--brand-teal-700); }
.faq > p { text-align: center; color: var(--ink-secondary); margin-bottom: var(--space-7); }
.faq-item { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: var(--space-3); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; color: var(--ink-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform .2s ease; flex-shrink: 0; color: var(--brand-teal-700); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--brand-deep); border-bottom: 1px solid var(--border-subtle); }
.faq-item .answer { padding: var(--space-4) var(--space-5); font-size: .98rem; line-height: 1.65; color: var(--ink-secondary); }
.faq-item .answer p { margin-bottom: var(--space-3); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ============================================================
   RELATED BLOG
   ============================================================ */
/* ===== Conteúdo relacionado (blog) =====
   Bloco idêntico em category.css e product.css — markup compartilhado por
   category.php, subcategory.php e product.php. O card é um <a> sem wrapper
   .body, então o espaçamento interno vai nos filhos (h3, p, .cta). */
.related-blog { padding-block: var(--space-8); }
.related-blog h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.025em; margin-bottom: var(--space-2); }
.related-blog h2 em { font-style: normal; color: var(--brand-teal-700); }
.related-blog .lead { color: var(--ink-secondary); margin-bottom: var(--space-7); max-width: 580px; }
.blog-grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { text-decoration: none; color: inherit; background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .25s, border-color .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--brand-teal); }
.blog-card-cover { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-deep), var(--brand-violet)); display: grid; place-items: center; color: rgba(255,255,255,.45); overflow: hidden; }
.blog-card-cover picture, .blog-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--ink-primary); margin-top: var(--space-5); margin-right: var(--space-5); margin-bottom: var(--space-3); margin-left: var(--space-5); }
.blog-card p { font-size: .92rem; color: var(--ink-secondary); line-height: 1.55; flex: 1; margin-top: 0; margin-right: var(--space-5); margin-bottom: 0; margin-left: var(--space-5); }
.blog-card .cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-teal-700); font-weight: 600; margin-top: var(--space-4); margin-right: var(--space-5); margin-bottom: var(--space-5); margin-left: var(--space-5); }

/* ============================================================
   HERO COM IMAGEM (og_image_media_id setado)
   ============================================================ */
.cat-hero--with-image .cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cat-hero--with-image .cat-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,8,77,.85) 0%, rgba(26,17,112,.78) 50%, rgba(61,26,143,.72) 100%);
  z-index: 1;
}
.cat-hero--with-image .cat-hero-bg picture,
.cat-hero--with-image .cat-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-hero--with-image .cat-hero-inner {
  position: relative;
  z-index: 2;
}
.cat-hero--with-image::after {
  display: none; /* desabilita o pattern de dots quando tem foto */
}

/* ============================================================
   PRODUCT CARD — imagem real (quando houver) preenche o slot
   ============================================================ */
.prod-card .img picture,
.prod-card .img picture img,
.prod-card .img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.prod-card .img:has(picture),
.prod-card .img:has(> img) {
  overflow: hidden;
  background: var(--surface-soft);
}

/* ===== Card com 2 ações (pedido da agência, jul/2026) =====
   O card deixou de ser um <a> único: o título usa stretched-link (::after cobre
   o card todo e leva ao produto) e o botão de cotação flutua ACIMA do overlay. */
.prod-card-link { color: inherit; text-decoration: none; }
.prod-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.prod-card-actions {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.prod-card-actions .cta { margin-top: 0; }
.prod-card .cta-quote {
  position: relative; z-index: 1;           /* acima do stretched-link */
  background: var(--brand-teal-700); color: #fff;  /* AA 5.6:1 */
  text-decoration: none;
}
.prod-card .cta-quote:hover,
.prod-card:hover .cta-quote { background: #0a523f; color: #fff; }
@media (max-width: 420px) {
  .prod-card-actions { grid-template-columns: 1fr; } /* telas estreitas: botões empilhados */
}

