/* ==========================================================================
   FMEA Engineering — Stylesheet principal
   Autor: Conversão Next.js → HTML/CSS/PHP/JS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES (Variáveis de marca)
   -------------------------------------------------------------------------- */
:root {
  --brand-primary: #013d23;
  --brand-accent:  #d5d88e;
  --brand-white:   #ffffff;
  --brand-light:   #f5f8f6;

  --color-text:       rgba(1, 61, 35, 0.85);
  --color-text-muted: rgba(1, 61, 35, 0.72);
  --color-border:     rgba(1, 61, 35, 0.12);

  --radius-card: 1rem;
  --radius-pill: 9999px;

  --shadow-card: 0 14px 34px -26px rgba(1, 61, 35, 0.65);
  --shadow-card-hover: 0 24px 44px -28px rgba(1, 61, 35, 0.9);

  --container-max: 1440px;
  --container-px:  clamp(1rem, 4vw, 2.5rem);

  --section-py: clamp(4rem, 7vw, 7rem);
}

/* --------------------------------------------------------------------------
   2. RESET E BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brand-primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

::selection {
  background: rgba(213, 216, 142, 0.45);
  color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA BASE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--color-text); line-height: 1.75; }

/* --------------------------------------------------------------------------
   4. LAYOUT — Container e seções
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

/* --------------------------------------------------------------------------
   5. HEADER — Navegação fixa com glassmorphism
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  padding-inline: 0.5rem;
}

.header-inner {
  width: 94vw;
  max-width: var(--container-max);
  overflow: visible;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(252, 255, 252, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 38px -26px rgba(1, 61, 35, 0.5), 0 8px 20px -16px rgba(0, 0, 0, 0.18);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.header-inner.scrolled {
  border-color: rgba(255, 255, 255, 0.80);
  background: rgba(252, 255, 252, 0.92);
  box-shadow: 0 24px 48px -30px rgba(1, 61, 35, 0.58), 0 10px 26px -20px rgba(0, 0, 0, 0.24);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.45rem;
  padding-inline: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 185px;
  width: auto;
}

@media (max-width: 1023px) {
  .site-logo img {
    height: 120px;
  }
}

/* Nav desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  display: inline-block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(1, 61, 35, 0.9);
  transition: background 0.25s, color 0.25s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-primary);
}

.nav-link.active {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 14px 22px -18px rgba(1, 61, 35, 0.75);
}

/* --------------------------------------------------------------------------
   Dropdown de Serviços
   -------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-chevron {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open  .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: rgba(252, 255, 252, 0.97);
  border: 1px solid rgba(1, 61, 35, 0.12);
  border-radius: 1rem;
  box-shadow: 0 20px 48px -16px rgba(1, 61, 35, 0.35),
              0 8px 20px -10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Ponte invisível entre o trigger e o menu — evita perda de hover no gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-primary);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(1, 61, 35, 0.06);
  color: var(--brand-primary);
}

.dropdown-icon {
  font-size: 1rem;
  line-height: 1;
}

.dropdown-divider {
  height: 1px;
  background: rgba(1, 61, 35, 0.08);
  margin: 0.375rem 0.5rem;
}

.nav-dropdown-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(1, 61, 35, 0.65);
  justify-content: center;
}

.nav-dropdown-all:hover {
  color: var(--brand-primary);
  background: rgba(213, 216, 142, 0.2);
}

/* Mobile — sublinks de setores */
.mobile-sublinks {
  padding-left: 1rem;
  border-left: 2px solid rgba(1, 61, 35, 0.12);
  margin: 0.1rem 0 0.1rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mobile-sublink {
  font-size: 0.875rem !important;
  color: rgba(1, 61, 35, 0.72) !important;
  padding: 0.45rem 0.875rem !important;
}

/* CTA no header */
.header-cta {
  display: none;
  height: 2.75rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(1, 61, 35, 0.16);
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 14px 24px -18px rgba(1, 61, 35, 0.8);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.header-cta:hover {
  background: #022f1d;
  transform: translateY(-1px);
  box-shadow: 0 20px 30px -18px rgba(1, 61, 35, 0.88);
}

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; align-items: center; justify-content: center; }
}

