/* ==========================================================
   ECOSAN — Site institucional
   Cores oficiais (manual da marca):
   Verde #3A513F · Bege #C3A589 · Branco #FFFFFF · Preto #000000
   Tipografia: Nunito (proxima de Gotham Rounded, oficial da marca)
   ========================================================== */

:root {
  --green-900: #1e2a22;
  --green-800: #2c3d30;
  --green-700: #3A513F;  /* cor oficial */
  --green-500: #5a7260;
  --green-300: #9fb5a3;

  --sand-500: #8f7458;
  --sand-400: #C3A589;   /* cor oficial */
  --sand-300: #d9c2ad;
  --sand-100: #f2e8dc;

  --cream-50: #fbf9f4;
  --cream-100: #f5f0e7;
  --cream-200: #e9dfce;

  --ink-900: #121611;
  --ink-700: #2d3830;
  --ink-500: #5a6660;
  --ink-300: #98a19b;

  --white: #ffffff;
  --black: #000000;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(58, 81, 63, 0.05);
  --shadow: 0 10px 30px rgba(58, 81, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(58, 81, 63, 0.14);

  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

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

a {
  color: var(--green-800);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--green-500); }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* =================== TIPOGRAFIA =================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}

p { color: var(--ink-700); }

.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--ink-700);
  max-width: 38em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-500);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--green-300); }

.small-note {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 1.2rem;
  font-style: italic;
}

/* =================== HEADER =================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--cream-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }

.brand img {
  height: 48px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .brand img { height: 40px; }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-header nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
}
.site-header nav a:hover { color: var(--green-700); }

.nav-cta {
  background: var(--green-700);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--green-900); }

@media (max-width: 720px) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* =================== BOTÕES =================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(58, 81, 63, 0.25);
}
.btn-primary:hover {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(58, 81, 63, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-ghost:hover { background: var(--green-700); color: var(--white); }

.btn-block { width: 100%; }

/* =================== HERO =================== */

.hero {
  padding: clamp(4rem, 3rem + 6vw, 7rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  background:
    radial-gradient(800px 500px at 85% -10%, rgba(74, 122, 94, 0.18), transparent 60%),
    linear-gradient(180deg, var(--cream-50), var(--cream-100));
  border-bottom: 1px solid var(--cream-200);
  position: relative;
  overflow: hidden;
}

/* Marca d'agua: simbolo da ECOSAN como watermark decorativo */
.hero-watermark {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: clamp(320px, 40vw, 540px);
  height: clamp(320px, 40vw, 540px);
  background-image: url("assets/logos/symbol-color.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; }

.section-watermark {
  position: absolute;
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 32vw, 420px);
  height: clamp(260px, 32vw, 420px);
  background-image: url("assets/logos/symbol-color.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
#atuacao { position: relative; overflow: hidden; }
#atuacao .container { position: relative; z-index: 1; }

.hero-content {
  text-align: left;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  margin-bottom: 1.4rem;
  max-width: 20ch;
}
.hero-content .lede {
  margin: 0 0 2rem;
  max-width: 44em;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.22rem);
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Faixa de diferenciais sob o hero */
.hero-highlights {
  background: var(--white);
  border-bottom: 1px solid var(--cream-200);
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
  position: relative;
  z-index: 2;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .highlights-grid { grid-template-columns: 1fr; }
}

.highlight {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding-left: 1.2rem;
  border-left: 2px solid var(--sand-400);
}

.highlight-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.3vw, 2.8rem);
  font-weight: 800;
  color: var(--green-700);
  line-height: 0.95;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.highlight-number small {
  font-size: 0.55em;
  color: var(--sand-500);
  margin-left: 0.08em;
}

.highlight-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-900);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.highlight-tag {
  display: inline-block;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-500);
  background: var(--sand-100);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.highlight-text p {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.check-list li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-500);
  font-weight: 700;
  font-size: 1rem;
}

/* =================== SEÇÕES =================== */

.section {
  padding: clamp(4rem, 3rem + 3vw, 6rem) 0;
}

.section-alt { background: var(--cream-100); }

.section-head {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

.prose p + p { margin-top: 1rem; }

/* =================== CARDS =================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-700);
  color: var(--cream-50);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.card p { font-size: 0.94rem; color: var(--ink-500); line-height: 1.55; }

/* =================== POR QUE IMPORTA (formato editorial com hooks) =================== */

.why-section {
  background: var(--cream-50);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream-200);
  box-shadow: 0 10px 40px rgba(58, 81, 63, 0.06);
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  padding: clamp(1.8rem, 1.4rem + 1vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  transition: background 0.3s var(--ease-out);
  border-right: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
@media (max-width: 900px) {
  .why-card:nth-child(2n) { border-right: none; }
  .why-card:nth-child(3n) { border-right: 1px solid var(--cream-200); }
}
@media (min-width: 901px) {
  .why-card:nth-child(3n) { border-right: none; }
  .why-card:nth-child(n+4) { border-bottom: none; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .why-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .why-card { border-right: none; }
  .why-card:last-child { border-bottom: none; }
}

.why-card:hover {
  background: var(--cream-50);
}

.why-number { display: none; }

.why-hook {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem);
  color: var(--green-700);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.4rem;
  display: block;
}
.why-hook small {
  display: block;
  font-size: 0.4em;
  font-weight: 700;
  color: var(--sand-500);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-900);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}

.why-footnote {
  text-align: left;
  margin: 2.5rem 0 0;
  max-width: 46em;
  font-size: 1.05rem;
  color: var(--ink-700);
  padding: 1.6rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--green-700);
  line-height: 1.6;
}
.why-footnote strong { color: var(--green-900); }

/* --- Carrossel "Por que importa" --- */

.why-carousel {
  margin-top: 2rem;
}

.why-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-200);
  background: var(--white);
  box-shadow: 0 10px 40px rgba(58, 81, 63, 0.06);
}

