/* ==========================================================
   Eco Ambiental SC — estilos
   Ordem: variáveis > base > componentes > seções > responsivo
   ========================================================== */

/* ---------- Variáveis (cores e medidas da marca) ---------- */
:root {
  --lima: #A4D65E;
  --lima-claro: #E9F5D6;
  --verde: #3E7B1F;
  --verde-escuro: #1F4D1A;
  --verde-noite: #143411;
  --whatsapp: #25D366;
  --whatsapp-escuro: #1DA851;

  --texto: #1E2A1C;
  --texto-suave: #55624F;
  --borda: #E3E9DD;
  --fundo: #FFFFFF;
  --fundo-suave: #F5F8F1;

  --fonte-titulo: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-texto: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio: 16px;
  --sombra: 0 10px 30px rgba(31, 77, 26, .08);
  --sombra-forte: 0 18px 40px rgba(31, 77, 26, .16);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--verde-escuro);
}
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--verde); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--verde-escuro); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }

.icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .95rem;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--green { background: var(--verde); color: #fff; }
.btn--green:hover { background: var(--verde-escuro); box-shadow: var(--sombra); }

.btn--whatsapp { background: var(--whatsapp); color: #08310F; }
.btn--whatsapp:hover { background: #3BE07A; box-shadow: 0 10px 25px rgba(37, 211, 102, .35); }

.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.btn--small { padding: .55em 1.1em; font-size: .9rem; }
.btn--large { padding: 1em 1.6em; font-size: 1rem; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); border-color: var(--borda); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-family: var(--fonte-titulo); font-weight: 600; font-size: .95rem;
  color: var(--texto); text-decoration: none; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--lima); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  color: #fff;
  padding: 72px 0 64px;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg img { object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 52, 17, .95) 0%, rgba(31, 77, 26, .85) 45%, rgba(31, 77, 26, .45) 100%);
}

