:root {
  --blue-900: #1f3b2e;
  --blue-950: #112f27;
  --green-900: #1f3b2e;
  --green-700: #59632f;
  --green-500: #59632f;
  --green-100: #eee8d9;
  --soft: #f8f5ee;
  --white: #ffffff;
  --ink: #1f2a21;
  --text: #5f625b;
  --line: #d9d0bd;
  --shadow: 0 18px 50px rgba(75, 53, 38, .11);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: white;
  padding: 12px 16px;
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 59, 46, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.24);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong { font-family: "Montserrat", sans-serif; font-size: .9rem; }
.brand-text small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
}

.main-nav > a:not(.btn):hover { color: white; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 9px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: white;
  margin: 6px 0;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .84rem; }
.btn-primary { background: var(--green-500); color: white; }
.btn-primary:hover { background: #6b7639; }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: white; }
.btn-full { width: 100%; }

.hero {
  position: relative;
  min-height: 710px;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 25%, rgba(183,166,126,.20), transparent 28%),
    linear-gradient(110deg, rgba(17,47,39,.99), rgba(31,59,46,.96) 56%, rgba(89,99,47,.84));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,47,39,.66) 0%, rgba(17,47,39,.36) 55%, rgba(17,47,39,.16) 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 90px 0;
}

.eyebrow-pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #d6c49c;
  font-size: .78rem;
  font-weight: 700;
}

.hero-brandline {
  margin: 44px 0 14px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  letter-spacing: -.02em;
}
.hero-brandline span { color: var(--green-500); }

.hero h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.hero-lead {
  max-width: 780px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.section { padding: 104px 0; }
.section-white { background: white; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--blue-950); color: white; }

.section-kicker {
  margin-bottom: 16px;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
}
.section-kicker.light { color: #d6c49c; }

.section-intro { max-width: 830px; margin-bottom: 52px; }
.section-intro h2,
.about-copy h2,
.technology-copy h2,
.sustainability-inner h2,
.cta-grid h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.section-intro > p,
.technology-copy > p {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 1.04rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 78px;
  align-items: center;
}

.about-visual { position: relative; }
.about-photo-placeholder {
  min-height: 440px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31,59,46,.84), rgba(89,99,47,.72)),
    #e6e0d3;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
}
.experience-badge {
  position: absolute;
  left: 30px;
  right: auto;
  bottom: 24px;
  width: 146px;
  padding: 24px;
  border-radius: 14px;
  background: #4b3526;
  color: white;
  box-shadow: var(--shadow);
  text-shadow: none;
}
.experience-badge strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  line-height: 1.08;
}
.experience-badge span {
  display: block;
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.8;
}

.about-copy .lead {
  color: var(--text);
  font-size: 1.08rem;
}
.about-copy p { color: var(--text); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 390px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eee8d9;
  color: var(--green-700);
  font-weight: 700;
  font-size: .8rem;
}
.service-card h3 { margin: 26px 0 10px; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--text); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3eee3;
  color: var(--green-700);
  font-size: .72rem;
}

.differential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.differential-item {
  min-height: 98px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.differential-item span {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #77733a, #5f622f);
  border: 1px solid rgba(183, 166, 126, .34);
  color: #f8f5ee;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(17, 47, 39, .18);
}
.differential-item strong { font-size: .9rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.project-visual {
  min-height: 210px;
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(31,59,46,.82), rgba(89,99,47,.72)),
    #e6e0d3;
}
.project-visual span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #59632f;
  color: white;
  font-size: .72rem;
  font-weight: 700;
}
.project-body { padding: 22px; }
.project-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.project-body p { color: var(--text); font-size: .9rem; }
.project-body a { color: var(--green-500); font-weight: 700; font-size: .9rem; }
.project-card > .project-body > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.project-card:hover {
  transform: translateY(-2px);
}
.project-card:focus-within {
  outline: 2px solid rgba(28, 107, 57, .38);
  outline-offset: 3px;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.sector-box {
  min-height: 112px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .88rem;
}

.technology-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 84px;
  align-items: center;
}
.technology-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.technology-list div {
  min-height: 100px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: .84rem;
}

.sustainability-section {
  padding: 120px 0;
  color: white;
  text-align: center;
  background: var(--blue-950);
}
.sustainability-inner { max-width: 820px; }
.sustainability-inner p {
  margin: 26px auto 0;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.testimonial-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.stars { color: var(--green-500); letter-spacing: 4px; }
.testimonial-card blockquote {
  margin: 18px 0 24px;
  color: var(--ink);
  font-size: 1rem;
}
.testimonial-card strong,
.testimonial-card span { display: block; }
.testimonial-card span { color: var(--text); font-size: .85rem; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: .72rem;
}
.article-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f2e8;
  color: var(--green-500);
  font-weight: 700;
}
.article-card h3 { margin: 20px 0 10px; font-size: 1.12rem; }
.article-card p { margin: 0; color: var(--text); font-size: .9rem; }