/* Botão hamburguer */
.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(1, 61, 35, 0.20);
  color: var(--brand-primary);
  transition: background 0.25s;
}

.btn-menu:hover { background: rgba(1, 61, 35, 0.08); }
.btn-menu.open  { background: rgba(1, 61, 35, 0.10); }

@media (min-width: 1024px) {
  .btn-menu { display: none; }
}

.btn-menu svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

/* Menu mobile */
.nav-mobile {
  display: none;
  margin: 0 0.75rem 0.75rem;
  padding: 0.75rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(252, 255, 252, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 34px -24px rgba(1, 61, 35, 0.6);
  animation: slideDown 0.2s ease-out;
}

.nav-mobile.open { display: block; }

.nav-mobile nav {
  display: grid;
  gap: 0.25rem;
}

.nav-mobile .nav-link {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-mobile-cta {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(1, 61, 35, 0.16);
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  transition: background 0.25s;
}

.nav-mobile-cta:hover { background: #022f1d; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. HERO — Seção de destaque com vídeo
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: -4.45rem; /* compensa o header fixo */
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(1,61,35,0.45) 0%, rgba(1,61,35,0.30) 45%, rgba(1,61,35,0.50) 100%);
}

.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.08) 48%, rgba(0,0,0,0) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 8rem var(--container-px) 0;
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero-text {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-shadow: 0 14px 26px rgba(0,0,0,0.35);
  animation: heroRise 0.65s ease-out both;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  line-height: 1.65;
  animation: heroRise 0.65s ease-out 0.1s both;
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: heroRise 0.55s ease-out 0.2s both;
}

/* CTA especial do hero */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.38);
  background: #f6f8f2;
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 18px 36px -22px rgba(0,0,0,0.6);
  transition: transform 0.36s ease, background 0.36s ease, color 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
  max-width: 420px;
}

.hero-cta:hover {
  background: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 26px 42px -22px rgba(0,0,0,0.74);
  border-color: rgba(1,61,35,0.65);
}

.hero-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(1,61,35,0.24);
  flex-shrink: 0;
  transition: background 0.36s ease;
}

.hero-cta:hover .hero-cta-icon {
  background: var(--brand-accent);
}

.hero-cta-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: var(--brand-primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
  transition: transform 0.36s ease;
}

.hero-cta:hover .hero-cta-icon svg {
  transform: translateX(2px);
}

.hero-cta--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #ffffff;
  box-shadow: none;
}

.hero-cta--outline .hero-cta-icon {
  background: rgba(255,255,255,0.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.hero-cta--outline .hero-cta-icon svg {
  stroke: #ffffff;
}

.hero-cta--outline:hover {
  background: #ffffff;
  color: var(--brand-primary);
  border-color: #ffffff;
}

.hero-cta--outline:hover .hero-cta-icon {
  background: var(--brand-accent);
}

.hero-cta--outline:hover .hero-cta-icon svg {
  stroke: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   7. EYEBROW (etiqueta de seção)
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(1, 61, 35, 0.65);
}

/* --------------------------------------------------------------------------
   8. SEÇÃO — Institucional (Responsabilidade Técnica)
   -------------------------------------------------------------------------- */
.institutional {
  background: #ffffff;
}

.institutional-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .institutional-grid { grid-template-columns: 1fr 1fr; }
}

.institutional-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.institutional-text h2 {
  max-width: 680px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}

.institutional-text p {
  font-size: 0.9375rem;
  color: rgba(1, 61, 35, 0.78);
  line-height: 1.75;
}

/* Imagem institucional com overlay */
.img-overlay-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #f1f4f2;
  box-shadow: 0 20px 45px -45px rgba(1,61,35,0.85);
}

.img-overlay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,61,35,0.82) 0%, rgba(1,61,35,0.28) 55%, transparent 100%);
}

