/* ==========================================================================
   NEXUS — Máquinas e Equipamentos
   Design System · identidade própria (laranja NEXUS #FF7F34 + grafite industrial)
   HTML estático · foco em SEO, velocidade e conversão
   ========================================================================== */

:root {
  /* Marca */
  --nx-orange:      #FF7F34;   /* cor do logo NEXUS */
  --nx-orange-600:  #F26A1B;
  --nx-orange-700:  #A8440A;
  --nx-orange-soft: #FFF1E8;

  /* Base grafite industrial */
  --nx-ink:         #14161B;   /* fundo escuro principal */
  --nx-ink-2:       #1C1F26;   /* painéis escuros */
  --nx-ink-3:       #262A33;   /* bordas/realces escuros */
  --nx-steel:       #3A404B;

  /* Neutros claros */
  --nx-white:       #FFFFFF;
  --nx-paper:       #F6F7F9;   /* seções claras */
  --nx-paper-2:     #EDEFF2;
  --nx-line:        #E2E5EA;

  /* Texto */
  --nx-text:        #1A1D23;   /* texto sobre claro */
  --nx-text-mut:    #5B6270;   /* texto secundário */
  --nx-text-inv:    #F4F6F8;   /* texto sobre escuro */
  --nx-text-inv-mut:#A6ADBA;

  /* Sistema */
  --nx-radius:      4px;
  --nx-radius-sm:   3px;
  --nx-shadow:      0 10px 30px rgba(12,14,18,.10);
  --nx-shadow-lg:   0 24px 60px rgba(12,14,18,.18);
  --nx-container:   1180px;
  --nx-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--nx-font);
  color: var(--nx-text);
  background: var(--nx-white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--nx-text); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
