/* ═══════════════════════════════════════════════════════
   M3 TECH — style.css
   Manual da Marca: #A124A8 | #FF1FCE | #57585A | #929497 | #040405
   Tipografia: Montserrat (Google Fonts)
═══════════════════════════════════════════════════════ */

/* ─── RESET ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: #040405;
  color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── VARIÁVEIS ─────────────────────────────────────────── */
:root {
  --roxo:     #A124A8;
  --rosa:     #FF1FCE;
  --rosa2:    #D41EA8;
  --escuro:   #040405;
  --escuro2:  #0D0D0F;
  --cinza:    #929497;
  --cinza-e:  #57585A;
  --branco:   #FFFFFF;
  --grad:     linear-gradient(135deg, #A124A8, #FF1FCE);
  --shadow:   0 20px 60px rgba(161, 36, 168, 0.22);
  --trans:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --r:        8px;
  --pad:      clamp(20px, 5vw, 72px);
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--escuro); }
::-webkit-scrollbar-thumb { background: var(--roxo); border-radius: 3px; }

/* ─── TIPOGRAFIA BASE ────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(0.85rem, 1.2vw, 1rem); font-weight: 900; line-height: 1.3; }
p  { line-height: 1.8; }

/* ─── UTILITÁRIOS ───────────────────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ac { color: var(--rosa); }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--rosa); margin-bottom: 14px;
}
.section-label::before {
  content: ''; display: block;
  width: 22px; height: 1px; background: var(--rosa);
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161,36,168,0.5), rgba(255,31,206,0.3), transparent);
}
.section { padding: clamp(60px, 8vw, 100px) var(--pad); }

/* ─── BOTÕES ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px;
  background: var(--grad);
  color: var(--branco);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: opacity 0.22s, transform 0.22s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--branco);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255,31,206,0.45);
  transition: var(--trans);
}
.btn-secondary:hover { border-color: var(--rosa); color: var(--rosa); }

/* ─── REVEAL ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); height: 70px;
  background: rgba(4,4,5,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(161,36,168,0.18);
  transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
#nav.scrolled {
  height: 60px;
  background: rgba(4,4,5,0.97);
  border-bottom-color: rgba(161,36,168,0.3);
}
.nav-logo img {
  height: 38px; width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex; gap: clamp(16px, 3vw, 36px);
  align-items: center;
}
.nav-links a {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cinza);
  transition: var(--trans);
  padding: 4px 0; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--rosa);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--branco); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 9px 22px !important;
  background: var(--grad);
  color: var(--branco) !important;
  font-weight: 700 !important;
  border-radius: 4px;
  letter-spacing: 0.08em !important;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--branco); border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; z-index: 999;
  background: rgba(4,4,5,0.98);
  backdrop-filter: blur(20px);
  padding: 20px var(--pad) 28px;
  border-bottom: 1px solid rgba(161,36,168,0.2);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a {
  display: block; padding: 14px 0;
  font-size: 1rem; font-weight: 600; color: var(--cinza);
  border-bottom: 1px solid rgba(161,36,168,0.1);
  transition: var(--trans);
}
.nav-mobile a:hover { color: var(--rosa); padding-left: 8px; }
.nav-mobile .nav-cta {
  display: block; margin-top: 16px;
  padding: 14px 0 !important; text-align: center;
  border-radius: 4px; width: 100%;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 70px var(--pad) 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 45%, rgba(161,36,168,0.17) 0%, transparent 68%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(212,30,168,0.09) 0%, transparent 68%),
    var(--escuro);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(161,36,168,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(161,36,168,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  animation: heroFadeUp 0.9s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--rosa); margin-bottom: 22px;
  animation: heroFadeUp 0.9s 0.1s ease both;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--rosa);
}
.hero-content h1 {
  margin-bottom: 22px;
  animation: heroFadeUp 0.9s 0.2s ease both;
}
.hero-desc {
  font-size: clamp(0.93rem, 1.5vw, 1.04rem);
  line-height: 1.82; color: var(--cinza);
  max-width: 560px;
  margin: 0 auto 42px;
  animation: heroFadeUp 0.9s 0.3s ease both;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  animation: heroFadeUp 0.9s 0.4s ease both;
}
.hero-stats {
  position: absolute; right: var(--pad); bottom: 60px;
  display: flex; gap: 2px; z-index: 2;
  animation: heroFadeUp 0.9s 0.5s ease both;
}
.hero-stat {
  padding: 20px 26px;
  background: rgba(161,36,168,0.08);
  border: 1px solid rgba(161,36,168,0.2);
  text-align: center; min-width: 110px;
}
.hero-stat .n {
  display: block;
  font-size: 1.85rem; font-weight: 900;
  color: var(--rosa); line-height: 1; margin-bottom: 5px;
}
.hero-stat .l {
  display: block;
  font-size: 0.61rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cinza);
}

/* ══════════════════════════════════════════════════════════
   EMPRESA
══════════════════════════════════════════════════════════ */
#empresa {
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(161,36,168,0.07), transparent),
    var(--escuro);
}