.img-overlay-caption {
  position: absolute;
  bottom: 0;
  padding: 1.5rem;
}

.img-overlay-caption .caption-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}

.img-overlay-caption p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  max-width: 400px;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(1, 61, 35, 0.10);
  background: #f6f8f7;
  padding: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.pillar-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(1,61,35,0.78);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   9. SEÇÃO — Serviços
   -------------------------------------------------------------------------- */
.services-section {
  background: #f5f8f6;
}

.services-header-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .services-header-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.services-header-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-top: 0.75rem;
}

.services-header-text p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(1,61,35,0.78);
  line-height: 1.7;
  max-width: 560px;
}

.services-img {
  aspect-ratio: 20/13;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.services-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-img .img-overlay {
  background: linear-gradient(to top, rgba(1,61,35,0.7) 0%, transparent 70%);
}

/* Cards de serviços */
.services-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-cards { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-card);
  border: 1px solid rgba(1,61,35,0.12);
  background: #f6f8f7;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 40px -35px rgba(1,61,35,0.95);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0.75rem;
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(1,61,35,0.06);
}

.service-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--brand-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-arrow {
  width: 1rem;
  height: 1rem;
  stroke: rgba(1,61,35,0.40);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: transform 0.3s, stroke 0.3s;
}

.service-card:hover .service-card-arrow {
  transform: translateX(4px);
  stroke: var(--brand-primary);
}

.service-card h3 {
  padding: 0 1.5rem 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.service-card-body {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card p {
  font-size: 0.875rem;
  color: rgba(1,61,35,0.78);
  line-height: 1.7;
}

.service-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(1,61,35,0.75);
}

.service-highlights li::before {
  content: '';
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 0.375rem;
}

/* --------------------------------------------------------------------------
   10. SEÇÃO — Stats / Indicadores
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--brand-primary);
}

.stats-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .stats-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.stats-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.stats-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,0.12);
  background: #0a4e32;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s, box-shadow 0.3s;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 40px -35px rgba(1,61,35,0.95);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.stat-label-top {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-accent);
}

.stat-icon {
  width: 1rem;
  height: 1rem;
  stroke: var(--brand-accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}

.stat-value .counter { font-variant-numeric: tabular-nums; }

.stat-value .suffix { color: var(--brand-accent); }

.stat-desc {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}

.stat-line {
  display: block;
  width: 4rem;
  height: 2px;
  background: var(--brand-accent);
  margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   11. SEÇÃO — Timeline
   -------------------------------------------------------------------------- */
.timeline-section {
  position: relative;
  background: #edf3ef;
  overflow: hidden;
}

.timeline-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(242,247,243,0.95) 0%, rgba(242,247,243,0.97) 42%, rgba(242,247,243,0.99) 100%);
  pointer-events: none;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.timeline-header h2 { max-width: 800px; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.timeline-header p  { max-width: 680px; font-size: 0.9375rem; color: rgba(1,61,35,0.78); }

/* Tabs da timeline */
.timeline-tabs-wrap {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.92);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px -8px rgba(1,61,35,0.12);
}

.timeline-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .timeline-tabs { flex-direction: row; justify-content: space-between; }
}

.timeline-tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: background 0.2s;
}

@media (min-width: 768px) {
  .timeline-tab-btn {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }
}

.timeline-tab-btn:hover { background: rgba(1,61,35,0.04); }

.tab-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(1,61,35,0.18);
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.timeline-tab-btn.active .tab-dot {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
}

.tab-period {
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  transition: color 0.25s;
}

@media (min-width: 768px) {
  .tab-period { margin-top: 1rem; }
}

.timeline-tab-btn.active .tab-period { color: #111; }

/* Barra de progresso global da timeline */
.timeline-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(1,61,35,0.08);
  border-radius: 99px;
  margin-top: 1.25rem;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.timeline-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--brand-accent)  0%,
    #9dc055             30%,
    #3e7d50             60%,
    var(--brand-primary) 100%
  );
  background-size: 300% 100%;
  box-shadow:
    0 0 10px rgba(1,61,35,0.35),
    0 0 4px  rgba(213,216,142,0.55);
  animation: track-shimmer 2s linear infinite;
  transition: width linear;
}