.cta-section {
  padding: 100px 0;
  background: var(--blue-900);
  color: white;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 80px;
  align-items: center;
}
.cta-grid p { color: rgba(255,255,255,.72); }
.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}
.contact-card > span {
  display: block;
  color: var(--text);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact-card > a:not(.btn) {
  display: block;
  margin-top: 9px;
  font-weight: 700;
  word-break: break-word;
}
.contact-card .btn { margin-top: 22px; }

.site-footer {
  padding: 70px 0 26px;
  background: #112f27;
  color: rgba(255,255,255,.72);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .55fr .55fr;
  gap: 70px;
}
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid strong { color: white; margin-bottom: 8px; }
.footer-grid p { max-width: 420px; color: rgba(255,255,255,.48); }
.footer-brand { margin-bottom: 10px; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.38);
  font-size: .8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(4, 1fr); }
  .differential-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border-radius: 16px;
    background: #1f3b2e;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 8px; }

  .about-grid,
  .technology-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 70px; }
  .brand-text small { display: none; }

  .hero { min-height: 680px; }
  .hero-inner { padding: 72px 0; }
  .hero-brandline { margin-top: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 76px 0; }

  .service-grid,
  .project-grid,
  .differential-grid,
  .testimonial-grid,
  .article-grid,
  .technology-list,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-placeholder { min-height: 320px; }
  .experience-badge {
    left: 18px;
    right: auto;
    bottom: 18px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Correção visual: reforça as caixas de conteúdo */
.service-card,
.project-card,
.testimonial-card,
.article-card,
.sector-box,
.technology-list div,
.contact-card {
  border: 1px solid #d9d0bd;
  box-shadow: 0 8px 24px rgba(16, 55, 39, .08);
}

.service-card,
.project-card,
.testimonial-card,
.contact-card {
  background: #ffffff;
}

.article-card {
  background: #fdfefd;
}

.sector-box,
.technology-list div {
  background: #ffffff;
}

.service-card:hover,
.project-card:hover,
.testimonial-card:hover,
.article-card:hover,
.sector-box:hover,
.technology-list div:hover {
  border-color: rgba(89, 99, 47, .48);
  box-shadow: 0 14px 34px rgba(75, 53, 38, .13);
}

.project-body {
  background: #ffffff;
  border-top: 1px solid #e4ebe6;
}

.differential-item {
  background: rgba(255,255,255,.095);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.differential-item:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(81,191,90,.34);
}

.tags span,
.article-meta span {
  border: 1px solid rgba(28, 107, 57, .08);
}

@media (max-width: 640px) {
  .service-card,
  .project-card,
  .testimonial-card,
  .article-card,
  .sector-box,
  .technology-list div,
  .contact-card {
    box-shadow: 0 6px 20px rgba(16, 55, 39, .08);
  }
}


/* Hero v2 — alinhado ao layout de referência */
.hero {
  min-height: 715px;
}

.hero-inner {
  max-width: 1180px;
  padding-top: 86px;
  padding-bottom: 86px;
}

.eyebrow-pill {
  margin-bottom: 44px;
}

.hero-company {
  max-width: 900px;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.95rem, 2.8vw, 2.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  color: #ffffff;
}

.hero-company span {
  color: #ffffff;
}

.hero-company em {
  font-style: normal;
  color: var(--green-500);
}

.hero-tagline {
  max-width: 850px;
  margin: 22px 0 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem) !important;
  font-weight: 600;
  line-height: 1.22 !important;
  letter-spacing: -.025em !important;
  color: #ffffff;
}

.hero-lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.62;
}

.hero-actions {
  margin-top: 30px;
}

@media (max-width: 640px) {
  .hero {
    min-height: 650px;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .eyebrow-pill {
    margin-bottom: 30px;
  }

  .hero-company {
    font-size: clamp(1.65rem, 8vw, 2.1rem) !important;
  }

  .hero-tagline {
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
  }
}


/* Conhecimento técnico: legislação, atualizações e FAQ */
.knowledge-heading {
  display: grid;
  grid-template-columns: 1.08fr .72fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 28px;
}

.knowledge-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.knowledge-heading > p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.knowledge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.knowledge-tabs span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-700);
  font-size: .76rem;
  font-weight: 700;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.knowledge-card {
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9d0bd;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.knowledge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28,107,57,.38);
  box-shadow: 0 14px 34px rgba(16,55,39,.12);
}

.knowledge-card.featured {
  background: linear-gradient(145deg, #1f3b2e, #1f3b2e);
  color: #fff;
  border-color: transparent;
}

.knowledge-meta {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: .7rem;
}

.knowledge-card.featured .knowledge-meta {
  color: rgba(255,255,255,.62);
}

.knowledge-type {
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.knowledge-type.law {
  background: #e8f3e9;
  color: #59632f;
}

.knowledge-type.update {
  background: rgba(255,255,255,.13);
  color: #d7f0bd;
}

.knowledge-type.faq {
  background: #e9f1f4;
  color: #1f3b2e;
}

.knowledge-card h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.knowledge-card p {
  margin: 0;
  color: var(--text);
  font-size: .9rem;
}

.knowledge-card.featured p {
  color: rgba(255,255,255,.76);
}

.legal-ref {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #4f6258;
  font-size: .78rem;
}

.knowledge-card.featured .legal-ref {
  border-color: rgba(255,255,255,.13);
  color: rgba(255,255,255,.68);
}

.knowledge-card > a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-500);
  font-size: .82rem;
  font-weight: 700;
}

.knowledge-card.featured > a {
  color: #d7f0bd;
}

.legal-note {
  margin: 26px 0 0;
  color: var(--text);
  font-size: .76rem;
}

@media (max-width: 960px) {
  .knowledge-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card {
    min-height: 0;
  }
}


