/* ==========================================================================
   Acabit Tecnologia — folha de estilo única do site estático
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand-900: #06243f;
  --brand-800: #08355b;
  --brand-700: #0b4a7f;
  --brand-600: #0e5c9e;
  --brand-500: #1478c6;
  --brand-100: #e3f0fb;
  --accent-600: #0d8f88;
  --accent-500: #14b1a8;

  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-inset: #eef3f8;
  --surface: #ffffff;
  --border: #dce4ec;
  --border-strong: #c3cfdb;
  --text: #16222e;
  --text-soft: #465a6e;
  --text-muted: #6b7f92;
  --link: var(--brand-600);
  --link-hover: var(--brand-800);
  --shadow-sm: 0 1px 2px rgba(11, 42, 68, .06), 0 2px 8px rgba(11, 42, 68, .05);
  --shadow-md: 0 4px 12px rgba(11, 42, 68, .08), 0 12px 32px rgba(11, 42, 68, .07);
  --shadow-lg: 0 12px 40px rgba(11, 42, 68, .14);

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1200px;
  --nav-h: 66px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0d1620;
  --bg-soft: #121e2b;
  --bg-inset: #16232f;
  --surface: #16222f;
  --border: #26384a;
  --border-strong: #375068;
  --text: #e7eef5;
  --text-soft: #b3c4d3;
  --text-muted: #8ba0b4;
  --brand-100: #17324a;
  --link: #6fb6ee;
  --link-hover: #a6d3f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1620;
    --bg-soft: #121e2b;
    --bg-inset: #16232f;
    --surface: #16222f;
    --border: #26384a;
    --border-strong: #375068;
    --text: #e7eef5;
    --text-soft: #b3c4d3;
    --text-muted: #8ba0b4;
    --brand-100: #17324a;
    --link: #6fb6ee;
    --link-hover: #a6d3f6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
    --shadow-lg: 0 16px 44px rgba(0, 0, 0, .55);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1em; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-800);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(1.8rem, 3vw, 2.8rem) 0; }

.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: .7rem;
}
:root[data-theme="dark"] .eyebrow { color: var(--accent-500); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--accent-500); }
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Conteúdo com barra lateral */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: start;
}
.layout--right { grid-template-columns: minmax(0, 1fr) 300px; }
.layout--none { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .layout, .layout--right { grid-template-columns: minmax(0, 1fr); }
  .layout__aside { order: 2; }
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--brand-900);
  color: #cfe1f0;
  font-size: .83rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}