@keyframes track-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position:   0% 0; }
}

/* Conteúdo da timeline */
.timeline-card {
  display: grid;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 16px -8px rgba(1,61,35,0.15);
}

@media (min-width: 1024px) {
  .timeline-card { grid-template-columns: 1.06fr 0.94fr; }
}

.timeline-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
}

.timeline-period-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(1,61,35,0.70);
}

.timeline-card-body h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

.timeline-card-body > p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
}

.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-accent {
  display: inline-flex;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(213,216,142,0.45);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.badge-neutral {
  display: inline-flex;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(1,61,35,0.14);
  background: #f4f7f5;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
}

.timeline-card-img {
  position: relative;
  min-height: 240px;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .timeline-card-img { border-top: none; border-left: 1px solid var(--color-border); min-height: 310px; }
}

.timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.timeline-card-img .img-overlay {
  background: linear-gradient(to top, rgba(1,61,35,0.72) 0%, rgba(1,61,35,0.20) 55%, transparent 100%);
}

/* --------------------------------------------------------------------------
   12. SEÇÃO — Cases
   -------------------------------------------------------------------------- */
.cases-section { background: #edf3ef; }

.cases-intro-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .cases-intro-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.cases-panel {
  border-radius: var(--radius-card);
  background: #f5f8f6;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.cases-panel h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cases-panel p  { font-size: 1rem; color: rgba(1,61,35,0.82); }

.cases-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }

/* Home case card (simples) */
.case-card-simple {
  border-radius: var(--radius-card);
  background: #ffffff;
  padding: 2rem;
  text-align: left;
  border: 1px solid rgba(1,61,35,0.12);
  box-shadow: 0 4px 16px -8px rgba(1,61,35,0.15);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.case-card-simple:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 40px -35px rgba(1,61,35,0.95);
}

.case-card-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(1,61,35,0.70);
}

.case-card-simple h3 {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
}

.case-card-simple p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.7;
}

/* Full case card (page /cases) */
.case-card-full {
  border-radius: 1.5rem;
  border: 1px solid rgba(1,61,35,0.18);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-card-full:hover {
  transform: translateY(-4px);
  border-color: rgba(1,61,35,0.34);
  box-shadow: var(--shadow-card-hover);
}

.case-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid rgba(1,61,35,0.12);
  flex-shrink: 0;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-img .img-overlay {
  background: linear-gradient(to top, rgba(1,61,35,0.74) 0%, rgba(1,61,35,0.24) 55%, transparent 100%);
}

.case-card-img-badges {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.case-card-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
}

.tag-default {
  border: 1px solid rgba(1,61,35,0.14);
  background: rgba(1,61,35,0.05);
  color: var(--brand-primary);
}

.tag-accent {
  background: rgba(213,216,142,0.7);
  color: var(--brand-primary);
  border: 1px solid rgba(213,216,142,0.5);
}

.tag-outline {
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.case-detail-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-block {
  border-radius: 0.75rem;
  padding: 1rem;
}

.detail-block.default {
  border: 1px solid rgba(1,61,35,0.12);
  background: #f8faf9;
  color: rgba(1,61,35,0.84);
}

.detail-block.accent {
  border: 1px solid rgba(213,216,142,0.8);
  background: rgba(213,216,142,0.18);
  color: var(--brand-primary);
}

.detail-block h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(1,61,35,0.70);
  margin-bottom: 0.5rem;
}

.detail-block p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: inherit;
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: opacity 0.2s;
  margin-top: auto;
}

.case-card-link:hover { opacity: 0.75; }

.case-card-link svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   13. SEÇÃO — Partners Carousel
   -------------------------------------------------------------------------- */
.partners-section { background: #ffffff; overflow: hidden; }

.partners-header { margin-bottom: 3rem; }
.partners-header h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-top: 0.5rem; }