/* Acervo e páginas de projetos */
.projects-more {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.btn-on-light {
  border-color: rgba(13,79,43,.22);
  color: var(--green-700);
  background: #fff;
}

.project-page-hero {
  padding: 150px 0 72px;
  background:
    radial-gradient(circle at 75% 20%, rgba(67,125,94,.16), transparent 34%),
    linear-gradient(180deg, #f4f8f5 0%, #ffffff 100%);
}

.project-page-hero .section-kicker { margin-bottom: 16px; }

.project-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.project-page-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 42px;
  align-items: start;
}

.project-detail-main h2,
.project-detail-side h2 {
  margin-top: 0;
}

.project-detail-block + .project-detail-block { margin-top: 46px; }

.project-detail-block p {
  color: var(--text);
  line-height: 1.8;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.activity-list div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
}

.project-detail-side {
  position: sticky;
  top: 104px;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.detail-panel + .detail-panel { margin-top: 18px; }

.detail-panel p {
  margin-bottom: 0;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.7;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.project-gallery-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.project-gallery-section > p {
  max-width: 760px;
}

.project-gallery-section .project-gallery-item {
  min-height: 240px;
}

.project-gallery-section .project-gallery-photo {
  min-height: 260px;
  box-shadow: 0 12px 30px rgba(75, 53, 38, .10);
}

.project-gallery-section .project-gallery-photo img {
  transition: transform .28s ease;
}

.project-gallery-section .project-gallery-photo:hover img {
  transform: scale(1.025);
}

.project-gallery-item {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13,79,43,.80), rgba(18,63,77,.72)),
    #e6e0d3;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.about-photo-field {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.about-photo-field img {
  width: 100%;
  height: 440px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.about-photo-field .about-photo-helmet-white {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: grayscale(1) brightness(1.58) contrast(.84);
  clip-path: polygon(
    56.8% 45.8%,
    56.5% 39.2%,
    57.4% 32.5%,
    59.2% 27.4%,
    62.2% 23.5%,
    66.0% 21.4%,
    70.3% 21.1%,
    74.3% 22.4%,
    77.7% 25.1%,
    79.6% 28.3%,
    79.0% 31.5%,
    76.6% 33.9%,
    74.6% 35.5%,
    76.0% 37.3%,
    74.4% 39.0%,
    69.7% 38.4%,
    65.4% 40.7%,
    61.5% 43.9%,
    58.2% 47.2%
  );
}

.project-gallery-photo {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 4 / 3;
  background: #e6e0d3;
}

.project-gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-gallery-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 34px 15px 14px;
  background: linear-gradient(180deg, transparent, rgba(8, 34, 27, .86));
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .about-photo-field img {
    height: 380px;
  }
}

.project-contact-box {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1f3b2e, #1f3b2e);
  color: #fff;
}

.project-contact-box p {
  color: rgba(255,255,255,.75);
}

.project-contact-box .btn { margin-top: 8px; }

.archive-intro {
  max-width: 780px;
}

@media (max-width: 900px) {
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-detail-side { position: static; }
}

@media (max-width: 640px) {
  .project-page-hero { padding-top: 120px; }
  .activity-list,
  .project-gallery { grid-template-columns: 1fr; }
}


/* Navegação temática das páginas de serviços */
.service-topic-nav {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.07);
}

.service-topic-nav-title {
  padding: 17px 18px;
  background: linear-gradient(135deg, #1f3b2e, #176b3b);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.service-topic-nav a {
  display: block;
  position: relative;
  padding: 13px 16px 13px 20px;
  border-bottom: 1px solid #e7ece8;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.35;
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

.service-topic-nav a:last-child {
  border-bottom: 0;
}

.service-topic-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.service-topic-nav a:hover {
  padding-left: 24px;
  background: #f3f8f4;
  color: var(--green-700);
}

.service-topic-nav a.active {
  background: #edf6ef;
  color: var(--green-700);
  font-weight: 700;
}

.service-topic-nav a.active::before {
  background: var(--green-500);
}


/* Base legal e normativa dos serviços */
.legal-framework-section {
  background: #f4f8f5;
  border-top: 1px solid #e4ebe6;
}

.legal-framework-head {
  display: grid;
  grid-template-columns: 1.05fr .75fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 28px;
}

.legal-framework-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal-framework-head > p {
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.7;
}

.legal-application {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--green-500);
  border-radius: 0 14px 14px 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16,55,39,.05);
}

.legal-application strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-700);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-application p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.legal-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-framework-card {
  min-height: 305px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9d0bd;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.06);
}

.legal-framework-card.featured {
  border-color: transparent;
  background: linear-gradient(145deg, #1f3b2e, #1f3b2e);
  color: #fff;
}

.legal-badge {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.legal-framework-card.featured .legal-badge {
  background: rgba(255,255,255,.13);
  color: #d7f0bd;
}

.legal-framework-card h3 {
  margin: 20px 0 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-framework-card p {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.65;
}

.legal-framework-card.featured p {
  color: rgba(255,255,255,.76);
}

.legal-framework-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.legal-framework-card.featured a {
  color: #d7f0bd;
}

.legal-warning {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid #ded6c5;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.legal-warning strong {
  color: var(--ink);
}

.legal-warning p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .legal-framework-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-framework-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .legal-framework-grid {
    grid-template-columns: 1fr;
  }

  .legal-framework-card {
    min-height: 0;
  }
}


/* Consulta de legislação estadual */
.state-law-box {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid #d9d0bd;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16,55,39,.07);
}

.state-law-copy {
  max-width: 820px;
}

.state-law-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.state-law-copy p {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.state-law-control {
  margin-top: 22px;
  max-width: 420px;
}

.state-law-control label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}

.state-law-control select {
  width: 100%;
  padding: 13px 42px 13px 14px;
  border: 1px solid #c9d5cd;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}

.state-law-control select:focus {
  outline: 2px solid rgba(28,107,57,.18);
  border-color: var(--green-500);
}

.state-law-result {
  margin-top: 20px;
}

.state-law-result > p {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  font-size: .86rem;
}

.state-law-card {
  padding: 20px;
  border: 1px solid #d5e0d8;
  border-radius: 14px;
  background: #f9fcfa;
}

.state-law-card h4 {
  margin: 16px 0 10px;
  font-size: 1.05rem;
}

.state-law-card p,
.state-law-empty p {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.65;
}

.state-law-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-500);
  font-size: .8rem;
  font-weight: 700;
}

.state-law-empty {
  padding: 18px;
  border: 1px dashed #c9d5cd;
  border-radius: 12px;
  background: #fbfdfb;
}

.state-law-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.state-law-disclaimer {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #ead9ad;
}

.state-law-disclaimer strong {
  color: #6b531a;
  font-size: .82rem;
}

.state-law-disclaimer p {
  margin: 6px 0 0;
  color: #6a6251;
  font-size: .78rem;
  line-height: 1.6;
}


/* Plano para Salvamento de Fauna e produtos cartográficos */
.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--green-500);
  font-size: .86rem;
  font-weight: 700;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.process-flow > div {
  min-height: 200px;
  padding: 18px;
  border: 1px solid #ded6c5;
  border-radius: 16px;
  background: #fff;
}