/* ── Cabeçalho centralizado ── */
.empresa-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 60px);
}
.empresa-header .section-label {
  justify-content: center;
}
.empresa-header .section-label::before { display: none; }
.empresa-intro {
  font-size: 0.97rem; line-height: 1.85;
  color: var(--cinza);
  margin-top: 16px;
}

/* ── Grid de 3 cards ── */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.valor-card {
  background: rgba(161,36,168,0.06);
  border: 1px solid rgba(161,36,168,0.2);
  border-top: 3px solid var(--rosa);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  position: relative;
  transition: var(--trans);
}
.valor-card:hover {
  background: rgba(161,36,168,0.11);
  border-color: rgba(255,31,206,0.4);
  border-top-color: var(--rosa);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(161,36,168,0.18);
}
.valor-card-num {
  font-size: 2rem; font-weight: 900;
  color: var(--rosa); line-height: 1;
  opacity: 0.35; margin-bottom: 16px;
}
.valor-card h4 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 12px; color: var(--branco);
  line-height: 1.3;
}
.valor-card p {
  font-size: 0.86rem; color: var(--cinza);
  line-height: 1.72;
}
.estat {
  background: rgba(161,36,168,0.07);
  border: 1px solid rgba(161,36,168,0.2);
  padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 26px);
  transition: var(--trans);
}
.estat:hover {
  background: rgba(161,36,168,0.12);
  border-color: rgba(255,31,206,0.4);
  transform: translateY(-3px);
}
.estat .n {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 900;
  color: var(--rosa); line-height: 1; margin-bottom: 7px;
}
.estat .l {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cinza);
}

/* ══════════════════════════════════════════════════════════
   SOLUÇÕES
══════════════════════════════════════════════════════════ */
#solucoes { background: var(--escuro2); }
.sol-header {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: 40px; margin-bottom: 52px;
}
.sol-header .section-desc { margin-bottom: 0; }
.section-desc {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--cinza); max-width: 560px;
}
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.sol-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(161,36,168,0.15);
  background: rgba(255,255,255,0.02);
  border-radius: var(--r);
  transition: var(--trans);
}
.sol-card:hover {
  border-color: rgba(255,31,206,0.45);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(161,36,168,0.18);
}
.sol-img {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; position: relative;
}
.sol-img svg {
  width: 100%; height: 100%;
  transition: transform 0.5s ease;
}
.sol-card:hover .sol-img svg { transform: scale(1.04); }
.sol-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(4,4,5,0.9) 100%);
  pointer-events: none;
}
.sol-body { padding: clamp(16px, 2vw, 26px); }
.sol-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.59rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rosa); margin-bottom: 10px;
}
.sol-badge::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--rosa); flex-shrink: 0;
}
.sol-card h3 { margin-bottom: 9px; }
.sol-card p { font-size: 0.82rem; line-height: 1.72; color: var(--cinza); }

/* ══════════════════════════════════════════════════════════
   PARCEIROS
══════════════════════════════════════════════════════════ */
#parceiros {
  background: rgba(161,36,168,0.04);
  border-top: 1px solid rgba(161,36,168,0.12);
  border-bottom: 1px solid rgba(161,36,168,0.12);
}
.parc-header { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.parc-header .section-label { justify-content: center; }
.parc-header .section-label::before { display: none; }
.parc-header p {
  font-size: 0.93rem; color: var(--cinza);
  max-width: 500px; margin: 0 auto; line-height: 1.75;
}
.parc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.parc-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(161,36,168,0.12);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.5vw, 32px);
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
  transition: var(--trans);
}
.parc-item:hover {
  background: rgba(161,36,168,0.1);
  border-color: rgba(161,36,168,0.35);
}
.parc-item img {
  max-height: 56px; max-width: 170px;
  width: auto; height: auto; object-fit: contain;
  filter: grayscale(0.15) brightness(0.95);
  transition: filter 0.3s ease;
}
.parc-item:hover img { filter: grayscale(0) brightness(1); }
.parc-item svg { max-height: 56px; max-width: 170px; }