.carousel-wrap {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(1,61,35,0.12);
  background: #f6f8f6;
  padding: 1rem;
  box-shadow: 0 4px 16px -8px rgba(1,61,35,0.1);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: partnerMarquee 32s linear infinite;
  will-change: transform;
}

.carousel-track:hover { animation-play-state: paused; }

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 86px;
  border-radius: 1rem;
  border: 1px solid rgba(1,61,35,0.12);
  background: #ffffff;
  margin-right: 1.25rem;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -4px rgba(1,61,35,0.1);
  overflow: hidden;
}

.partner-item img {
  max-width: 150px;
  max-height: 2.5rem;
  width: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.partner-item:hover img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
}

/* --------------------------------------------------------------------------
   14. SEÇÃO — Contato (formulário)
   -------------------------------------------------------------------------- */
.contact-section { background: #ffffff; border-top: 1px solid rgba(1,61,35,0.10); }

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
}

.contact-info-panel {
  border-radius: var(--radius-card);
  background: #f5f8f6;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-panel h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.contact-info-panel .eyebrow { margin-bottom: -0.25rem; }
.contact-info-panel p.desc { font-size: 1rem; color: rgba(1,61,35,0.82); line-height: 1.7; max-width: 480px; }

/* Formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 20px -10px rgba(1,61,35,0.15);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(1,61,35,0.22);
  border-radius: 0.5rem;
  background: #fdfdfd;
  font-size: 0.9375rem;
  color: var(--brand-primary);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(1,61,35,0.08);
}

.form-input.error,
.form-textarea.error {
  border-color: #dc2626;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-error {
  font-size: 0.75rem;
  color: #b91c1c;
  margin-top: 0.15rem;
}

.form-hidden { display: none; }

.form-feedback {
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  display: none;
}

.form-feedback.success {
  border: 1px solid rgba(6,78,59,0.35);
  background: rgba(6,78,59,0.08);
  color: #065f46;
  display: block;
}

.form-feedback.error {
  border: 1px solid rgba(220,38,38,0.35);
  background: rgba(220,38,38,0.07);
  color: #991b1b;
  display: block;
}

/* --------------------------------------------------------------------------
   15. BOTÕES
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #064e3b;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover { background: #065f46; }
.btn-primary:disabled { opacity: 0.75; cursor: not-allowed; }

.btn-primary svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   16. PAGE INTRO (cabeçalho de página interna)
   -------------------------------------------------------------------------- */
.page-intro {
  border-bottom: 1px solid rgba(1,61,35,0.10);
  background: #f7f9f8;
  padding-top: 9rem;
  padding-bottom: 3.5rem;
}

.page-intro .eyebrow { margin-bottom: 1rem; }

.page-intro h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 600;
  max-width: 820px;
  margin-bottom: 1rem;
}

.page-intro p {
  font-size: 0.9375rem;
  color: rgba(1,61,35,0.78);
  max-width: 680px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(1,61,35,0.10);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand img {
  height: 73px;
  width: auto;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(1,61,35,0.72);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col nav a {
  font-size: 0.875rem;
  color: rgba(1,61,35,0.78);
  transition: color 0.2s;
  display: inline-block;
}

.footer-col nav a:hover { color: var(--brand-primary); }

.footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col address p {
  font-size: 0.875rem;
  color: rgba(1,61,35,0.78);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(1,61,35,0.78);
  transition: color 0.2s;
}

.social-link:hover { color: var(--brand-primary); }

.social-link svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-link:hover svg { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(1,61,35,0.10);
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-bottom p, .footer-bottom a {
  font-size: 0.75rem;
  color: rgba(1,61,35,0.65);
}

.footer-bottom a {
  text-decoration: underline;
  text-decoration-color: rgba(1,61,35,0.3);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--brand-primary); }

/* --------------------------------------------------------------------------
   18. PÁGINAS INTERNAS — Responsabilidade Técnica
   -------------------------------------------------------------------------- */
.page-main {
  background: #f7f9f8;
  padding-block: 4rem;
}

.page-main .container { display: flex; flex-direction: column; gap: 3.5rem; }

.team-leader-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 24px 45px -45px rgba(1,61,35,0.9);
}

.team-leader-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .team-leader-grid { grid-template-columns: 0.95fr 1.05fr; align-items: center; }
}