.process-flow span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 700;
}

.process-flow strong {
  display: block;
  color: var(--ink);
  font-size: .92rem;
}

.process-flow p {
  margin: 8px 0 0;
  font-size: .8rem;
  line-height: 1.55;
}

.process-note {
  margin-top: 14px !important;
  font-size: .78rem;
}

.requirement-grid,
.commercial-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.requirement-grid > div,
.commercial-scope-grid > div {
  padding: 18px;
  border: 1px solid #ded6c5;
  border-radius: 14px;
  background: #fbfdfb;
}

.requirement-grid strong,
.commercial-scope-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .88rem;
}

.requirement-grid span,
.commercial-scope-grid span {
  color: var(--text);
  font-size: .79rem;
  line-height: 1.55;
}

.map-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 22px;
}

.map-product-card {
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9d0bd;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.06);
}

.map-product-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .75rem;
  font-weight: 700;
}

.map-product-card h3 {
  margin: 22px 0 10px;
  font-size: 1.04rem;
}

.map-product-card p {
  margin: 0;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.65;
}

.map-product-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.map-standard-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--green-500);
  border-radius: 0 12px 12px 0;
  background: #f6faf7;
}

.map-standard-note strong {
  color: var(--green-700);
  font-size: .82rem;
}

.map-standard-note p {
  margin: 5px 0 0;
  font-size: .8rem;
  line-height: 1.6;
}

.map-service-cta {
  margin-top: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #d9d0bd;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.06);
}

.map-service-cta strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.map-service-cta p {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--text);
  font-size: .86rem;
}

.map-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 1000px) {
  .process-flow {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .requirement-grid,
  .commercial-scope-grid,
  .map-product-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .map-service-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .process-flow,
  .requirement-grid,
  .commercial-scope-grid,
  .map-product-grid {
    grid-template-columns: 1fr;
  }

  .map-service-actions {
    width: 100%;
    flex-direction: column;
  }

  .map-service-actions .btn {
    width: 100%;
  }
}


/* Resgate de fauna: requisitos prévios e integração de serviços */
.rescue-prereq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}

.rescue-prereq-card {
  min-height: 210px;
  padding: 20px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  border: 1px solid #ded6c5;
  border-radius: 16px;
  background: #fff;
}

.rescue-prereq-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 700;
}

.rescue-prereq-card strong {
  display: block;
  color: var(--ink);
  font-size: .94rem;
}

.rescue-prereq-card p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.6;
}

.rescue-prereq-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.rescue-legal-note {
  margin-top: 16px;
  padding: 17px 18px;
  border-left: 4px solid #d1a43a;
  border-radius: 0 12px 12px 0;
  background: #fff8e8;
}

.rescue-legal-note strong {
  color: #6b531a;
  font-size: .82rem;
}

.rescue-legal-note p {
  margin: 5px 0 0;
  color: #6a6251;
  font-size: .78rem;
  line-height: 1.6;
}

.integrated-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.integrated-service-links a {
  padding: 17px 18px;
  border: 1px solid #d7e1da;
  border-radius: 14px;
  background: #fbfdfb;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.integrated-service-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(28,107,57,.35);
  box-shadow: 0 8px 20px rgba(16,55,39,.07);
}

.integrated-service-links strong,
.integrated-service-links span {
  display: block;
}

.integrated-service-links strong {
  color: var(--ink);
  font-size: .88rem;
}

.integrated-service-links span {
  margin-top: 4px;
  color: var(--text);
  font-size: .76rem;
}

.soltura-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.soltura-grid > div {
  padding: 17px 18px;
  border: 1px solid #ded6c5;
  border-radius: 14px;
  background: #fbfdfb;
}

.soltura-grid strong,
.soltura-grid span {
  display: block;
}

.soltura-grid strong {
  color: var(--ink);
  font-size: .87rem;
}

.soltura-grid span {
  margin-top: 5px;
  color: var(--text);
  font-size: .77rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .rescue-prereq-grid,
  .integrated-service-links,
  .soltura-grid {
    grid-template-columns: 1fr;
  }

  .rescue-prereq-card {
    grid-template-columns: 36px 1fr;
  }

  .rescue-prereq-card > span {
    width: 36px;
    height: 36px;
  }
}


/* Levantamento faunístico: listas de espécies ameaçadas */
.threat-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}

.threat-list-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid #ded6c5;
  border-radius: 16px;
  background: #fff;
}

.threat-list-card.featured {
  border-color: transparent;
  background: linear-gradient(145deg, #1f3b2e, #1f3b2e);
  color: #fff;
}

.threat-list-card.featured .legal-badge {
  background: rgba(255,255,255,.13);
  color: #d7f0bd;
}

.threat-list-card h3 {
  margin: 20px 0 10px;
  font-size: 1.04rem;
}

.threat-list-card p {
  margin: 0;
  color: var(--text);
  font-size: .83rem;
  line-height: 1.65;
}

.threat-list-card.featured p {
  color: rgba(255,255,255,.76);
}

.threat-list-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.threat-list-card.featured a {
  color: #d7f0bd;
}

.threat-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.threat-categories span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}