/* ══════════════════════════════════════════════════════════
   CONTATO
══════════════════════════════════════════════════════════ */
#contato { background: var(--escuro); }
.contato-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 76px); align-items: start;
  margin-top: clamp(32px, 5vw, 52px);
}
.contato-intro p {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--cinza); margin-bottom: 32px;
}
.contato-items { display: flex; flex-direction: column; gap: 12px; }
.c-item {
  display: flex; align-items: stretch;
  border: 1px solid rgba(161,36,168,0.16);
  overflow: hidden; transition: var(--trans);
}
.c-item:hover {
  border-color: rgba(255,31,206,0.45);
  transform: translateX(5px);
}
.c-item-icon {
  width: 62px; flex-shrink: 0;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
}
.c-item-icon svg { width: 24px; height: 24px; }
.c-item-body {
  padding: clamp(14px, 1.5vw, 18px) clamp(14px, 1.5vw, 20px);
  flex: 1;
}
.c-item-body small {
  display: block; font-size: 0.59rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rosa); margin-bottom: 5px;
}
.c-item-body a,
.c-item-body p {
  font-size: 0.9rem; font-weight: 600;
  color: var(--branco); margin: 0; line-height: 1.45;
  transition: color 0.2s;
}
.c-item-body a:hover { color: var(--rosa); }
.map-area {
  border: 1px solid rgba(161,36,168,0.18);
  background: rgba(161,36,168,0.05);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--cinza);
  font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.05em;
}
.map-area .map-icon { font-size: 2.2rem; opacity: 0.32; }
.map-note {
  font-size: 0.7rem; color: var(--cinza-e);
  font-style: italic; text-align: center;
  max-width: 220px; line-height: 1.5;
}
/* Iframe do mapa quando inserido */
.map-area iframe {
  width: 100%; height: 100%; border: 0;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: rgba(4,4,5,0.98);
  border-top: 1px solid rgba(161,36,168,0.2);
  padding: clamp(22px, 3vw, 34px) var(--pad);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer-copy {
  font-size: 0.7rem; color: var(--cinza-e); font-weight: 500;
}
.footer-copy em { color: var(--rosa); font-style: normal; }
.footer-nav { display: flex; gap: clamp(14px, 3vw, 26px); }
.footer-nav a {
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cinza-e); transition: color 0.2s;
}
.footer-nav a:hover { color: var(--rosa); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links     { display: none; }
  .hamburger     { display: flex; }
  .nav-mobile    { display: block; }

  .hero-stats {
    position: static;
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 36px; gap: 2px;
  }

  .valores-grid  { grid-template-columns: 1fr; }
  .sol-grid      { grid-template-columns: repeat(2, 1fr); }
  .sol-header    { grid-template-columns: 1fr; gap: 20px; }
  .parc-grid     { grid-template-columns: repeat(3, 1fr); }
  .contato-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sol-grid      { grid-template-columns: 1fr; }
  .hero-stats    { grid-template-columns: 1fr 1fr; }
  .hero-stat:last-child { grid-column: span 2; }
  .parc-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}

/* ── Print ─────────────────────────────────────────────── */
@media print {
  #nav, .hamburger, .nav-mobile { display: none; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════════════════
   AJUSTES v2 — contato simplificado
══════════════════════════════════════════════════════════ */

/* Contato — layout simplificado (sem mapa, itens em linha) */
.contato-simple {
  margin-top: clamp(28px, 4vw, 48px);
}
.contato-intro-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--cinza);
  max-width: 580px;
  margin-bottom: 36px;
}
.contato-items--row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.contato-items--row .c-item {
  transform: none !important;
}
.contato-items--row .c-item:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,31,206,0.45);
}

/* Parceiros — Microsoft em fundo escuro: texto claro */
.parc-item svg text {
  fill: #CCCCCC;
}

@media (max-width: 900px) {
  .contato-items--row {
    grid-template-columns: 1fr;
  }
  .contato-items--row .c-item:hover {
    transform: translateX(4px) !important;
  }
}
