/* ==========================================================================
   MBRtech Site PRO — Protótipo visual
   Design tokens + componentes reutilizáveis
   Identidade: preto / grafite / branco / verde MBRtech (neon)
   ========================================================================== */

:root{
  /* Paleta */
  --black: #0a0b0c;
  --graphite-900: #141517;
  --graphite-800: #1c1e21;
  --graphite-700: #26282c;
  --graphite-600: #3a3d42;
  --line: #2f3236;
  --white: #ffffff;
  --off-white: #f4f5f4;
  --muted: #686d74; /* revisão: cinza escurecido para atingir contraste AA (~4.7:1) sobre fundo branco */
  --green: #00e676;
  --green-strong: #00c766;
  --green-deep: #00341c;
  --green-tint: #0e2a1c;
  --danger: #ff5470;

  /* Tipografia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Espaçamento */
  --gap-xs: .5rem;
  --gap-sm: .75rem;
  --gap-md: 1.25rem;
  --gap-lg: 2rem;
  --gap-xl: 3.5rem;

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 68px;
  --header-h-mobile: 58px;

  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-green: 0 8px 24px -8px rgba(0,230,118,.45);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: hidden; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--white);
  color: var(--graphite-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden; /* revisão: rede de segurança contra overflow horizontal acidental */
  max-width: 100vw;
}
/* revisão: garante que o atributo boolean [hidden] sempre funcione, mesmo em
   elementos cuja classe (ex.: .btn) define um display próprio que, do
   contrário, sobrescreveria a regra padrão do navegador para [hidden] */