.threat-analysis-box {
  margin-top: 16px;
  padding: 20px 22px;
  border-left: 4px solid var(--green-500);
  border-radius: 0 14px 14px 0;
  background: #f4f8f5;
}

.threat-analysis-box strong {
  color: var(--green-700);
  font-size: .84rem;
}

.threat-analysis-box p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.65;
}

.threat-disclaimer {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #e5d8b6;
  border-radius: 12px;
  background: #fff9ec;
}

.threat-disclaimer strong {
  color: #6b531a;
  font-size: .8rem;
}

.threat-disclaimer p {
  margin: 5px 0 0;
  color: #6a6251;
  font-size: .76rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .threat-list-grid {
    grid-template-columns: 1fr;
  }

  .threat-list-card {
    min-height: 0;
  }
}


/* Base Legal Ambiental — busca inteligente orientativa */
.knowledge-search-teaser {
  margin: 4px 0 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr .8fr;
  gap: 38px;
  align-items: center;
  border: 1px solid #d9d0bd;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbf8, #eef5f0);
  box-shadow: 0 10px 30px rgba(16,55,39,.07);
}

.knowledge-search-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #dff1e2;
  color: var(--green-700);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.knowledge-search-copy h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.knowledge-search-copy p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.7;
}

.knowledge-search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.knowledge-search-examples a {
  padding: 7px 10px;
  border: 1px solid #d5e2d8;
  border-radius: 999px;
  background: #fff;
  color: var(--green-700);
  font-size: .74rem;
  font-weight: 700;
}

.knowledge-search-form {
  padding: 20px;
  border: 1px solid #d3dfd6;
  border-radius: 16px;
  background: #fff;
}

.knowledge-search-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}

.knowledge-search-form input,
.knowledge-search-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd7cf;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
}

.knowledge-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.legal-search-hero {
  padding: 148px 0 62px;
  background:
    radial-gradient(circle at 78% 16%, rgba(74,151,94,.18), transparent 28%),
    linear-gradient(145deg, #112f27, #1f3b2e 58%, #1f3b2e);
  color: #fff;
}

.legal-search-hero-copy {
  max-width: 850px;
}

.legal-search-hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.legal-search-hero-copy > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 1.04rem;
  line-height: 1.7;
}

.legal-search-form {
  margin-top: 34px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

/* A pergunta ocupa uma linha inteira; os filtros se reorganizam conforme a largura real do card. */
.legal-search-form > .legal-search-field:first-child {
  grid-column: 1 / -1;
}

.legal-search-field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.78);
  font-size: .74rem;
  font-weight: 700;
}

.legal-search-field input,
.legal-search-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}

.legal-search-submit {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.legal-search-scope-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  line-height: 1.55;
}

.legal-quick-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.legal-quick-search > span {
  color: rgba(255,255,255,.56);
  font-size: .74rem;
}

.legal-quick-search button {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
}

.legal-results-section {
  min-height: 520px;
}

.legal-search-status {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.legal-search-status h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.legal-verified-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf6ef;
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.legal-query-context {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f1f6f2;
  color: var(--text);
  font-size: .8rem;
}

.legal-professional-note {
  margin-bottom: 16px;
  padding: 17px 18px;
  border: 1px solid #ead9ad;
  border-radius: 12px;
  background: #fff8e8;
}

.legal-professional-note strong {
  color: #6b531a;
  font-size: .82rem;
}

.legal-professional-note p {
  margin: 5px 0 0;
  color: #6a6251;
  font-size: .78rem;
  line-height: 1.6;
}

.legal-search-results {
  display: grid;
  gap: 14px;
}

.legal-result-card {
  padding: 24px;
  border: 1px solid #d2ddd5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(16,55,39,.055);
}

.legal-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: .7rem;
}

.legal-result-scope {
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.legal-result-scope.federal {
  background: #e9f1f4;
  color: #1f3b2e;
}

.legal-result-scope.state {
  background: #e8f3e9;
  color: var(--green-700);
}

.legal-result-scope.municipal {
  background: #f3eee3;
  color: #735d2d;
}

.legal-result-card h3 {
  margin: 16px 0;
  font-size: 1.16rem;
}

.legal-result-block + .legal-result-block {
  margin-top: 13px;
}

.legal-result-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: .78rem;
}

.legal-result-block p {
  margin: 0;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.65;
}

.legal-result-footer {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ece6da;
}

.legal-result-footer span {
  color: var(--text);
  font-size: .7rem;
}

.legal-result-footer a {
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.legal-search-empty {
  padding: 28px;
  border: 1px dashed #cbd8ce;
  border-radius: 16px;
  background: #fbfdfb;
}

.legal-search-empty strong {
  color: var(--ink);
}

.legal-search-empty p {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--text);
  line-height: 1.65;
}

.related-services-box {
  margin-top: 22px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f3b2e, #1f3b2e);
  color: #fff;
}

.related-services-box span,
.related-services-box strong {
  display: block;
}

.related-services-box span {
  margin-bottom: 5px;
  color: #bde0c1;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.related-services-box strong {
  font-size: .95rem;
  line-height: 1.5;
}

.related-services-box [data-related-service-links] {
  display: grid;
  gap: 7px;
}

.related-services-box a {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .79rem;
  font-weight: 700;
}

.legal-method-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.legal-method-grid h2,
.legal-ai-note h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.legal-method-cards {
  display: grid;
  gap: 12px;
}

.legal-method-cards article {
  padding: 20px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  border: 1px solid #d7e1da;
  border-radius: 14px;
  background: #fff;
}

.legal-method-cards article > span {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 700;
}

.legal-method-cards strong {
  color: var(--ink);
}

.legal-method-cards p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: .82rem;
}

.legal-ai-note {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 60px;
  align-items: center;
}

