/* ==========================================================================
   Movilog — layout aprovado (Figma "Website - www.movilog.com.br")
   Cores/fontes de marca vêm do tema (tema/tokens.json → css/tema.css).
   Aqui ficam só os tons auxiliares do design system do Figma e os componentes.
   ========================================================================== */
:root {
  --mv-accent: #FFD800;            /* Brand/accent/yellow */
  --mv-navy: var(--color-secondary);
  --mv-navy-hover: var(--color-secondary-active);
  --mv-text: #242424;              /* Neutral/text/black */
  --mv-text-strong: #4A4848;
  --mv-text-soft: #6C6C6C;
  --mv-text-light: #C3C3C3;
  --mv-white: #FAFAFA;
  --mv-bg-50: #FAFAFA;
  --mv-bg-100: #F6F6F6;
  --mv-bg-200: #EEEEEE;
  --mv-bg-cream: #FFF9EF;
  --mv-stroke: #E9E9E9;
  --mv-shadow-lg: 0 12px 20px -4px rgba(27, 27, 27, .05), 0 4px 8px -2px rgba(27, 27, 27, .05);
  --mv-font-heading: var(--font-secondary, 'Roboto'), sans-serif;
  --mv-font-body: var(--font-primary, 'Inter'), sans-serif;
  --mv-gutter: clamp(16px, 12.5vw - 80px, 240px);
  --mv-section-y: clamp(64px, 8vw, 120px);
  --mv-header-h: 88px;
}

body { font-family: var(--mv-font-body); color: var(--mv-text); background: var(--mv-bg-50); }
h1, h2, h3, h4, h5, .mv-h { font-family: var(--mv-font-heading); font-weight: 600; line-height: 1.2; color: inherit; }

.mv-wrap { width: 100%; max-width: calc(1440px + 2 * var(--mv-gutter)); margin: 0 auto; padding-left: var(--mv-gutter); padding-right: var(--mv-gutter); }

/* ---------- Botões (Button / Button Icon do Figma) ---------- */
.mv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 600 14px/1.5 var(--mv-font-body); text-decoration: none; transition: background-color var(--transition, .3s), color var(--transition, .3s), border-color var(--transition, .3s); white-space: nowrap; }
.mv-btn i { font-size: 14px; }
.mv-btn--primary { background: var(--color-primary); color: var(--mv-white); }
.mv-btn--primary:hover, .mv-btn--primary:focus-visible { background: var(--color-primary-active); color: var(--mv-white); }
.mv-btn--outline-light { border-color: var(--mv-white); color: var(--mv-white); }
.mv-btn--outline-light:hover { background: var(--mv-white); color: var(--mv-navy); }
.mv-btn--outline-dark { border-color: var(--mv-text); color: var(--mv-text); }
.mv-btn--outline-dark:hover { background: var(--mv-text); color: var(--mv-white); }
.mv-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 2px solid var(--mv-text); border-radius: 8px; background: transparent; color: var(--mv-text); font-size: 18px; text-decoration: none; transition: background-color .3s, color .3s; }
.mv-icon-btn:hover { background: var(--mv-text); color: var(--mv-white); }
.mv-icon-btn--light { border-color: var(--mv-white); color: var(--mv-white); }
.mv-icon-btn--light:hover { background: var(--mv-white); color: var(--mv-navy); }
.mv-icon-btn--sm { width: 34px; height: 34px; font-size: 14px; }

/* ---------- Eyebrow (marca + índice + rótulo) ---------- */
.mv-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 600 12px/1.5 var(--mv-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mv-text); }
.mv-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--mv-accent); }
.mv-eyebrow__index { color: var(--color-primary); }
.mv-eyebrow--dark { color: var(--mv-white); }
.mv-eyebrow--dark .mv-eyebrow__index { color: var(--mv-accent); }

/* ---------- Divisor (briefing: no lugar da fita zebrada, uma linha azul/amarela) ---------- */
.mv-divider { height: 4px; background: var(--color-primary); border: 0; margin: 0; opacity: 1; }
.mv-divider--yellow { background: var(--mv-accent); }

/* ==========================================================================
   Header
   ========================================================================== */
