/* ─── Vinteo Blog — Stylesheet ─────────────────────────────── */

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

:root {
  --bg:        #1B1B1B;
  --bg-card:   #0E132A;
  --bg-hover:  #172040;
  --border:    #252D4A;
  --red:       #C9AD77;
  --red-dim:   #a88e5c;
  --white:     #F5F5F0;
  --gray-1:    #A0A0A0;
  --gray-2:    #787878;
  --gray-3:    #555555;
  --font:      'Inter', system-ui, sans-serif;
  --max-w:     1120px;
  --max-article: 740px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ─── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27,27,27,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}
.nav__logo svg { flex-shrink: 0; }
.nav__logo-text {
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-1);
  letter-spacing: .04em;
  transition: color .2s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--red);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: .82rem !important;
  transition: background .2s !important;
}
.nav__cta:hover { background: var(--red-dim) !important; }

/* ─── HERO (listagem) ──────────────────────────────────────── */
.hero {
  padding: 80px 2rem 64px;
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 640px;
  margin-bottom: 1.2rem;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__desc {
  font-size: 1.05rem;
  color: var(--gray-1);
  max-width: 520px;
  line-height: 1.65;
}

/* ─── FILTROS ──────────────────────────────────────────────── */
.filters {
  padding: 32px 2rem 0;
}
.filters__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-1);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ─── GRID DE CARDS ────────────────────────────────────────── */
.articles {
  padding: 40px 2rem 96px;
}
.articles__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .25s, background .25s, transform .25s;
  cursor: pointer;
}
.card:hover {
  border-color: var(--red);
  background: var(--bg-hover);
  transform: translateY(-3px);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.card__cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.card__read {
  font-size: .72rem;
  color: var(--gray-2);
}
.card__read::before { content: "·"; margin-right: .75rem; }
.card__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--white);
}
.card:hover .card__title { color: var(--white); }
.card__excerpt {
  font-size: .88rem;
  color: var(--gray-1);
  line-height: 1.6;
  flex: 1;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  transition: gap .2s;
}
.card:hover .card__link { gap: .7rem; }
.card__link::after { content: "→"; }

/* ─── ARTIGO INDIVIDUAL ────────────────────────────────────── */
.article-hero {
  padding: 72px 2rem 56px;
  border-bottom: 1px solid var(--border);
}
.article-hero__inner {
  max-width: var(--max-article);
  margin: 0 auto;
}
.article-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--gray-2);
  margin-bottom: 2rem;
  transition: color .2s;
}
.article-hero__back:hover { color: var(--white); }
.article-hero__back::before { content: "←"; }
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.4rem;
}
.article-hero__cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.article-hero__read {
  font-size: .72rem;
  color: var(--gray-2);
}
.article-hero__read::before { content: "·"; margin-right: .75rem; }
.article-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.article-hero__desc {
  font-size: 1.05rem;
  color: var(--gray-1);
  line-height: 1.65;
  max-width: 560px;
}

/* ─── CONTEÚDO DO ARTIGO ───────────────────────────────────── */
.article-body {
  padding: 56px 2rem 96px;
}
.article-body__inner {
  max-width: var(--max-article);
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 2.8rem 0 1rem;
  line-height: 1.25;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 .6rem;
}
.article-body h3 .num {
  color: var(--red);
  margin-right: .4rem;
}

.article-body p {
  color: var(--gray-1);
  margin-bottom: 1.2rem;
  font-size: .98rem;
  line-height: 1.75;
}
.article-body strong { color: var(--white); font-weight: 600; }

.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.4rem;
}
.article-body li {
  color: var(--gray-1);
  font-size: .98rem;
  margin-bottom: .5rem;
  line-height: 1.65;
}

/* callout */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.callout p { margin: 0; font-size: .93rem; }

/* tabela */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .88rem;
}
.article-body th {
  background: var(--bg-card);
  color: var(--white);
  font-weight: 700;
  text-align: left;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.article-body td {
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  color: var(--gray-1);
  vertical-align: top;
}
.article-body tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* CTA box */
.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-cta__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.article-cta__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.article-cta__desc {
  font-size: .88rem;
  color: var(--gray-1);
}
.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  width: fit-content;
  transition: background .2s;
}
.article-cta__btn:hover { background: var(--red-dim); }
.article-cta__btn::after { content: "→"; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer__copy {
  font-size: .75rem;
  color: var(--gray-2);
}

/* ─── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .articles__inner { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