.legal-ai-note > p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .knowledge-search-teaser,
  .legal-search-form,
  .legal-method-grid,
  .legal-ai-note {
    grid-template-columns: 1fr;
  }

  .legal-search-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-services-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .knowledge-search-row {
    grid-template-columns: 1fr;
  }

  .legal-search-hero {
    padding-top: 122px;
  }

  .legal-search-form {
    padding: 14px;
  }

  .legal-result-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Conhecimento Técnico — caminhos Base Legal + FAQ */
.knowledge-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.knowledge-path-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  border: 1px solid #ded6c5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.knowledge-path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(28,107,57,.34);
  box-shadow: 0 12px 28px rgba(16,55,39,.09);
}

.knowledge-path-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 700;
}

.knowledge-path-card small {
  color: var(--green-500);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.knowledge-path-card h3 {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 1.06rem;
}

.knowledge-path-card p {
  margin: 0;
  color: var(--text);
  font-size: .82rem;
  line-height: 1.6;
}

.knowledge-path-card strong {
  display: block;
  margin-top: 14px;
  color: var(--green-700);
  font-size: .78rem;
}

.faq-home-preview {
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid #ded6c5;
  border-radius: 17px;
  background: #f7faf8;
}

.faq-home-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.faq-home-head span {
  color: var(--green-500);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.faq-home-head h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.faq-home-head > a {
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 700;
}

.faq-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.faq-home-grid a {
  padding: 13px 14px;
  border: 1px solid #e5ded0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
}

/* Página Dúvidas Frequentes */
.faq-hero {
  padding: 148px 0 54px;
  background:
    radial-gradient(circle at 82% 18%, rgba(74,151,94,.16), transparent 29%),
    linear-gradient(145deg, #112f27, #1f3b2e 58%, #1f3b2e);
  color: #fff;
}

.faq-hero-copy {
  max-width: 850px;
}

.faq-hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: .97;
  letter-spacing: -.055em;
}

.faq-hero-copy > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  line-height: 1.7;
}

.faq-search-panel {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.faq-search-field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.76);
  font-size: .75rem;
  font-weight: 700;
}

.faq-search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.faq-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.faq-filter-row button {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
}

.faq-filter-row button.active {
  background: #fff;
  color: var(--green-700);
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 34px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 104px;
}

.faq-side-card {
  padding: 22px;
  border-radius: 17px;
  background: linear-gradient(145deg, #1f3b2e, #1f3b2e);
  color: #fff;
}

.faq-side-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.faq-side-card p {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.6;
}

.faq-side-card .btn {
  margin-top: 8px;
}

.faq-side-note {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d9e3dc;
  border-radius: 13px;
  background: #f8fbf9;
}

.faq-side-note strong {
  color: var(--ink);
  font-size: .8rem;
}

.faq-side-note p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: .75rem;
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 11px;
}

.faq-item {
  border: 1px solid #d5dfd8;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-500);
  font-size: 1.3rem;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item[open] summary {
  background: #f6faf7;
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer > p {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.7;
}

.faq-links {
  margin-top: 14px;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #ece6da;
}

.faq-links a {
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.faq-links span {
  color: var(--text);
  font-size: .68rem;
}

.faq-no-results {
  padding: 24px;
  border: 1px dashed #cdd9d0;
  border-radius: 15px;
  background: #fbfdfb;
}

.faq-no-results strong {
  color: var(--ink);
}

.faq-no-results p {
  color: var(--text);
  font-size: .82rem;
}

.faq-no-results a {
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
}

.faq-footer-cta {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid #ded6c5;
  border-radius: var(--radius);
  background: #fff;
}

.faq-footer-cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.faq-footer-cta p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.65;
}

.legal-faq-bridge {
  margin-top: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

.legal-faq-bridge span,
.legal-faq-bridge strong {
  display: block;
}

.legal-faq-bridge span {
  color: #bde0c1;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.legal-faq-bridge strong {
  margin-top: 3px;
  color: #fff;
  font-size: .86rem;
}

.legal-faq-bridge a {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .knowledge-paths,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-side {
    position: static;
  }

  .faq-footer-cta,
  .legal-faq-bridge {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .faq-home-grid {
    grid-template-columns: 1fr;
  }

  .faq-home-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-hero {
    padding-top: 122px;
  }

  .faq-filter-row {
    gap: 6px;
  }

  .faq-footer-cta .btn {
    width: 100%;
  }
}


/* Conhecimento Técnico — carrossel de legislação */
.law-carousel-section {
  margin: 30px 0 24px;
}

.law-carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.law-carousel-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--green-500);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.law-carousel-head h3 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.law-carousel-head p {
  max-width: 740px;
  margin: 8px 0 0;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.65;
}

.law-carousel-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.law-carousel-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cedbd1;
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.law-carousel-controls button:hover {
  transform: translateY(-2px);
  background: var(--green-700);
  color: #fff;
}

.law-carousel-viewport {
  overflow: hidden;
}

.law-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.law-carousel-track::-webkit-scrollbar {
  display: none;
}

.law-carousel-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid #cfdbd2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,55,39,.055);
}

.law-carousel-card.featured {
  border-color: transparent;
  background: linear-gradient(145deg, #1f3b2e, #1f3b2e);
  color: #fff;
}

.law-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: .68rem;
}

.law-carousel-card.featured .law-carousel-meta {
  color: rgba(255,255,255,.68);
}

.law-carousel-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .66rem;
  font-weight: 700;
}

.law-carousel-card.featured .law-carousel-badge {
  background: rgba(255,255,255,.13);
  color: #d7f0bd;
}

.law-carousel-card h3 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.35;
}

.law-carousel-card.featured h3 {
  color: #fff;
}

.law-carousel-card > p {
  margin: 0;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.68;
}

.law-carousel-card.featured > p {
  color: rgba(255,255,255,.77);
}