.mv-header { position: sticky; top: 0; z-index: 1030; background: var(--mv-bg-50); border-bottom: 1px solid var(--mv-stroke); }
.mv-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--mv-header-h); padding-top: 16px; padding-bottom: 16px; }
.mv-header__logo img { display: block; width: 188px; height: auto; }
.mv-nav { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.mv-nav > li { position: relative; }
.mv-nav > li > a { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 4px; font: 500 14px/1.5 var(--mv-font-body); color: var(--mv-text-strong); text-decoration: none; }
.mv-nav > li > a::after { content: ""; height: 2px; background: transparent; transition: background-color .3s; }
.mv-nav > li > a:hover { color: var(--color-primary); }
.mv-nav > li > a.is-active { font-weight: 600; color: var(--color-primary); }
.mv-nav > li > a.is-active::after, .mv-nav > li > a:hover::after { background: var(--color-primary); }
.mv-nav .dropdown-menu { border: 1px solid var(--mv-stroke); border-radius: 8px; box-shadow: var(--mv-shadow-lg); padding: 8px 0; }
.mv-nav > li:hover > .dropdown-menu { display: block; margin-top: 0; }
.mv-nav .dropdown-item { font: 400 14px/1.5 var(--mv-font-body); color: var(--mv-text-strong); padding: 6px 16px; }
.mv-nav .dropdown-item:hover { color: var(--color-primary); background: var(--mv-bg-100); }
.mv-nav .dropdown-toggle::after { display: none; }
.mv-header__actions { display: flex; align-items: center; gap: 24px; }
.mv-header__phone { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.5 var(--mv-font-body); color: var(--mv-text); text-decoration: none; white-space: nowrap; }
.mv-header__phone i { color: var(--color-primary); font-size: 16px; }
.mv-header__phone:hover { color: var(--color-primary); }
@media (min-width: 992px) { .mv-header__phone { display: none; } } /* desktop: telefone só no celular/tablet (no desktop fica no menu e no rodapé) */

/* Menu overlay (hambúrguer) */

@media (max-width: 1199.98px) {
  .mv-nav, .mv-header__actions .mv-btn { display: none; }
  .mv-header__actions { gap: 12px; }
}
@media (max-width: 767.98px) {
  :root { --mv-header-h: 72px; }
  .mv-header__logo img { width: 148px; }
  .mv-header__phone span { display: none; }
  .mv-header__phone { width: 45px; height: 45px; justify-content: center; border: 2px solid var(--mv-text); border-radius: 8px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mv-footer { background: var(--mv-navy); color: var(--mv-text-light); }
.mv-footer a { text-decoration: none; }
.mv-footer__main { display: grid; grid-template-columns: 360px repeat(3, 1fr); gap: 64px; padding-top: var(--mv-section-y); padding-bottom: var(--mv-section-y); }
.mv-footer__brand { display: flex; flex-direction: column; gap: 24px; }
.mv-footer__brand img { width: 114px; height: auto; }
.mv-footer__brand p { margin: 0; font: 400 14px/1.5 var(--mv-font-body); color: var(--mv-text-light); }
.mv-footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.mv-footer__col { display: flex; flex-direction: column; gap: 8px; }
.mv-footer__col .mv-eyebrow { margin-bottom: 8px; }
.mv-footer__links { list-style: none; margin: 0; padding: 0; }
.mv-footer__links a { display: inline-block; padding: 4px 0; font: 400 14px/1.5 var(--mv-font-body); color: var(--mv-text-light); }
.mv-footer__links a:hover { color: var(--mv-white); }
.mv-contact { display: flex; flex-direction: column; gap: 16px; }
.mv-contact__item { display: flex; align-items: center; gap: 16px; color: var(--mv-white); }
.mv-contact__badge { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 2px; background: var(--color-primary); color: var(--mv-white); font-size: 20px; }
.mv-contact__label { display: block; font: 600 12px/1.5 var(--mv-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mv-text-light); }
.mv-contact__value { display: block; font: 600 16px/1.5 var(--mv-font-body); color: var(--mv-white); font-style: normal; }
a.mv-contact__item:hover .mv-contact__value { color: var(--mv-accent); }
.mv-footer__bottom { border-top: 1px solid #4A4848; }
.mv-footer__bottom .mv-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.mv-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; font: 400 12px/1.5 var(--mv-font-body); color: var(--mv-text-light); }
.mv-footer__legal a { color: var(--mv-text-light); }
.mv-footer__legal a:hover { color: var(--mv-white); }
.mv-footer__legal img { height: 24px; width: auto; }

@media (max-width: 1199.98px) { .mv-footer__main { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (max-width: 767.98px) {
  .mv-footer__main { grid-template-columns: 1fr; gap: 40px; }
  .mv-footer__bottom .mv-wrap { flex-direction: column-reverse; align-items: flex-start; }
}
.mv-nav > li > a { white-space: nowrap; }

/* Menu (Figma: Menu Overlay / Desktop e Mobile) */
.mv-menu.offcanvas-top { height: auto; max-height: 100vh; background: var(--mv-bg-50); color: var(--mv-text); border: 0; }
.mv-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.mv-menu__logo { display: block; width: 188px; height: 56px; object-fit: contain; object-position: left center; }
.mv-menu .offcanvas-body { padding: 0; border-top: 1px solid var(--mv-stroke); overflow-y: auto; }
.mv-menu__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 400px; gap: 64px; padding-top: 64px; padding-bottom: 64px; }
.mv-menu__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mv-menu__list { list-style: none; margin: 0; padding: 0; }
.mv-menu__list a { display: block; padding: 4px 0; font: 400 14px/1.5 var(--mv-font-body); color: var(--mv-text-strong); text-decoration: none; }
.mv-menu__list a:hover { color: var(--color-primary); }
.mv-menu__rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.mv-menu__rows a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--mv-stroke); font: 500 16px/1.5 var(--mv-font-body); color: var(--mv-text); text-decoration: none; }
.mv-menu__rows a i { font-size: 16px; transition: transform .2s; }
.mv-menu__rows a:hover { color: var(--color-primary); }
.mv-menu__rows a:hover i { transform: translateX(4px); }
.mv-menu__col--contact .mv-contact { display: flex; flex-direction: column; gap: 24px; }
.mv-menu .mv-contact__item { color: var(--mv-text); }
@media (max-width: 1199px) { .mv-menu__grid { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } .mv-menu__col--contact { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .mv-menu.offcanvas-top { height: 100vh; }
  .mv-menu__logo { width: 140px; height: 42px; }
  .mv-menu__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 40px; }
  .mv-menu__rows { grid-template-columns: 1fr; }
  .mv-menu__list a { font: 600 20px/1.4 var(--mv-font-heading); color: var(--mv-text); padding: 8px 0; }
}
.mv-menu .mv-contact__value { color: var(--mv-text); }
.mv-menu .mv-contact__label { color: var(--mv-text-soft); }
.mv-menu a.mv-contact__item:hover .mv-contact__value { color: var(--color-primary); }
.mv-menu .offcanvas-body { flex-grow: 0; }
@media (min-width: 1200px) { .mv-menu__grid { grid-template-columns: 180px minmax(0, 1fr) 340px; gap: 56px; } }
.mv-menu.offcanvas-top { bottom: auto; }
@media (max-width: 767px) { .mv-menu.offcanvas-top { bottom: 0; } }

/* Botão flutuante do WhatsApp (balão + selo) */
.wppButton.mv-wpp { width: 64px; height: 64px; overflow: visible; background: #25D366; box-shadow: 0 0 0 8px rgba(37, 211, 102, .25), 0 10px 25px -5px rgba(0, 0, 0, .2); }
.wppButton.mv-wpp:hover { transform: scale(1.05); }
.mv-wpp .wppButton__image { width: 28px; height: 28px; }
.mv-wpp__badge { position: absolute; top: -4px; right: -4px; display: flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: #c62828; color: #fff; font: 700 12px/1 var(--mv-font-body); }
.mv-wpp__label { position: absolute; right: calc(100% + 20px); top: 50%; transform: translateY(-50%); display: block; padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font: 400 14px/1.3 var(--mv-font-body); color: var(--mv-text-strong); text-align: right; white-space: nowrap; pointer-events: none; }
.mv-wpp__label strong { display: block; font-weight: 700; color: #13793a; }
.mv-wpp__label::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: #fff; transform: translateY(-50%) rotate(45deg); }
@media (max-width: 575px) { .mv-wpp__label { display: none; } .wppButton.mv-wpp { width: 56px; height: 56px; } }
/* Pulso só com transform/opacity num ::before (composto na GPU; antes animava box-shadow = repaint a cada quadro) */
.wppButton.mv-wpp::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(37, 211, 102, .55); animation: mv-wpp-pulse 2s ease-out infinite; pointer-events: none; }
@keyframes mv-wpp-pulse {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wppButton.mv-wpp::before { animation: none; opacity: 0; } }

/* Voltar ao topo: entra com transform/opacity (a base anima "bottom", que força reflow) */
#scrollUp { bottom: 96px; transform: translateY(200px); transition: transform .3s, opacity .3s; }
#scrollUp.is-active { bottom: 96px; transform: none; transition: transform .4s, opacity .4s; }

/* Rodapé: selos W3C e MPI Technology (como em produção) */
.mv-footer__selos { display: flex; align-items: center; gap: 20px; }
.mv-footer__selos a:not(.mv-icon-btn) { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1.5 var(--mv-font-body); color: var(--mv-text-light); text-decoration: none; }
.mv-footer__selos a:not(.mv-icon-btn) i { font-size: 18px; }
.mv-footer__selos a:not(.mv-icon-btn):hover { color: var(--mv-accent); }
.mv-footer__selo { width: 50px; height: auto; object-fit: contain; }

/* Pop-up do WhatsApp: campo de mensagem */
.wppPopup .wppPopup__body .wppPopup__form .wppPopup__form-input--msg { height: auto; border-radius: 12px; }
.wppPopup .wppPopup__form .wppMessage { width: 100%; border: none; outline: none; resize: vertical; min-height: 72px; padding: .5em .75em; font-size: .85rem; font-family: inherit; }

/* Resumo para IA (SIG › MPIs e Blog): logo abaixo do H1, resposta direta à busca */
.ai-resumo { grid-column: 1 / -1; width: 100%; position: relative; margin: 0 0 32px; padding: 20px 24px 20px 28px; background: var(--mv-bg-100, #f4f6f8); border: 1px solid var(--mv-stroke, #dfe3e8); border-left: 4px solid var(--mv-accent, var(--color-primary)); border-radius: 4px; }
.ai-resumo__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 12px/1 var(--mv-font-heading, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--mv-navy, var(--color-primary)); }
.ai-resumo__label::before { content: ""; width: 16px; height: 2px; background: var(--mv-accent, var(--color-primary)); }
.ai-resumo__texto { margin: 0 !important; font: 500 18px/1.55 var(--mv-font-body, inherit); color: var(--mv-text, inherit); }
@media (max-width: 575px) { .ai-resumo { padding: 16px 16px 16px 20px; } .ai-resumo__texto { font-size: 16px; } }

/* Busca no topo (SIG › Recursos do site › Busca no topo) no visual do header */
.mv-header .searchIcon { order: 0; width: 45px; height: 45px; margin: 0; border: 2px solid var(--mv-text); border-radius: 8px; color: var(--mv-text); font-size: 18px; }
.mv-header .searchIcon:hover, .mv-header .searchIcon:focus-visible { background: var(--mv-text); color: var(--mv-white); }
.mv-header .widget__search { background: rgba(10, 20, 35, .92); padding: 16px; }
.mv-header .widget__search .search { width: min(720px, 100%); }
.mv-header .widget__search .search input { height: 56px; border-radius: 8px 0 0 8px; font-family: var(--mv-font-body); }
.mv-header .widget__search .search__buttons { height: 56px; width: auto; padding: 0 16px; border-radius: 0 8px 8px 0; }

/* Aviso de cookies (inc/cookies-aviso.php): canto inferior esquerdo, fora da área do botão do WhatsApp */
.mv-cookies { position: fixed; left: 24px; bottom: 24px; z-index: 1040; display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 16px 16px 16px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: var(--mv-text); color: var(--mv-white); box-shadow: 0 12px 32px -6px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.mv-cookies.is-on { opacity: 1; transform: none; }
.mv-cookies[hidden] { display: none; }
.mv-cookies__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--mv-accent); font-size: 18px; }
.mv-cookies__text { margin: 0; font: 400 14px/1.5 var(--mv-font-body); color: rgba(250, 250, 250, .85); }
.mv-cookies__text a { color: var(--mv-white); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mv-cookies__text a:hover { color: var(--mv-accent); }
.mv-cookies__btn { flex: none; padding: 10px 22px; }
@media (max-width: 767px) {
  /* Reserva a coluna da direita para o botão do WhatsApp (56px + margem) */
  .mv-cookies { left: 12px; right: 84px; bottom: 12px; max-width: none; flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .mv-cookies__icon { width: 32px; height: 32px; font-size: 15px; }
  .mv-cookies__text { flex: 1 1 0; min-width: 0; font-size: 13px; }
  .mv-cookies__btn { flex: 1 1 100%; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .mv-cookies { transition: none; transform: none; } }

/* WhatsApp: mesma posição que js/whatsapp-button.js aplica no load (176px; 144px < 576px; +72px por botão).
   Sem isso o botão nasce no topo e "pula" quando o JS roda (CLS). */
.wppButton[data-button="0"] { bottom: 176px; }
.wppButton[data-button="1"] { bottom: 248px; }
@media (max-width: 575px) {
  .wppButton[data-button="0"] { bottom: 144px; }
  .wppButton[data-button="1"] { bottom: 216px; }
}
