:root {
  --bgDark: #050505;
  --bgHero: #0e0f10;
  --primary: #16a34a;
  --primaryHover: #22c55e;
  --textMain: #0f172a;
  --textMuted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: var(--textMain);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { -webkit-tap-highlight-color: transparent; }

.og-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- HEADER (matches root index.html) ---------- */
.og-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.og-header-inner {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.og-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--textMain);
}

.og-brand img {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.og-brand span {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--textMain);
}

.og-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

.og-nav a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
}

.og-nav a:hover { color: var(--textMain); }

.og-nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #000000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff !important;
  background-color: #000000 !important;
  white-space: nowrap;
}

/* ---------- BLOG INDEX — BANNER ---------- */
.og-hidden { display: none !important; }

.og-blog-banner {
  position: relative;
  overflow: hidden;
  background: #0f2e23;
  padding: 96px 20px 72px;
}

.og-blog-banner-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.og-blog-banner-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.og-banner-state { transition: opacity 0.25s ease; }

.og-blog-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 14px;
}

.og-blog-h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #ffffff;
}

.og-blog-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 0;
  max-width: 600px;
}

.og-blog-meta-count {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
}

.og-back-cat {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  display: block;
  transition: color 0.2s;
}
.og-back-cat:hover { color: rgba(255,255,255,0.9); }

/* ---------- CATEGORY BANNERS ---------- */
.og-cat-section {
  background: #f8f7f4;
  padding: 56px 20px 64px;
}

.og-cat-inner { max-width: 1120px; margin: 0 auto; }

.og-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,46,35,0.35);
  margin: 0 0 22px;
}

.og-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.og-cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 210px;
  background-image: var(--cat-photo);
  background-size: cover;
  background-position: center;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.35s ease;
}
.og-cat-card:hover { transform: scale(1.015); }
.og-cat-card:focus { outline: 2px solid #16a34a; outline-offset: 3px; }

.og-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,46,35,0.72) 0%, rgba(15,46,35,0.52) 100%);
  transition: opacity 0.3s;
}

.og-cat-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,46,35,0.9) 0%, rgba(15,46,35,0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.og-cat-card:hover .og-cat-hover-overlay { opacity: 1; }

.og-cat-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
}

.og-cat-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.og-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.og-cat-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  margin-top: 12px;
  display: block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.og-cat-card:hover .og-cat-cta { opacity: 1; transform: translateY(0); }

/* ---------- ARTICLES / DESTAQUES SECTION ---------- */
.og-articles-section {
  background: #ffffff;
  padding: 48px 20px 80px;
}

.og-articles-inner { max-width: 1120px; margin: 0 auto; }

/* Filter bar */
.og-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.og-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,46,35,0.35);
  margin-right: 4px;
  min-width: 80px;
}

.og-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,46,35,0.22);
  background: transparent;
  color: #0f2e23;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.og-pill:hover { border-color: #0f2e23; }
.og-pill-active {
  background: #0f2e23;
  color: #ffffff;
  border-color: #0f2e23;
}

.og-pill-count {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15,46,35,0.1);
}
.og-pill-active .og-pill-count {
  background: rgba(255,255,255,0.15);
}

.og-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.og-blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.og-blog-card:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.og-blog-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--primary);
  color: #ffffff;
  margin-bottom: 16px;
}

.og-blog-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--textMain);
}

.og-blog-card-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.og-blog-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.og-blog-card-time {
  font-size: 12px;
  color: var(--textMuted);
  font-weight: 500;
}

.og-blog-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.og-blog-card-link:hover { color: var(--primaryHover); }

/* ---------- BLOG POST ---------- */
.og-post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.og-back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 24px;
}

.og-back-link:hover { color: var(--primaryHover); }

.og-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.og-post-meta .og-blog-tag { margin-bottom: 0; }

.og-post-time {
  font-size: 13px;
  color: var(--textMuted);
  font-weight: 500;
}

.og-post-date {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.og-post-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 32px;
  color: var(--textMain);
}

.og-post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.og-post-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #1f2937;
  margin: 0 0 20px;
}

.og-post-body h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 44px 0 16px;
  color: var(--textMain);
  letter-spacing: -0.01em;
}

.og-post-body h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 32px 0 12px;
  color: var(--textMain);
}

.og-pullquote {
  margin: 36px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--primary);
  background: #f4faf6;
  border-radius: 12px;
}

.og-pullquote p {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  font-style: italic;
  color: var(--textMain);
  margin: 0;
}

/* ---------- POST CTA ---------- */
.og-post-cta-wrap {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 20px 80px;
}

.og-post-cta {
  border-radius: 20px;
  padding: 44px 32px;
  text-align: center;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
}

.og-post-cta h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
  color: #ffffff;
}

.og-post-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 24px;
  max-width: 520px;
  line-height: 1.55;
}

.og-post-cta-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #0f2e23;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: filter 0.2s ease;
}

.og-post-cta-btn:hover { filter: brightness(0.95); }

/* ---------- FOOTER ---------- */
.og-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 28px 20px 24px;
}

.og-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.og-footer-nav {
  display: flex;
  gap: 16px;
}

.og-footer-nav a {
  text-decoration: none;
  color: #9ca3af;
  font-weight: 500;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .og-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .og-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .og-header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .og-nav { gap: 10px; }
  .og-nav a { display: none; }
  .og-nav a.og-nav-cta { display: inline-block; }

  .og-blog-banner { padding: 72px 20px 52px; }
  .og-blog-h1 { font-size: 32px; }
  .og-blog-sub { font-size: 15px; }
  .og-cat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .og-cat-card { height: 170px; }

  .og-blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .og-blog-grid-wrap { padding-bottom: 56px; }

  .og-post-wrap { padding-top: 20px; }
  .og-post-title { font-size: 30px; }
  .og-post-body p { font-size: 16px; }
  .og-post-body h2 { font-size: 24px; margin-top: 36px; }
  .og-post-body h3 { font-size: 18px; margin-top: 28px; }
  .og-pullquote { padding: 18px 20px; margin: 28px 0; }
  .og-pullquote p { font-size: 17px; }

  .og-post-cta { padding: 32px 22px; }
  .og-post-cta h2 { font-size: 22px; }
  .og-post-cta p { font-size: 14px; }
  .og-post-cta-btn {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ── Stat cards com contador animado ── */
.og-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.og-stat-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}
.og-stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #16a34a;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.og-stat-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
}

/* ── PRIMEIRA VISITA: sem menu e sem footer links ── */
html.og-fv .og-nav a:not(.og-nav-cta) { display: none !important; }
html.og-fv .og-footer-nav             { display: none !important; }