.why-carousel-track {
  display: flex;
  transition: transform 0.45s var(--ease-out);
}

.why-carousel-track > .why-card {
  flex: 0 0 33.333%;
  padding: clamp(1.8rem, 1.4rem + 1vw, 2.4rem);
  border-right: 1px solid var(--cream-200);
  border-bottom: none !important;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.3s var(--ease-out);
}
.why-carousel-track > .why-card:last-child {
  border-right: none;
}

.why-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-700);
  border: 1px solid var(--cream-200);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
  font-family: inherit;
  padding-bottom: 4px;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
  transform: scale(1.05);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s var(--ease-out);
}
.carousel-dot:hover { background: var(--sand-400); }
.carousel-dot.is-active {
  background: var(--green-700);
  width: 26px;
  border-radius: 999px;
}

/* =================== FAIXA DE IMAGEM (divisor visual) =================== */

.image-band {
  position: relative;
  height: clamp(220px, 32vh, 360px);
  overflow: hidden;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 38, 28, 0.35) 0%, rgba(20, 38, 28, 0.85) 100%),
    linear-gradient(90deg, rgba(20, 38, 28, 0.55) 0%, rgba(20, 38, 28, 0.15) 60%);
  pointer-events: none;
}
.image-band-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem) clamp(1rem, 4vw, 3rem);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  z-index: 1;
  max-width: 44em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.image-band-caption small {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.image-band-caption .container {
  padding: 0;
}

/* Hero com imagem de fundo sutil */
.hero.with-image {
  background:
    linear-gradient(180deg, rgba(251, 249, 244, 0.88) 0%, rgba(245, 240, 231, 0.94) 100%),
    url("assets/images/hero-campo.jpg") center/cover no-repeat;
}

/* =================== SERVIÇOS (formato editorial) =================== */

.services-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 1rem;
}
@media (max-width: 820px) {
  .services-groups { grid-template-columns: 1fr; gap: 2rem; }
}

.service-group {
  position: relative;
  padding-top: 1.4rem;
  border-top: 2px solid var(--green-700);
}

.service-group-head {
  margin-bottom: 1.4rem;
}
.service-group-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sand-500);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.4rem;
}
.service-group-head h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.service-group-head p {
  font-size: 0.95rem;
  color: var(--ink-500);
  max-width: 34em;
  line-height: 1.55;
}

.service-items {
  display: grid;
  gap: 0;
  margin: 0;
}
.service-items > div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--cream-200);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.2rem;
  align-items: baseline;
}
.service-items > div:last-child { border-bottom: none; }
@media (max-width: 520px) {
  .service-items > div { grid-template-columns: 1fr; gap: 0.3rem; }
}

.service-items dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-900);
  font-size: 0.98rem;
}
.service-items dd {
  font-size: 0.92rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
}

/* =================== SETORES ATENDIDOS =================== */

.sectors-section {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}

