/* ── Fonte auto-hospedada — sem requests externos bloqueantes ─────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-var.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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
                 U+A720-A7FF;
}

/* ── Design System W3L Extintores ────────────────────────────────────────── */
:root {
  --accent:       #c9ee0e;
  --accent-dark:  #a8c80a;
  --accent-tint:  #f5fce6;
  --accent-2:     #f80602;
  --hero-bg:      #f80602;
  --hero-2:       #c50501;
  --light-bg:     #f2f2f2;
  --surface:      #surface;
  --border:       #e5e7eb;
  --text-1:       #0d0f0a;
  --text-2:       #374151;
  --muted:        #6b7280;
  --radius:       6px;
  --radius-lg:    12px;
  --maxw:         1140px;
  --font-sans:    'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { overflow: clip; max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(201,238,14,.12);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 10px 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }

.nav-link-cta {
  background: var(--accent);
  color: var(--hero-bg);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.nav-link-cta:hover {
  background: var(--accent-dark);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}


/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-2);
  color: var(--accent);
  padding: 12px 24px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--hero-2); }

/* Botão primário sobre fundo vermelho usa lime para contrastar */
.hero .btn-primary,
.hero-sm .btn-primary,
.block.dark .btn-primary {
  background: var(--accent);
  color: var(--hero-bg);
}
.hero .btn-primary:hover,
.hero-sm .btn-primary:hover,
.block.dark .btn-primary:hover { background: var(--accent-dark); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost-dark {
  background: transparent;
  color: rgba(255,255,255,.8);
  padding: 12px 24px;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,.2);
}
.btn-ghost-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,238,14,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-sm {
  background: var(--hero-bg);
  padding: 56px 0 48px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.block {
  padding: 80px 0;
  background: var(--surface);
}
.block.alt { background: var(--light-bg); }
.block.dark {
  background: var(--hero-2);
  color: #fff;
}
.section-head {
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text-1);
}
.block.dark .section-head h2 { color: #fff; }
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
  display: block;
}
.hero .kicker, .hero-sm .kicker, .block.dark .kicker { color: var(--accent); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(201,238,14,.12);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-tint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-dark);
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-1);
}
.card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--hero-bg);
  padding: 64px 0 32px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.brand-block p {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  max-width: 32ch;
}
.site-footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.35); }
.breadcrumb .current { color: #fff; font-weight: 500; }

/* ── Tables (artigos) ────────────────────────────────────────────────────── */
.article-body .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  min-width: 480px;
}
.article-body thead tr { background: var(--hero-bg); color: #fff; }
.article-body thead th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border: none;
}
.article-body thead th:first-child { border-radius: 9px 0 0 0; }
.article-body thead th:last-child  { border-radius: 0 9px 0 0; }
.article-body tbody tr { border-bottom: 1px solid var(--border); }
.article-body tbody tr:last-child  { border-bottom: none; }
.article-body tbody tr:nth-child(even) { background: var(--light-bg); }
.article-body tbody tr:hover { background: var(--accent-tint); }
.article-body tbody td { padding: 11px 16px; color: var(--text-2); vertical-align: top; border: none; }
.article-body tbody td:first-child { font-weight: 600; color: var(--text-1); }

/* ── Article body ────────────────────────────────────────────────────────── */
.article-body h1 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; color: var(--text-1); line-height: 1.2; margin: 0 0 28px; letter-spacing: -.02em; }
.article-body h2 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 800; color: var(--text-1); margin: 36px 0 14px; letter-spacing: -.01em; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--text-1); margin: 28px 0 10px; }
.article-body p  { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.article-body li { line-height: 1.7; }
.article-body a  { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--text-1); }
.article-body blockquote { border-left: 3px solid var(--accent); background: var(--accent-tint); padding: 14px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; font-size: 15px; color: var(--text-2); }
.article-body blockquote p { margin: 0; }
.article-body strong { color: var(--text-1); font-weight: 700; }

/* ── Sticky CTA (landing pages) ─────────────────────────────────────────── */
.sticky-cta-wrap { display: none; }
@media (min-width: 1400px) { .sticky-cta-wrap { display: block; } }

/* ── Responsivo ──────────────────────────────────────────────────────────── */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 992px) {
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3-col {
    grid-template-columns: 1fr;
  }
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
}
@media (max-width: 768px) {
  .grid-sidebar {
    grid-template-columns: 1fr;
  }
}

.grid-contact {
  display: grid;
  grid-template-columns: 1fr 420px;
}
@media (max-width: 900px) {
  .grid-contact {
    grid-template-columns: 1fr;
  }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle {
    display: flex;
  }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--hero-bg);
    border-bottom: 1.5px solid rgba(201,238,14,.18);
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    align-items: stretch;
    z-index: 99;
  }
  .nav.is-open {
    display: flex;
  }
  .nav-link {
    font-size: 15px;
    padding: 10px 14px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }
  .nav-link-cta {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 8px;
  }
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 64px 0 56px; }
  .block { padding: 56px 0; }
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr !important; }
}
