/* MPX Soluções em Identificação — Global Styles */

:root {
  --mpx-navy: #0F1E3D;
  --mpx-navy-deep: #0A1530;
  --mpx-navy-2: #14213D;
  --mpx-red: #E63946;
  --mpx-red-dark: #C1121F;
  --mpx-white: #FFFFFF;
  --mpx-gray-50: #F8F9FB;
  --mpx-gray-100: #F1F3F7;
  --mpx-gray-200: #E4E7EE;
  --mpx-gray-400: #98A2B3;
  --mpx-gray-600: #475467;
  --mpx-gray-800: #1D2939;
  --mpx-shadow: 0 20px 40px -20px rgba(15, 30, 61, 0.25);
  --mpx-shadow-lg: 0 30px 60px -30px rgba(15, 30, 61, 0.35);
  --mpx-radius: 14px;
  --mpx-radius-lg: 22px;
  --font-heading: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--mpx-gray-800);
  background: var(--mpx-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--mpx-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ================================
   HEADER
   ================================ */
.mpx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mpx-navy);
  border-bottom: 3px solid var(--mpx-red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.mpx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.mpx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mpx-logo-mark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--mpx-white);
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.mpx-logo-mark .mpx-text {
  display: flex;
  align-items: baseline;
}

.mpx-logo-mark .mpx-text span:last-child {
  color: var(--mpx-red);
}

.mpx-logo-mark .mpx-underline {
  height: 3px;
  background: var(--mpx-red);
  margin-top: 4px;
  width: 100%;
}

.mpx-logo-mark .mpx-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--mpx-white);
  margin-top: 4px;
  font-style: normal;
  text-transform: uppercase;
}

.mpx-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpx-nav a {
  color: var(--mpx-white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all .2s;
  position: relative;
}

.mpx-nav a:hover {
  background: rgba(255,255,255,0.08);
}

.mpx-nav a.active {
  color: var(--mpx-red);
  font-weight: 600;
}

.mpx-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--mpx-red);
}

.mpx-cta-header {
  background: var(--mpx-red);
  color: var(--mpx-white) !important;
  padding: 12px 22px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpx-cta-header:hover {
  background: var(--mpx-red-dark) !important;
  transform: translateY(-1px);
}

.mpx-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 960px) {
  .mpx-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mpx-navy);
    flex-direction: column;
    padding: 12px;
    border-bottom: 3px solid var(--mpx-red);
    align-items: stretch;
  }
  .mpx-nav.open { display: flex; }
  .mpx-nav a { padding: 12px 16px; }
  .mpx-nav a.active::after { display: none; }
  .mpx-menu-toggle { display: block; }
  .mpx-cta-header { justify-content: center; }
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background: var(--mpx-red);
  color: var(--mpx-white);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover {
  background: var(--mpx-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(230, 57, 70, 0.45);
}

.btn-secondary {
  background: var(--mpx-white);
  color: var(--mpx-navy);
  border: 2px solid var(--mpx-white);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--mpx-white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--mpx-navy);
  border: 2px solid var(--mpx-navy);
}
.btn-outline-navy:hover {
  background: var(--mpx-navy);
  color: var(--mpx-white);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
}

/* ================================
   PAGE HEADER (interior pages)
   ================================ */
.page-hero {
  background: linear-gradient(135deg, var(--mpx-navy) 0%, var(--mpx-navy-deep) 100%);
  color: var(--mpx-white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -10%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(230, 57, 70, 0.08) 41%, rgba(230, 57, 70, 0.08) 44%, transparent 45%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: var(--mpx-white); }
.page-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mpx-red);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.page-hero .kicker::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--mpx-red);
}
.page-hero .subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 640px;
  margin-top: 16px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--mpx-red); }
.breadcrumb span::after { content: '/'; margin-left: 8px; opacity: 0.5; }
.breadcrumb span:last-child::after { display: none; }

/* ================================
   SECTIONS
   ================================ */
.section {
  padding: 90px 0;
}
.section-tight { padding: 60px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-header .kicker {
  color: var(--mpx-red);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  display: inline-block;
}
.section-header p {
  color: var(--mpx-gray-600);
  font-size: 1.1rem;
  margin-top: 16px;
}

/* ================================
   FOOTER
   ================================ */
.mpx-footer {
  background: var(--mpx-navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 24px;
  position: relative;
}

.mpx-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--mpx-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--mpx-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.93rem; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--mpx-red); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-contact-item .icon {
  color: var(--mpx-red);
  flex-shrink: 0;
  font-size: 1rem;
  padding-top: 2px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: white;
}
.footer-socials a:hover {
  background: var(--mpx-red);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

/* ================================
   FLOATING WHATSAPP BUTTON
   ================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform .2s;
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ================================
   CARDS
   ================================ */
.card {
  background: var(--mpx-white);
  border-radius: var(--mpx-radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 30, 61, 0.06);
  border: 1px solid var(--mpx-gray-200);
  transition: all .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 30, 61, 0.2);
  border-color: var(--mpx-red);
}

/* ================================
   UTILS
   ================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.text-red { color: var(--mpx-red); }
.text-navy { color: var(--mpx-navy); }
.bg-navy { background: var(--mpx-navy); color: white; }
.bg-gray { background: var(--mpx-gray-50); }

.divider-red {
  width: 60px;
  height: 4px;
  background: var(--mpx-red);
  border: none;
  margin: 20px 0;
}
