/* ============================================
   DESIGN SYSTEM - CANCELLA ENGENHARIA (VERDADE ABSOLUTA)
   Fonte: memory/cancella/DESIGN.md
============================================ */

:root {
  /* Cores Primárias */
  --primary: #012B80;
  --primary-dark: #001d5a;
  --primary-light: #0239a8;
  --primary-50: rgba(1, 43, 128, 0.05);
  --primary-100: rgba(1, 43, 128, 0.1);
  --primary-200: rgba(1, 43, 128, 0.2);

  /* Cores Secundárias */
  --secondary: #00B3C7;
  --secondary-dark: #0099a8;
  --secondary-light: #00d4eb;
  --secondary-50: rgba(0, 179, 199, 0.05);
  --secondary-100: rgba(0, 179, 199, 0.1);
  --secondary-200: rgba(0, 179, 199, 0.2);

  /* Cores Neutras */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Cores de Feedback */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Tipografia */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Espaçamento */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 30px rgba(1, 43, 128, 0.3);
  --shadow-secondary: 0 10px 30px rgba(0, 179, 199, 0.3);

  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET E BASE
============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--gray-50);
}

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

/* ============================================
   TIPOGRAFIA
============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.h1 { font-size: 3.5rem; font-weight: 800; }
.h2 { font-size: 2.5rem; }
.h3 { font-size: 2rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }

.display-1 { font-family: var(--font-heading); font-size: 4rem; font-weight: 800; line-height: 1.1; }
.display-2 { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; line-height: 1.1; }

.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

.uppercase { text-transform: uppercase; letter-spacing: 1px; }
.capitalize { text-transform: capitalize; }

/* ============================================
   BOTÕES
============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(1, 43, 128, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 179, 199, 0.4);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-icon-right { margin-left: 8px; }

/* ============================================
   CARDS
============================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-top-border { position: relative; }

.card-top-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.card-bordered { border: 1px solid var(--gray-200); }

.card-header { padding: var(--space-xl); border-bottom: 1px solid var(--gray-100); }
.card-body { padding: var(--space-xl); }
.card-footer { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ============================================
   FORMULÁRIOS
============================================ */

.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.form-label-required::after { content: ' *'; color: var(--error); }

.form-control {
  width: 100%;
  padding: 0.875rem 1.2rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  transition: all var(--transition-base);
}

.form-control::placeholder { color: var(--gray-400); }
.form-control:hover { border-color: var(--gray-300); }

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px var(--secondary-100);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 45px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }

/* ============================================
   ALERTAS E BADGES (mínimo usado no app)
============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-secondary { background: var(--secondary); color: var(--white); }

/* ============================================
   NAV LINK (do DS)
============================================ */

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition-base);
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

/* ============================================
   LAYOUT UTILITIES (mínimo)
============================================ */

.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); }
.section { padding: var(--space-4xl) 0; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ============================================
   LANDING PAGE (index.html) — estilos específicos
============================================ */

.page-landing { overflow-x: hidden; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(1, 43, 128, 0.1);
  transition: all var(--transition-base);
}

.header.scrolled { box-shadow: 0 4px 30px rgba(1, 43, 128, 0.15); }

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo { display: flex; align-items: center; gap: var(--space-md); text-decoration: none; }
.logo img { height: 64px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 2.5rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #001544 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300B3C7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; background: var(--secondary); opacity: 0.1; }
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; top: 50%; right: 20%; opacity: 0.05; }

.hero-content {
  padding-top: calc(80px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title { color: var(--white); }
.hero-title span { color: var(--secondary); }

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-stats { display: flex; gap: 2.5rem; margin-bottom: var(--space-2xl); }
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-image-container { position: relative; width: 100%; max-width: 500px; }
.hero-image { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 { top: 10%; left: -30px; animation-delay: 0s; }
.floating-card.card-2 { bottom: 15%; right: -20px; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.card-text { display: flex; flex-direction: column; }
.card-text strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gray-800); }
.card-text span { font-size: 0.8rem; color: var(--gray-600); }

.about { background: var(--gray-50); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image { position: relative; }
.about-image-main { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px; /* Fixed Desktop Size */
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  z-index: 10;
}

.about-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.about-badge .text {
  font-size: 0.8rem;
  opacity: 0.95;
  line-height: 1.2;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-3xl); }

.section-tag {
  display: inline-block;
  background: var(--secondary-100);
  color: var(--secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: var(--space-md);
}

.section-title { font-size: 2.5rem; margin-bottom: var(--space-md); }
.section-subtitle { font-size: 1.1rem; color: var(--gray-600); }

.about-content p { margin-bottom: var(--space-lg); font-size: 1.05rem; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-top: var(--space-xl); }

.feature-item { display: flex; align-items: flex-start; gap: var(--space-md); }
.feature-icon {
  width: 45px;
  height: 45px;
  background: var(--secondary-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
}

.feature-text p { font-size: 0.9rem; margin: 0; color: var(--gray-600); }

.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--white);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  transform: rotateY(180deg);
}

.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300B3C7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.stats-item { text-align: center; }
.stats-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.8rem;
  color: var(--secondary);
}

.stats-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.stats-label { font-size: 1rem; opacity: 0.8; }

.clients { background: var(--gray-50); }

.clients-carousel {
  margin-top: var(--space-3xl);
  overflow: hidden;
  position: relative;
  padding: var(--space-lg) 0;

  /* remove qualquer barra de scroll horizontal */
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
}

.clients-carousel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.clients-carousel {
  /* Fade suave nas bordas (ajuda a “esconder” o loop) */
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-marquee 84s linear infinite;
  will-change: transform;
}

/* Pausa no hover (desktop) */
.clients-track:hover {
  animation-play-state: paused;
}

.clients-group {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-right: var(--space-xl); /* separa fim/início no loop */
}

.client-logo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  min-width: 180px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-logo .client-img {
  max-width: 92%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;

  /* deixa a faixa mais elegante com logos de cores diferentes */
  filter: grayscale(100%) opacity(0.75);
  transition: filter var(--transition-base);
}

/* logos mais quadradas podem ocupar mais área sem “sumir” */
.client-logo .client-img.is-square {
  max-width: 94%;
  max-height: 88%;
}

.client-logo:hover .client-img {
  filter: grayscale(0%) opacity(1);
}

@keyframes clients-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-carousel {
    overflow: hidden;
    mask-image: none;
    -webkit-mask-image: none;
  }
  /* mantém o carrossel girando (ainda mais lento) */
  .clients-track { animation-duration: 120s; }
}

.contact { background: var(--white); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }

.contact-intro {
  margin-bottom: var(--space-2xl);
}

.contact-methods { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-method { display: flex; align-items: flex-start; gap: var(--space-lg); }

.contact-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-text a { color: var(--gray-600); text-decoration: none; transition: color var(--transition-base); }
.contact-text a:hover { color: var(--secondary); }

.contact-form {
  background: var(--gray-50);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
}

.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-lg);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 48px;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  font-size: 0.875rem;
  max-width: 90%;
}

