/* ==========================================================================
   MAWATI — Gerenciamento de Resíduos
   Folha de estilo moderna, estática e sem dependências de framework.
   ========================================================================== */

:root {
  /* Marca */
  --yellow:      #ffcb05;
  --yellow-600:  #e6b400;
  --yellow-300:  #ffe07a;

  --green-900:   #0b241a;
  --green-800:   #103021;
  --green-700:   #15512f;
  --green-600:   #1c7a44;
  --green-500:   #23a35a;
  --green-300:   #7fd6a3;

  --ink:         #0f1714;
  --body:        #36433d;
  --muted:       #6b7a72;
  --line:        #e4ebe6;

  --bg:          #ffffff;
  --bg-soft:     #f3f7f4;
  --bg-dark:     #0b241a;

  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 2px rgba(11, 36, 26, .06), 0 2px 8px rgba(11, 36, 26, .05);
  --shadow:      0 8px 30px rgba(11, 36, 26, .10);
  --shadow-lg:   0 24px 60px rgba(11, 36, 26, .18);

  --container:   1180px;
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --font-head:   "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 6px; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #cfe0d6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.section--dark .eyebrow { color: var(--yellow); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 16px; }
.section--dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #a9c2b4; }

/* ----- Buttons ----- */
.btn {
  --bg: var(--green-600); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 20px; height: 20px; }
.btn--yellow { --bg: var(--yellow); --fg: var(--green-900); }
.btn--yellow:hover { background: var(--yellow-600); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); }
.btn--dark { --bg: var(--green-900); --fg: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding: 16px 0;
}
.site-header.scrolled { background: rgba(11, 36, 26, .92); backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 10px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo img { height: 40px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .nav__logo img { height: 34px; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a {
  color: rgba(255,255,255,.86); font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__menu a:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 9px; color: #fff;
  font-family: var(--font-head); font-weight: 700;
}
.nav__phone svg { width: 18px; height: 18px; color: var(--yellow); }
.nav__phone small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-300); }

.nav__toggle { display: none; background: rgba(255,255,255,.12); border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; transition: .3s var(--ease); }
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/intro-bg.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(11,36,26,.94) 0%, rgba(11,36,26,.78) 45%, rgba(11,36,26,.45) 100%);
}
.hero__inner { padding: 140px 0 80px; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  backdrop-filter: blur(6px); margin-bottom: 26px;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.hero h1 .accent { color: var(--yellow); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d4e4da; margin: 22px 0 36px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 48px; }
.hero__trust div { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: #cfe0d6; }
.hero__trust svg { width: 22px; height: 22px; color: var(--green-300); flex: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(255,255,255,.7); animation: bob 2s infinite; }
.hero__scroll svg { width: 30px; height: 30px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { background: var(--yellow); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 44px 0; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--green-900); line-height: 1; }
.stat__label { font-weight: 600; color: #5a4e00; margin-top: 8px; font-size: .95rem; }

/* ==========================================================================
   Serviços
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-300); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-500)); color: #fff; margin-bottom: 22px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; }
.card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--green-600); font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__more svg { transform: translateX(4px); }

/* Resíduos chips */
.residuos { margin-top: 60px; background: var(--green-900); border-radius: var(--radius); padding: 44px clamp(28px, 5vw, 56px); color: #fff; }
.residuos h3 { color: #fff; font-size: 1.5rem; }
.residuos p { color: #a9c2b4; margin: 10px 0 26px; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #e8f1eb;
  transition: background .2s, border-color .2s;
}
.chip:hover { background: rgba(255,203,5,.14); border-color: var(--yellow); }
.chip svg { width: 17px; height: 17px; color: var(--green-300); }

/* ==========================================================================
   Equipamentos
   ========================================================================== */
.fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.fleet__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fleet__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fleet__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.fleet__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.fleet__item:hover .fleet__media img { transform: scale(1.06); }
.fleet__body { padding: 26px 28px; }
.fleet__body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.fleet__body .tag { display: inline-block; background: var(--bg-soft); color: var(--green-700); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; font-family: var(--font-head); }
.fleet__body p { color: var(--muted); font-size: 1rem; }

/* ==========================================================================
   Quem somos
   ========================================================================== */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about__lead p { color: var(--body); font-size: 1.06rem; margin-bottom: 16px; }
.about__lead p:first-of-type::first-letter { font-size: 1.1em; }
.mvv { display: grid; gap: 16px; }
.mvv__item { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--green-500); border-radius: var(--radius-sm); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.mvv__item h4 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 7px; }
.mvv__item h4 svg { width: 20px; height: 20px; color: var(--green-600); }
.mvv__item p { color: var(--muted); font-size: .98rem; }

/* ==========================================================================
   Legislação (accordion nativo)
   ========================================================================== */
.legis { max-width: 860px; margin-inline: auto; }
.accordion { display: grid; gap: 14px; margin-top: 8px; }
details.acc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
details.acc[open] { border-color: var(--green-300); }
.acc summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; }
.acc summary .plus svg { width: 16px; height: 16px; color: var(--green-600); }
details.acc[open] summary .plus { transform: rotate(135deg); background: var(--green-600); }
details.acc[open] summary .plus svg { color: #fff; }
.acc__body { padding: 0 24px 24px; color: var(--body); font-size: .98rem; }
.acc__body p { margin-bottom: 12px; }
.acc__body h5 { font-family: var(--font-head); color: var(--ink); margin: 14px 0 8px; font-size: 1rem; }
.acc__body ul { display: grid; gap: 7px; padding-left: 4px; }
.acc__body li { position: relative; padding-left: 26px; color: var(--muted); }
.acc__body li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.acc__body a { color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(1.05); }
.contact__info { display: grid; gap: 14px; align-content: start; }
.contact-line {
  display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .2s; color: var(--ink);
}
.contact-line:hover { transform: translateX(4px); border-color: var(--green-300); }
.contact-line__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--green-600); }
.contact-line__ico svg { width: 22px; height: 22px; }
.contact-line small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-line strong { font-family: var(--font-head); font-size: 1.05rem; }
.contact-line--wpp { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.contact-line--wpp .contact-line__ico { background: rgba(255,255,255,.16); color: #fff; }
.contact-line--wpp small { color: rgba(255,255,255,.8); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--green-900); color: #9fb8aa; padding: 60px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 44px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; font-size: .96rem; }
.footer__seal { margin-top: 20px; height: 92px; width: auto; opacity: .95; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a:hover { color: var(--yellow); }
.footer__col li { font-size: .96rem; }
.footer__bottom { padding-top: 24px; text-align: center; font-size: .88rem; color: #6f897b; }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.wpp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.wpp-float:hover { transform: scale(1.08); }
.wpp-float svg { width: 32px; height: 32px; }
.wpp-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Sem JS, todo o conteúdo aparece normalmente; a animação só é aplicada
   quando o JS adiciona a classe .js ao <html> (progressive enhancement). */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--green-900); flex-direction: column; align-items: stretch; justify-content: center;
    gap: 8px; padding: 80px 28px; transform: translateX(110%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav__menu { transform: none; }
  .nav__menu a { font-size: 1.1rem; padding: 14px 18px; }
  .nav__toggle { display: block; order: 3; }
  .nav__phone { display: none; }
  .cards, .fleet, .stats__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards, .fleet, .stats__grid { grid-template-columns: 1fr; }
  .stats__grid { gap: 20px; padding: 34px 0; }
  .hero__inner { padding-top: 120px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer__top { grid-template-columns: 1fr; }
  .residuos { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
