/*
  AGÊNCIA CALIXTO: Web Design
  Cliente: Dra. Isabella Rezende Vendrame
  Arquivo: blog/blog.css (folha de estilos compartilhada do blog)
  Reaproveita integralmente o sistema visual de institucional.html (mesma paleta/tipografia das 3 LPs)
  Usado por: blog/index.html e blog/posts/*.html
*/

:root {
  --primary: #0D2B5E;
  --primary-deep: #081A3D;
  --accent: #C8922A;
  --accent-light: #E8AA40;
  --bg: #F7F4EF;
  --bg-white: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #8C8C8C;
  --divisor: #E2DDD5;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* NAVBAR (idêntica à do institucional.html) */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary-deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 48px; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: #fff; text-decoration: none;
  letter-spacing: -0.01em;
}
.navbar-logo span { color: var(--accent); font-weight: 400; }
.navbar-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.navbar-links a {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  transition: color .15s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--accent); }
.navbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 60%, #A9781F 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  padding: 11px 20px; border-radius: 6px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 4px rgba(0,0,0,.15);
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .18s ease;
}
.navbar-cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(0,0,0,.1); }
.navbar-cta:active { transform: translateY(1px) scale(0.96); transition: transform .12s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* CABEÇALHO DE PÁGINA (blog index e topo de cada post) */
.page-header {
  background: var(--primary-deep);
  padding: 72px 48px 56px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(200,146,42,.08) 0%, transparent 55%);
}
.page-header-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.page-header h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.12;
  letter-spacing: -0.02em; color: #fff; max-width: 640px; margin-bottom: 16px;
}
.page-header p { font-size: 16px; color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.75; }

/* GRID DE POSTS */
.blog-section { background: var(--bg); padding: 72px 0 96px; }
.blog-section-inner { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--divisor); border: 1px solid var(--divisor);
}
.post-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-white); padding: 32px 28px;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.post-card:hover { background: #FFFEFC; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.post-card-category { color: var(--accent); }
.post-card-date { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.post-card-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--primary); }
.post-card-excerpt { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; flex-grow: 1; }
.post-card-link { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--primary); }
.post-card:hover .post-card-link { color: var(--accent); }
.posts-empty { padding: 40px 0; color: var(--text-muted); font-size: 15px; }

@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* ARTIGO (post individual) */
.article-wrap { background: var(--bg-white); padding: 64px 0 96px; }
.article-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; margin-bottom: 32px; }
.article-back:hover { color: var(--accent); }
.article-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.article-meta span:last-child { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.article-inner h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.18;
  letter-spacing: -0.02em; color: var(--primary); margin-bottom: 32px;
}
.article-body { font-size: 17px; color: var(--text); line-height: 1.85; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--primary); margin: 40px 0 16px; }
.article-body ul { margin: 0 0 22px 20px; }
.article-body li { margin-bottom: 10px; }
.article-disclaimer {
  margin-top: 48px; padding: 20px 24px; background: var(--bg);
  border-left: 3px solid var(--accent); font-size: 13.5px; color: var(--text-muted); line-height: 1.7;
}
.article-cta {
  margin-top: 48px; padding: 36px; background: var(--primary); border-radius: 8px; text-align: center;
}
.article-cta p { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 20px; }
.article-cta .btn-primary { margin: 0 auto; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 60%, #A9781F 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  padding: 16px 32px; border-radius: 6px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.15), 0 4px 24px rgba(200,146,42,.35);
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .18s ease;
  text-transform: uppercase;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 6px rgba(0,0,0,.12), 0 8px 32px rgba(200,146,42,.5); }
.btn-primary:active { transform: translateY(1px) scale(0.97); transition: transform .12s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: inset 0 2px 5px rgba(0,0,0,.25), 0 2px 10px rgba(200,146,42,.3); }

/* FOOTER */
footer { background: var(--primary-deep); padding: 40px 48px; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
footer p { font-size: 12.5px; color: rgba(255,255,255,.4); line-height: 2; max-width: 640px; margin: 0 auto; }
footer a { color: rgba(255,255,255,.55); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-inner, .page-header-inner, .blog-section-inner { padding-left: 24px; padding-right: 24px; }
  .page-header { padding: 56px 24px 40px; }
  .blog-section { padding: 56px 0 72px; }
}

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