.law-carousel-ref {
  margin-top: auto;
  padding-top: 18px;
  color: var(--text);
  font-size: .72rem;
}

.law-carousel-card.featured .law-carousel-ref {
  color: rgba(255,255,255,.67);
}

.law-carousel-ref strong {
  color: var(--ink);
}

.law-carousel-card.featured .law-carousel-ref strong {
  color: #fff;
}

.law-carousel-actions {
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px;
  border-top: 1px solid #ece6da;
}

.law-carousel-card.featured .law-carousel-actions {
  border-top-color: rgba(255,255,255,.15);
}

.law-carousel-actions a {
  color: var(--green-500);
  font-size: .74rem;
  font-weight: 700;
}

.law-carousel-card.featured .law-carousel-actions a {
  color: #d7f0bd;
}

.law-carousel-footer {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.law-carousel-dots {
  display: flex;
  gap: 6px;
}

.law-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d2cab9;
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}

.law-carousel-dots button.active {
  width: 24px;
  background: var(--green-500);
}

.law-carousel-footer > a {
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .law-carousel-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 640px) {
  .law-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .law-carousel-card {
    flex-basis: 100%;
    min-height: 335px;
  }

  .law-carousel-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Home — carrossel de projetos */
.project-carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.project-carousel-heading .section-intro {
  margin-bottom: 0;
}

.project-carousel-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.project-carousel-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #cedbd1;
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.project-carousel-controls button:hover {
  transform: translateY(-2px);
  background: var(--green-700);
  color: #fff;
}

.project-carousel-viewport {
  overflow: hidden;
}

.project-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.project-carousel-track::-webkit-scrollbar {
  display: none;
}

.project-carousel-track .project-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.project-carousel-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-carousel-dots {
  display: flex;
  gap: 6px;
}

.project-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d2cab9;
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}

.project-carousel-dots button.active {
  width: 24px;
  background: var(--green-500);
}

.project-carousel-footer > a {
  color: var(--green-700);
  font-size: .8rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .project-carousel-track .project-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .project-carousel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-carousel-track .project-card {
    flex-basis: 100%;
  }

  .project-carousel-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Páginas técnicas — flora e geotecnologias */
.service-depth-grid,
.technical-data-grid,
.technical-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px;
  margin-top: 20px;
}

.service-depth-grid article,
.technical-reference-grid article,
.technical-data-grid > div {
  padding: 18px;
  border: 1px solid #d7e1da;
  border-radius: 14px;
  background: #fbfdfb;
}

.service-depth-grid article > span,
.technical-reference-grid article > span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .67rem;
  font-weight: 700;
}

.service-depth-grid strong,
.technical-data-grid strong,
.technical-reference-grid strong {
  display: block;
  margin-top: 11px;
  color: var(--ink);
  font-size: .9rem;
}

.technical-data-grid strong {
  margin-top: 0;
}

.service-depth-grid p,
.technical-reference-grid p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: .79rem;
  line-height: 1.6;
}

.technical-data-grid span {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: .78rem;
  line-height: 1.55;
}

.technical-reference-grid a {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-500);
  font-size: .76rem;
  font-weight: 700;
}

.page-insight-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--green-500);
  border-radius: 0 13px 13px 0;
  background: #f3f8f4;
}

.page-insight-box strong {
  color: var(--green-700);
  font-size: .84rem;
}

.page-insight-box p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.62;
}

.integration-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 11px;
  margin-top: 18px;
}

.integration-links a {
  padding: 16px;
  border: 1px solid #d7e1da;
  border-radius: 13px;
  background: #fbfdfb;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.integration-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(28,107,57,.35);
  box-shadow: 0 8px 20px rgba(16,55,39,.07);
}

.integration-links strong,
.integration-links span {
  display: block;
}

.integration-links strong {
  color: var(--ink);
  font-size: .84rem;
}

.integration-links span {
  margin-top: 5px;
  color: var(--text);
  font-size: .72rem;
  line-height: 1.5;
}

.side-reference-list,
.side-check-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.side-reference-list a {
  padding: 12px;
  border: 1px solid #e5ded0;
  border-radius: 11px;
  background: #fbfdfb;
}

.side-reference-list strong,
.side-reference-list span {
  display: block;
}

.side-reference-list strong {
  color: var(--ink);
  font-size: .78rem;
}

.side-reference-list span {
  margin-top: 3px;
  color: var(--text);
  font-size: .7rem;
  line-height: 1.45;
}

.side-reference-note {
  margin: 14px 0 0;
  color: var(--text);
  font-size: .72rem;
  line-height: 1.55;
}

.side-check-list span {
  padding: 10px 12px;
  border: 1px solid #e5ded0;
  border-radius: 10px;
  background: #fbfdfb;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 600;
}

.technical-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
  margin-top: 20px;
}

.technical-pipeline > div {
  min-height: 178px;
  padding: 16px;
  border: 1px solid #d7e1da;
  border-radius: 14px;
  background: #fbfdfb;
}

.technical-pipeline > div > span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #e8f3e9;
  color: var(--green-700);
  font-size: .68rem;
  font-weight: 700;
}

.technical-pipeline strong {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-size: .82rem;
}

.technical-pipeline p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: .72rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .technical-pipeline {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .integration-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-depth-grid,
  .technical-data-grid,
  .technical-reference-grid,
  .technical-pipeline {
    grid-template-columns: 1fr;
  }

  .technical-pipeline > div {
    min-height: 0;
  }
}


/* Carrossel de projetos — navegação lateral */
.project-carousel-shell {
  position: relative;
}

