/* Page Blog — TalkAg Journal 2026 */

@keyframes bl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

html:has(body.bl-page) { scroll-behavior: smooth; }

body.bl-page {
  background: #F5F8F1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.bl-page .grain { display: none; }
body.bl-page ::selection {
  background: #C9E6BE;
  color: #0E4429;
}

.bl-blog {
  --bl-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --bl-font-body: 'Manrope', system-ui, sans-serif;
  --bl-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bl-dur: 0.85s;
  font-family: var(--bl-font-body);
  color: #13231A;
  overflow-x: hidden;
}

.bl-blog [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--bl-dur) var(--bl-ease), transform var(--bl-dur) var(--bl-ease);
  transition-delay: var(--rv-delay, 0ms);
}
.bl-blog [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.bl-page) { scroll-behavior: auto; }
  .bl-blog [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Icônes */
.bl-blog .sc-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4faf1 0%, #e8f3e4 100%);
  border: 1px solid rgba(28, 124, 74, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px -14px rgba(28, 124, 74, 0.4);
  color: #1C7C4A;
  transition: transform 0.3s var(--bl-ease), box-shadow 0.3s ease;
}
.bl-blog .sc-icon-wrap--xs { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 0; }
.bl-blog .sc-icon-wrap--sm { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
.bl-blog .sc-icon-wrap--md { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 0; }
.bl-blog .sc-icon-wrap--lg { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 0; }
.bl-blog .sc-icon-wrap .sc-icon { width: 55%; height: 55%; display: block; }
.bl-card:hover .sc-icon-wrap,
.bl-empty:hover .sc-icon-wrap--md {
  transform: translateY(-2px);
}

.bl-em { color: #1C7C4A; }

/* Hero */
.bl-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 64px)) clamp(18px, 5vw, 32px) clamp(20px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(238, 244, 233, 0.4) 0%, transparent 100%);
}
.bl-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bl-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E6F1E2;
  color: #1C7C4A;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  line-height: 1.35;
}
.bl-badge .sc-icon-wrap--xs {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}
.bl-hero__title {
  font-family: var(--bl-font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.bl-hero__lead {
  font-size: 18px;
  line-height: 1.55;
  color: #5C6B60;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 500;
}
.bl-hero__lead-line {
  display: inline;
}
@media (min-width: 769px) {
  .bl-hero__lead {
    max-width: 780px;
  }
  .bl-hero__lead-line {
    display: block;
  }
}
@media (min-width: 1024px) {
  .bl-hero__lead-line {
    white-space: nowrap;
  }
}

/* Featured */
.bl-featured {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 16px) clamp(18px, 5vw, 32px) clamp(36px, 5vw, 52px);
}
.bl-featured__card {
  text-decoration: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  align-items: center;
  background: linear-gradient(145deg, #fff 0%, #FAFCF8 100%);
  border: 1px solid #E3EADE;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -45px rgba(15, 68, 41, 0.45);
  transition: transform 0.35s var(--bl-ease), box-shadow 0.35s ease;
}
.bl-featured__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 68px -42px rgba(15, 68, 41, 0.52);
}
.bl-featured__visual {
  position: relative;
  min-height: 340px;
  height: 100%;
  overflow: hidden;
  background: #DCEAD4;
}
.bl-featured__img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--bl-ease);
}
.bl-featured__card:hover .bl-featured__img {
  transform: scale(1.03);
}
.bl-featured__ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #1C7C4A;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.bl-featured__body {
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 44px) 0;
}
.bl-featured__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.bl-chip {
  background: #EEF4E9;
  color: #1C7C4A;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.bl-meta-line {
  font-size: 13px;
  color: #9DAE97;
  font-weight: 600;
}
.bl-featured__title {
  font-family: var(--bl-font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #13231A;
  text-wrap: balance;
}
.bl-featured__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #5C6B60;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 520px;
}
.bl-featured__foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bl-featured__cta {
  margin-left: auto;
  color: #1C7C4A;
  font-size: 14.5px;
  font-weight: 700;
}

/* Author */
.bl-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bl-author--lg { gap: 12px; }
.bl-author__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0E4429;
  color: #9BE08A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bl-font-display);
  font-weight: 800;
  font-size: 15px;
}
.bl-author__avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 12.5px;
  background: #EEF4E9;
  color: #1C7C4A;
}
.bl-author__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #13231A;
}
.bl-author__role {
  display: block;
  font-size: 12.5px;
  color: #9DAE97;
  font-weight: 600;
}

/* Grid section */
.bl-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 32px) clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, transparent 0%, rgba(238, 244, 233, 0.25) 50%, transparent 100%);
}
.bl-grid-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.bl-grid-head__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bl-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
  color: #13231A;
}
.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.bl-filter {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.01em;
  border: 1px solid #DCE6D6;
  background: #fff;
  color: #3A4A3E;
  transition: all 0.18s ease;
}
.bl-filter:hover {
  border-color: #C9D9C0;
}
.bl-filter.is-active {
  background: #1C7C4A;
  color: #fff;
  border-color: #1C7C4A;
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.bl-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #fff 0%, #FAFCF8 100%);
  border: 1px solid #E3EADE;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 44px -44px rgba(15, 68, 41, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 54px -40px rgba(15, 68, 41, 0.5);
}
.bl-card.is-hidden { display: none; }
.bl-card__visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #DCEAD4;
}
.bl-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--bl-ease);
}
.bl-card:hover .bl-card__img {
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .bl-featured__card:hover .bl-featured__img,
  .bl-card:hover .bl-card__img {
    transform: none;
  }
}
.bl-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #1C7C4A;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.bl-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bl-card__title {
  font-family: var(--bl-font-display);
  font-weight: 700;
  font-size: 19.5px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 10px 0;
  color: #13231A;
  text-wrap: balance;
}
.bl-card__excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: #5C6B60;
  font-weight: 500;
  margin: 0 0 18px;
  flex: 1;
}
.bl-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bl-card__more {
  margin-left: auto;
  color: #1C7C4A;
  font-size: 13.5px;
  font-weight: 700;
}

