/* ---------- CONFIGURAÇÕES GERAIS ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Anti-overflow global */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #0f3d23;
  line-height: 1.6;
}

/* Evita mídia vazando */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- VARIÁVEIS ---------- */
:root {
  --header-h-desktop: 80px;
  --header-h-mobile: 70px;

  --green-1: #0a5c3b;
  --green-2: #0f3d23;
}

/* Compensa header fixo */
body { padding-top: var(--header-h-desktop); }

/* ---------- CONTAINERS ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- CABEÇALHO ---------- */
.header {
  width: 100%;
  background: rgba(25, 85, 55, 0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header.hide { transform: translateY(-100%); }

.container.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5%;
  width: 100%;
  max-width: 100%;
}

/* LOGO HEADER (corrigido: .logo) */
.logo {
  width: clamp(90px, 18vw, 220px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
  filter: brightness(1.2) saturate(1.2) drop-shadow(0 0 8px rgba(0, 255, 100, 0.25));
}

/* Navegação desktop */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: #fff;
  color: var(--green-2);
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- MENU MOBILE ---------- */
.menu {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu_bar {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu.open .menu_bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu.open .menu_bar:nth-child(2) { opacity: 0; }
.menu.open .menu_bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile {
  display: none;
  flex-direction: column;
  background: #0f3d23;
  position: fixed;
  width: 100%;
  max-width: 100%;
  top: var(--header-h-desktop);
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 1200;
}

.mobile.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile_link {
  color: #fff;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - var(--header-h-desktop));
  height: auto;
  background: linear-gradient(rgba(15, 61, 35, 0.5), rgba(15, 61, 35, 0.5)),
    url("hero.png") center center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 0;
}

.hero-overlay {
  background: rgba(255, 255, 255, 0.92);
  padding: 55px;
  border-radius: 20px;
  width: 90%;
  max-width: 850px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  animation: fadeIn 1.5s ease;
}

.hero-overlay h2 {
  font-size: 2.3rem;
  margin-bottom: 18px;
  color: var(--green-1);
}

.hero-overlay p {
  font-size: 1.12rem;
  margin-bottom: 25px;
  color: #234a33;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-1);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(10, 92, 59, 0.28);
  filter: brightness(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--green-1);
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.05rem;
  color: #2c5a40;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}



/* ==================================================
   QUEM SOMOS
================================================== */
.about-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 60px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

/* ---------- TEXTO ---------- */
.about-text {
  flex: 1;
  padding: 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;

  font-family: 'Montserrat', 'Poppins', sans-serif;
  color: #1b3b25;
  line-height: 1.8;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-1);
  margin-bottom: 18px;
  position: relative;
  text-align: left;
}

.about-text h3::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--green-1);
  display: block;
  margin-top: 10px;
  border-radius: 6px;
  position: absolute;
  bottom: -14px;
  left: 0;
}

.about-text p {
  font-size: 1.05rem;
  margin: 15px 0;
  color: #264534;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0 25px;
}

.about-list li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-1);
  margin-bottom: 10px;
  transition: transform 0.5s ease, color 0.2s ease, filter 0.2s ease;
}

.about-list li:hover {
  color: #127b4b;
  transform: scale(1.06);
  filter: brightness(1.15);
}

.about-text .btn {
  margin-top: 10px;
  width: fit-content;
  align-self: flex-start;
}

/* ---------- CARROSSEL ---------- */
.about-carousel {
  flex: 0.75;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 360px;
}

.about-carousel-track {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  width: max-content;                 /* 🔥 essencial */
  animation: aboutScroll 10s linear infinite;
  will-change: transform;
}

/* cards */
.about-carousel-track img {
  width: 400px;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #f7fbf8;
  padding: 14px;
  border-radius: 16px;

  border: 1px solid rgba(15, 61, 35, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* hover individual (não quebra animação) */
.about-carousel-track img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* animação contínua correta */
@keyframes aboutScroll {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 768px) {

  .about-grid {
    flex-direction: column;
    gap: 0;
  }

  /* texto */
  .about-text {
    padding: 32px 24px;
    text-align: center;
    align-items: center;
  }

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

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-text .btn {
    align-self: center;
    margin: 24px auto 0;
  }

  /* carrossel */
  .about-carousel {
    min-height: 300px;
    padding-bottom: 16px;
  }

  .about-carousel-track {
    gap: 18px;
    animation-duration: 8s;
  }

  .about-carousel-track img {
    width: 260px;
    padding: 10px;
    border-radius: 14px;
  }
}

/* ---------- CARDS (BASE) ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 100%;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f2f2f2;
  padding: 0;
}

.card h4 {
  padding: 18px 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-1);
}

/* ---------- POPUP ---------- */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.55);
  padding: 20px;
}

