/* Blog: /blog/ e páginas dos posts (/blog/<post>/) (gerados por blog-fonte/gerar_blog.py) */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #038A5C;
  --green-dark: #026B47;
  --forest: #0E2A1F;
  --forest-2: #123B2B;
  --text: #1F2E22;
  --text-2: #5C6B5F;
  --copper-a: #C2652E;
  --copper-b: #D97B3F;
  --copper-light: #F0B48E;
  --mint: #F3F7F2;
  --line: rgba(31,46,34,0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; color: var(--text); background: #FFFFFF; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.top__bar { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top__logo img { height: 36px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 22px; }
.top__nav > a:not(.top__cta) { font-size: 14px; font-weight: 500; color: var(--text); }
.top__nav > a:not(.top__cta):hover, .top__nav > a[aria-current] { color: var(--green); }
.top__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--green); color: #FFFFFF; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s; }
.top__cta:hover { background: var(--green-dark); color: #FFFFFF; }

/* ---------- Lista ---------- */
.hero { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 20px clamp(28px, 4vw, 40px); text-align: center; }
.hero__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-a); }
.hero__title { margin-top: 12px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.hero__title span { color: var(--green); }
.hero__sub { margin: 14px auto 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: balance; }

.grid { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid--3 { padding: 0; }
.card { border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(31,46,34,0.05); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(3,138,92,0.35); box-shadow: 0 18px 40px rgba(31,46,34,0.1); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #E4EAE5; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--text-2); }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: rgba(3,138,92,0.09); color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.card__title { margin-top: 12px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text); text-wrap: balance; }
.card__resumo { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.card__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); }
.card:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform 0.2s var(--ease); }

/* destaque: primeiro post ocupa a largura toda, imagem ao lado */
.card--destaque { grid-column: 1 / -1; }
.card--destaque .card__link { flex-direction: row; }
.card--destaque .card__img { width: 56%; aspect-ratio: auto; min-height: 320px; }
.card--destaque .card__body { justify-content: center; padding: 32px 36px; }
.card--destaque .card__title { font-size: clamp(22px, 2.4vw, 30px); }
.card--destaque .card__resumo { font-size: 16px; }
.card--destaque .card__more { margin-top: 20px; padding-top: 0; }

/* ---------- Post ---------- */
.post { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) 20px 0; }
.post__back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.post__back:hover { color: var(--green); }
.post__meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--text-2); }
.post__title { margin-top: 14px; font-size: clamp(28px, 4.2vw, 42px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.post__resumo { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.post__autor { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.post__autor img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post__autor strong { color: var(--text); font-weight: 600; }
.post__capa { width: 100%; margin-top: 24px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: #E4EAE5; }

.post__body { margin-top: 32px; font-size: 17.5px; line-height: 1.75; color: #2B3A2E; }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { margin-top: 1.8em; font-size: clamp(22px, 2.6vw, 27px); font-weight: 600; line-height: 1.25; color: var(--text); letter-spacing: -0.01em; }
.post__body h3 { margin-top: 1.5em; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--green-dark); }
.post__body h2 + *, .post__body h3 + * { margin-top: 0.6em; }
.post__body strong { font-weight: 600; color: var(--text); }
.post__body ul { padding-left: 0; list-style: none; }
.post__body li { position: relative; padding-left: 26px; }
.post__body li + li { margin-top: 0.55em; }
.post__body li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper-b); }
.post__body figure { margin: 1.8em 0; }
.post__body figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; }

/* Caixa de chamada para a consulta */
.cta { margin: 48px 0 0; padding: clamp(28px, 4vw, 40px); border-radius: 20px; background: linear-gradient(160deg, var(--forest-2) 0%, var(--forest) 100%); color: #FFFFFF; text-align: center; }
.wrap .cta { max-width: 760px; margin: 56px auto 0; }
.cta__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-light); }
.cta__title { margin-top: 10px; font-size: clamp(22px, 3vw, 28px); font-weight: 500; line-height: 1.25; text-wrap: balance; }
.cta__text { margin: 12px auto 0; max-width: 46ch; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.75); text-wrap: balance; }
.btn { margin-top: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: linear-gradient(135deg, var(--copper-a), var(--copper-b)); color: #FFFFFF; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 12px 26px rgba(0,0,0,0.25); transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); color: #FFFFFF; }

.mais { max-width: 1120px; margin: 64px auto 0; padding: 0 20px; }
.mais__title { margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Rodapé ---------- */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: #FFFFFF; }
.foot__inner { max-width: 900px; margin: 0 auto; padding: 36px 20px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--text-2); }
.foot__inner img { height: 40px; width: auto; margin-bottom: 6px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--green); font-weight: 500; }
.foot__copy { font-size: 11px; color: rgba(31,46,34,0.5); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 > :nth-child(3) { display: none; }
  .card--destaque .card__link { flex-direction: column; }
  .card--destaque .card__img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .card--destaque .card__body { padding: 22px 22px 24px; }
}
@media (max-width: 640px) {
  .top__bar { padding: 8px 16px; }
  .top__logo img { height: 30px; }
  .top__nav { gap: 14px; }
  .top__nav > a[href="/"] { display: none; }
  .top__cta { padding: 0 12px; }
  .top__cta span { display: none; }
  .top__cta { width: 40px; padding: 0; justify-content: center; }
  .grid { grid-template-columns: 1fr; gap: 18px; padding: 0 16px; }
  .grid--3 { padding: 0; }
  .grid--3 > :nth-child(3) { display: block; }
  .hero, .post, .mais { padding-left: 16px; padding-right: 16px; }
  .post__body { font-size: 17px; line-height: 1.7; }
  .post__resumo { font-size: 16.5px; }
  .post__capa { border-radius: 14px; }
  .cta { border-radius: 18px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .card__more svg { transition: none; }
}
