/* ── GUEDES CERTIFICADORA — BLOG CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Urbanist:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  --linho: #FBF5EA;
  --esmeralda: #004C3F;
  --verde-profundo: #092917;
  --dourado: #C29849;
  --dourado-claro: #D8B06A;
  --esmeralda-soft: #0E6A57;
  --texto: #1A2E1C;
  --texto-suave: #4A5E4D;
  --borda: rgba(0,76,63,0.12);
  --sombra: 0 4px 24px rgba(9,41,23,0.08);
  --radius: 16px;
  --radius-lg: 28px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Urbanist', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--linho);
  color: var(--texto);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,245,234,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo img { height: 40px; width: auto; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--esmeralda);
  transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--dourado); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--esmeralda);
  color: var(--linho) !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-whatsapp:hover { background: var(--verde-profundo); }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--esmeralda);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── CATEGORY BAR ── */
.category-bar {
  background: var(--verde-profundo);
  padding: 8px 0;
}
.cat-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  overflow-x: auto;
}
.category-bar a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,245,234,0.75);
  padding: 4px 14px;
  transition: color 0.2s;
  white-space: nowrap;
}
.category-bar a:hover { color: var(--dourado); }
.cat-home {
  color: var(--dourado) !important;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 4px;
}
.cat-home:hover { color: var(--linho) !important; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--linho);
  padding: 0;
  border-top: 1px solid var(--borda);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 24px;
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--esmeralda);
  border-bottom: 1px solid var(--borda);
}
.mobile-menu a:hover { color: var(--dourado); }

/* ── HERO DO BLOG (index) ── */
.blog-hero {
  background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--esmeralda) 100%);
  padding: 64px 0 48px;
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--linho);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 18px;
  color: rgba(251,245,234,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
  font-weight: 300;
}
.blog-hero .hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-hero .tag {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(194,152,73,0.5);
  color: var(--dourado-claro);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── GRID DE POSTS ── */
.posts-section { padding: 64px 0 96px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(9,41,23,0.14);
}
.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--esmeralda);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cat-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dourado);
}
.cat-pill + .cat-pill::before { content: "·"; margin-right: 8px; color: var(--borda); }
.post-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--esmeralda);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 10px;
}
.post-card p {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--borda);
  padding-top: 16px;
}
.post-date { font-size: 12px; color: var(--texto-suave); }
.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--esmeralda);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.read-more:hover { color: var(--dourado); }
.read-more svg { transition: transform 0.2s; }
.read-more:hover svg { transform: translateX(3px); }

/* ── POST INDIVIDUAL ── */
.post-hero {
  background: linear-gradient(135deg, var(--verde-profundo), var(--esmeralda));
  padding: 56px 0 0;
}
.post-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.post-cats { display: flex; gap: 12px; margin-bottom: 16px; }
.post-cats a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dourado-claro);
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--linho);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}
.post-meta {
  font-size: 13px;
  color: rgba(251,245,234,0.6);
  margin-bottom: 40px;
}
.post-featured-img {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── CONTEÚDO DO POST ── */
.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.post-body p { font-size: 17px; color: var(--texto); margin-bottom: 24px; line-height: 1.8; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--esmeralda);
  font-weight: 600;
  margin: 48px 0 16px;
  line-height: 1.2;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--verde-profundo);
  font-weight: 600;
  margin: 32px 0 12px;
}
.post-body ul, .post-body ol {
  margin: 0 0 24px 24px;
}
.post-body li { font-size: 17px; color: var(--texto); margin-bottom: 10px; line-height: 1.7; }
.post-body a { color: var(--esmeralda); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--dourado); }
.post-body strong { font-weight: 700; color: var(--verde-profundo); }

/* Highlight box */
.highlight-box {
  background: rgba(0,76,63,0.06);
  border-left: 4px solid var(--esmeralda);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.highlight-box p { margin-bottom: 0; font-weight: 500; }

/* Steps */
.steps { margin: 32px 0; counter-reset: steps; }
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--esmeralda);
  color: var(--linho);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h4 { font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: var(--esmeralda); margin-bottom: 6px; }
.step-content p { font-size: 15px; margin-bottom: 0; }

/* Table */
.post-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; border-radius: var(--radius); overflow: hidden; }
.post-table th { background: var(--esmeralda); color: var(--linho); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.post-table td { padding: 12px 16px; border-bottom: 1px solid var(--borda); color: var(--texto); }
.post-table tr:nth-child(even) td { background: rgba(0,76,63,0.03); }
.post-table tr:last-child td { border-bottom: none; }

/* Divider */
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--dourado), transparent); margin: 48px 0; }

/* ── CTA FINAL ── */
.post-cta {
  background: linear-gradient(135deg, var(--verde-profundo), var(--esmeralda));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
}
.post-cta h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--linho);
  margin-bottom: 12px;
}
.post-cta p { color: rgba(251,245,234,0.8); margin-bottom: 28px; font-size: 16px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--dourado);
  color: var(--verde-profundo) !important;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none !important;
}
.btn-cta:hover { background: var(--dourado-claro); transform: translateY(-2px); }

/* ── POSTS RELACIONADOS ── */
.related-posts { padding: 0 0 80px; }
.related-posts h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--esmeralda);
  margin-bottom: 28px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--verde-profundo);
  color: var(--linho);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 48px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(251,245,234,0.65); line-height: 1.7; max-width: 280px; margin-bottom: 16px; }
.footer-badge { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(251,245,234,0.4); }
.footer-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dourado); margin-bottom: 16px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a, .footer-contact p { font-size: 14px; color: rgba(251,245,234,0.75); transition: color 0.2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--dourado); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p, .footer-bottom a { font-size: 12px; color: rgba(251,245,234,0.4); }
.footer-bottom a:hover { color: var(--dourado); }
.footer-bottom strong { color: var(--dourado); }

/* ── FLOAT WHATSAPP ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .posts-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-desktop, .btn-whatsapp { display: none; }
  .mobile-toggle { display: flex; }
  .posts-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .post-cta { padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