.hero__content { max-width: 1180px; }
.hero__eyebrow {
  display: inline-block; font-family: var(--fonte-titulo); font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; color: var(--verde-escuro); background: var(--lima);
  padding: .35em .9em; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero__title {
  color: #fff; font-weight: 800; max-width: 15ch;
  font-size: clamp(2.1rem, 6.5vw, 3.8rem); letter-spacing: -.02em;
}
.hero__title span { color: var(--lima); }
.hero__subtitle { max-width: 58ch; font-size: clamp(1rem, 2.4vw, 1.15rem); color: #E8F1E2; margin-bottom: 2rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badges {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-size: .95rem; color: #D9E8D0;
}
.hero__badges li { display: flex; align-items: baseline; gap: .4em; }
.hero__badges strong { font-family: var(--fonte-titulo); font-size: 1.35rem; color: var(--lima); }

/* ---------- Seções (base) ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section--soft { background: var(--fundo-suave); }
.section--dark { background: var(--verde-escuro); color: #DDE9D6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p:last-child { color: var(--texto-suave); margin: 0; }

.eyebrow {
  font-family: var(--fonte-titulo); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--verde); margin-bottom: .6rem;
}
.eyebrow--light { color: var(--lima); }

/* ---------- Cards de serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 30px 26px; box-shadow: var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra-forte); border-color: var(--lima); }

.card__icon {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--lima-claro); color: var(--verde);
  transition: background-color .3s ease, color .3s ease;
}
.card:hover .card__icon { background: var(--verde); color: var(--lima); }
.card__icon svg { width: 32px; height: 32px; }

.card h3 { margin-bottom: .25em; }
.card__tag { font-size: .85rem; font-weight: 600; color: var(--verde); margin-bottom: .9em; }
.card p:not(.card__tag) { color: var(--texto-suave); font-size: .95rem; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 48px; align-items: center; }
.about__text p { color: var(--texto-suave); }
.about__text strong { color: var(--texto); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 32px; font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__img { margin: 0; position: relative; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra-forte); }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__img--offset { margin-top: 48px; }
.about__img figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(20, 52, 17, .78); backdrop-filter: blur(4px);
  padding: .45em .8em; border-radius: 10px;
}

/* ---------- Galeria de resultados ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: start; }
.gallery__item { margin: 0; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; position: relative;
  border-radius: var(--raio); overflow: hidden; background: var(--verde-noite); box-shadow: var(--sombra);
}
.gallery__btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__btn--stacked img { object-fit: cover; }
.gallery__item figcaption { margin-top: 12px; text-align: center; font-family: var(--fonte-titulo); font-weight: 700; color: var(--verde-escuro); }

.tag {
  position: absolute; left: 12px;
  font-family: var(--fonte-titulo); font-size: .8rem; font-weight: 700; text-transform: uppercase;
  background: var(--lima); color: var(--verde-escuro); padding: .25em .7em; border-radius: 6px;
}
.tag--top { top: 12px; }
.tag--bottom { top: calc(50% + 12px); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 25, 8, .88); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: -18px; right: -10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--verde-escuro); font-size: 1.8rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}

/* ---------- Por que escolher ---------- */
/* 1 coluna no celular, 2 no tablet e 4 no computador (nunca 3 + 1 sobrando) */
.features { display: grid; gap: 20px; }
@media (min-width: 560px)  { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  padding: 28px 24px; border-radius: var(--raio);
  background: rgba(255,255,255,.05); border: 1px solid rgba(164, 214, 94, .2);
  transition: background-color .3s ease, transform .3s ease;
}
.feature:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.feature__icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--lima); color: var(--verde-escuro);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- Chamada final ---------- */
.cta { background: linear-gradient(120deg, var(--verde) 0%, #5C9B2C 100%); padding: 56px 0; color: #fff; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; color: #EAF5DD; }

/* ---------- Rodapé ---------- */
.footer { background: var(--verde-noite); color: #C9D8C1; padding: 64px 0 24px; font-size: .95rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.footer__grid { display: grid; gap: 40px; }
.footer__brand img { width: 190px; background: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.footer__list li { display: flex; align-items: center; gap: .7em; }
.footer__list svg { width: 20px; height: 20px; color: var(--lima); flex-shrink: 0; }
.footer__list a { color: #fff; text-decoration: none; word-break: break-word; }
.footer__list a:hover { color: var(--lima); text-decoration: underline; }
.footer__list--plain { gap: .45rem; }
.footer__copy { margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #93A88A; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); background: var(--whatsapp-escuro); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: pulso 2.4s ease-out infinite;
}
@keyframes pulso {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Animações ao rolar ---------- */
/* só esconde os elementos se o JavaScript estiver ativo (classe "js" no <html>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsivo — o layout base acima é para celular;
   abaixo, ajustes para telas menores e maiores
   ========================================================== */

/* Menu de celular (até 860px) */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; border: 0; border-radius: 10px;
    background: var(--fundo-suave); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2.5px; background: var(--verde-escuro); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--borda);
    box-shadow: 0 16px 30px rgba(0,0,0,.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--borda); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; padding: .9em; }
}

@media (max-width: 520px) {
  .header__logo img { height: 42px; }
  .hero { min-height: 0; padding: 36px 0 40px; }
  .hero::before { background: linear-gradient(180deg, rgba(20, 52, 17, .62) 0%, rgba(20, 52, 17, .86) 50%, rgba(20, 52, 17, .96) 100%); }
  .hero__eyebrow { font-size: .75rem; margin-bottom: 1rem; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: .95rem; margin-bottom: 1.5rem; }
  .hero__actions .btn { width: 100%; font-size: .95rem; padding: .95em 1.2em; }
  .hero__badges { margin-top: 1.8rem; gap: 8px 18px; font-size: .85rem; }
  .hero__badges strong { font-size: 1.1rem; }
  .about__img--offset { margin-top: 32px; }
}

@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .about { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}