[hidden]{ display: none !important; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
input, select, textarea{ font-family: inherit; }
h1,h2,h3,h4{ margin:0; line-height:1.15; font-weight:800; letter-spacing:-.02em; }
p{ margin:0; }
.container{ max-width: var(--max-w); margin:0 auto; padding: 0 20px; }
section{ padding: var(--gap-xl) 0; }
@media (max-width: 600px){
  section{ padding: 2.25rem 0; }
}

.eyebrow{
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--green-strong);
}
.eyebrow::before{
  content:''; width:16px; height:2px; background: var(--green); border-radius:2px;
}
.section-head{ max-width: 640px; margin-bottom: var(--gap-lg); }
.section-head h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top:.4rem; }
.section-head p{ color: var(--muted); margin-top:.6rem; font-size: .98rem; }
.section-head.on-dark p{ color:#b9bec5; }
.section-head.on-dark .eyebrow{ color: var(--green); }
.section-head.on-dark h2{ color:#fff; }

/* ---------- Botões ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding: .75rem 1.25rem; border-radius: 999px; font-weight:700; font-size:.88rem;
  border:1px solid transparent; white-space:nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--green); color: var(--black); box-shadow: var(--shadow-green); }
.btn-primary:hover{ background: var(--green-strong); }
.btn-outline{ background: transparent; border-color: var(--graphite-600); color: var(--graphite-900); }
.btn-outline:hover{ border-color: var(--graphite-900); }
.btn-outline.on-dark,
.hero .btn-outline,
.section-dark .btn-outline{ border-color:#454850; color:#fff; }
.btn-outline.on-dark:hover,
.hero .btn-outline:hover,
.section-dark .btn-outline:hover{ border-color: var(--green); color: var(--green); }
/* revisão: qualquer botão outline dentro de fundo escuro herda automaticamente
   o contraste correto — evita o bug de "PRECISO DE ASSISTÊNCIA" invisível no Hero */
.btn-ghost{ background: var(--graphite-800); color:#fff; }
.btn-ghost:hover{ background: var(--graphite-700); }
.btn-sm{ padding:.5rem .9rem; font-size:.78rem; }
.btn-block{ width:100%; }
.btn-whatsapp{ background:#1ea952; color:#fff; }
.btn-whatsapp:hover{ background:#188c44; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: rgba(10,11,12,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 24px -12px rgba(0,0,0,.6); }
.header-inner{
  display:flex; align-items:center; gap: var(--gap-md);
  height: var(--header-h); color:#fff;
}
@media (max-width: 860px){ .header-inner{ height: var(--header-h-mobile); gap:.6rem; } }

.logo{ display:flex; align-items:center; gap:.55rem; font-weight:800; font-size:1.15rem; color:#fff; flex-shrink:0; }
.logo .mark{
  width:34px; height:34px; border-radius:9px; background: var(--graphite-800);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  color: var(--green); font-weight:900; font-size:1.05rem;
}
.logo .brand-b{ color:#fff; }
.logo .brand-tech{ color: var(--green); }

.main-nav{ display:flex; align-items:center; gap: 1.4rem; margin-left: .5rem; }
.main-nav a{
  font-size:.9rem; font-weight:600; color:#cfd3d8; padding:.4rem 0; position:relative;
}
.main-nav a:hover{ color:#fff; }
.main-nav a.active{ color: var(--green); }

.header-search{
  flex:1; max-width: 380px; display:flex; align-items:center; gap:.5rem;
  background: var(--graphite-800); border:1px solid var(--line); border-radius: 999px;
  padding: .5rem .9rem; margin-left:auto;
}
.header-search input{
  border:0; background:transparent; outline:0; color:#fff; font-size:.85rem; width:100%;
}
.header-search input::placeholder{ color:#8a8f96; }
.header-search svg{ flex-shrink:0; color:#9aa0a7; }

.header-cta{ display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.icon-btn{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--graphite-800); color:#fff; border:1px solid var(--line); flex-shrink:0;
}

.nav-toggle{ display:none; }
@media (max-width: 860px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header-search{ display:none; }
  .header-cta .btn-primary span{ display:none; }
  .header-cta .btn-primary{ width:38px; height:38px; padding:0; border-radius:50%; }
}

/* Mobile menu overlay */
.mobile-menu{
  position: fixed; inset:0; z-index: 70; background: var(--black);
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
  overflow-y:auto;
  display:flex; flex-direction:column; padding: 18px 20px 32px;
}
.mobile-menu.is-open{
  transform: translateX(0); visibility: visible;
  transition: transform .25s ease, visibility 0s linear 0s;
}
/* revisão: visibility (além do transform) impede que o painel fechado
   fique focável por teclado e some qualquer contribuição residual de
   overflow horizontal em telas estreitas (360–390px) */
.mobile-menu-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 1.2rem; }
.mobile-menu .header-search{ display:flex; max-width:none; margin: 0 0 1.4rem; }
.mobile-nav a{
  display:flex; align-items:center; justify-content:space-between;
  padding: .95rem 0; border-bottom: 1px solid var(--line); color:#fff; font-weight:700; font-size:1.02rem;
}
.mobile-nav a svg{ color:#6b6f75; }
.mobile-menu-footer{ margin-top:1.4rem; display:flex; flex-direction:column; gap:.7rem; }

/* ---------- Hero ---------- */
.hero{
  background: radial-gradient(120% 140% at 100% 0%, var(--green-tint) 0%, var(--black) 46%), var(--black);
  color:#fff; padding: 3rem 0 3.2rem; position:relative; overflow:hidden;
}
.hero::after{
  content:''; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
}
.hero-inner{ display:grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap-xl); align-items:center; position:relative; }
@media (max-width: 900px){ .hero-inner{ grid-template-columns: 1fr; gap: 1.8rem; } }
.hero-badge{
  display:inline-flex; align-items:center; gap:.5rem; background: rgba(0,230,118,.1);
  border:1px solid rgba(0,230,118,.35); color: var(--green); font-size:.75rem; font-weight:700;
  padding:.35rem .7rem; border-radius:999px; margin-bottom:1rem;
}
.hero h1{ font-size: clamp(1.7rem, 4.2vw, 2.9rem); color:#fff; }
.hero h1 em{ font-style:normal; color: var(--green); }
.hero p.lead{ margin-top:1rem; color:#c2c7cd; font-size:1.02rem; max-width:520px; }
.hero-ctas{ display:flex; gap:.8rem; margin-top:1.6rem; flex-wrap:wrap; }
.hero-tags{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1.6rem; }
.hero-tags span{
  font-size:.76rem; color:#c2c7cd; border:1px solid var(--line); padding:.3rem .65rem; border-radius:999px;
}
@media (max-width:600px){ .hero{ padding: 2rem 0 2.2rem; } .hero-ctas{ flex-direction:column; } .hero-ctas .btn{ width:100%; } }

.hero-art{ position:relative; }
.hero-panel{
  background: linear-gradient(160deg, var(--graphite-800), var(--graphite-900));
  border:1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem;
  display:grid; grid-template-columns: repeat(2,1fr); gap:.9rem;
}
.hero-panel .tile{
  background: var(--graphite-900); border:1px solid var(--line); border-radius: var(--radius-md);
  padding:1rem; display:flex; flex-direction:column; gap:.55rem; align-items:flex-start;
}
.hero-panel .tile svg{ color: var(--green); }
.hero-panel .tile span{ font-size:.78rem; color:#c2c7cd; font-weight:600; }
.hero-panel .tile.wide{ grid-column: span 2; flex-direction:row; align-items:center; justify-content:space-between; }
.hero-panel .tile.wide strong{ color:#fff; font-size:1rem; }

/* ---------- Departamentos ---------- */
.dept-grid{
  display:grid; grid-template-columns: repeat(7, 1fr); gap: .9rem;
}
@media (max-width: 1024px){ .dept-grid{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px){ .dept-grid{ grid-template-columns: repeat(3, 1fr); gap:.6rem; } }
.dept-card{
  background: var(--off-white); border:1px solid #e7e8e7; border-radius: var(--radius-md);
  padding: 1.1rem .8rem; text-align:center; display:flex; flex-direction:column; align-items:center; gap:.6rem;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.dept-card:hover{ border-color: var(--green); background:#fff; transform: translateY(-2px); }
.dept-card .ic{
  width:46px; height:46px; border-radius:12px; background: var(--black); color: var(--green);
  display:flex; align-items:center; justify-content:center;
}
.dept-card span{ font-size:.82rem; font-weight:700; color: var(--graphite-900); }
@media (max-width:600px){ .dept-card span{ font-size:.74rem; } .dept-card .ic{ width:40px; height:40px; } }

/* ---------- Produtos ---------- */
.mock-flag{
  display:inline-flex; align-items:center; gap:.4rem; background: #fff2f0; color:#b23b2f;
  border:1px solid #f3c9c2; font-size:.72rem; font-weight:700; padding:.3rem .6rem; border-radius:999px;
  margin-bottom: .9rem;
}
.filter-tabs{ display:flex; gap:.5rem; overflow-x:auto; padding-bottom:.3rem; margin-bottom: 1.4rem; scrollbar-width:none; }
.filter-tabs::-webkit-scrollbar{ display:none; }
.filter-tab{
  flex-shrink:0; padding:.55rem 1rem; border-radius:999px; border:1px solid #e2e3e2; background:#fff;
  font-size:.83rem; font-weight:700; color: var(--graphite-700);
}
.filter-tab.is-active{ background: var(--black); border-color: var(--black); color: var(--green); }

.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1024px){ .product-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px){ .product-grid{ grid-template-columns: repeat(2, 1fr); gap:.7rem; } }
@media (max-width: 400px){ .product-grid{ gap:.55rem; } }

.product-card{
  border:1px solid #e7e8e7; border-radius: var(--radius-md); overflow:hidden; background:#fff;
  display:flex; flex-direction:column; box-shadow: var(--shadow-card); position:relative;
}
.product-card .thumb{
  aspect-ratio: 4/3; background: linear-gradient(160deg, #f2f3f2, #e5e7e5); display:flex; align-items:center; justify-content:center;
  color:#b8bcb8; position:relative; overflow:hidden;
}
.product-card .thumb::before{
  content:''; position:absolute; width:130px; height:130px; border-radius:50%;
  background: radial-gradient(circle, rgba(0,230,118,.22), rgba(0,230,118,0) 70%);
}
.product-card .thumb svg{ width:52px; height:52px; opacity:.45; position:relative; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; position:relative; }
.product-card .thumb .example-tag{
  position:absolute; top:.55rem; left:.55rem; background: rgba(10,11,12,.82); color:#fff;
  font-size:.62rem; font-weight:800; letter-spacing:.04em; padding:.2rem .45rem; border-radius:6px;
}
.product-card .badge{
  position:absolute; top:.55rem; right:.55rem; background: var(--green); color:var(--black);
  font-size:.62rem; font-weight:800; padding:.2rem .5rem; border-radius:6px;
}
.product-card .badge-promo{ left:.55rem; right:auto; background:#ff9f1c; }
.product-card .body{ padding: .9rem .9rem 1.05rem; display:flex; flex-direction:column; gap:.45rem; flex:1; }
.product-card .cat{ font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--muted); }
.product-card h3{ font-size:.92rem; font-weight:700; line-height:1.3; }
.product-card .specs{ font-size:.76rem; color: var(--muted); }
.product-card .price{ margin-top:.15rem; font-size:1.08rem; font-weight:800; color: var(--graphite-900); }
.product-card .price small{ display:block; font-size:.68rem; font-weight:600; color: var(--muted); }
.product-card .actions{ display:flex; gap:.5rem; margin-top:.6rem; }
.product-card .actions .btn{ flex:1; padding:.55rem .6rem; font-size:.78rem; }
.product-card .actions .icon-only{ flex:0 0 auto; width:38px; padding:0; }

/* /produtos acompanha o padrão visual homologado dos cards de /catalogo. */
.produtos-page .product-grid{ align-items:stretch; }
.produtos-page .product-card{
  height:100%; min-width:0; background:#10181f; border-color:#26343d;
  border-radius:16px; box-shadow:0 12px 32px rgba(0,0,0,.22);
  transition:transform .18s ease,border-color .18s ease;
}
.produtos-page .product-card:hover{ transform:translateY(-3px); border-color:#38ef7d; }
.produtos-page .product-card .thumb{
  aspect-ratio:4/3; background:linear-gradient(145deg,#111b22,#0b1217);
}
.produtos-page .product-card .thumb::before{ display:none; }
.produtos-page .product-card .thumb img{
  object-fit:contain; object-position:center; padding:3%;
  background:linear-gradient(145deg,#111b22,#0b1217);
}
.produtos-page .product-card .body{ padding:1rem; gap:.42rem; min-height:250px; }
.produtos-page .product-card .cat{ color:#38ef7d; min-height:1em; }
.produtos-page .product-card h3{
  color:#f4f7f5; font-size:1rem; line-height:1.35;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  line-clamp:2; overflow:hidden; min-height:calc(1.35em * 2);
}
.produtos-page .product-card .specs{
  color:#aebbc4; line-height:1.5; display:-webkit-box;
  -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3;
  overflow:hidden; min-height:calc(1.5em * 3);
}
.produtos-page .product-card .price{ color:#f4f7f5; margin-top:auto; }
.produtos-page .product-card .price small{ color:#93a2ac; }
.produtos-page .product-card .actions{ margin-top:.65rem; align-items:stretch; }
.produtos-page .product-card .actions .btn-ghost{
  background:#38ef7d; border-color:#38ef7d; color:#07120b; font-weight:800;
}
.produtos-page .product-card .actions .btn-whatsapp{ background:#15241d; border-color:#2d4f3d; color:#38ef7d; }
@media (max-width:760px){
  .produtos-page .product-card .body{ padding:.72rem; min-height:220px; gap:.34rem; }
  .produtos-page .product-card h3{ font-size:.82rem; }
  .produtos-page .product-card .specs{ font-size:.7rem; -webkit-line-clamp:2; line-clamp:2; min-height:calc(1.5em * 2); }
  .produtos-page .product-card .price{ font-size:.95rem; }
  .produtos-page .product-card .price small{ font-size:.58rem; }
  .produtos-page .product-card .actions{ gap:.35rem; }
  .produtos-page .product-card .actions .btn{ padding:.5rem .4rem; font-size:.68rem; }
  .produtos-page .product-card .actions .icon-only{ width:34px; }
}

.products-more{ text-align:center; margin-top: 1.8rem; }

/* ---------- Assistência técnica (fundo escuro) ---------- */
.section-dark{ background: var(--black); color:#fff; }
.service-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px){ .service-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .service-grid{ grid-template-columns: 1fr; } }
.service-card{
  background: var(--graphite-800); border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.3rem; display:flex; flex-direction:column; gap:.7rem;
}
.service-card .ic{
  width:44px; height:44px; border-radius:11px; background: var(--green-tint); color: var(--green);
  display:flex; align-items:center; justify-content:center;
}
.service-card h3{ font-size:1rem; color:#fff; }
.service-card p{ font-size:.85rem; color:#a8adb4; }
.service-cta{ margin-top: 1.8rem; display:flex; justify-content:center; }

/* ---------- Confiança ---------- */
.trust-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1024px){ .trust-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px){ .trust-grid{ grid-template-columns: repeat(2, 1fr); } }
.trust-card{ display:flex; flex-direction:column; gap:.7rem; padding: 1.1rem 0; }
.trust-card .ic{
  width:42px; height:42px; border-radius:50%; background: var(--off-white); color: var(--graphite-900);
  display:flex; align-items:center; justify-content:center; border:1px solid #e7e8e7;
}
.trust-card h4{ font-size:.9rem; }
.trust-card p{ font-size:.8rem; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float{
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  width: 56px; height:56px; border-radius:50%; background:#1ea952; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
  transition: transform .15s ease; opacity:0; transform: translateY(12px) scale(.9); pointer-events:none;
}
.wa-float.is-visible{ opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
.wa-float:hover{ transform: translateY(-2px) scale(1.04); }
.wa-float .ping{
  position:absolute; inset:-4px; border-radius:50%; border:2px solid rgba(30,169,82,.5);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping{ 0%{ transform:scale(.85); opacity:.9;} 100%{ transform:scale(1.35); opacity:0;} }

/* ---------- Rodapé ---------- */
.site-footer{ background: var(--graphite-900); color:#c2c7cd; padding: 3rem 0 1.4rem; border-top: 1px solid var(--line); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; gap:1.6rem; } }
.footer-grid h5{ color:#fff; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.9rem; }
.footer-grid li{ margin-bottom:.55rem; font-size:.86rem; }
.footer-grid li a:hover{ color: var(--green); }
.footer-brand .logo{ margin-bottom:.8rem; }
.footer-brand p{ font-size:.85rem; color:#9aa0a7; max-width:280px; }
.footer-social{ display:flex; gap:.6rem; margin-top:1rem; }
.footer-bottom{
  margin-top: 2.4rem; padding-top: 1.4rem; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; font-size:.76rem; color:#7c8189;
}
.placeholder-note{ color:#6b7079; font-style:italic; }

/* ---------- Banner de protótipo ---------- */
.proto-banner{
  background: var(--green); color: var(--black); text-align:center; font-size:.78rem; font-weight:700;
  padding:.5rem 1rem;
}
.proto-banner strong{ text-decoration: underline; }

/* ---------- Utilidades ---------- */
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.form-field{ display:flex; flex-direction:column; gap:.4rem; margin-bottom: 1rem; }
.form-field label{ font-size:.82rem; font-weight:700; }
.form-field input, .form-field select, .form-field textarea{
  border:1px solid #dcdedc; border-radius: var(--radius-sm); padding:.7rem .8rem; font-size:.9rem; outline:0;
  background:#fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,230,118,.15); }
.form-field textarea{ resize: vertical; min-height:100px; }
.form-note{ font-size:.76rem; color: var(--muted); margin-top:-.4rem; }

.page-hero{ background: var(--black); color:#fff; padding: 2.4rem 0; }
.page-hero h1{ font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.page-hero p{ color:#b9bec5; margin-top:.5rem; max-width:560px; }
.breadcrumb{ font-size:.8rem; color:#9aa0a7; margin-bottom:.8rem; }
.breadcrumb a:hover{ color: var(--green); }

.toolbar{ display:flex; gap:.7rem; flex-wrap:wrap; align-items:center; margin-bottom:1.3rem; }
.select-mini{ border:1px solid #dcdedc; border-radius: var(--radius-sm); padding:.55rem .7rem; font-size:.83rem; background:#fff; }
.results-count{ font-size:.82rem; color: var(--muted); margin-left:auto; }

.empty-state{ text-align:center; padding: 2.5rem 1rem; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Formulário: erros e preview de envio ---------- */
.field-error{ color: var(--danger); font-size:.78rem; min-height:1.1em; display:block; }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"]{
  border-color: var(--danger);
}
.assist-preview{
  margin-top: 1.4rem; padding: 1.2rem; border-radius: var(--radius-md); background: var(--green-tint);
  border: 1px solid rgba(0,230,118,.35);
}
.assist-preview h4{ color: var(--green); font-size:.95rem; margin-bottom:.4rem; }
.assist-preview p{ font-size:.85rem; color:#c2c7cd; margin-bottom:.9rem; }
.assist-form-card{
  background:#fff; border:1px solid #e7e8e7; border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.assist-layout{ display:grid; grid-template-columns: 1fr 1.1fr; gap: var(--gap-xl); align-items:start; }
@media (max-width: 900px){ .assist-layout{ grid-template-columns: 1fr; } }
.assist-side h3{ font-size:1.1rem; margin-bottom:.6rem; }
.assist-side p{ color: var(--muted); font-size:.9rem; margin-bottom:1.2rem; }
.assist-side ul{ display:flex; flex-direction:column; gap:.7rem; }
.assist-side li{ display:flex; gap:.6rem; align-items:flex-start; font-size:.88rem; color: var(--graphite-800); }
.assist-side li svg{ color: var(--green-strong); flex-shrink:0; margin-top:.15rem; }

/* ---------- Estados: loading (skeleton) / erro ---------- */
@keyframes skeleton-pulse{ 0%,100%{ opacity:.55; } 50%{ opacity:1; } }
.skeleton-block, .skeleton-line{
  background: #e7e9e7; border-radius: 6px; animation: skeleton-pulse 1.3s ease-in-out infinite;
}
.skeleton-card{ pointer-events:none; }
.skeleton-card .thumb.skeleton-block{ border-radius:0; }
.skeleton-card .body{ padding:.9rem; gap:.5rem; }
.skeleton-line{ display:block; height:.7rem; }
.dept-card.skeleton-card .skeleton-line{ height:.6rem; }
.error-state{
  grid-column: 1 / -1; text-align:center; padding: 2.2rem 1rem; color:#b23b2f;
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
}
.error-state svg{ color:#b23b2f; }
.error-state p{ font-size:.9rem; color: var(--muted); max-width:360px; }
.section-dark .error-state{ color: var(--green); }
.section-dark .error-state svg{ color: var(--green); }
.section-dark .error-state p{ color:#b9bec5; }

/* ---------- Acessibilidade: foco visível e skip-link ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px;
}
.skip-link{
  position:absolute; left:12px; top:-60px; z-index:100; background: var(--green); color: var(--black);
  padding:.6rem 1rem; border-radius: 8px; font-weight:700; font-size:.85rem; transition: top .15s ease;
}
.skip-link:focus{ top:12px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}