.topbar a { color: #cfe1f0; }
.topbar a:hover { color: #fff; }
.topbar__list { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.topbar__list li { display: flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; flex: none; opacity: .85; }
@media (max-width: 700px) { .topbar { display: none; } }

/* ---------- Cabeçalho / navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--bg); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* A marca e o simbolo do logo, sem a palavra "ACABIT" — que ja aparece ao lado
   como texto. 'object-fit: contain' encaixa a arte inteira, inclusive a ponta
   que escapa do quadrado, sem cortar nem distorcer. Sem fundo: o simbolo traz
   o proprio bloco de cor e funciona nos dois temas. */
.brand__mark {
  width: 38px; height: 38px; flex: none;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.brand__tag {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li { position: relative; }
.nav a, .nav .nav__toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.nav a:hover, .nav .nav__toggle:hover { background: var(--bg-inset); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-600); background: var(--brand-100); }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: #8ec9f5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: #8ec9f5; }
}
.nav__toggle svg { width: 12px; height: 12px; transition: transform .18s ease; }
.nav li:hover > .nav__toggle svg,
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 232px;
  padding: .45rem;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav li:hover > .nav__sub,
.nav li:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { padding: .5rem .7rem; font-weight: 500; width: 100%; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 20px; height: 20px; }

.theme-toggle {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.header-actions { display: flex; align-items: center; gap: .55rem; }

@media (max-width: 1040px) {
  .nav-burger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: block;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 1rem clamp(16px, 4vw, 32px) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > ul { display: block; }
  .nav a, .nav .nav__toggle { width: 100%; padding: .7rem .8rem; font-size: 1rem; }
  .nav__toggle { justify-content: space-between; }
  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin: 0 0 .4rem .8rem;
    padding: 0 0 0 .3rem;
    display: none;
  }
  .nav__sub.is-open { display: block; }
  .nav li:hover > .nav__sub { transform: none; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-inset); color: var(--text); }

.btn--light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn--sm { padding: .5rem 1rem; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% 18%, rgba(20, 177, 168, .28), transparent 65%),
    radial-gradient(700px 380px at 10% 90%, rgba(20, 120, 198, .32), transparent 60%),
    linear-gradient(160deg, #06243f 0%, #0b3d68 55%, #0a2f52 100%);
  color: #eaf3fb;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.slider { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.4rem); }
.slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.slide.is-active { display: grid; animation: fade-in .5s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .slide.is-active { grid-template-columns: 1fr; } }

.slide h2, .slide h1 {
  color: #fff;
  font-size: clamp(1.55rem, 1.1rem + 2.1vw, 2.6rem);
  margin-bottom: .8rem;
}
.slide p { color: #c8ddef; font-size: 1.04rem; max-width: 54ch; }
.slide__media { display: grid; place-items: center; }
.slide__media img {
  max-height: 320px;
  width: auto;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .45));
  border-radius: 10px;
}
.slide ul { color: #c8ddef; padding-left: 1.1rem; margin: 0 0 1rem; }
.slide li { margin-bottom: .3rem; }

.slider__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.slider__dots { display: flex; gap: .5rem; }
.slider__dots button {
  width: 34px; height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}
.slider__dots button[aria-selected="true"] { background: var(--accent-500); }
.slider__arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slider__arrow:hover { background: rgba(255, 255, 255, .22); }
.slider__arrow svg { width: 16px; height: 16px; }

/* ---------- Hero de página interna ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 4.5vw, 3.6rem) 0 clamp(1.8rem, 3.5vw, 2.8rem);
  background:
    radial-gradient(720px 300px at 88% 10%, rgba(20, 177, 168, .25), transparent 62%),
    linear-gradient(150deg, #06243f 0%, #0b436f 100%);
  color: #eaf3fb;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 780px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media { display: none; }
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #c4daed; max-width: 62ch; margin-bottom: 0; font-size: 1.04rem; }
/* o vetor do cabecalho vai embutido no HTML (ver Embutir-Svg em build.ps1),
   entao a regra precisa alcancar tanto a <img> quanto o <svg> que a substitui */
.page-hero__media img,
.page-hero__media > svg {
  display: block;
  max-width: 100%;
  max-height: 190px;
  width: auto;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .4));
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: .7rem 0;
}
.breadcrumb li { display: flex; align-items: center; gap: .45rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Cartões ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-soft); margin-bottom: 0; }
.card p + .card-more { margin-top: 1rem; }
.card__logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
  /* Muitos logotipos são PNG transparente com texto escuro: a placa clara
     mantém a legibilidade no tema escuro e é invisível no tema claro. */
  background: #fff;
  padding: 7px 11px;
  border-radius: 8px;
}

/* Placa clara para logotipos de texto escuro sobre fundos escuros */
.img-plate {
  background: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 1rem;
}
:root[data-theme="dark"] .card__icon { color: #7cc0f0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__icon { color: #7cc0f0; }
}
.card__icon svg { width: 22px; height: 22px; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .9rem;
}
.card-more svg { width: 14px; height: 14px; }

/* ---------- Artigo / texto corrido ---------- */
.prose { max-width: 74ch; }
.prose.wide { max-width: none; }
.prose > * + h2 { margin-top: 2.2rem; }
.prose > * + h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose figure { margin: 1.8rem 0; }
/* Figuras centralizadas: as imagens sao display:block, entao o alinhamento
   depende de margens automaticas, e nao de text-align. */