p { color: var(--nx-text-mut); }
strong { color: inherit; font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--nx-container); margin: 0 auto; padding: 0 22px; }
.section { padding: 54px 0; }
.section--tight { padding: 40px 0; }
section { scroll-margin-top: 88px; }
.section--dark { background: var(--nx-ink); color: var(--nx-text-inv); }
.section--dark h2,.section--dark h3 { color: var(--nx-white); }
.section--dark p { color: var(--nx-text-inv-mut); }
.section--paper { background: var(--nx-paper); }
.center { text-align: center; }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--nx-text-mut); margin-bottom: 14px;
}
.eyebrow::before { content:""; display:inline-block; width:16px; height:2px; background:var(--nx-orange); vertical-align:middle; margin-right:9px; }
.section--dark .eyebrow { color: var(--nx-text-inv-mut); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--nx-text-inv-mut); }
.lead { font-size: 1.12rem; color: var(--nx-text-mut); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 920px; margin-bottom: 34px; }
.section-head.section-head--flush { margin-bottom: 0; }
.section-head .lead { margin-top: 12px; }
.section-head.center h2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head.center .lead { max-width: 920px; margin-left: auto; margin-right: auto; }
.center .section-head,
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; transition: .18s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--nx-orange); color: var(--nx-ink); }
.btn--primary:hover { background: var(--nx-orange-600); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,22,27,.18); }
.btn--ghost { background: transparent; color: var(--nx-text); border-color: var(--nx-line); }
.btn--ghost:hover { border-color: var(--nx-orange); color: var(--nx-orange-700); }
/* Ghost sobre fundos escuros (hero) — texto e borda claros */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { color: var(--nx-orange); border-color: var(--nx-orange); }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { border-color: var(--nx-orange); color: var(--nx-orange); }
.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1EB958; transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Barra corporativa ---------- */
.topbar { background: var(--nx-ink); color: var(--nx-text-inv-mut); font-size: .8rem; border-bottom: 1px solid var(--nx-ink-3); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar a:hover { color: #fff; }
@media (max-width: 720px){ .topbar__r { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nx-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; display: block; }
.nav__menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__menu a { font-weight: 600; font-size: .98rem; color: var(--nx-text); transition: color .15s; }
.nav__menu a:hover { color: var(--nx-orange-700); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--nx-ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--nx-text-inv);
  background:
    linear-gradient(100deg, rgba(16,18,23,.97) 0%, rgba(16,18,23,.88) 42%, rgba(16,18,23,.58) 74%, rgba(16,18,23,.38) 100%),
    url('../img/hero-home.webp') center/cover no-repeat,
    var(--nx-ink);
  overflow: hidden;
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero__inner { position: relative; z-index: 2; padding: 82px 0 70px; max-width: 720px; }
.hero h1 {
  color: #fff; font-size: clamp(2.15rem, 4.4vw, 3.4rem); font-weight: 900;
  letter-spacing: -.03em; margin-bottom: 20px;
}
.hero h1 em { color: var(--nx-orange); font-style: normal; }
.hero__sub { font-size: 1.18rem; color: #D7DBE2; max-width: 580px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__badges li { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: #C3C8D0; list-style: none; }
.hero__badges svg { width: 18px; height: 18px; color: var(--nx-text-inv-mut); flex: none; }

/* ---------- Stats ---------- */
.stats { background: var(--nx-ink-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; align-items: start; }
.stat { text-align: center; padding: 12px; }
.stat__num { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 900; color: var(--nx-orange); letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.stat__lbl { margin-top: 10px; font-size: .92rem; color: var(--nx-text-inv-mut); }

/* ---------- Cards de categoria ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cat-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--nx-white); border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius); overflow: hidden; transition: .2s ease;
  min-height: 260px;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); border-color: transparent; }
.cat-card__img { aspect-ratio: 16/10; background: var(--nx-paper-2) center/cover no-repeat; position: relative; }
.cat-card__img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(20,22,27,.06)); }
.cat-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card p { font-size: .96rem; margin-bottom: 18px; }
.cat-card__link { margin-top: auto; font-weight: 700; color: var(--nx-orange-700); display: inline-flex; align-items: center; gap: 6px; font-size: .96rem; }
.cat-card:hover .cat-card__link { gap: 10px; }
.cat-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--nx-orange); color:#fff; font-size:.72rem; font-weight:700; padding: 5px 11px; border-radius: 30px; letter-spacing: .02em; }

/* ---------- Diferenciais ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.feat { background: var(--nx-ink-2); border: 1px solid var(--nx-ink-3); border-radius: var(--nx-radius); padding: 30px 26px; }
.feat__ic { width: 46px; height: 46px; border-radius: 11px; background: rgba(255,127,52,.14); display: grid; place-items: center; margin-bottom: 18px; }
.feat__ic svg { width: 24px; height: 24px; color: var(--nx-orange); }
.feat h3 { color: #fff; margin-bottom: 9px; }
.feat p { font-size: .98rem; }

/* ---------- Processo (Como trabalhamos) ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); }
.step__n { font-size: 2.4rem; font-weight: 900; color: var(--nx-orange-700); opacity: .9; line-height: 1; letter-spacing: -.04em; }
.step h3 { margin: 14px 0 8px; }
.step p { font-size: .98rem; }

/* ---------- Tabela de fichas técnicas ---------- */
.specs { overflow-x: auto; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); }
.specs table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.specs th, .specs td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--nx-line); }
.specs thead th { background: var(--nx-ink); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .01em; }
.specs thead th:first-child { border-top-left-radius: var(--nx-radius); }
.specs thead th:last-child { border-top-right-radius: var(--nx-radius); }
.specs tbody th { background: var(--nx-paper); font-weight: 700; color: var(--nx-text); white-space: nowrap; }
.specs tbody tr:hover td { background: var(--nx-orange-soft); }
.specs td { color: var(--nx-text-mut); font-variant-numeric: tabular-nums; }
.specs caption { caption-side: bottom; padding: 12px; font-size: .84rem; color: var(--nx-text-mut); text-align: left; }

/* ---------- Model card (linha de produtos) ---------- */
.model { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); overflow: hidden; margin-bottom: 30px; }
.model__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; padding: 24px 26px 6px; }
.model__head h3 { font-size: 1.5rem; }
.model__head .badge { background: var(--nx-orange-soft); color: var(--nx-orange-700); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 30px; }
.model__desc { padding: 0 26px 20px; color: var(--nx-text-mut); max-width: 780px; }
.model__specs { padding: 0 26px 26px; }
.model__cta { padding: 20px 26px; background: var(--nx-paper); border-top: 1px solid var(--nx-line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.model__cta p { font-weight: 600; color: var(--nx-text); }

/* ---------- CTA / Formulário ---------- */
.cta-band { background: linear-gradient(120deg, var(--nx-orange-700), var(--nx-orange)); color: #fff; border-radius: 18px; padding: 40px 44px; display: grid; grid-template-columns: 1fr 520px; gap: 36px; align-items: center; }
.form-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-card .form-grid .field { margin-bottom: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.form-card { background: #fff; border-radius: var(--nx-radius); padding: 26px; box-shadow: var(--nx-shadow-lg); }
.form-card h3 { color: var(--nx-text); margin-bottom: 4px; }
.form-card .muted { font-size: .88rem; color: var(--nx-text-mut); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--nx-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--nx-line); border-radius: 9px;
  font: inherit; font-size: .95rem; color: var(--nx-text); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--nx-orange); }
.field textarea { resize: vertical; min-height: 84px; }
.form-card .btn { width: 100%; justify-content: center; }
.form-note { font-size: .8rem; color: #6b7280; text-align: center; margin-top: 12px; }

/* ---------- Breadcrumb ---------- */
.crumb { padding: 18px 0; font-size: .88rem; color: var(--nx-text-mut); }
.crumb a { color: var(--nx-orange-700); font-weight: 600; }
.crumb span { margin: 0 8px; opacity: .5; }

/* ---------- Page hero (categorias) ---------- */
.page-hero { background: var(--nx-ink); color: #fff; padding: 56px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(700px 300px at 90% 0, rgba(255,127,52,.20), transparent 60%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem,4.4vw,3rem); margin-bottom: 16px; }
.page-hero p { color: #D7DBE2; font-size: 1.1rem; max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nx-ink); color: var(--nx-text-inv-mut); padding: 60px 0 26px; border-top: 1px solid var(--nx-ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: var(--nx-text-inv-mut); font-size: .95rem; line-height: 2; transition: color .15s; }
.site-footer a:hover { color: var(--nx-orange); }
.footer-brand .logo img { height: 42px; width: auto; display: block; }
.footer-brand p { font-size: .95rem; margin: 14px 0; max-width: 300px; }
.footer-units { display: flex; gap: 8px; flex-direction: column; }
.footer-units span { display:block; font-size:.92rem; }
.footer-bottom { border-top: 1px solid var(--nx-ink-3); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 9px; background: var(--nx-ink-2); display: grid; place-items: center; }
.social a:hover { background: var(--nx-orange); }
.social svg { width: 18px; height: 18px; color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .18s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ========== Componentes da Home 10/10 ========== */

/* Header que encolhe no scroll */
.site-header { transition: box-shadow .2s, background .2s; }
.nav { transition: height .2s; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(12,14,18,.10); background: rgba(255,255,255,.97); }

/* Seção de dores */
.pain-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.pain-card { background: var(--nx-white); border: 1px solid var(--nx-line); border-left: 4px solid var(--nx-orange); border-radius: var(--nx-radius); padding: 24px 22px; }
.pain-card__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--nx-orange-soft); display: grid; place-items: center; margin-bottom: 14px; }
.pain-card__ic svg { width: 22px; height: 22px; color: var(--nx-orange-700); }
.pain-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
.pain-card p { font-size: .94rem; }

/* Pílulas e faixa institucional (Sobre) */
.about-pill { border: 1px solid var(--nx-line); background: var(--nx-white); border-radius: 30px; padding: 9px 18px; font-weight: 600; color: var(--nx-text); font-size: .95rem; }
.about-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nx-text); font-size: 1rem; }
.about-line svg { color: var(--nx-orange); flex: none; }

/* Tags de materiais no hero de categoria */
.hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-tags__lbl { font-size: .8rem; color: #A6ADBA; }
.hero-tag { font-size: .78rem; font-weight: 600; color: #E7EAEF; border: 1px solid rgba(255,255,255,.22); border-radius: 30px; padding: 4px 11px; }

/* Orientação de escolha (3 colunas) */
.choose-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.choose-grid .pain-card { display: flex; flex-direction: column; }
.choose-grid .pain-card .cat-card__link { margin-top: auto; padding-top: 12px; }
@media (max-width: 860px){ .choose-grid { grid-template-columns: 1fr; } }

/* Gargalo -> solução (roteador por necessidade) */
.need-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.need-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius-sm); padding: 18px 22px; transition: .18s; }
.need-item:hover { border-color: var(--nx-orange); box-shadow: var(--nx-shadow); transform: translateX(3px); }
.need-item__q { font-weight: 700; color: var(--nx-text); font-size: 1.02rem; }
.need-item__a { flex: none; font-weight: 700; color: var(--nx-orange-700); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Tags técnicas nos cards de produto */
.cat-card__desc { font-size: .93rem; color: var(--nx-text-mut); margin: 4px 0 12px; }
.cat-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cat-card__tags span { font-size: .72rem; font-weight: 600; color: var(--nx-text-mut); background: var(--nx-paper-2); border-radius: 30px; padding: 4px 10px; white-space: nowrap; }

/* Prova real */
.proof-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.proof-card { background: var(--nx-ink-2); border: 1px solid var(--nx-ink-3); border-radius: var(--nx-radius); overflow: hidden; }
.proof-card__img { aspect-ratio: 4/3; background: var(--nx-ink-3) center/cover no-repeat; }
.proof-card__body { padding: 20px 22px 24px; }
.proof-card__tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-orange); }
.proof-card h3 { color: #fff; font-size: 1.1rem; margin: 8px 0 6px; }
.proof-card p { font-size: .92rem; color: var(--nx-text-inv-mut); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--nx-line); border-radius: var(--nx-radius-sm); margin-bottom: 12px; background: var(--nx-white); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--nx-text); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--nx-orange); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--nx-orange-700); }
.faq__a { padding: 0 22px 20px; color: var(--nx-text-mut); font-size: .97rem; }