.project-carousel-side {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #cdd9d0;
  border-radius: 50%;
  background: rgba(255,255,255,.97);
  color: var(--green-700);
  box-shadow: 0 12px 30px rgba(16,55,39,.13);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.project-carousel-side:hover {
  transform: translateY(-50%) scale(1.04);
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 15px 34px rgba(16,55,39,.19);
}

.project-carousel-side:focus-visible {
  outline: 3px solid rgba(60,171,72,.3);
  outline-offset: 3px;
}

.project-carousel-side-prev {
  left: -70px;
}

.project-carousel-side-next {
  right: -70px;
}

.contact-card h3 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.35;
}

.contact-guidance {
  margin: 0 0 14px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.6;
}

@media (max-width: 1320px) {
  .project-carousel-side-prev { left: -20px; }
  .project-carousel-side-next { right: -20px; }
}

@media (max-width: 760px) {
  .project-carousel-side {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    box-shadow: 0 8px 22px rgba(16,55,39,.14);
  }

  .project-carousel-side-prev { left: 8px; }
  .project-carousel-side-next { right: 8px; }
}

@media (max-width: 520px) {
  .project-carousel-side {
    display: none;
  }
}


/* Página 404 */
.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 80% 18%, rgba(60,171,72,.18), transparent 30%),
    linear-gradient(145deg, #112f27, #1f3b2e 62%, #1f3b2e);
  color: #fff;
}
.not-found-inner { width: min(100%, 820px); text-align: center; }
.not-found-code {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.16);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.08em;
}
.not-found-inner h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.not-found-inner > p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
.not-found-actions,.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.not-found-actions { margin-top: 26px; }
.not-found-links { margin-top: 22px; }
.not-found-links a { color: #d7f0bd; font-size: .8rem; font-weight: 700; }


/* Links de aprofundamento nos serviços */
.service-card-action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-500);
  font-size: .78rem;
  font-weight: 700;
  transition: transform .18s ease, color .18s ease;
}
.service-card-action:hover {
  transform: translateX(3px);
  color: var(--green-700);
}


/* Acessibilidade global */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(60,171,72,.38);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Navegação — Base Legal e contato flutuante */
.nav-legal-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #d7f0bd;
  color: #1f3b2e;
  font-size: .56rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: linear-gradient(145deg, #59632f, #1f3b2e);
  color: #fff;
  box-shadow: 0 12px 32px rgba(75,53,38,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.floating-contact:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 38px rgba(75,53,38,.28);
  color: #fff;
}

.floating-contact svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-contact span {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translate(8px,-50%);
  padding: 7px 10px;
  border-radius: 8px;
  background: #0b2730;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.floating-contact:hover span,
.floating-contact:focus-visible span {
  opacity: 1;
  transform: translate(0,-50%);
}

@media (max-width: 640px) {
  .floating-contact {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .floating-contact span {
    display: none;
  }
}

/* Base Legal — destaque para normas publicadas no ano atual */
.legal-result-card.is-current-year {
  position: relative;
  border-color: rgba(60,171,72,.58);
  box-shadow: 0 10px 28px rgba(28,107,57,.10);
}

.legal-result-card.is-current-year::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--green-500);
}

.legal-result-meta-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f6d7;
  color: #1f3b2e;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
}


/* Fotografias licenciadas — primeiro lote, 03/10/2026 */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  background: linear-gradient(90deg, rgba(3,34,43,.90), rgba(3,34,43,.65));
}
.service-photo { margin: 0 0 20px; }
.service-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.service-photo figcaption { margin-top: 6px; font-size: .75rem; color: var(--text); }
.service-photo figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.photo-credits { padding-top: 24px; padding-bottom: 24px; font-size: .875rem; color: rgba(255,255,255,.85); }
.photo-credits summary { cursor: pointer; }
.photo-credits p { max-width: 760px; }
.photo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.photo-credits li + li { margin-top: 8px; }

/* Fotografia autorizada de mensuração florestal */
.service-photo img.field-photo-preview { object-position: center 30%; }
.field-photo { margin: 20px 0 0; max-width: 560px; }
.field-photo img { width: 100%; height: auto; border-radius: 16px; }
.field-photo figcaption { margin-top: 10px; color: var(--text); font-size: .8rem; }


/* Paleta institucional JSB — 2026 */
:root {
  --jsb-deep-green: #1f3b2e;
  --jsb-forest: #112f27;
  --jsb-olive: #59632f;
  --jsb-brown: #4b3526;
  --jsb-beige: #b7a67e;
  --jsb-offwhite: #f8f5ee;
}

body {
  background: var(--jsb-offwhite);
}

.section-white {
  background: #fffdf9;
}

.section-soft {
  background: var(--jsb-offwhite);
}

.eyebrow-pill {
  border-color: rgba(183,166,126,.34);
  background: rgba(183,166,126,.10);
}

.service-icon,
.tags span {
  border-color: rgba(89,99,47,.12);
}

.project-card:focus-within {
  outline-color: rgba(89,99,47,.42);
}

.project-carousel-dots button.active {
  background: var(--jsb-olive);
}


/* Lightbox das galerias técnicas */
.project-gallery-photo {
  cursor: zoom-in;
}

.project-gallery-photo:focus-visible {
  outline: 3px solid rgba(183, 166, 126, .72);
  outline-offset: 4px;
}

.project-gallery-photo img,
.gallery-lightbox-image {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(17, 47, 39, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-panel {
  position: relative;
  width: min(94vw, 1320px);
  max-height: 92vh;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
  pointer-events: none;
}

.gallery-lightbox-caption {
  max-width: 900px;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: -18px;
  right: -6px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183,166,126,.45);
  border-radius: 50%;
  background: #59632f;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.gallery-lightbox-close:hover {
  background: #6b7639;
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 18px;
  }

  .gallery-lightbox-image {
    max-height: 78vh;
    border-radius: 12px;
  }

  .gallery-lightbox-close {
    top: -14px;
    right: -2px;
    width: 42px;
    height: 42px;
  }
}