.footer-social { display: flex; gap: var(--space-sm); }

.social-link {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-base);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover { background: var(--secondary); transform: translateY(-2px); }

.footer-column h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }

.footer-column a {
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.footer-column a:hover { color: var(--secondary); padding-left: 3px; }

.footer-bottom {
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p { color: var(--gray-500); font-size: 0.8rem; }
.footer-heart { color: var(--secondary); }

/* Mobile Menu (Improved UX/UI) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  padding: 6rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active { right: 0; }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 43, 128, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px; /* Min touch target 44px+ */
  height: 48px;
  background: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.mobile-menu-close:active {
  transform: scale(0.95);
  background: var(--gray-200);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
  flex: 1; /* empurra o CTA para o fundo quando houver espaço */
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  font-size: 1.15rem;
  padding: 1.25rem 0.5rem; /* Large touch area */
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

/* Visual indicator (chevron) for links */
.mobile-nav a:not(.btn)::after {
  content: '›';
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 400;
  line-height: 1;
}

.mobile-nav a:not(.btn):hover {
  color: var(--primary);
  background: var(--gray-50);
  padding-left: 1rem; /* Slide effect */
}

/* Mobile CTA Specifics */
.mobile-cta {
  width: 100%;
  margin-top: auto; /* fica no fundo, longe das opções */
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);

  /* mantém visível no fundo, mesmo com scroll no menu */
  position: sticky;
  bottom: 0;
  background: var(--white);
}

/* O botão agora fica dentro do container .mobile-cta */
.mobile-cta .btn {
  width: 100%;
  padding: 1.05rem 1.1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  justify-content: center;
}

.mobile-cta .btn svg {
  width: 22px;
  height: 22px;
}

.mobile-cta .btn-primary {
  /* mais contraste no fundo branco do menu */
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 10px 22px rgba(0, 179, 199, 0.35);
}

.mobile-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 179, 199, 0.45);
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: 0 5px 20px rgba(1, 43, 128, 0.3);
  border: none;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(1, 43, 128, 0.4); }

.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   APP (app.html) — shell mínimo SPA
============================================ */

.page-app {
  background: var(--gray-50);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.app-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.app-logo img { height: 48px; }

.app-nav {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.app-main {
  padding: var(--space-3xl) 0;
}

.app-title { margin-top: var(--space-sm); }

.app-shell { box-shadow: var(--shadow-md); }

.app-root {
  min-height: 260px;
}

/* Views */
.app-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.app-kpi {
  padding: var(--space-2xl);
  text-align: center;
}

.app-kpi .kpi-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.app-kpi .kpi-label {
  color: var(--gray-500);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   RESPONSIVO
============================================ */

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { min-width: 160px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .about-container { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .about-image { max-width: 500px; margin: 0 auto; }
  .contact-container { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .app-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-container { height: 70px; }
  .logo img { height: 50px; }
  .app-logo img { height: 42px; }
  .display-2 { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .section { padding: var(--space-3xl) 0; }
  .hero-content {
    padding-top: calc(70px + var(--space-3xl));
    gap: var(--space-3xl);
  }
  .hero-subtitle { font-size: 1.05rem; }
  .services-grid { grid-template-columns: 1fr; }
  .client-logo { min-width: 140px; height: 90px; }
  .client-logo img { max-height: 50px; }
  .stats-container { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .about-features { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .app-nav { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .hero-subtitle { font-size: 1rem; }
  .contact-form { padding: var(--space-2xl) var(--space-xl); }
  .about-badge {
    bottom: -8px;
    right: -8px;
    width: 80px;
    padding: var(--space-sm);
  }
}

/* Fixes for About Badge Responsiveness */
@media (max-width: 992px) {
  .about-badge {
    width: 110px;
    bottom: -15px;
    right: -15px;
  }
  .about-badge .number { font-size: 2rem; }
  .about-badge .text { font-size: 0.7rem; }
}

@media (max-width: 768px) {
  .about-badge {
    width: 90px;
    bottom: -10px;
    right: -10px;
    padding: var(--space-xs);
  }
  .about-badge .number { font-size: 1.6rem; }
  .about-badge .text { font-size: 0.6rem; }
}