/* Barra de CTA fixa no mobile */
.mobile-cta { display: none; }

@media (max-width: 960px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pain-grid, .need-list { grid-template-columns: 1fr; }
  .need-item { padding: 15px 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-band { padding: 40px 22px; }
  .form-card .form-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  /* Barra inferior fixa de conversão no mobile */
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
    background: var(--nx-orange); box-shadow: 0 -6px 20px rgba(12,14,18,.18);
  }
  .mobile-cta a { flex: 1; text-align: center; color: #fff; font-weight: 800; padding: 15px; font-size: 1rem; }
  .wa-float { bottom: 74px; }
  body { padding-bottom: 54px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .cat-grid, .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
  .grid-2 { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__menu {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--nx-line); padding: 16px 22px; gap: 6px; align-items: stretch;
  }
  .nav.is-open .nav__menu a { padding: 10px 0; border-bottom: 1px solid var(--nx-line); }
  .cat-grid, .feat-grid, .steps { grid-template-columns: 1fr; }
  .hero__inner { padding: 62px 0 54px; }
  .cta-band h2 { font-size: 1.6rem; }
  .nav__actions .btn { display: none; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); padding: 22px 22px 20px; transition: .18s ease; }
.post-card:hover { border-color: var(--nx-orange); transform: translateY(-3px); box-shadow: var(--nx-shadow); }
.post-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-text-mut); margin-bottom: 10px; }
.post-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.post-card p { color: var(--nx-text-mut); font-size: .95rem; margin-bottom: 14px; }
.post-card__meta { font-size: .82rem; color: var(--nx-text-mut); margin-bottom: 10px; }
.post-card__link { margin-top: auto; color: var(--nx-orange-700); font-weight: 700; font-size: .95rem; }
.article-meta { font-size: .85rem; color: var(--nx-text-inv-mut); margin-top: 14px; }
.article-body { font-size: 1.06rem; color: var(--nx-text); }
.article-body p { color: var(--nx-text-mut); margin: 0 0 18px; line-height: 1.78; }
.article-body h2 { font-size: 1.5rem; margin: 36px 0 12px; letter-spacing: -.01em; }
.article-body h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.article-body ul, .article-body ol { color: var(--nx-text-mut); margin: 0 0 18px; padding-left: 22px; line-height: 1.78; }
.article-body li { margin-bottom: 8px; }
.article-body li strong { color: var(--nx-text); }
.article-body a { color: var(--nx-orange-700); font-weight: 600; }
.article-body strong { color: var(--nx-text); }
.article-body .callout { background: var(--nx-paper); border-left: 3px solid var(--nx-orange); padding: 14px 18px; margin: 0 0 22px; border-radius: 0 4px 4px 0; }
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: .96rem; }
.article-body th, .article-body td { border: 1px solid var(--nx-line); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--nx-paper); font-weight: 700; color: var(--nx-text); }
.article-body td strong { color: var(--nx-text); }

