/* ============================================================
   EUZÉBIO DEV — BLOG
   Tokens: preto #111111, branco #FFFFFF, amarelo #FFD21F,
   cinza escuro #1C1C1C, cinza médio #666666, cinza claro #F5F5F5
   Tipografia: Anton (títulos) + Inter (texto)
   ============================================================ */


:root {
  --black: #111111;
  --white: #FFFFFF;
  --yellow: #FFD21F;
  --dark: #1C1C1C;
  --gray: #666666;
  --gray-light: #F5F5F5;
  --border: #E7E5E0;

  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 6px;
  --header-h: 76px;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul, ol { padding-left: 1.25rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 2em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 1.6em; }

p { margin: 0 0 1.1em; color: var(--dark); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: #ffc700; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--dark); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; min-height: 40px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.logo span { color: var(--yellow); -webkit-text-stroke: 1px var(--black); }
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main-nav a.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a.nav-link:hover,
nav.main-nav a.nav-link.active { border-color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -8px; }
.menu-toggle span::after { position: absolute; top: 8px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  nav.main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a.nav-link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  nav.main-nav .btn { width: 100%; margin-top: 12px; }
  .menu-toggle { display: flex; }
  .header-actions .btn-primary.desktop-only { display: none; }
}
@media (min-width: 881px) {
  nav.main-nav .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.15rem; color: var(--gray); max-width: 46ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius);
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.hero-visual svg { width: 100%; height: 100%; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Section titles ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-light); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.section-title .see-all { font-weight: 700; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; white-space: nowrap; }

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.category-card .cat-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.category-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.category-card p { color: var(--gray); font-size: 0.92rem; margin: 0; }
@media (max-width: 880px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* ---------- Article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.article-card:hover { border-color: var(--black); }
.article-cover { aspect-ratio: 16/10; background: var(--black); }
.article-cover svg { width: 100%; height: 100%; }
.article-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--black);
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 3px;
  align-self: flex-start;
}
.article-card-body h3 { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.article-card-body .excerpt { color: var(--gray); font-size: 0.92rem; margin: 0; flex: 1; }
.article-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--gray); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Comece por aqui ---------- */
.start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.start-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  gap: 16px;
}
.start-card:hover { border-color: var(--yellow); }
.start-card .arrow { color: var(--gray); font-weight: 400; font-size: 0.85rem; }
@media (max-width: 960px) { .start-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .start-grid { grid-template-columns: 1fr; } }

/* ---------- Lead capture ---------- */
.lead-block { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lead-block h2 { color: var(--white); }
.lead-block p { color: #C9C9C9; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: #C9C9C9; }
.field input, .field textarea {
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid #3A3A3A;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A; }
.form-success { display: none; background: var(--yellow); color: var(--black); padding: 16px; border-radius: var(--radius); font-weight: 700; margin-top: 12px; }
.form-success.show { display: block; }
@media (max-width: 880px) { .lead-block { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: left; }
.service-card .price { font-family: var(--font-display); font-size: 1.5rem; margin-top: 8px; }
.service-card .price small { font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; color: var(--gray); display: block; margin-bottom: 2px; }
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--yellow); border-radius: var(--radius); padding: 40px; text-align: center; }
.newsletter h2 { margin-bottom: 8px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 20px auto 0; }
.newsletter-form input { flex: 1; padding: 13px 14px; border-radius: var(--radius); border: 2px solid var(--black); font-family: var(--font-body); }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; background: var(--gray-light); border-radius: var(--radius); padding: 48px 24px; }
.cta-final .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  border: 1px dashed var(--border);
  background: var(--gray-light);
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 18px;
  border-radius: var(--radius);
  margin: 32px 0;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--black); color: #C9C9C9; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #2A2A2A; }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.4px; margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand .logo { color: var(--white); }
.footer-brand p { color: #999; font-size: 0.9rem; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.82rem; color: #888; flex-wrap: wrap; gap: 10px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  z-index: 300;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cookie-banner.show { display: block; }
.cookie-banner p { color: #C9C9C9; font-size: 0.88rem; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--gray); padding: 18px 0; }
.breadcrumbs a:hover { color: var(--black); text-decoration: underline; }

/* ---------- Blog listing ---------- */
.blog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.search-input { flex: 1; min-width: 220px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; }
.filter-select { padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; background: var(--white); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; cursor: pointer; background: var(--white); }
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }

/* ---------- Article page layout ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-head .tag { margin-bottom: 14px; }
.article-head .article-meta { border: none; padding: 0; margin: 12px 0 24px; }
.article-hero-cover { aspect-ratio: 21/9; background: var(--black); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.article-hero-cover svg { width: 100%; height: 100%; }
.toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0 36px; background: var(--gray-light); }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 12px 0 0; padding-left: 1.1rem; }
.toc a { color: var(--dark); }
.toc a:hover { color: var(--black); text-decoration: underline; }
.article-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body ul li, .article-body ol li { margin-bottom: 6px; }
.note-box { background: var(--gray-light); border-left: 3px solid var(--yellow); padding: 16px 18px; border-radius: 4px; font-size: 0.92rem; color: var(--gray); margin: 20px 0; }

/* Tabelas e blocos de código dentro do conteúdo do artigo */
.article-body .table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.article-body table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9rem; }
.article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-body thead th { background: var(--black); color: var(--white); font-weight: 700; white-space: nowrap; }
.article-body tbody tr:nth-child(even) { background: var(--gray-light); }
.article-body pre {
  background: var(--black); color: #E8E8E8; padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; margin: 24px 0; font-size: 0.85rem; line-height: 1.6;
}
.article-body pre code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; background: none; padding: 0; }
.article-body :not(pre) > code {
  background: var(--gray-light); color: var(--black); padding: 2px 6px; border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 0.88em;
}
.article-cta-box { background: var(--black); color: var(--white); padding: 32px; border-radius: var(--radius); text-align: center; margin: 44px 0; }
.article-cta-box h3 { color: var(--white); }
.article-cta-box p { color: #C9C9C9; }
.article-cta-box .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
@media (max-width: 960px) { .related-grid { grid-template-columns: 1fr; } }

.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-box h4 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.3px; margin: 0 0 14px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sidebar-list a { font-size: 0.9rem; font-weight: 600; }
.sidebar-list a:hover { color: var(--gray); }
.sidebar-cta { background: var(--black); color: var(--white); }
.sidebar-cta h4 { color: var(--white); }
.sidebar-cta p { color: #C9C9C9; font-size: 0.88rem; }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ---------- Generic content pages ---------- */
.page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.prose { max-width: 74ch; }
.prose h2 { }
.prose p { color: var(--dark); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-options { display: flex; flex-direction: column; gap: 16px; }
.contact-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.contact-option strong { display: block; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.simple-form { display: flex; flex-direction: column; gap: 14px; }
.simple-form .field input, .simple-form .field textarea {
  background: var(--white); color: var(--black); border: 1px solid var(--border);
}
.simple-form .field label { color: var(--gray); }

/* ---------- 404-style empty ---------- */
.no-results { text-align: center; padding: 80px 20px; }