.popup-content {
  background: #fff;
  margin: 5% auto;
  padding: 28px;
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.35s ease;
}

.popup-content h4 {
  color: var(--green-1);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.popup-content p {
  color: #2c5a40;
  font-size: 1.02rem;
  line-height: 1.7;
}

.close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.9rem;
  font-weight: 800;
  cursor: pointer;
  color: #2c5a40;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.close:hover { transform: scale(1.12); opacity: 0.9; }

/* ---------- RESÍDUOS ---------- */
.residuos-grid {
  margin-top: 30px;
}

.card-residuo {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  border-left: 6px solid var(--green-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-residuo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.card-residuo h4 {
  color: var(--green-1);
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.card-residuo p {
  color: #2c5a40;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- CAMINHÕES / FROTA ---------- */
.fleet-grid {
  margin-top: 30px;
}

.fleet-card .card-desc {
  padding: 0 16px 18px;
  color: #2c5a40;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-fleet {
  margin: 0 18px 20px;
  width: calc(100% - 36px);
}

/* Popup Fleet (universal) */
.popup-fleet .popup-sub {
  margin: 8px 0 16px;
  color: #2c5a40;
}

.fleet-label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--green-2);
}

.fleet-select, .fleet-textarea {
  width: 100%;
  border: 1px solid rgba(15,61,35,0.25);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  outline: none;
}

.fleet-textarea { resize: vertical; }

.fleet-cta {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* ---------- PARCEIROS ---------- */
.parceiros {
  background: #f7fbf8;
  overflow: hidden;
}

.parceiros-marquee {
  position: relative;
  width: 100%;
  margin-top: 30px;
  overflow: hidden;
}

.parceiros-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.parceiros-track img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: saturate(1.05);
  opacity: 0.95;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.parceiros-track img:hover {
  transform: scale(1.06);
  opacity: 1;
}

/* Animação correta */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .parceiros-track {
    animation-duration: 30s; /* mais rápido no mobile */
    gap: 32px;
  }

  .parceiros-track img {
    height: 64px;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: rgba(25, 85, 55, 0.98);
  color: #fff;
  padding: 50px 0 18px;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  width: 260px;
  max-height: 64px;
  object-fit: contain;
}

.footer-info {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.95;
}

.footer-info a {
  color: #a8f5c4;
  text-decoration: none;
  transition: opacity 0.25s ease, text-decoration-color 0.25s ease;
}

.footer-info a:hover {
  opacity: 0.95;
  text-decoration: underline;
}

.footer-right h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #a8f5c4;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-item {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-whatsapp-footer {
  display: inline-block;
  margin-top: 14px;
  background: #25d366;
  color: #0f3d23;
  font-weight: 900;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-whatsapp-footer:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0.9;
  font-size: 0.95rem;
}

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 62px;
  height: 62px;
  z-index: 9999;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.wa-float img {
  width: 34px;
  height: 34px;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {
  body { padding-top: var(--header-h-mobile); }

  .nav-links { display: none; }

  .menu { display: flex; }

  .mobile { top: var(--header-h-mobile); }

  .hero-overlay {
    padding: 26px 18px;
    width: 92%;
  }

  .hero-overlay h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .about-grid {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .about-text {
    padding: 26px 18px;
    text-align: center;
  }

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

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-img img { max-height: 350px; }
  .about-carousel { min-height: auto; }

  .about-carousel-track {
    gap: 18px;
    animation-duration: 18s;
  }

  .about-carousel-track img {
    width: 240px;
    min-height: 320px;
    border-radius: 14px;
  }

  .grid-cards { grid-template-columns: 1fr; }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left { align-items: center; }

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

  .footer-logo {
    width: 220px;
    max-height: 56px;
  }

  .social-links { align-items: center; }

  .wa-float {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
}
.dev-link{
  color: #a8f5c4;
  text-decoration: none;
  font-style: italic;
  transition: opacity 0.25s ease, text-decoration-color 0.25s ease;
}

.dev-link:hover{
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom{
  opacity: 0.9; /* mantém seu padrão */
}
/* =========================
   AJUSTES DE ALINHAMENTO
   (Títulos + Subtítulos)
========================= */
.section-title,
.subtitle {
  text-align: center;
}

/* Em alguns trechos, o container pode herdar alinhamento lateral.
   Isso garante centralização do título dentro das seções. */
#residuos .section-title,
#caminhoes .section-title,
#parceiros .section-title {
  text-align: center;
}


/* =========================
   POPUPS — BOTÃO CENTRALIZADO
   + MAIS ESPAÇO (CTA)
========================= */
.popup-content .btn,
.popup-content .btn-primary {
  display: block;
  width: 100%;
  max-width: 420px;     /* mantém elegante no desktop */
  margin: 18px auto 0;  /* centraliza e dá respiro */
  text-align: center;
  padding: 14px 18px;   /* mais espaço pro texto do botão */
  line-height: 1.2;
  white-space: normal;  /* evita cortar texto */
}

/* Título do popup central (opcional, mas costuma ficar melhor) */
.popup-content h4 {
  text-align: center;
}

/* Dá um pouco mais de ar no texto do popup */
.popup-content p {
  margin-top: 10px;
}


/* =========================
   PARCEIROS — LOGOS MAIORES
   (como estava antes, tamanho médio)
========================= */
.parceiros-track img {
  height: 78px;  /* aumentei de 56px para um tamanho médio */
}

/* Mobile: mantém proporcional sem estourar */
@media (max-width: 768px) {
  .parceiros-track img {
    height: 62px;
  }
}
/* =========================================
   RESTAURA LINHA ANIMADA DOS TÍTULOS
   (sem quebrar alinhamento/espaçamento)
========================================= */

/* 1) Para títulos com .section-title */
.section-title {
  position: relative;
  display: inline-block; /* necessário p/ linha acompanhar o texto */
  padding-bottom: 14px;  /* cria espaço p/ linha sem mexer na seção */
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--green-1);
  border-radius: 6px;
  transition: width 0.35s ease;
}

/* Hover/Focus/Toque */
.section-title:hover::after,
.section-title:focus-visible::after,
.section-title:active::after {
  width: 90px;
}

/* 2) Caso seus títulos estejam em .section-header h3 (muito comum) */
.section-header h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-header h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--green-1);
  border-radius: 6px;
  transition: width 0.35s ease;
}

.section-header h3:hover::after,
.section-header h3:focus-visible::after,
.section-header h3:active::after {
  width: 90px;
}

/* 3) Caso seja direto: .container > h3.section-title (título fora do header) */
.container > h3.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

/* 4) Mantém centralização do conjunto (sem mexer no spacing da seção) */
.section-header,
.container {
  text-align: center;
}
/* ===== Cards compactos (Resíduos) – AJUSTE FINAL ===== */

/* ===== Cards compactos (Resíduos) – ALINHAMENTO PERFEITO ===== */

.card-mini{
  display: grid;
  /* 3 linhas fixas e previsíveis: título | subtítulo | botão */
  grid-template-rows: 64px 56px auto;
  padding: 22px 22px 24px;
  height: 100%;
  text-align: center; /* centraliza título e subtítulo */
}

/* TÍTULO: mesma altura para todos, centralizado */
.card-mini h4{
  margin: 0;
  height: 64px;                 /* fixa o bloco do título */
  display: flex;
  align-items: center;          /* central vertical */
  justify-content: center;      /* central horizontal */
  line-height: 1.25;

  /* limita para não “estourar” */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;        /* até 3 linhas */
  -webkit-box-orient: vertical;
}

/* SUBTÍTULO: começa sempre na mesma linha visual */
.card-sub{
  margin: 0;
  height: 56px;                 /* fixa o bloco do subtítulo */
  display: flex;
  align-items: flex-start;      /* cola no topo do bloco */
  justify-content: center;
  line-height: 1.55;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* até 2 linhas */
  -webkit-box-orient: vertical;
}

/* CTA "Ver detalhes": com respiro e sem colar na borda */
.card-cta{
  justify-self: center;         /* centraliza no grid */
  margin-top: 14px;             /* distância do texto */
  padding: 9px 22px;
  border-radius: 22px;
  background: rgba(15, 61, 35, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* Hover do card */
.card-mini:hover{
  transform: translateY(-4px);
}

/* Hover do CTA */
.card-mini:hover .card-cta{
  background: rgba(15, 61, 35, 0.14);
  text-decoration: none;
}
/* ===== FORÇA TAMANHO DOS PARCEIROS (override) ===== */
.parceiros .parceiros-track img{
  height: 120px !important;
  width: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}