.sectors-featured {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}
.sectors-featured-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--sand-400);
}
.sectors-featured-head h3 {
  font-size: 1.25rem;
  color: var(--green-900);
  margin: 0;
}
.sectors-featured-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green-700);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.sectors-featured-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sectors-featured-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-700);
}
.sectors-featured-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sand-400);
  font-size: 0.8rem;
}
.sectors-featured-list strong {
  color: var(--green-900);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.sectors-pills {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sector-pill {
  background: var(--white);
  border: 1px solid var(--cream-200);
  color: var(--green-900);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
}
.sector-pill:hover {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

/* =================== LEGISLAÇÃO =================== */

.legis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.legis-col h3 {
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--sand-400);
  color: var(--green-700);
}
.legis-col ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.legis-col li {
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.legis-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sand-400);
}
.legis-col strong { color: var(--green-900); }

/* =================== CLIENTES =================== */

.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.client-card.placeholder {
  background: transparent;
  border-style: dashed;
  border-color: var(--green-300);
}
.client-card h3 { color: var(--green-900); }
.client-seg {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-400);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.client-card p:last-child { font-size: 0.94rem; color: var(--ink-500); }

/* =================== STEPS =================== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.steps li {
  background: var(--cream-100);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border-top: 3px solid var(--green-500);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sand-400);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: 0.93rem; color: var(--ink-500); }

/* =================== CONTATO =================== */

.section-dark {
  background: var(--green-900);
  color: var(--cream-100);
}
.section-dark h2 { color: var(--cream-50); }
.section-dark p, .section-dark .lede { color: var(--cream-200); }
.section-dark .lede.light { color: var(--cream-200); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.7rem;
}
.contact-list li { color: var(--cream-200); font-size: 0.97rem; }
.contact-list strong { color: var(--white); }
.contact-list a { color: var(--green-300); }
.contact-list a:hover { color: var(--cream-50); }

.contact-form {
  background: var(--cream-50);
  color: var(--ink-900);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}
.contact-form span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(74, 122, 94, 0.2);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 0.4rem;
}
.form-note.success { color: var(--green-700); font-weight: 600; }
.form-note.error { color: #b44; font-weight: 600; }

.form-privacy {
  font-size: 0.78rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}
.form-privacy a { color: var(--green-700); text-decoration: underline; }
.form-privacy a:hover { color: var(--green-900); }

.contact-channel {
  border: none;
  padding: 0;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.contact-channel legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.5rem;
  padding: 0;
}
.contact-channel .radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
  color: var(--green-900);
  font-weight: 600;
}
.contact-channel .radio span {
  color: inherit;
}
.contact-channel .radio:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}
.contact-channel .radio:hover span { color: var(--white); }
.contact-channel .radio:has(input:checked) {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}
.contact-channel .radio:has(input:checked) span { color: var(--white); }
.contact-channel input[type="radio"] { accent-color: var(--white); }

/* =================== FOOTER =================== */

.site-footer {
  background: var(--green-900);
  color: var(--cream-200);
  padding: 2.5rem 0 2rem;
  border-top: 3px solid var(--sand-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

.footer-brand img {
  height: 56px;
  width: auto;
  display: block;
}

.site-footer strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream-50);
  margin-left: 0.4rem;
}
.site-footer p {
  color: var(--cream-200);
  font-size: 0.88rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-links a {
  color: var(--cream-200);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }

.footer-copy p { text-align: right; }
@media (max-width: 720px) {
  .footer-copy p { text-align: left; }
}

/* =================== SOBRE + responsável técnica (sutil) =================== */

.sobre-intro {
  max-width: 46em;
}

.resp-inline {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--cream-100);
  border-left: 3px solid var(--sand-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 46em;
}
.resp-inline-title {
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 0.5rem !important;
}
.resp-inline-body {
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: var(--ink-700) !important;
  margin: 0 !important;
}

/* =================== DESTAQUE DE COBERTURA TERRITORIAL =================== */

.coverage-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  margin: 2.5rem 0;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(58, 81, 63, 0.22);
  position: relative;
  isolation: isolate;
}
.coverage-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(195, 165, 137, 0.25) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.coverage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/logos/symbol-white.png");
  background-repeat: no-repeat;
  background-position: -50px center;
  background-size: 420px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 820px) {
  .coverage-hero { grid-template-columns: 1fr; }
}

.coverage-big {
  padding: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 820px) {
  .coverage-big { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

.coverage-big-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-400);
}
.coverage-big-number {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 2.5rem + 4.5vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
.coverage-big-number small {
  font-size: 0.38em;
  font-weight: 700;
  color: var(--sand-400);
  letter-spacing: 0;
  margin-left: 0.1em;
}
.coverage-big-unit {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream-100);
  letter-spacing: 0.01em;
}

