/* Prevengenharia – cores da marca: verde #33CC33, verde escuro #324532 */
:root {
  --verde: #33cc33;
  --verde-700: #23a023;
  --verde-escuro: #2f4430;
  --verde-noite: #1f2e20;
  --tinta: #1d241e;
  --texto: #3d4a3f;
  --suave: #6b776c;
  --fundo: #ffffff;
  --fundo-claro: #f3f7f2;
  --linha: #dfe7dd;
  --wpp: #1faa53;
  --wpp-hover: #188c44;
  --raio: 14px;
  --sombra: 0 10px 30px rgba(31, 46, 32, .10);
  --cabecalho: 76px;
  --titulo: "Josefin Sans", system-ui, sans-serif;
  --corpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--cabecalho); }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--corpo);
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); color: var(--tinta); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--verde-escuro); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 1rem/1 var(--corpo);
  padding: .95em 1.4em; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--wpp { background: var(--wpp); color: #fff; box-shadow: 0 6px 18px rgba(31, 170, 83, .3); }
.btn--wpp:hover { background: var(--wpp-hover); transform: translateY(-1px); }
.btn--linha { border-color: var(--verde-escuro); color: var(--verde-escuro); }
.btn--linha:hover { background: var(--verde-escuro); color: #fff; }
.btn--sm { padding: .65em 1.1em; font-size: .92rem; }
.btn--grande { font-size: 1.15rem; padding: 1.05em 1.7em; }

/* Cabeçalho */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topo.rolou { border-color: var(--linha); box-shadow: 0 4px 20px rgba(31, 46, 32, .06); }
.topo__inner { height: var(--cabecalho); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topo__logo img { width: 210px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--texto); position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--verde); transform: scaleX(0); transition: transform .2s; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--fundo-claro), #fff 85%); padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid > *, .sobre > *, .cards > *, .grupo > * { min-width: 0; }
body { overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.selo { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--verde-700); background: rgba(51, 204, 51, .12); padding: .45em .9em; border-radius: 999px; margin-bottom: 1.2em; }
.hero h1 span { color: var(--verde-700); }
.hero__sub { font-size: 1.12rem; max-width: 36em; color: var(--texto); }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.hero__foto { position: relative; }
.hero__foto img { border-radius: 24px; aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; box-shadow: var(--sombra); }
.hero__foto::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 55%; height: 55%; border-radius: 24px; background: var(--verde); opacity: .18; z-index: -1; }
.hero__cartao { position: absolute; left: -22px; bottom: 28px; background: var(--verde-escuro); color: #fff; padding: 16px 20px; border-radius: 16px; box-shadow: var(--sombra); max-width: 220px; }
.hero__cartao strong { display: block; font: 700 1.9rem/1 var(--titulo); color: var(--verde); }
.hero__cartao span { font-size: .88rem; line-height: 1.35; display: block; margin-top: 4px; }

/* Faixa */
.faixa { background: var(--verde-escuro); color: #e9f1e8; padding: 26px 0; }
.faixa__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.faixa__item { display: flex; gap: 12px; align-items: flex-start; }
.faixa__item svg { width: 34px; height: 34px; color: var(--verde); flex: none; }
.faixa__item strong { display: block; color: #fff; font-size: .98rem; }
.faixa__item span { font-size: .86rem; opacity: .8; }

/* Seções */
.secao { padding: clamp(64px, 9vw, 110px) 0; }
.secao--escura { background: var(--verde-noite); color: #d8e3d6; }
.secao--escura h2, .secao--escura h3 { color: #fff; }
.secao--clara { background: var(--fundo-claro); }
.secao__cab { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.secao__cab p:last-child { color: var(--suave); font-size: 1.05rem; }
.secao--escura .secao__cab p:last-child { color: #b9c7b7; }
.sobretitulo { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--verde-700); margin-bottom: .6em; }
.secao--escura .sobretitulo { color: var(--verde); }

/* Cards de serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__corpo { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__corpo p { color: var(--texto); font-size: .96rem; flex: 1; }
.card__corpo strong { color: var(--tinta); font-weight: 600; }
.card__link { font-weight: 600; color: var(--verde-700); text-decoration: none; font-size: .95rem; }
.card__link:hover { text-decoration: underline; }

.card { cursor: pointer; }
.card__mais { align-self: flex-start; background: none; border: 0; padding: 0; font: 600 .95rem/1.4 var(--corpo); color: var(--verde-700); cursor: pointer; }
.card:hover .card__mais { text-decoration: underline; }

/* Janela de detalhes do serviço */
.detalhe {
  width: min(720px, 100% - 24px); max-height: min(88vh, 900px);
  padding: 0; border: 0; border-radius: 20px; overflow: hidden auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); color: var(--texto);
}
.detalhe:focus-visible { outline: none; }
.detalhe::backdrop { background: rgba(20, 30, 21, .62); backdrop-filter: blur(3px); }
.detalhe[open] { animation: detalheEntra .25s ease; }
@keyframes detalheEntra { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.detalhe__cab { position: relative; }
.detalhe__cab img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.detalhe__fechar {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--tinta); font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.detalhe__fechar:hover { background: #fff; }
.detalhe__corpo { padding: 28px clamp(20px, 4vw, 40px) 34px; }
.detalhe__corpo h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.detalhe__corpo h3 { font-size: 1.05rem; margin: 1.5em 0 .5em; color: var(--verde-escuro); }
.detalhe__corpo ul { margin: 0 0 1em; padding-left: 1.2em; }
.detalhe__corpo li { margin-bottom: .5em; }
.detalhe__corpo li::marker { color: var(--verde); }
.detalhe__corpo strong { color: var(--tinta); font-weight: 600; }
.detalhe__corpo a:not(.btn) { color: var(--verde-700); font-weight: 600; }
.detalhe__corpo .btn { margin-top: 1em; }
body.travado { overflow: hidden; }

/* Etapas */
.etapas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: etapa; }
.etapas li { position: relative; padding: 26px 22px; border-radius: var(--raio); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.etapas__num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--verde); color: var(--verde-noite); font: 700 1.2rem/1 var(--titulo); margin-bottom: 16px; }
.etapas p { font-size: .95rem; margin: 0; }

/* Sobre */
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sobre__foto img { border-radius: 24px; box-shadow: var(--sombra); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.responsavel { border-left: 4px solid var(--verde); padding: 6px 0 6px 18px; margin: 1.6em 0; }
.responsavel strong { display: block; font: 600 1.2rem/1.3 var(--titulo); color: var(--tinta); }
.responsavel span { color: var(--suave); font-size: .95rem; }
.equipe__titulo { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); font-family: var(--corpo); margin-top: 1.6em; }
.equipe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.equipe li { background: var(--fundo-claro); border-radius: 12px; padding: 14px 16px; }
.equipe strong { display: block; color: var(--tinta); }
.equipe span { font-size: .88rem; color: var(--suave); }

/* Grupo */
.grupo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grupo__card { display: flex; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 28px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.grupo__card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.grupo__card img { width: 120px; flex: none; }
.grupo__card p { color: var(--texto); font-size: .96rem; }
.grupo__card--escuro { background: var(--verde-escuro); border-color: var(--verde-escuro); }
.grupo__card--escuro h3 { color: #fff; }
.grupo__card--escuro p { color: #d6e2d4; }
.grupo__card--escuro .card__link { color: var(--verde); }
.grupo__card--escuro img { width: 150px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--verde-escuro), #3c5a3d); color: #e6efe5; padding: clamp(52px, 7vw, 80px) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.08rem; }

/* Rodapé */
.rodape { background: var(--verde-noite); color: #b9c7b7; padding: 56px 0 0; font-size: .95rem; }
.rodape__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.rodape__logo { width: 210px; }
.rodape h3 { color: #fff; font-family: var(--corpo); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.rodape a { color: #e3ece2; text-decoration: none; }
.rodape a:hover { color: var(--verde); }
.rodape__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding: 22px 0 26px; font-size: .86rem; }
.rodape__base p { margin: 0; }

/* WhatsApp flutuante */
.wpp-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wpp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .2s, background-color .2s;
}
.wpp-flutuante:hover { transform: scale(1.07); background: var(--wpp-hover); }
.wpp-flutuante svg { width: 32px; height: 32px; }

/* Animação de entrada */
.revelar { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.revelar.visivel { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .etapas { grid-template-columns: repeat(2, 1fr); }
  .faixa__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --cabecalho: 66px; }
  .topo__logo img { width: 170px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
    background: var(--fundo-claro); cursor: pointer;
  }
  .menu-btn span { height: 2px; background: var(--verde-escuro); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: fixed; inset: var(--cabecalho) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linha);
    padding: 8px 16px 20px; box-shadow: 0 16px 30px rgba(31, 46, 32, .1);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .menu.aberto { transform: none; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--linha); font-size: 1.02rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 16px; justify-content: center; }

  .hero__grid, .sobre { grid-template-columns: 1fr; }
  .hero__foto { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__cartao { left: 12px; bottom: 12px; }
  .sobre__foto { max-width: 380px; margin-inline: auto; }
  .grupo { grid-template-columns: 1fr; }
  .rodape__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards, .etapas, .faixa__grid, .equipe { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; }
  .selo { font-size: .74rem; }
  .hero__acoes .btn { width: 100%; justify-content: center; }
  .grupo__card { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; justify-content: center; }
  .wpp-flutuante { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .revelar { opacity: 1; transform: none; }
}