/* ---- Blocos ricos de artigo ---- */
.article-body > *:first-child { margin-top: 0; }

/* Resumo rápido (TL;DR) */
.tldr { background: var(--nx-paper); border: 1px solid var(--nx-line); border-top: 3px solid var(--nx-orange); border-radius: 4px; padding: 20px 22px; margin: 0 0 30px; }
.tldr h2 { font-size: .8rem !important; letter-spacing: .09em; text-transform: uppercase; color: var(--nx-text-mut); margin: 0 0 12px !important; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin-bottom: 7px; }

/* Figura com foto + legenda */
.art-figure { margin: 8px 0 28px; }
.art-figure img { width: 100%; height: auto; border-radius: 4px; display: block; border: 1px solid var(--nx-line); }
.art-figure figcaption { font-size: .85rem; color: var(--nx-text-mut); margin-top: 8px; text-align: center; }

/* Cards de passo a passo */
.art-steps { display: grid; gap: 14px; margin: 0 0 26px; }
@media (min-width:640px){ .art-steps.cols-2 { grid-template-columns: 1fr 1fr; } }
.step-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 4px; padding: 18px 18px 16px; position: relative; }
.step-card .step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 4px; background: var(--nx-ink); color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 10px; }
.step-card h4 { font-size: 1.05rem; margin: 0 0 6px; }
.step-card p { margin: 0 !important; font-size: .96rem; }