.avatar-photo {
  border-radius: 0.75rem;
  border: 1px solid rgba(1,61,35,0.10);
  background: #eef3f0;
  overflow: hidden;
  height: 320px;
}

@media (min-width: 768px) { .avatar-photo { height: 420px; } }

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-leader-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-leader-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

.team-leader-role {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(1,61,35,0.75);
}

.team-leader-info > p {
  font-size: 0.9375rem;
  color: rgba(1,61,35,0.82);
  line-height: 1.75;
}

.highlights-list {
  border-radius: 0.75rem;
  border: 1px solid rgba(1,61,35,0.10);
  background: #f7f9f8;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(1,61,35,0.82);
  line-height: 1.65;
}

.highlights-list li::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* Equipe técnica */
.team-section-header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.team-section-header h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

.team-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-member-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(1,61,35,0.12);
  background: #ffffff;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.team-member-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 18px 40px -32px rgba(1,61,35,0.9);
}

.team-member-inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .team-member-inner { grid-template-columns: 180px 1fr; align-items: start; }
}

.member-photo {
  height: 220px;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(1,61,35,0.10);
  background: #eef3f0;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.member-info { display: flex; flex-direction: column; gap: 0.75rem; }

.member-info h4 { font-size: 1.25rem; font-weight: 600; }

.member-info p {
  font-size: 0.875rem;
  color: rgba(1,61,35,0.78);
  line-height: 1.65;
}

.member-info p strong {
  font-weight: 600;
  color: var(--brand-primary);
}

/* --------------------------------------------------------------------------
   19. PÁGINAS DE SERVIÇO (detalhe)
   -------------------------------------------------------------------------- */
.service-detail-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) { .service-detail-banner { height: 440px; } }

.service-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content { background: #f7f9f8; padding-block: 3.5rem; }

.service-intro-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.service-intro-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
.service-intro-card p  { color: rgba(1,61,35,0.82); line-height: 1.75; }

.scope-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) { .scope-grid { grid-template-columns: repeat(3, 1fr); } }

.scope-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(1,61,35,0.10);
  background: #ffffff;
  padding: 1.5rem;
}

.scope-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-accent);
}

.scope-card ul { display: flex; flex-direction: column; gap: 0.5rem; }

.scope-card li {
  font-size: 0.875rem;
  color: rgba(1,61,35,0.82);
  padding-left: 1rem;
  position: relative;
  line-height: 1.55;
}

.scope-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-size: 0.75rem;
  top: 0.1rem;
}

