/* ==========================================================================
   M&A SOLUCOES ENERGETICAS · style.css
   1.  Variaveis e reset
   2.  Utilitarios
   3.  Botoes WhatsApp
   4.  Topbar e header
   5.  Hero e estatisticas
   6.  Blocos de conteudo
   7.  Navegacao SEO
   8.  CTA, SEO e mapa
   9.  Rodape
   10. Barra mobile
   11. Widget Magnum
   12. Acessibilidade
   13. Responsivo
   14. Menu mobile
   15. Scroll Motion
   16. Interlinking
   17. Performance
   ========================================================================== */

/* ---------- 1. VARIAVEIS E RESET ---------- */
:root {
  --primary:   #F2A900;
  --secondary: #0C63C8;
  --dark:      #08203A;
  --light:     #F5F7FA;
  --text:      #42505F;
  --muted:     #8A96A6;
  --line:      #E4E9F0;
  --wa1:       #25D366;
  --wa2:       #128C7E;
  --wa3:       #0E6E5F;
  --font:      'Inter','Segoe UI',Helvetica,Arial,sans-serif;

  /* Z-INDEX STACK
     199 -> .wa-bar      (barra mobile fixa)
     198 -> #magnum      (widget de chat)
     126 -> .menu        (menu mobile)
     125 -> .overlay
     120 -> header       (sticky) */
  --z-header:  120;
  --z-overlay: 125;
  --z-menu:    126;
  --z-chat:    198;
  --z-wa-bar:  199;

  /* AVATARES */
  --avatar-lg: 64px;
  --avatar-md: 46px;
  --avatar-sm: 40px;
  --avatar-xs: 36px;

  /* CHAT INTERNO */
  --chat-subtitle: #C4F0E4;
  --chat-bg:       #F7FAFC;
  --chat-online:   #D6FFE6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text); line-height: 1.75; font-size: 16.5px; background: #fff; }
img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { text-decoration: none; color: inherit; }

/* ---------- 2. UTILITARIOS ---------- */
.container         { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow  { max-width: 920px; }
.eyebrow           { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--secondary); }
h1,h2,h3,h4       { color: var(--dark); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
section            { padding: 100px 0; }
.lead              { font-size: 19px; color: var(--muted); }
.btn               { display: inline-block; padding: 15px 30px; border-radius: 4px; font-weight: 700; font-size: 15px; transition: .25s; }
.btn-ghost         { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover   { background: #fff; color: var(--dark); }
.bg-light          { background: var(--light); }
.sr                { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cta .eyebrow      { color: var(--primary); }

/* ---------- 3. BOTOES WHATSAPP ---------- */
.btn-wa {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 17px 34px; border-radius: 50px;
  background: linear-gradient(135deg, var(--wa1) 0%, var(--wa2) 55%, var(--wa3) 100%);
  background-size: 200% 200%;
  color: #fff; font-weight: 800; font-size: 15.5px; letter-spacing: -.01em;
  box-shadow: 0 8px 26px rgba(18,140,126,.38);
  overflow: hidden; isolation: isolate; cursor: pointer;
  animation: waPulse 2.6s ease-in-out infinite;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, background-position .6s;
}
.btn-wa::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-22deg); animation: waShine 3.6s ease-in-out infinite; z-index: -1;
}
.btn-wa:hover {
  transform: translateY(-4px) scale(1.045);
  background-position: 100% 50%;
  box-shadow: 0 16px 40px rgba(37,211,102,.5);
  animation-play-state: paused;
}
.btn-wa:active          { transform: translateY(-1px) scale(.99); }
.btn-wa:focus-visible   { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn-wa.wa-lg           { padding: 21px 46px; font-size: 17.5px; }
.btn-wa.wa-block        { display: flex; width: 100%; }

.ico-wa {
  width: 19px; height: 19px; flex: 0 0 19px; fill: currentColor; display: block;
  animation: waWiggle 3.2s ease-in-out infinite;
}
.wa-lg .ico-wa { width: 22px; height: 22px; flex: 0 0 22px; }

@keyframes waPulse {
  0%,100% { box-shadow: 0 8px 26px rgba(18,140,126,.38), 0 0 0 0 rgba(37,211,102,.55); }
  55%     { box-shadow: 0 8px 26px rgba(18,140,126,.38), 0 0 0 16px rgba(37,211,102,0); }
}
@keyframes waWiggle {
  0%,86%,100% { transform: rotate(0) scale(1); }
  90%         { transform: rotate(-13deg) scale(1.16); }
  94%         { transform: rotate(11deg) scale(1.16); }
  97%         { transform: rotate(-5deg) scale(1.06); }
}
@keyframes waShine { 0%,68% { left: -120%; } 100% { left: 130%; } }

.wa-hint    { display: block; margin-top: 13px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cta .wa-hint { color: #93A9C2; }
.center-cta { text-align: center; margin-top: 44px; }

.wa-strip   { background: linear-gradient(135deg,#0B2A48,#08203A); padding: 52px 0; }
.wa-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.wa-strip h3 { color: #fff; font-size: clamp(20px,2.3vw,27px); margin-bottom: 6px; }
.wa-strip p  { color: #9FB6CE; font-size: 15.5px; max-width: 560px; }

.wa-card {
  background: linear-gradient(160deg,#F0FBF5,#E4F7EC);
  border: 1px solid #BFE9D2; border-left: 4px solid var(--wa1);
  border-radius: 8px; padding: 32px; margin-top: 34px;
}
.wa-card h4 { font-size: 19px; margin-bottom: 8px; }
.wa-card p  { font-size: 15px; color: var(--text); margin-bottom: 22px; }

/* ---------- 4. TOPBAR E HEADER ---------- */
.topbar              { background: var(--dark); color: #A9BDD6; font-size: 12.5px; padding: 10px 0; }
.topbar .container   { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a            { color: var(--wa1); font-weight: 700; }

header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: nowrap; max-width: 1240px; margin: 0 auto; padding: 18px 24px;
}
.logo {
  flex: 0 1 auto; min-width: 0; font-size: 23px; font-weight: 800; color: var(--dark);
  letter-spacing: -.03em; line-height: 1.1; display: flex; flex-direction: column; white-space: nowrap;
}
.logo em { color: var(--primary); font-style: normal; font-size: 12px; letter-spacing: .02em; font-weight: 700; margin-top: 1px; }

.menu   { display: flex; gap: 20px; list-style: none; }
.menu a {
  font-size: 13.5px; font-weight: 600; color: var(--dark);
  padding-bottom: 4px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.menu a:hover        { border-color: var(--primary); }
.nav .btn-wa         { padding: 12px 24px; font-size: 14px; }

.burger {
  display: none; width: 44px; height: 44px; flex: 0 0 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; transition: background .2s;
}
.burger:hover                          { background: var(--light); }
.burger:focus-visible                  { outline: 2px solid var(--primary); outline-offset: 2px; }
.burger span                           { display: block; width: 22px; height: 2.5px; border-radius: 3px; background: var(--dark); transition: transform .28s, opacity .2s; }
.burger.is-x                          { background: var(--dark); border-color: var(--dark); }
.burger.is-x span                     { background: #fff; }
.burger.is-x span:nth-child(1)        { transform: translateY(7.5px) rotate(45deg); }
.burger.is-x span:nth-child(2)        { opacity: 0; }
.burger.is-x span:nth-child(3)        { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 5. HERO E ESTATISTICAS ---------- */
.hero           { position: relative; min-height: 600px; display: flex; align-items: flex-end; color: #fff; }
.hero-bg        { position: absolute; inset: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,32,58,.94),rgba(8,32,58,.72) 55%,rgba(8,32,58,.28)); }
.hero-inner     { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 800px; }
.hero .eyebrow  { color: var(--primary); }
.hero h1        { font-size: clamp(32px,5vw,56px); color: #fff; margin: 18px 0 22px; }
.hero h1 span   { color: var(--primary); }
.hero p         { font-size: 18.5px; color: #D7E3F2; max-width: 640px; }
.hero .wa-hint  { color: #A8BFD8; }
.hero-actions   { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.stats              { padding: 0; border-bottom: 1px solid var(--line); }
.stats-grid         { display: grid; grid-template-columns: repeat(4,1fr); }
.stat               { padding: 42px 24px; border-left: 1px solid var(--line); }
.stat:first-child   { border-left: 0; }
.stat b             { display: block; font-size: 34px; color: var(--dark); letter-spacing: -.03em; }
.stat span          { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* ---------- 6. BLOCOS DE CONTEUDO ---------- */
.split          { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split h2       { font-size: clamp(26px,3.2vw,40px); margin: 16px 0 22px; }
.split p        { margin-bottom: 16px; }
.figure         { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; }
.head-center    { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.head-center h2 { font-size: clamp(26px,3.2vw,40px); margin: 16px 0 14px; }

.cards          { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 28px; }
.card           { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: .3s; display: flex; flex-direction: column; }
.card:hover     { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(8,32,58,.11); }
.card-img       { aspect-ratio: 16/10; overflow: hidden; }
.card-body      { padding: 28px; }
.card h3        { font-size: 19.5px; margin-bottom: 10px; }
.card p         { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

.eq             { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.eq > div       { background: #fff; padding: 34px 30px; }
.eq .num        { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: .15em; }
.eq h4          { font-size: 17.5px; margin: 12px 0 8px; }
.eq p           { font-size: 14.5px; color: var(--muted); }

.steps          { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 30px; }
.step           { padding-top: 26px; border-top: 3px solid var(--primary); }
.step b         { font-size: 12px; letter-spacing: .16em; color: var(--muted); font-weight: 800; }
.step h4        { font-size: 18px; margin: 10px 0 8px; }
.step p         { font-size: 14.5px; color: var(--muted); }

.reviews        { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 28px; }
.review         { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px; transition: .3s; }
.review:hover   { box-shadow: 0 16px 40px rgba(8,32,58,.09); }
.review-top     { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.review-photo   { width: var(--avatar-lg); height: var(--avatar-lg); border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--primary); }
.review-top strong { display: block; color: var(--dark); font-size: 15px; }
.review-top small  { color: var(--muted); font-size: 13px; }
.review .stars  { color: var(--primary); letter-spacing: 3px; margin-bottom: 14px; font-size: 14px; }
.review q       { display: block; font-size: 16px; color: var(--dark); font-style: italic; }

/* FAQ */
.faq-item   { border-bottom: 1px solid var(--line); }
.faq-q      {
  width: 100%; background: none; border: 0; text-align: left;
  padding: 24px 44px 24px 0; font-size: 17px; font-weight: 700; color: var(--dark);
  cursor: pointer; position: relative; font-family: var(--font); line-height: 1.4;
}
.faq-q::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); font-weight: 600; }
.faq-q.is-open::after,
.faq-q[aria-expanded="true"]::after { content: "-"; }
.faq-a          { display: none; padding: 0 40px 26px 0; font-size: 15.5px; color: var(--text); }
.faq-a.is-open,
.faq-a.open     { display: block; }

/* ---------- 7. NAVEGACAO SEO ---------- */
.nav-seo-head       { display: flex; align-items: baseline; gap: 14px; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.nav-seo-head h3    { font-size: 21px; }
.links-grid         { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.nav-item           { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 6px; padding: 22px 52px 22px 24px; transition: .28s; }
.nav-item:hover     { border-left-color: var(--wa1); box-shadow: 0 12px 30px rgba(8,32,58,.1); transform: translateY(-3px); }
.nav-item .tag      { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--secondary); background: #EDF4FD; border-radius: 3px; padding: 4px 9px; margin-bottom: 11px; }
.nav-item strong    { display: block; font-size: 16px; color: var(--dark); font-weight: 800; letter-spacing: -.01em; margin-bottom: 7px; line-height: 1.3; }
.nav-item p         { font-size: 14px; color: var(--muted); line-height: 1.6; }
.nav-item .go       { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--muted); transition: .28s; }
.nav-item:hover .go { color: var(--wa2); transform: translateY(-50%) translateX(4px); }

/* ---------- 8. CTA, SEO E MAPA ---------- */
.cta    { background: var(--dark); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(25px,3.1vw,38px); margin-bottom: 14px; }
.cta p  { color: #B9CADD; max-width: 580px; margin: 0 auto 30px; }
.s-seo      { max-width: 920px; }
.s-seo h2   { font-size: clamp(25px,3.1vw,36px); margin-bottom: 22px; }
.s-seo h3   { font-size: 19.5px; margin: 34px 0 10px; }
.s-seo p    { margin-bottom: 14px; }
.s-seo ul   { margin: 12px 0 16px 22px; }
.s-seo li   { margin-bottom: 7px; }
.s-seo a    { color: var(--secondary); font-weight: 600; border-bottom: 1px solid rgba(12,99,200,.3); }
.map-frame  { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 420px; margin-top: 36px; cursor: pointer; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-lazy   { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--light); color: var(--muted); font-size: 14px; }
.map-cta    { font-weight: 700; color: var(--dark); font-size: 15px; }

/* ---------- 9. RODAPE ---------- */
footer.site     { background: var(--dark); color: #A9BDD6; padding: 76px 0 0; font-size: 15px; }
.f-grid         { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
footer.site h4  { color: #fff; font-size: 15px; margin-bottom: 20px; }
footer.site ul  { list-style: none; }
footer.site li  { margin-bottom: 10px; }
footer.site a:hover { color: var(--primary); }
.f-wa           { margin-top: 26px; }
.copy           { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding: 24px 0; text-align: center; font-size: 13px; color: #7D91A8; }

/* ---------- 10. BARRA MOBILE ---------- */
.wa-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-wa-bar); padding: 11px 14px calc(11px + env(safe-area-inset-bottom,0px));
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(8,32,58,.1);
}

/* ---------- 11. WIDGET MAGNUM ---------- */
.magnum {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-chat);
  font-family: inherit; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.magnum-pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--dark); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(8,32,58,.28); transition: transform .18s, box-shadow .18s;
}
.magnum-pill:hover         { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8,32,58,.36); }
.magnum-pill:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.magnum[data-alert="1"] .magnum-pill { animation: magnumShake 1.1s ease-in-out 3; }
@keyframes magnumShake {
  0%,100% { transform: translateY(0); }
  15%     { transform: translateY(-6px) rotate(-2deg); }
  30%     { transform: translateY(0) rotate(2deg); }
  45%     { transform: translateY(-4px) rotate(-1deg); }
  60%     { transform: translateY(0); }
}
.magnum-badge {
  position: absolute; top: -4px; left: -4px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: #e63946; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; display: none;
}
.magnum[data-alert="1"] .magnum-badge { display: block; }
.magnum-avatar    { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--dark); flex: 0 0 auto; }
.magnum-avatar-lg { width: 44px; height: 44px; }
.magnum-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #25D366;
  box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: magnumPulse 2s infinite;
}
@keyframes magnumPulse {
  70%  { box-shadow: 0 0 0 9px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0  rgba(37,211,102,0); }
}
.magnum-panel {
  width: 320px; max-width: calc(100vw - 24px); background: #fff; border-radius: 16px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(8,32,58,.24); animation: magnumIn .22s ease-out;
}
@keyframes magnumIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.magnum-head    { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--dark); color: #fff; position: relative; }
.magnum-head strong { display: block; font-size: 15px; line-height: 1.2; }
.magnum-status  { font-size: 12px; opacity: .8; }
.magnum-close   { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .75; padding: 4px; }
.magnum-close:hover { opacity: 1; }
.magnum-body    { padding: 16px; }
.magnum-msg     { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dark); background: var(--light); padding: 12px 14px; border-radius: 4px 14px 14px 14px; }
.magnum-quick   { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.magnum-chip    { background: #fff; border: 1px solid var(--primary); color: var(--dark); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .16s; }
.magnum-chip:hover { background: var(--primary); }
.magnum-cta     { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px; background: #25D366; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.magnum-cta:hover { background: #1eb455; }

/* ---------- 12. ACESSIBILIDADE ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-wa, .ico-wa, .btn-wa::after, .magnum-dot { animation: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .il-grid a:hover    { transform: none; }
  .magnum-pill:hover  { transform: none; }
  .motion-ready       { opacity: 1; transform: none; transition: none; }
}

/* ---------- 13. RESPONSIVO ---------- */
@media (min-width: 1400px) {
  .magnum-panel { width: 360px; }
}
@media (max-width: 1150px) {
  .menu { gap: 15px; }
  .menu a { font-size: 13px; }
}
@media (max-width: 1023px) {
  .magnum { width: 320px; right: 20px; bottom: 22px; }
}
@media (max-width: 980px) {
  .split         { grid-template-columns: 1fr; gap: 40px; }
  .eq            { grid-template-columns: repeat(2,1fr); }
  .links-grid    { grid-template-columns: repeat(2,1fr); }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .f-grid        { grid-template-columns: repeat(2,1fr); }
  .wa-strip .container { flex-direction: column; align-items: flex-start; }
  .logo          { font-size: 21px; }
  .logo em       { font-size: 11px; }
}
@media (max-width: 720px) {
  section        { padding: 66px 0; }
  .eq            { grid-template-columns: 1fr; }
  .eq > div      { padding: 28px 24px; }
  .links-grid    { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; }
  .stat          { border-left: 0; border-top: 1px solid var(--line); }
  .f-grid        { grid-template-columns: 1fr; }
  .map-frame     { height: 300px; }
  .hero          { min-height: 520px; }
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .btn-wa        { width: 100%; padding: 16px 22px; font-size: 15px; }
  .btn-wa.wa-lg  { padding: 18px 22px; font-size: 16px; }
  .wa-bar        { display: block; }
  body           { padding-bottom: 78px; }
  .magnum        { left: 12px; right: 12px; width: auto; border-radius: 14px; bottom: calc(88px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width: 480px) {
  .magnum        { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .magnum-pill   { align-self: flex-end; }
  .magnum-panel  { width: 100%; }
}
@media (max-width: 400px) {
  .nav           { gap: 9px; padding: 14px 16px; }
  .logo          { font-size: 18px; }
  .logo em       { font-size: 9.5px; }
  .burger        { width: 40px; height: 40px; flex-basis: 40px; }
  .magnum        { left: 8px; right: 8px; }
}
@media (max-height: 620px) and (max-width: 1023px) {
  .magnum        { bottom: calc(84px + env(safe-area-inset-bottom,0px)); max-height: 70dvh; overflow-y: auto; }
}

/* ---------- 14. MENU MOBILE ---------- */
body.nav-open { position: fixed; inset: 0; width: 100%; overflow: hidden; }

.overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(4,14,26,.6); opacity: 0; visibility: hidden; cursor: pointer; transition: opacity .28s, visibility .28s; }
.overlay.is-on, .overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .burger    { display: flex; }
  .nav .nav-cta { display: none; }
  .menu {
    position: fixed; top: 0; right: 0; z-index: var(--z-menu);
    width: min(84vw,320px); max-width: 100%; height: 100dvh;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: 84px 22px 30px;
    background: linear-gradient(175deg,#0B2A4A,#08203A 62%);
    box-shadow: -14px 0 40px rgba(0,0,0,.34);
    transform: translateX(102%); transition: transform .3s ease;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .menu.is-open, .menu.active { transform: translateX(0); }
  .menu li        { width: 100%; border-bottom: 1px solid rgba(255,255,255,.10); }
  .menu li:last-child { border: 0; }
  .menu a         { display: block; width: 100%; padding: 16px 2px; font-size: 15.5px; color: #EAF2FA; border: 0; transition: color .2s, padding-left .2s; }
  .menu a:hover,
  .menu a:focus-visible,
  .menu a.is-active { color: var(--primary); padding-left: 8px; border: 0; }
  .menu .mobile-cta        { border: 0; margin-top: 24px; padding: 0; }
  .menu .mobile-cta a      { padding: 15px 16px; color: #fff; white-space: nowrap; }
}
@media (min-width: 981px) {
  .burger { display: none; }
  .overlay { display: none; }
  .menu .mobile-cta { display: none; }
  .menu { position: static; transform: none; width: auto; height: auto; z-index: auto; flex-direction: row; background: none; box-shadow: none; padding: 0; overflow: visible; }
}
html.nav-lock,
html.nav-lock body { overflow: hidden !important; height: 100% !important; touch-action: none; }
body > .menu { position: fixed !important; top: 0 !important; bottom: 0 !important; right: 0 !important; height: auto !important; }

/* ---------- 15. SCROLL MOTION ---------- */
.motion-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .52s cubic-bezier(.22,.68,0,1.2),
              transform .52s cubic-bezier(.22,.68,0,1.2);
}
.cards .card:nth-child(2)        { transition-delay: .08s; }
.cards .card:nth-child(3)        { transition-delay: .16s; }
.cards .card:nth-child(4)        { transition-delay: .24s; }
.cards .card:nth-child(5)        { transition-delay: .32s; }
.cards .card:nth-child(6)        { transition-delay: .40s; }
.eq > div:nth-child(2)           { transition-delay: .07s; }
.eq > div:nth-child(3)           { transition-delay: .14s; }
.eq > div:nth-child(4)           { transition-delay: .21s; }
.eq > div:nth-child(5)           { transition-delay: .28s; }
.eq > div:nth-child(6)           { transition-delay: .35s; }
.stats-grid .stat:nth-child(2)   { transition-delay: .06s; }
.stats-grid .stat:nth-child(3)   { transition-delay: .12s; }
.stats-grid .stat:nth-child(4)   { transition-delay: .18s; }
.steps .step:nth-child(2)        { transition-delay: .08s; }
.steps .step:nth-child(3)        { transition-delay: .16s; }
.steps .step:nth-child(4)        { transition-delay: .24s; }
.steps .step:nth-child(5)        { transition-delay: .32s; }
.reviews .review:nth-child(2)    { transition-delay: .08s; }
.reviews .review:nth-child(3)    { transition-delay: .16s; }
.il-grid a:nth-child(2)          { transition-delay: .05s; }
.il-grid a:nth-child(3)          { transition-delay: .10s; }
.il-grid a:nth-child(4)          { transition-delay: .15s; }
.il-grid a:nth-child(5)          { transition-delay: .20s; }
.il-grid a:nth-child(6)          { transition-delay: .25s; }
.motion-ready.is-visible         { opacity: 1; transform: translateY(0); }

/* ---------- 16. INTERLINKING ---------- */
.interlinking    { padding: 56px 0; background: #fff; }
.interlinking h2 { text-align: center; margin-bottom: 28px; }
.il-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 16px;
}
.il-grid a {
  display: block; padding: 16px 18px; background: var(--light);
  border-left: 4px solid var(--primary); border-radius: 8px;
  color: var(--dark); font-weight: 600; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.il-grid a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(8,32,58,.12); }

/* ---------- 17. PERFORMANCE ---------- */
#cenarios, #comparativo, #equipamentos, #etapas,
#depoimentos, #faq, #atendimento, .interlinking {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