.bl-empty {
  text-align: center;
  padding: 56px 20px;
}
.bl-empty__icon {
  margin: 0 auto 12px;
  line-height: 0;
  width: fit-content;
}
.bl-empty__title {
  font-family: var(--bl-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #13231A;
}
.bl-empty__text {
  font-size: 14.5px;
  color: #8A998D;
  font-weight: 500;
  margin: 0;
}

/* Newsletter */
.bl-newsletter-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 32px) clamp(56px, 8vw, 96px);
}
.bl-newsletter {
  background: linear-gradient(135deg, #1C7C4A 0%, #168044 45%, #0E4429 100%);
  border-radius: 32px;
  padding: clamp(44px, 6vw, 68px) clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 90px -45px rgba(15, 68, 41, 0.7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.bl-newsletter__deco {
  position: absolute;
  top: -24px;
  right: 16px;
  line-height: 0;
  opacity: 0.35;
  pointer-events: none;
}
.bl-newsletter__deco .sc-icon-wrap--lg {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}
.bl-newsletter__title {
  font-family: var(--bl-font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #fff;
  text-wrap: balance;
  position: relative;
}
.bl-newsletter__lead {
  font-size: 16.5px;
  line-height: 1.5;
  color: #CFE8C5;
  font-weight: 500;
  margin: 0;
  max-width: 420px;
  position: relative;
}
.bl-newsletter__form-wrap { position: relative; }
.bl-newsletter__form { display: flex; flex-direction: column; gap: 12px; }
.bl-newsletter__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bl-newsletter__input {
  flex: 1;
  min-width: 200px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.bl-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.55); }
.bl-newsletter__input:focus {
  border-color: #9BE08A;
  background: rgba(255, 255, 255, 0.18);
}
.bl-newsletter__btn {
  background: #fff;
  color: #0E4429;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 26px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.bl-newsletter__btn:hover { transform: translateY(-1px); }
.bl-newsletter__err {
  margin: 0;
  font-size: 12.5px;
  color: #FFC9C0;
  font-weight: 600;
  min-height: 1px;
}
.bl-featured.is-hidden { display: none; }

@media (max-width: 1024px) {
  .bl-featured__card {
    grid-template-columns: 1fr;
  }
  .bl-featured__body {
    padding: clamp(24px, 4vw, 36px);
  }
  .bl-featured__excerpt {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .bl-hero {
    padding: calc(var(--nav-h) + 28px) 20px 24px;
  }
  .bl-badge {
    font-size: 11.5px;
    padding: 7px 14px;
    margin-bottom: 18px;
    max-width: min(100%, 420px);
  }
  .bl-hero__title {
    font-size: clamp(32px, 8.5vw, 44px);
    margin-bottom: 14px;
  }
  .bl-hero__lead {
    font-size: 16px;
    line-height: 1.55;
    max-width: 38ch;
  }

  .bl-featured {
    padding: 8px 20px 36px;
  }
  .bl-featured__visual,
  .bl-featured__img {
    min-height: 240px;
  }
  .bl-featured__body {
    padding: 24px;
  }
  .bl-featured__foot {
    flex-wrap: wrap;
    gap: 14px;
  }
  .bl-featured__cta {
    margin-left: 0;
    width: 100%;
  }

  .bl-grid-section {
    padding: 0 20px 48px;
  }
  .bl-grid-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 24px;
  }
  .bl-grid-head__title {
    justify-content: center;
  }
  .bl-filters {
    justify-content: center;
    gap: 8px;
  }
  .bl-filter {
    font-size: 12.5px;
    padding: 7px 13px;
  }
  .bl-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bl-newsletter-wrap {
    padding: 0 20px 48px;
  }
  .bl-newsletter {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 36px 24px;
    gap: 24px;
    text-align: center;
  }
  .bl-newsletter__lead {
    max-width: none;
    margin-inline: auto;
  }
  .bl-newsletter__row {
    flex-direction: column;
    align-items: stretch;
  }
  .bl-newsletter__input {
    min-width: 0;
    width: 100%;
  }
  .bl-newsletter__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .bl-hero__title {
    font-size: clamp(28px, 9vw, 36px);
  }
  .bl-hero__lead {
    max-width: none;
  }
  .bl-badge {
    font-size: 10.5px;
    letter-spacing: -0.01em;
  }
  .bl-featured__title {
    font-size: clamp(22px, 6.5vw, 28px);
  }
  .bl-grid-head__title {
    font-size: clamp(20px, 5.5vw, 24px);
  }
  .bl-newsletter__title {
    font-size: clamp(22px, 6.5vw, 28px);
  }
}