.service-cta-box {
  border-radius: var(--radius-card);
  border: 1px solid rgba(1,61,35,0.10);
  background: var(--brand-primary);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.service-cta-box h3 { font-size: 1.5rem; color: #ffffff; }
.service-cta-box p { color: rgba(255,255,255,0.85); max-width: 480px; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition: filter 0.2s;
}

.btn-accent:hover { filter: brightness(1.06); }

/* --------------------------------------------------------------------------
   20. BLOG
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(1,61,35,0.14);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.03); }

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(1,61,35,0.65);
}

.blog-card-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s;
}

.blog-card:hover h3 { color: rgba(1,61,35,0.8); }

.blog-card-body p {
  font-size: 0.875rem;
  color: rgba(1,61,35,0.72);
  line-height: 1.65;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

/* Blog post (artigo) */
.blog-post-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) { .blog-post-hero { height: 420px; } }

.blog-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-main { background: #f7f9f8; padding-block: 3.5rem; }

.blog-post-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-post-date {
  font-size: 0.8125rem;
  color: rgba(1,61,35,0.65);
}

.blog-post-reading {
  font-size: 0.8125rem;
  color: rgba(1,61,35,0.65);
}

.blog-post-card h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.blog-post-excerpt {
  font-size: 1.05rem;
  color: rgba(1,61,35,0.72);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(1,61,35,0.10);
}

/* Blog content typography */
.blog-content > * + * { margin-top: 1rem; }

.blog-content h2,
.blog-content h3 {
  margin-top: 1.8rem;
  color: var(--brand-primary);
  font-weight: 700;
  line-height: 1.24;
}

.blog-content h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.blog-content h3 { font-size: clamp(1.1rem, 2.1vw, 1.35rem); }

.blog-content p,
.blog-content li {
  color: rgba(1, 61, 35, 0.84);
  line-height: 1.8;
  font-size: 1rem;
}

.blog-content ul,
.blog-content ol { margin: 1rem 0 1.4rem; padding-left: 1.25rem; }

.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }

.blog-content li + li { margin-top: 0.4rem; }

.blog-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.blog-content blockquote {
  margin: 1.2rem 0;
  border-left: 3px solid rgba(213, 216, 142, 0.9);
  padding-left: 1rem;
  color: rgba(1, 61, 35, 0.78);
}

/* --------------------------------------------------------------------------
   21. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes partnerMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes heroRise {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes surfaceIn {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   22. UTILITÁRIOS DIVERSOS
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-auto { margin-top: auto; }

.text-center { text-align: center; }

/* Padding top para compensar header fixo em ancoras */
.pt-header { padding-top: calc(4.45rem + 1.25rem); }

/* --------------------------------------------------------------------------
   23. RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .container { padding-inline: 1rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-cta { max-width: 100%; width: 100%; }
  .stats-section .stats-header { flex-direction: column; }
  .contact-form { padding: 1.5rem; }
  .team-leader-card { padding: 1.25rem; }
  .blog-post-card { padding: 1.5rem; }
}

/* Scroll reveal (classe adicionada via JS) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Botão flutuante WhatsApp
   -------------------------------------------------------------------------- */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 200;

  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  padding: 0.65rem 1.1rem 0.65rem 0.75rem;
  border-radius: 9999px;
  background: #25D366;
  box-shadow: 0 8px 28px -8px rgba(37, 211, 102, 0.55),
              0 3px 10px -3px rgba(0, 0, 0, 0.18);
  text-decoration: none;

  opacity: 0;
  visibility: hidden;
  transform: translateX(-16px);
  transition: opacity 0.45s ease,
              visibility 0.45s ease,
              transform 0.45s ease,
              background 0.25s ease,
              box-shadow 0.25s ease;
}

.whatsapp-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  box-shadow: 0 12px 36px -8px rgba(37, 211, 102, 0.65),
              0 4px 14px -4px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.whatsapp-btn svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

.whatsapp-btn-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.whatsapp-btn-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.whatsapp-btn-phone {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

/* Em telas pequenas, esconde o texto e mostra só o ícone */
@media (max-width: 480px) {
  .whatsapp-btn {
    padding: 0.75rem;
    border-radius: 50%;
    width: 3.25rem;
    height: 3.25rem;
    justify-content: center;
  }
  .whatsapp-btn-info { display: none; }
}

/* --------------------------------------------------------------------------
   Botão Scroll to Top
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;

  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: var(--brand-primary);
  box-shadow: 0 8px 24px -8px rgba(1, 61, 35, 0.55),
              0 2px 8px -2px rgba(1, 61, 35, 0.35);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease,
              visibility 0.35s ease,
              transform 0.35s ease,
              background 0.25s ease,
              box-shadow 0.25s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #022f1d;
  box-shadow: 0 14px 32px -10px rgba(1, 61, 35, 0.70),
              0 4px 12px -4px rgba(1, 61, 35, 0.45);
  transform: translateY(-3px);
}

.scroll-top-btn:active {
  transform: translateY(-1px);
}

.scroll-top-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--brand-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease;
}

.scroll-top-btn:hover svg {
  transform: translateY(-2px);
}
