/* ═══════════════════════════════════════════════════
   GRUPO FAIRES — Blog / Artigo styles
   ═══════════════════════════════════════════════════ */

/* ── Blog index — hero ── */
.blog-hero {
  background: var(--grad-hero);
  padding: 100px 0 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-radial);
  pointer-events: none;
}
.blog-hero__label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.blog-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.blog-hero__desc {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 64px 0;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface2);
}
.blog-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card:hover .blog-card__title { color: var(--accent); }
.blog-card__excerpt {
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: var(--muted);
}
.blog-card__meta-dot { width: 3px; height: 3px; background: var(--faint); border-radius: 50%; }

/* ── Article page ── */
.art-hero {
  background: var(--grad-hero);
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}
.art-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-radial);
  pointer-events: none;
}
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.art-breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--t); }
.art-breadcrumb a:hover { color: var(--white); }
.art-breadcrumb__sep { color: rgba(255,255,255,.25); }
.art-cat {
  display: inline-block;
  background: rgba(68,76,231,.2);
  border: 1px solid rgba(68,76,231,.35);
  color: #a5b4fc;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.art-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  max-width: 820px;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.art-meta__dot { width: 3px; height: 3px; background: rgba(255,255,255,.25); border-radius: 50%; }
.art-meta__author { color: rgba(255,255,255,.75); font-weight: 600; }
.art-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: block;
}

/* ── Article layout ── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}
@media (max-width: 1024px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { order: -1; }
}

/* ── Article prose ── */
.art-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}
.art-prose h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin: 2.2em 0 .7em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--border);
}
.art-prose h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.8em 0 .5em;
}
.art-prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  margin: 1.4em 0 .4em;
}
.art-prose p { margin-bottom: 1.3em; }
.art-prose strong { font-weight: 700; color: var(--ink); }
.art-prose em { font-style: italic; }
.art-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.art-prose a:hover { color: var(--accent-dark); }
.art-prose ul, .art-prose ol {
  margin: .8em 0 1.4em 1.4em;
  display: flex;
  flex-direction: column;
  gap: .45em;
}
.art-prose ul { list-style: disc; }
.art-prose ol { list-style: decimal; }
.art-prose li { padding-left: .3em; }
.art-prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 18px 22px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--primary);
}
.art-prose blockquote strong { color: var(--accent-dark); }
.art-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: .9rem;
}
.art-prose th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
}
.art-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.art-prose tr:nth-child(even) td { background: var(--surface); }
.art-prose hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5em 0;
}

/* ── Metric callout ── */
.art-metric {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 1.8em 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.art-metric__icon {
  width: 42px;
  height: 42px;
  background: #10B981;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.art-metric__value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--metric-dark);
  line-height: 1.1;
}
.art-metric__label {
  font-size: .85rem;
  color: #065f46;
  margin-top: 2px;
}

/* ── Info box ── */
.art-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  margin: 1.6em 0;
}
.art-box__title {
  font-weight: 700;
  color: var(--accent-dark);
  font-size: .9rem;
  margin-bottom: 6px;
}

/* ── TOC ── */
.art-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.art-toc__title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.art-toc__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: toc;
}
.art-toc__list li { counter-increment: toc; }
.art-toc__list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--slate);
  line-height: 1.4;
  transition: color var(--t);
  padding: 3px 0;
}
.art-toc__list a::before {
  content: counter(toc);
  font-size: .72rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.art-toc__list a:hover { color: var(--accent); }
.art-toc__list a:hover::before { background: var(--accent-light); color: var(--accent); }

/* ── Sidebar ── */
.art-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.art-sidebar__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.art-sidebar__card--cta {
  background: var(--primary);
  border-color: var(--primary);
}
.art-sidebar__title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.art-sidebar__card--cta .art-sidebar__title { color: var(--white); }
.art-sidebar__text {
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
}
.art-sidebar__card--cta .art-sidebar__text { color: rgba(255,255,255,.7); }
.art-sidebar__metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.art-sidebar__metric {
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-sidebar__metric-val {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--metric);
}
.art-sidebar__metric-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  line-height: 1.3;
}

/* ── CTA final ── */
.art-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: var(--r-xl);
  padding: 52px 48px;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.art-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-radial);
  pointer-events: none;
}
.art-cta__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 14px;
}
.art-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}
.art-cta__text {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 28px;
}
.art-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Related articles ── */
.art-related {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.art-related__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ── Author block ── */
.art-author-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin: 3rem 0 1.5rem;
}
.art-author-block__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
}
.art-author-block__name {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.art-author-block__role {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.art-author-block__bio {
  font-size: .87rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .art-cta { padding: 36px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
}