.prose figure.text-center a { display: block; }
.prose figure.text-center img { margin-left: auto; margin-right: auto; }
.prose figcaption {
  font-size: .87rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .6rem;
}
.prose .lead { font-size: 1.1rem; color: var(--text); }

/* Lista de recursos (substitui ul.special-1) */
.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.feature-list > li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 1.15rem;
}
.feature-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-500) 18%, transparent);
}
.feature-list > li > strong,
.feature-list > li > b {
  display: block;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: .25rem;
}
.feature-list p { margin-bottom: .5rem; }
.feature-list p:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
  color: var(--text-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e5c9e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: .78rem;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Destaques / avisos ---------- */
.callout {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #eaf3fb;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin: 2.2rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.callout p { color: #d6e7f5; margin-bottom: .6rem; }
.callout p:last-of-type { margin-bottom: 1.2rem; }
.callout strong { color: #fff; }
.callout h3 { color: #fff; }

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-500);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin: 1.6rem 0;
}
.panel h3 {
  font-size: 1.08rem;
  margin-bottom: .6rem;
  color: var(--text);
}
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.quote {
  border-left: 4px solid var(--accent-500);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
  font-size: 1.06rem;
  font-style: italic;
  color: var(--text);
}

/* ---------- Acordeão ---------- */
.accordion { display: grid; gap: .6rem; margin: 1.5rem 0 2rem; }
.accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.accordion details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.accordion summary {
  cursor: pointer;
  padding: .95rem 1.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 10px; height: 10px;
  flex: none;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion summary:hover { background: var(--bg-inset); }
.accordion__body { padding: .3rem 1.2rem 1.2rem; }
.accordion__body p { color: var(--text-soft); margin-bottom: .4rem; }
.accordion__body p:last-child { margin-bottom: 0; }
.accordion__body ul { margin-bottom: 0; }

/* Colunas para listas longas de clientes */
.cols-2 { columns: 2; column-gap: 2rem; }
.cols-2 p { break-inside: avoid; margin-bottom: .35rem; }
@media (max-width: 620px) { .cols-2 { columns: 1; } }

/* ---------- Galeria + lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery__item {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-inset);
}
.gallery__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border);
}
.gallery__caption svg { width: 15px; height: 15px; color: var(--text-muted); flex: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 20, 33, .9);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox figcaption { color: #dbe9f5; margin-top: 1rem; font-size: .95rem; }
.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Navegação lateral de produto ---------- */
.sidenav {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.sidenav__title {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 .6rem .6rem;
}
.sidenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidenav a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
}
.sidenav a:hover { background: var(--bg-inset); color: var(--text); text-decoration: none; }
.sidenav a[aria-current="page"] {
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
}
:root[data-theme="dark"] .sidenav a[aria-current="page"] { color: #8ec9f5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sidenav a[aria-current="page"] { color: #8ec9f5; }
}
@media (max-width: 900px) { .sidenav { position: static; } }

/* Bloco lateral genérico (valores, notícias, contato) */
.aside-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.2rem;
}
.aside-block h3 {
  font-size: 1.02rem;
  padding-bottom: .7rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--border);
}
.aside-block p { color: var(--text-soft); font-size: .93rem; }
.aside-block p:last-child { margin-bottom: 0; }
.aside-block ul { margin: 0; padding-left: 1.2rem; color: var(--text-soft); font-size: .93rem; }
.aside-block li { margin-bottom: .35rem; }

.news-item {
  display: flex;
  gap: .8rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--border);
}
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item img {
  width: 62px;
  height: auto;
  flex: none;
  /* sem isso o 'align-items' do flex (normal = stretch) estica o logo para a
     altura da linha inteira: com 'height: auto' o navegador entende que pode
     esticar, e a marca sai deformada em vez de guardar a proporcao */
  align-self: flex-start;
  margin-top: .3rem;
  background: #fff;
  border-radius: 4px;
  padding: 2px 3px;
}
.news-item time {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: .15rem;
}
:root[data-theme="dark"] .news-item time { color: var(--accent-500); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-item time { color: var(--accent-500); }
}
.news-item strong { display: block; font-size: .93rem; color: var(--text); }
.news-item span { font-size: .87rem; color: var(--text-muted); }
.news-item a { text-decoration: none; }
.news-item a:hover strong { color: var(--link); }