.coverage-compare {
  padding: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.coverage-compare-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-bottom: 1rem;
}
.coverage-compare ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
}
.coverage-compare li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: 1rem;
  color: var(--cream-100);
}
.coverage-compare li span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--sand-400);
  min-width: 52px;
  letter-spacing: -0.02em;
}
.coverage-compare li strong {
  color: var(--white);
  font-weight: 700;
}

/* =================== MAPA CENTRALIZADO (sem legenda lateral) =================== */

.atuacao-map-solo {
  max-width: 540px;
  margin: 2.5rem auto 0;
}
.atuacao-map-solo .atuacao-map-wrap {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.6rem);
}
.atuacao-map-solo .atuacao-map {
  width: 100%;
  height: auto;
  display: block;
}

/* =================== ESTADOS EM CARDS (novo layout Onde atuamos) =================== */

.states-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 1000px) { .states-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .states-row { grid-template-columns: 1fr; } }

.state-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  border-top: 3px solid var(--green-700);
}
.state-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-300);
  box-shadow: var(--shadow);
}

.state-card-head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--cream-200);
}
.state-sigla {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.02em;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  line-height: 1;
  flex-shrink: 0;
}
.state-card-head h3 {
  font-size: 1.05rem;
  color: var(--green-900);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}
.state-role {
  font-size: 0.8rem;
  color: var(--sand-500);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0.1rem 0 0;
  text-transform: uppercase;
}

.state-orgao {
  font-size: 0.88rem;
  color: var(--green-700);
  margin: 0;
  font-weight: 500;
}
.state-orgao strong { color: var(--green-900); font-weight: 700; }

.state-cities {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
  flex: 1;
}
.state-cities-more {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-500);
  font-style: italic;
}

.atuacao-footnote {
  margin-top: 2rem;
  padding: 1.3rem 1.6rem;
  background: var(--cream-100);
  border-left: 4px solid var(--sand-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.atuacao-footnote p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.6;
}
.atuacao-footnote strong { color: var(--green-900); font-weight: 700; }

/* =================== MAPA DE ATUAÇÃO (não usado por enquanto) =================== */

.atuacao-map-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  margin-top: 2.5rem;
}
@media (max-width: 820px) {
  .atuacao-map-grid { grid-template-columns: 1fr; }
}

.atuacao-map-wrap {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  position: relative;
}
.atuacao-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-country {
  fill: var(--white);
  stroke: var(--cream-200);
  stroke-width: 1.5;
}
.map-state {
  stroke: var(--white);
  stroke-width: 0.8;
  transition: fill 0.3s var(--ease-out);
  cursor: default;
}
.map-state-inactive { fill: var(--cream-200); }
.map-state-inactive:hover { fill: var(--cream-100); }
.map-state-primary { fill: var(--green-700); }
.map-state-primary:hover { fill: var(--green-800); }

.map-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.map-state-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  fill: var(--white);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.map-pins .map-pin {
  fill: var(--sand-400);
  stroke: var(--white);
  stroke-width: 2;
  transition: r 0.2s var(--ease-out), fill 0.2s var(--ease-out);
  animation: pin-pulse 2.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.map-pins .map-pin:hover {
  fill: var(--sand-500);
  r: 7;
  animation: none;
}
@keyframes pin-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(195,165,137,0)); }
  50%      { filter: drop-shadow(0 0 8px rgba(195,165,137,0.8)); }
}

@media (prefers-reduced-motion: reduce) {
  .map-pins .map-pin { animation: none; }
}

.map-compass { color: var(--ink-500); }

.atuacao-legend {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.atuacao-legend .cities-state {
  margin-bottom: 0.6rem;
}

.legend-block {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--cream-200);
}
.legend-block:last-of-type { border-bottom: none; padding-bottom: 0.3rem; }

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--cream-200);
}
.legend-dot-mt { background: var(--green-700); }
.legend-dot-pr { background: var(--green-700); }
.legend-dot-rs { background: var(--green-700); }

.legend-block strong {
  display: block;
  font-family: var(--font-display);
  color: var(--green-900);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.legend-block p {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.4;
}

.legend-cities {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--cream-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--sand-400);
}
.legend-cities-title {
  font-size: 0.75rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand-500) !important;
  margin: 0 0 0.5rem !important;
}
.legend-cities p {
  font-size: 0.88rem;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0;
}
.legend-cities-note {
  margin-top: 0.6rem !important;
  font-style: italic;
  color: var(--ink-500) !important;
  font-size: 0.85rem !important;
}