/* Destaques numéricos */
.art-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 6px 0 28px; }
@media (max-width:560px){ .art-stats { grid-template-columns: 1fr; } }
.art-stats .stat { background: var(--nx-paper); border-radius: 4px; padding: 18px 16px; text-align: center; }
.art-stats .stat b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--nx-orange-700); line-height: 1; margin-bottom: 6px; }
.art-stats .stat span { font-size: .88rem; color: var(--nx-text-mut); }

/* Tabela comparativa com scroll no mobile */
.cmp-table { overflow-x: auto; margin: 0 0 24px; }
.cmp-table table { margin: 0; min-width: 460px; }

/* Box de conclusão / próximos passos */
.takeaway { background: var(--nx-ink); color: #fff; border-radius: 4px; padding: 22px 24px; margin: 6px 0 26px; }
.takeaway h3 { color: #fff; margin: 0 0 8px; }
.takeaway p { color: rgba(255,255,255,.82) !important; margin: 0 !important; }

/* ---- Separador de tema no índice do blog ---- */
.blog-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--nx-line); }
.blog-section-head h2 { font-size: 1.4rem; }
.blog-section-head h2::before { content: ""; display: inline-block; width: 20px; height: 3px; background: var(--nx-orange); vertical-align: middle; margin-right: 12px; }
.blog-section-head span { font-size: .85rem; color: var(--nx-text-mut); font-weight: 600; white-space: nowrap; }