/* ---------- Tabelas ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.6rem 0;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 480px;
}
th, td {
  padding: .8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--bg-inset);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody td { color: var(--text-soft); }
td ul { margin: 0; padding-left: 1.1rem; }
td li { margin-bottom: .25rem; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1.1rem; max-width: 620px; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; align-content: start; }
.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.field .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 20%, transparent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field small { font-size: .82rem; color: var(--text-muted); }
.form__note { font-size: .87rem; color: var(--text-muted); }

/* ---------- Paginação anterior/próximo ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pager a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .92rem;
}
.pager .pager__next { margin-left: auto; }

/* ---------- Faixa de logos de clientes ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}
/* Os logotipos dos clientes são artes claras: no tema escuro recebem uma placa
   branca em vez de filtro de brilho, que os transformaria em blocos ilegíveis. */
.logo-strip img {
  height: 62px;
  width: 100%;
  object-fit: contain;
  padding: .5rem;
  border-radius: 8px;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.logo-strip a:hover img, .logo-strip img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}
:root[data-theme="dark"] .logo-strip img { background: #fff; opacity: .82; }
:root[data-theme="dark"] .logo-strip a:hover img,
:root[data-theme="dark"] .logo-strip img:hover { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-strip img { background: #fff; opacity: .82; }
  :root:not([data-theme="light"]) .logo-strip a:hover img,
  :root:not([data-theme="light"]) .logo-strip img:hover { opacity: 1; }
}

/* ---------- Números / destaques ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.stat {
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat__value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-600);
  letter-spacing: -.02em;
}
:root[data-theme="dark"] .stat__value { color: #6fb6ee; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat__value { color: #6fb6ee; }
}
.stat__label {
  display: block;
  margin-top: .4rem;
  font-size: .88rem;
  color: var(--text-muted);
}

/* ---------- Faixa CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 60%, var(--accent-600) 130%);
  color: #fff;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #d8e9f7; margin-bottom: 0; max-width: 60ch; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--brand-900);
  color: #b6cee2;
  padding: clamp(2.5rem, 4vw, 3.6rem) 0 0;
  font-size: .93rem;
}
.site-footer h3 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: #b6cee2; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  padding-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-brand__mark {
  width: 40px; height: 40px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .3rem; opacity: .8; }
.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  display: grid;
  place-items: center;
  color: #cfe1f0;
}
.social a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.social svg { width: 17px; height: 17px; }

.footer-clients {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.8rem 0;
}
.footer-clients .logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}
.footer-clients .logo-strip img {
  width: 122px;
  height: 44px;
  background: #fff;
  filter: grayscale(1);
  opacity: .68;
}
.footer-clients .logo-strip img:hover { filter: grayscale(0); opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: #8fa9c0;
}
/* Os links juridicos ficam no meio da faixa final, entre o copyright e a
   assinatura. Precisa do '.site-footer' na frente porque '.site-footer ul'
   empilha as listas do rodape em grid, e aqui eles ficam lado a lado. */
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1.4rem;
}
.footer-legal li + li {
  position: relative;
}
.footer-legal li + li::before {
  content: "";
  position: absolute;
  left: -.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: .9em;
  background: rgba(255, 255, 255, .18);
}
/* Com pouca largura a faixa vira uma coluna, e o separador vertical entre os
   dois links deixaria de fazer sentido. */
@media (max-width: 700px) {
  .footer-bottom { justify-content: flex-start; }
  .footer-legal li + li::before { display: none; }
}

/* ---------- Voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--text); border-color: var(--border-strong); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Utilitários ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: center; margin: 2rem 0; }
.badge-row img {
  height: 74px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.map-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

@media print {
  .site-header, .topbar, .site-footer, .to-top, .breadcrumb, .slider__nav { display: none !important; }
  body { color: #000; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