/* =================== CIDADES DE ATUAÇÃO =================== */

.cities-group {
  margin-top: 2.5rem;
}
.cities-group:first-of-type { margin-top: 1.5rem; }

.cities-state {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sand-400);
  display: inline-block;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

.city-chip {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.city-chip::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--sand-400);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease-out);
}
.city-chip:hover {
  border-color: var(--green-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.city-chip:hover::before { transform: scaleY(1); }

.city-name {
  font-weight: 700;
  color: var(--green-700);
  font-size: 1.05rem;
}
.city-count {
  font-size: 0.8rem;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.city-count strong { color: var(--sand-500); font-weight: 700; }

.cities-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-200);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 0.3rem;
}

/* =================== AMBIENTIS CTA =================== */

.ambientis-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ambientis-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--sand-400) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
@media (max-width: 820px) {
  .ambientis-banner { grid-template-columns: 1fr; }
}

.ambientis-banner .ambientis-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-400);
  background: rgba(195, 165, 137, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.ambientis-banner h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
.ambientis-banner p {
  color: var(--cream-100);
  margin-bottom: 1.5rem;
}
.ambientis-features {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.ambientis-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--cream-100);
}
.ambientis-features li::before {
  content: "→";
  color: var(--sand-400);
  font-weight: 700;
  flex-shrink: 0;
}

/* =================== NEWS FEED =================== */

.news-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.news-item {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: all 0.25s var(--ease-out);
}
.news-item:hover {
  border-color: var(--sand-400);
  transform: translateX(4px);
}
.news-date {
  flex-shrink: 0;
  width: 68px;
  font-size: 0.78rem;
  color: var(--sand-500);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-title {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.4;
  margin: 0;
}
.news-title a { color: inherit; }
.news-title a:hover { color: var(--green-700); }
.news-source {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}
.news-loading, .news-error {
  text-align: center;
  padding: 2rem;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.news-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Pagina radar.html */
.radar-hero {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
  border-bottom: 1px solid var(--cream-200);
}

.radar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .radar-grid { grid-template-columns: 1fr; } }

.radar-sidebar h3 {
  font-size: 0.92rem;
  color: var(--green-900);
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sand-400);
  letter-spacing: 0.02em;
}
.radar-sidebar h3:first-child { margin-top: 0; }

.radar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.radar-links li {
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid var(--cream-100);
}
.radar-links li:last-child { border-bottom: none; }
.radar-links a {
  color: var(--green-700);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.radar-links a:hover { color: var(--green-900); }
.radar-links a::after {
  content: "↗";
  color: var(--ink-300);
  font-size: 0.8rem;
}
.radar-links small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* =================== SCROLL REVEAL =================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.4s; }

/* =================== BLOG =================== */

.blog-hero {
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
  border-bottom: 1px solid var(--cream-200);
}
.blog-hero h1 { max-width: 22ch; margin-bottom: 1rem; }
.blog-hero .lede { max-width: 42ch; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
}
.post-card .post-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.post-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0;
}
.post-card h3 a { color: var(--green-900); }
.post-card h3 a:hover { color: var(--green-700); }
.post-card p {
  font-size: 0.93rem;
  color: var(--ink-500);
  line-height: 1.55;
  flex: 1;
}
.post-card .post-foot {
  display: flex;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-500);
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--cream-100);
}

.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--sand-100);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.post-date { color: var(--ink-500); }

/* --- Página individual do post --- */

.post-article {
  padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
}

.post-header {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--green-700); }
.breadcrumb a:hover { color: var(--green-900); }

.post-header h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0.6rem 0 1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-500);
  flex-wrap: wrap;
}

.post-content {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-700);
}
.post-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--green-900);
}
.post-content h3 {
  font-size: 1.15rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--green-700);
}
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.4rem 1.2rem;
  padding-left: 1rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { color: var(--green-900); font-weight: 600; }
.post-content blockquote {
  border-left: 3px solid var(--sand-400);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 1.6rem 0;
  color: var(--ink-700);
  font-style: italic;
  background: var(--cream-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content a {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: var(--green-300);
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--green-900); text-decoration-color: var(--green-700); }

.post-cta {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--cream-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--green-500);
}
.post-cta h3 { color: var(--green-900); margin-bottom: 0.6rem; }
.post-cta p { margin-bottom: 1.2rem; }

/* =================== REDUCED MOTION =================== */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
