/* Fontes hospedadas no próprio site (sem chamadas ao Google). Subconjunto latin cobre o português. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/instrument-sans.woff2') format('woff2');
}

/* MW IT Solutions: design tokens */
:root {
  --ink: #101236;
  --ink-soft: #1B1E5A;
  --indigo: #2D2F92;
  --violet: #7A2E9E;
  --cyan: #19D2E6;
  --cyan-deep: #0A7C89;
  --paper: #E3E5F8;     /* periwinkle do reflexo atrás do "MW" na logo */
  --surface: #EFF0FC;   /* faixas alternadas, um tom mais claro */
  --white: #FFFFFF;     /* cards e elementos em destaque */
  --line: #C9CCEB;
  --line-strong: #B0B4DD;
  --text: #101236;
  --muted: #484B73;
  --on-dark: #E6E7FA;
  --on-dark-muted: #B3B6E6;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--indigo); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--on-dark); }

/* Typography */
.h1, .h2, .h3 { font-family: var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.h1 { font-weight: 800; font-size: clamp(36px, 4.7vw, 62px); line-height: 1.04; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.07; }
.h3 { font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(45, 47, 146, .3); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover { background: #fff; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 240, 252, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; display: block; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 6px 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 0; position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 8px 20px; font-size: 15px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--white); cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: '';
  transition: transform .25s var(--ease), background-color .2s;
}
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; background-color: var(--paper);
  background-image:
    radial-gradient(640px 420px at 88% 8%, rgba(122, 46, 158, .16), transparent 70%),
    radial-gradient(520px 360px at 6% 100%, rgba(45, 47, 146, .12), transparent 70%),
    linear-gradient(rgba(45, 47, 146, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 47, 146, .07) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px 56px; align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .lead { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: var(--muted); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { flex: none; }

.diagram { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--font-body); }
.diagram .flow { stroke-dasharray: 6 8; animation: flow 1.6s linear 4; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 36px 20px 36px 28px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 2.7vw, 36px); letter-spacing: -0.025em; color: var(--indigo); line-height: 1.1; white-space: nowrap; }
.fact span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Expertises: editorial rows */
.rows { border-top: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .7fr);
  gap: 20px 36px; align-items: start; padding: 32px 16px; margin-inline: -16px;
  border-bottom: 1px solid var(--line-strong); border-radius: 6px;
  transition: background-color .25s;
}
.row:hover { background: var(--white); }
.row-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--cyan);
}
.row h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.row p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.tag { font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 6px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); color: #26286A; }

/* Sectors (dark) */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(179, 182, 230, .25); }
.sector { padding: 32px 28px 8px; display: grid; gap: 14px; align-content: start; border-left: 1px solid rgba(179, 182, 230, .25); }
.sector:first-child { border-left: 0; padding-left: 0; }
.sector svg { color: var(--cyan); }
.sector h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: #fff; }
.sector dt { font-size: 14px; font-weight: 600; color: var(--cyan); margin-bottom: 2px; }
.sector dd { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: var(--on-dark); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(179, 182, 230, .5); color: var(--on-dark); text-decoration: none; }
a.pill:hover { border-color: var(--cyan); color: var(--cyan); }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.model { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.model::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.model p { color: var(--muted); font-size: 16px; }

/* Process: a real sequence */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; position: relative; z-index: 1;
}
.step:not(:last-child)::after { content: ''; position: absolute; top: 19px; left: 48px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step h3 { font-size: 19px; font-weight: 600; font-family: var(--font-body); }
.step p { font-size: 15.5px; color: var(--muted); }

/* Products: portfolio, equal weight */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.product:hover { border-color: var(--indigo); box-shadow: 0 16px 36px rgba(45, 47, 146, .1); transform: translateY(-2px); }
.product-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.product-sector { font-size: 14px; font-weight: 600; color: var(--violet); }
.status { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #D9F6FA; color: #07555E; }
.product h3 { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.025em; line-height: 1.05; }
.product p { color: var(--muted); font-size: 16px; }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cyan); padding: 4px 0; }
.link:hover { border-bottom-color: var(--indigo); }

/* Security */
.security { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 48px 72px; align-items: start; }
.security-copy { display: grid; gap: 16px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.check { display: grid; gap: 8px; }
.check-head { display: flex; align-items: center; gap: 12px; }
.check-badge { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--cyan); display: grid; place-items: center; }
.check h3 { font-size: 17px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.check p { color: var(--muted); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.about-copy { display: grid; gap: 18px; font-size: 18px; color: #30325A; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.value { border-top: 3px solid var(--indigo); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.value p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 600; position: relative; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 16.5px; }

/* CTA */
.cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 100% 0%, rgba(122, 46, 158, .55), transparent 70%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; padding-block: clamp(64px, 8vw, 104px); }
.cta .h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
.cta p { color: var(--on-dark); font-size: 19px; margin-top: 16px; max-width: 52ch; }
.cta-actions { display: grid; gap: 16px; justify-items: start; }
.cta-actions small { font-size: 15px; color: var(--on-dark-muted); }

/* Footer */
.site-footer { background: #0A0B28; color: var(--on-dark-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px 48px; padding-block: 56px 36px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .logo-chip { justify-self: start; background: #fff; border-radius: 14px; padding: 8px 12px; display: flex; }
.footer-brand .logo-chip img { height: 46px; width: auto; display: block; }
.footer-brand p { max-width: 34ch; font-size: 15px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col h2 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--cyan); margin-bottom: 4px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(179, 182, 230, .2); padding-block: 22px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-legal a { color: var(--on-dark-muted); }
.footer-legal a:hover { color: #fff; }

/* Página de texto (privacidade) */
.prose { display: grid; gap: 16px; }
.prose > * { max-width: 760px; }
.prose .h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 4px; }
.prose .h3 { margin-top: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose .lead { max-width: none; }
.prose-list { display: grid; gap: 10px; padding-left: 20px; list-style: disc; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  background: #137A3C; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 20px 13px 16px; border-radius: 999px; box-shadow: 0 12px 28px rgba(16, 18, 54, .3);
  transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { background: #0E6330; color: #fff; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .diagram-wrap { max-width: 560px; }
  .facts, .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3), .sector:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sector:nth-child(n+3) { border-top: 1px solid rgba(179, 182, 230, .25); margin-top: 28px; padding-top: 28px; }
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row p, .row .tags { grid-column: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .models { grid-template-columns: 1fr; }
  .section-head--split, .security, .about, .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    display: none; box-shadow: 0 20px 30px rgba(16, 18, 54, .08);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .products, .faq, .values, .checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .brand span { font-size: 17px; }
  .brand img { height: 40px; }
  .facts, .sectors, .steps { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); }
  .sector, .sector:nth-child(3) { border-left: 0; padding-left: 0; }
  .sector:not(:first-child) { border-top: 1px solid rgba(179, 182, 230, .25); margin-top: 24px; padding-top: 24px; }
  .row { padding: 24px 12px; margin-inline: -12px; gap: 14px 16px; grid-template-columns: 46px minmax(0, 1fr); }
  .row-icon { width: 46px; height: 46px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wa-float { padding: 14px; }
  .diagram g[font-size="14"] { font-size: 15px; }
  .diagram g[font-size="12"] { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diagram .flow { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
