@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1c1c1e;
  background: #f8f8f6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Variaveis ──────────────────────────────────────────── */
:root {
  --blue: #006eb5;
  --blue-dark: #005490;
  --blue-light: #e8f3fb;
  --gold: #c9a84c;
  --text: #1c1c1e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --card-bg: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.logo-dot.gold { background: var(--gold); }
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: #f3f4f6; }
.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  padding: 9px 18px;
  border-radius: 50px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-dark); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2545 50%, #0a3d62 100%);
  padding: 80px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(0,110,181,0.4) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 span { color: #60a5fa; }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Layout principal ───────────────────────────────────── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

/* ─── Secao de posts (index) ─────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-count {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Grid de cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  list-style: none;
}

/* Card */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.09);
  border-color: #d1d5db;
}
.card-color-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #38bdf8);
}
.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tag {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 50px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.post-card:hover .card-title { color: var(--blue); }
.card-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #f0f0ee;
}
.card-date {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}
.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.post-card:hover .card-arrow {
  background: var(--blue);
  transform: translateX(2px);
}
.card-arrow svg { transition: stroke 0.15s; }
.post-card:hover .card-arrow svg { stroke: white; }

/* Estado vazio */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.empty-state p { font-size: 1rem; }

/* ─── Post individual ────────────────────────────────────── */
.post-layout {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.breadcrumb {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--blue); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #d1d5db; }

.post-header { margin-bottom: 44px; }
.post-header .card-tags { margin-bottom: 20px; }
.post-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.post-meta-sep { color: var(--border); }
.post-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* Conteudo */
.post-content { font-size: 1.05rem; }
.post-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 18px;
  line-height: 1.25;
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
}
.post-content p { margin-bottom: 24px; }
.post-content ul, .post-content ol { margin: 0 0 28px 0; padding-left: 0; list-style: none; }
.post-content li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text);
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.post-content ol { counter-reset: list; }
.post-content ol li::before {
  content: counter(list);
  counter-increment: list;
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 20px;
}
.post-content blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: #1e3a5f;
  font-style: italic;
}
.post-content strong { color: var(--text); font-weight: 700; }
.post-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Tabela */
.post-content table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.93rem; }
.post-content th { background: #0d2545; color: white; padding: 13px 16px; text-align: left; font-weight: 600; }
.post-content th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.post-content th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.post-content td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.post-content tr:nth-child(even) td { background: #fafafa; }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #0a1628, #0d2545);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin: 52px 0;
  text-align: center;
  color: white;
}
.cta-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}
.cta-box p { color: rgba(255,255,255,0.65); margin-bottom: 28px; font-size: 0.95rem; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: #0082d4; transform: translateY(-1px); }

/* Posts relacionados */
.related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.related-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.related-list a:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0,110,181,0.08);
  color: var(--blue);
}
.related-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 36px 32px;
  text-align: center;
}
.site-footer p { font-size: 0.85rem; color: var(--muted); }
.site-footer a { color: var(--blue); font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .hero { padding: 60px 20px 72px; }
  .page-wrap { padding: 40px 20px 60px; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-layout { padding: 40px 20px 60px; }
  .cta-box { padding: 32px 24px; }
  .nav-link { display: none; }
}
