/* ===== SMARTTY DIGITAL — BLOG (CSS compartilhado) ===== */
:root {
  --esmeralda: #004D40;
  --esmeralda-900: #00342B;
  --terracota: #E85D24;
  --terracota-600: #D14E1A;
  --linho: #F5F4EE;
  --linho-400: #ECEAE0;
  --carvao: #263238;
  --menta: #9FD4C4;
  --menta-300: #D2ECE4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--linho);
  color: var(--carvao);
  line-height: 1.6;
  font-size: 17px;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== NAV ===== */
.nav {
  background: var(--linho);
  border-bottom: 1px solid var(--linho-400);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo { min-width: 0; }
.nav-logo img { height: 34px; }
.nav-mobile-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; color: var(--carvao); transition: color 0.15s; }
.nav-links a:hover { color: var(--terracota); }
.nav-links a.ativo { color: var(--terracota); font-weight: 600; }
.nav-cta {
  background: var(--terracota);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--terracota-600); }

/* ===== NAV MOBILE ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #004D40;
  border-radius: 2px;
}
@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #F5F4EE;
    border-bottom: 1px solid #ECEAE0;
    padding: 8px 28px 16px;
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }
  .nav-links.aberto { display: flex; }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid #ECEAE0; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { font-size: 16px; color: #263238; font-weight: 500; text-decoration: none; }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 12px 16px;
    min-height: 44px;
    white-space: nowrap;
  }
  .post-header h1 { font-size: clamp(24px, 6vw, 32px); }
  .post-cover { margin-top: -16px; }
}

/* ===== HERO SIMPLES (índice do blog) ===== */
.blog-hero {
  background: var(--esmeralda);
  color: var(--linho);
  padding: 56px 0 48px;
  text-align: center;
}
.blog-hero .eyebrow { color: var(--menta); text-align: center; }
.blog-hero h1 {
  color: var(--linho);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  max-width: 640px;
  margin: 0 auto 14px;
  letter-spacing: -0.3px;
}
.blog-hero p {
  font-size: 17px;
  font-weight: 300;
  color: var(--menta-300);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== SEÇÕES ===== */
section { padding: 56px 0; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--esmeralda);
  max-width: 620px;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* ===== GRID DE POSTS (índice) ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }
.post-card {
  background: white;
  border: 1px solid var(--linho-400);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 20px 22px; }
.post-card .categoria {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--terracota); margin-bottom: 8px; display: block;
}
.post-card h3 { font-size: 19px; font-weight: 700; color: var(--esmeralda); margin-bottom: 8px; line-height: 1.3; }
.post-card p { font-size: 14px; font-weight: 300; color: #4a555c; margin-bottom: 12px; }
.post-card .ler-mais { font-size: 13.5px; font-weight: 600; color: var(--terracota); }

/* ===== ARTIGO (post individual) ===== */
.post-header { background: var(--esmeralda); color: var(--linho); padding: 48px 0 40px; }
.post-header .categoria {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--menta); margin-bottom: 14px; display: block;
}
.post-header h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  max-width: 760px;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.post-header .meta { font-size: 13.5px; color: var(--menta-300); }
.post-cover { max-width: 780px; margin: -28px auto 0; padding: 0 28px; }
.post-cover img { border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.18); }
.post-body { max-width: 680px; margin: 48px auto 0; padding: 0 28px; }
.post-body p { font-size: 17px; font-weight: 300; color: var(--carvao); margin-bottom: 22px; }
.post-body h2 { font-size: 24px; margin-top: 40px; margin-bottom: 14px; max-width: none; }
.post-body ul { margin: 0 0 22px 20px; }
.post-body li { font-size: 17px; font-weight: 300; margin-bottom: 8px; }
.post-body a { color: var(--esmeralda); text-decoration: underline; text-decoration-color: var(--menta); text-underline-offset: 3px; }
.post-body a:hover { color: var(--terracota); }

.post-galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 12px; margin: 28px 0; }
.post-galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--linho-400); }
.post-galeria figcaption { font-size: 12.5px; color: #4a555c; margin-top: 6px; text-align: center; }

.post-cta {
  background: var(--esmeralda);
  color: var(--linho);
  text-align: center;
  padding: 48px 28px;
  border-radius: 20px;
  margin: 48px 0;
}
.post-cta h3 { color: var(--linho); font-size: 22px; margin-bottom: 10px; }
.post-cta p { color: var(--menta-300); font-size: 15px; margin-bottom: 22px; font-weight: 300; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracota);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--terracota-600); transform: scale(1.02); }

.post-voltar { display: inline-block; margin: 24px 0; font-size: 14px; font-weight: 600; color: var(--esmeralda); text-decoration: none; }
.post-voltar:hover { color: var(--terracota); }

/* ===== FOOTER ===== */
footer {
  background: var(--esmeralda-900);
  color: rgba(245, 244, 238, 0.55);
  padding: 30px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
}
footer strong { color: var(--menta); font-weight: 500; }
footer .footer-links {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
footer .footer-links a { color: rgba(245,244,238,0.55); text-decoration: none; font-size: 12.5px; }
footer .footer-links a:hover { color: var(--menta); }
