/* ==========================================================================
   MEGABYTECH SOLUÇÕES TECNOLÓGICAS - DESIGN SYSTEM & STYLESHEET
   Cores Oficiais: Azul (#1D5BA4), Verde-Água / Ciano (#29A0B1, #38D6C7)
   ========================================================================== */

:root {
  /* Cores Base */
  --bg-dark: #070e18;
  --bg-dark-secondary: #0c1828;
  --bg-card: rgba(15, 29, 48, 0.75);
  --bg-card-hover: rgba(21, 41, 68, 0.9);
  --bg-input: rgba(8, 17, 30, 0.8);
  --bg-glass: rgba(12, 24, 40, 0.82);
  --bg-glass-light: rgba(255, 255, 255, 0.05);

  /* Identidade Visual Megabytech */
  --brand-blue: #1d5ba4;
  --brand-blue-light: #2c72c7;
  --brand-blue-deep: #0f3663;
  --brand-teal: #29a0b1;
  --brand-teal-light: #38d6c7;
  --brand-teal-glow: rgba(56, 214, 199, 0.35);
  --brand-blue-glow: rgba(29, 91, 164, 0.45);
  
  /* Cores de Ação e Suporte */
  --whatsapp-color: #25d366;
  --whatsapp-hover: #20bd5a;
  --instagram-color: #e1306c;
  --accent-gold: #fbbf24;
  --status-success: #10b981;

  /* Tipografia & Texto */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #849ab3;
  --text-dark: #0f172a;

  /* Bordas e Sombras */
  --border-color: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(56, 214, 199, 0.4);
  --border-blue: rgba(29, 91, 164, 0.5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px var(--brand-teal-glow);
  --shadow-blue-glow: 0 0 35px var(--brand-blue-glow);

  /* Transições e Bordas */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fontes */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Elementos de Fundo Futurista */
.bg-ambient-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
  transform: translateZ(0);
  will-change: transform;
}

.ambient-orb-1 {
  top: -10%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 214, 199, 0.35) 0%, rgba(41, 160, 177, 0.15) 35%, transparent 70%);
}

.ambient-orb-2 {
  top: 40%;
  right: -10%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(29, 91, 164, 0.35) 0%, rgba(15, 54, 99, 0.15) 35%, transparent 70%);
}

.ambient-orb-3 {
  bottom: 5%;
  left: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(41, 160, 177, 0.3) 0%, rgba(29, 91, 164, 0.12) 35%, transparent 70%);
}

/* Grid tecnológico sutil no fundo */
.tech-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  transform: translateZ(0);
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Utilitários de Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 650px;
}

.hero-section {
  content-visibility: visible;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(41, 160, 177, 0.12);
  border: 1px solid rgba(56, 214, 199, 0.3);
  color: var(--brand-teal-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--brand-teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOPBAR & HEADER
   ========================================================================== */
.topbar {
  background: rgba(5, 11, 20, 0.95);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info, .topbar-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.topbar-link:hover {
  color: var(--brand-teal-light);
}

.topbar-link svg {
  width: 15px;
  height: 15px;
  stroke: var(--brand-teal-light);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--whatsapp-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--whatsapp-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--whatsapp-color);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Navbar Principal */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(6, 12, 22, 0.96);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 214, 199, 0.2);
  transition: var(--transition-fast);
}

.nav-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 214, 199, 0.4);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding: 0.35rem 0;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-teal-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal-light));
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Botões do Sistema - Redimensionados e Proporcionais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(41, 160, 177, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--brand-teal-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 214, 199, 0.45);
  color: #ffffff;
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(56, 214, 199, 0.1);
  border-color: var(--brand-teal-light);
  color: var(--brand-teal-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* Botões do Navbar com Redimensionamento Fino */
.btn-nav-whatsapp {
  background: var(--whatsapp-color);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  letter-spacing: 0.01em;
}

.btn-nav-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.btn-nav-whatsapp svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-nav-quote {
  padding: 0.52rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   BOTÃO DE ALTERNÂNCIA DE MODO (MODO CLARO / MODO ESCURO)
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.theme-toggle-btn:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.25);
}

.theme-toggle-btn:hover .theme-toggle-icon {
  transform: rotate(15deg);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.theme-toggle-icon svg {
  width: 20px;
  height: 20px;
}

/* No Modo Escuro (padrão): Exibe o Sol (convite para ir para o claro) */
.theme-toggle-btn .icon-sun {
  display: inline-flex;
  color: #fbbf24;
}

.theme-toggle-btn .icon-moon {
  display: none;
}

/* No Modo Claro: Exibe a Lua (convite para ir para o escuro) */
body.light-mode .theme-toggle-btn .icon-sun,
[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}

body.light-mode .theme-toggle-btn .icon-moon,
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: inline-flex;
  color: var(--brand-blue);
}

/* Item de tema no Drawer Mobile */
.nav-drawer-theme-item {
  display: none;
}

/* Controles Mobile do Cabeçalho */
.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* Botão Hamburguer Mobile */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-line:nth-child(2) {
  opacity: 1;
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(41, 160, 177, 0.14) 0%, rgba(7, 14, 24, 0) 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(29, 91, 164, 0.2);
  border: 1px solid rgba(56, 214, 199, 0.35);
  color: var(--brand-teal-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(56, 214, 199, 0.15);
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight-gradient {
  background: linear-gradient(135deg, #ffffff 10%, var(--brand-teal-light) 60%, var(--brand-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, var(--brand-teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* Card Visual Interativo do Hero */
.hero-visual-wrapper {
  position: relative;
}

.hero-card-showcase {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 214, 199, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(41, 160, 177, 0.2);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hero-card-showcase:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 214, 199, 0.5);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(56, 214, 199, 0.3);
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-card-showcase:hover .hero-image-box img {
  transform: scale(1.05);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 24, 0.1) 40%, rgba(7, 14, 24, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.hero-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  backdrop-filter: blur(8px);
}

.hero-image-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-image-overlay p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Badges Flutuantes */
.floating-feature-badge {
  position: absolute;
  background: rgba(12, 24, 40, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatSlow 6s ease-in-out infinite;
}

.floating-feature-badge.badge-top {
  top: -20px;
  right: -15px;
  border-color: rgba(56, 214, 199, 0.4);
  animation-delay: 0s;
}

.floating-feature-badge.badge-bottom {
  bottom: -20px;
  left: -20px;
  border-color: rgba(29, 91, 164, 0.5);
  animation-delay: 3s;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.teal {
  background: rgba(41, 160, 177, 0.2);
  color: var(--brand-teal-light);
}

.badge-icon.blue {
  background: rgba(29, 91, 164, 0.25);
  color: var(--brand-blue-light);
}

.badge-text-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-text-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   TICKER / HIGHLIGHTS BAR
   ========================================================================== */
.highlights-bar {
  background: rgba(10, 20, 35, 0.95);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.highlight-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(41, 160, 177, 0.12);
  border: 1px solid rgba(56, 214, 199, 0.25);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.highlight-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO DE SERVIÇOS
   ========================================================================== */
.services-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal-light));
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 214, 199, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29, 91, 164, 0.25), rgba(41, 160, 177, 0.2));
  border: 1px solid rgba(56, 214, 199, 0.3);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-badge {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(56, 214, 199, 0.4);
}

.service-icon-badge svg {
  width: 28px;
  height: 28px;
}

.service-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  font-family: var(--font-heading);
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features-list {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-features-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand-teal-light);
  flex-shrink: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.service-tag-pill {
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-card-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-btn-action {
  color: var(--brand-teal-light);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.service-btn-action:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ==========================================================================
   GALERIA / PORTFÓLIO DE SERVIÇOS EXECUTADOS (FOTOS REAIS)
   ========================================================================== */
.portfolio-section {
  position: relative;
  background: var(--bg-dark);
}

/* Filtros da Galeria */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  background: rgba(41, 160, 177, 0.15);
  border-color: rgba(56, 214, 199, 0.4);
  color: var(--brand-teal-light);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(41, 160, 177, 0.4);
}

/* Grid de Fotos */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition-normal);
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 214, 199, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 24, 0.1) 20%, rgba(7, 14, 24, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal-light);
  background: rgba(41, 160, 177, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  border: 1px solid rgba(56, 214, 199, 0.3);
}

.portfolio-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.portfolio-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-view-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transform: scale(0.9);
  transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-view-icon {
  transform: scale(1);
  background: var(--brand-teal-light);
  color: var(--bg-dark);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 16, 0.94);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  max-width: 900px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 214, 199, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-image-holder {
  width: 100%;
  max-height: 520px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lightbox-image-holder img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(12, 24, 40, 0.8);
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(12, 24, 40, 0.7);
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--brand-teal-light);
  color: var(--bg-dark);
}

.lightbox-nav-prev { left: 1rem; }
.lightbox-nav-next { right: 1rem; }

.lightbox-details {
  padding: 1.5rem 2rem;
  background: var(--bg-dark-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lightbox-text {
  flex: 1;
}

.lightbox-text h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.lightbox-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMULADOR / CALCULADORA DE ORÇAMENTO INTERATIVO
   ========================================================================== */
.budget-calculator-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.wizard-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 214, 199, 0.25);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(41, 160, 177, 0.15);
}

@media (max-width: 768px) {
  .wizard-card {
    padding: 1.8rem;
  }
}

.wizard-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wizard-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.wizard-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Opções de Seleção Interativas */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.chip-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-option:hover {
  background: rgba(41, 160, 177, 0.1);
  border-color: rgba(56, 214, 199, 0.4);
}

.chip-option input[type="radio"],
.chip-option input[type="checkbox"] {
  display: none;
}

.chip-option.selected {
  background: rgba(41, 160, 177, 0.2);
  border-color: var(--brand-teal-light);
  box-shadow: 0 0 20px rgba(56, 214, 199, 0.25);
}

.chip-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal-light);
  flex-shrink: 0;
}

.chip-option.selected .chip-icon {
  background: var(--brand-teal-light);
  color: var(--bg-dark);
}

.chip-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Campos de Formulário */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-teal-light);
  background: rgba(12, 24, 40, 0.95);
  box-shadow: 0 0 0 3px rgba(56, 214, 199, 0.2);
}

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

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   POR QUE ESCOLHER A MEGABYTECH (DIFERENCIAIS)
   ========================================================================== */
.why-us-section {
  position: relative;
  background: var(--bg-dark);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition-normal);
  position: relative;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.why-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(41, 160, 177, 0.15);
  border: 1px solid rgba(56, 214, 199, 0.3);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-icon-box svg {
  width: 26px;
  height: 26px;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   DEPOIMENTOS & AVALIAÇÕES
   ========================================================================== */
.testimonials-section {
  background: var(--bg-dark-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ (PERGUNTAS FREQUENTES)
   ========================================================================== */
.faq-section {
  background: var(--bg-dark);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(56, 214, 199, 0.3);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--brand-teal-light);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO DE CONTATO & ORÇAMENTO DIRETO
   ========================================================================== */
.contact-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, #050b14 100%);
  border-top: 1px solid var(--border-color);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

@media (max-width: 900px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition-fast);
}

.contact-channel-card:hover {
  transform: translateX(6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-color);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.channel-icon.email {
  background: rgba(41, 160, 177, 0.15);
  color: var(--brand-teal-light);
  border: 1px solid rgba(56, 214, 199, 0.3);
}

.channel-icon.instagram {
  background: rgba(225, 48, 108, 0.15);
  color: var(--instagram-color);
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.channel-details h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.channel-details a, .channel-details span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-hours-box {
  background: rgba(12, 24, 40, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact-hours-box h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-hours-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid rgba(56, 214, 199, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .contact-form-panel {
    padding: 1.5rem;
  }
}

.contact-form-panel h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-form-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #03070d;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1.2rem;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brand-teal-light);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--brand-teal-light);
  transform: translateX(4px);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--brand-teal-light);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WIDGET FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-floating-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-bubble {
  background: rgba(12, 24, 40, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.whatsapp-bubble:hover {
  transform: translateX(-4px);
  border-color: var(--whatsapp-color);
}

.whatsapp-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn-circle svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--whatsapp-color);
  animation: pingDot 2s infinite;
}

@keyframes pingDot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 600px) {
  .whatsapp-floating-widget {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .whatsapp-bubble {
    display: none;
  }
  .whatsapp-btn-circle {
    width: 52px;
    height: 52px;
  }
  .whatsapp-btn-circle svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   DRAWER MOBILE & RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-mobile-controls {
    display: flex;
  }

  .theme-toggle-btn-mobile {
    padding: 0.48rem 0.65rem;
  }

  .theme-toggle-btn-mobile .theme-toggle-label {
    display: none;
  }

  .nav-drawer-theme-item {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .theme-toggle-btn-drawer {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    height: calc(100vh - 82px);
    background: rgba(7, 14, 24, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
  }

  .nav-actions {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
  }

  .hero-visual-wrapper {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 1220px) and (min-width: 993px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .btn-nav-whatsapp {
    padding: 0.48rem 0.8rem;
    font-size: 0.82rem;
  }
  .btn-nav-quote {
    padding: 0.48rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   TEMA CLARO (LIGHT MODE) - DESIGN SYSTEM MODERNO, CLEAN & ALTO CONTRASTE
   ========================================================================== */
:root[data-theme="light"],
body.light-mode {
  /* Cores Base Claras */
  --bg-dark: #f8fafc;
  --bg-dark-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-light: rgba(15, 29, 48, 0.04);

  /* Identidade Visual Megabytech adaptada para alto contraste */
  --brand-blue: #145296;
  --brand-blue-light: #1d5ba4;
  --brand-blue-deep: #0c315c;
  --brand-teal: #088090;
  --brand-teal-light: #0d9cb0;
  --brand-teal-glow: rgba(8, 128, 144, 0.2);
  --brand-blue-glow: rgba(20, 82, 150, 0.2);

  /* Tipografia & Texto */
  --text-primary: #0f1c2e;
  --text-secondary: #33475f;
  --text-muted: #5d718a;
  --text-dark: #070e18;

  /* Bordas e Sombras */
  --border-color: rgba(15, 29, 48, 0.1);
  --border-hover: rgba(13, 156, 176, 0.5);
  --border-blue: rgba(20, 82, 150, 0.35);
  --shadow-sm: 0 2px 8px rgba(15, 29, 48, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 29, 48, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 29, 48, 0.1);
  --shadow-glow: 0 0 25px rgba(13, 156, 176, 0.18);
  --shadow-blue-glow: 0 0 25px rgba(20, 82, 150, 0.18);
}

/* Fundo da Página no Modo Claro */
body.light-mode,
[data-theme="light"] body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--text-primary);
}

body.light-mode p,
[data-theme="light"] p {
  color: var(--text-secondary);
}

/* Elementos de Luz Ambiente no Modo Claro */
body.light-mode .ambient-orb,
[data-theme="light"] .ambient-orb {
  opacity: 0.35;
}

body.light-mode .ambient-orb-1,
[data-theme="light"] .ambient-orb-1 {
  background: radial-gradient(circle, rgba(13, 156, 176, 0.18) 0%, rgba(41, 160, 177, 0.05) 40%, transparent 70%);
}

body.light-mode .ambient-orb-2,
[data-theme="light"] .ambient-orb-2 {
  background: radial-gradient(circle, rgba(29, 91, 164, 0.18) 0%, rgba(15, 54, 99, 0.05) 40%, transparent 70%);
}

body.light-mode .ambient-orb-3,
[data-theme="light"] .ambient-orb-3 {
  background: radial-gradient(circle, rgba(41, 160, 177, 0.15) 0%, rgba(29, 91, 164, 0.04) 40%, transparent 70%);
}

body.light-mode .tech-grid-overlay,
[data-theme="light"] .tech-grid-overlay {
  background-image: 
    linear-gradient(rgba(15, 29, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 29, 48, 0.035) 1px, transparent 1px);
}

/* Topbar & Header */
body.light-mode .topbar,
[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
}

body.light-mode .topbar-link,
[data-theme="light"] .topbar-link {
  color: var(--text-secondary);
}

body.light-mode .topbar-link:hover,
[data-theme="light"] .topbar-link:hover {
  color: var(--brand-blue);
}

body.light-mode .topbar-badge,
[data-theme="light"] .topbar-badge {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #16a34a;
}

/* Navbar Principal */
body.light-mode .navbar,
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 14px rgba(15, 29, 48, 0.04);
}

body.light-mode .navbar.scrolled,
[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 29, 48, 0.08);
}

body.light-mode .nav-link,
[data-theme="light"] .nav-link {
  color: #33475f;
  font-weight: 600;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active,
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--brand-blue);
}

body.light-mode .nav-brand-card,
[data-theme="light"] .nav-brand-card {
  background: #ffffff;
  border: 1px solid rgba(15, 29, 48, 0.08);
  box-shadow: 0 2px 8px rgba(15, 29, 48, 0.06);
}

/* Botão de Tema no Modo Claro */
body.light-mode .theme-toggle-btn,
[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(20, 82, 150, 0.25);
  color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(15, 29, 48, 0.04);
}

body.light-mode .theme-toggle-btn:hover,
[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(20, 82, 150, 0.08);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(20, 82, 150, 0.15);
}

/* Botões do Sistema no Modo Claro */
body.light-mode .btn-outline,
[data-theme="light"] .btn-outline {
  background: #ffffff;
  color: var(--brand-blue);
  border: 1px solid rgba(20, 82, 150, 0.28);
  box-shadow: 0 2px 6px rgba(15, 29, 48, 0.04);
}

body.light-mode .btn-outline:hover,
[data-theme="light"] .btn-outline:hover {
  background: rgba(20, 82, 150, 0.08);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(20, 82, 150, 0.12);
}

/* Títulos com Gradiente */
body.light-mode .section-title .gradient-text,
[data-theme="light"] .section-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .section-tag,
[data-theme="light"] .section-tag {
  background: rgba(20, 82, 150, 0.08);
  border-color: rgba(20, 82, 150, 0.22);
  color: var(--brand-blue);
}

body.light-mode .section-subtitle,
[data-theme="light"] .section-subtitle {
  color: var(--text-muted);
}

/* Hero Section */
body.light-mode .hero-title,
[data-theme="light"] .hero-title {
  color: #0f1c2e;
}

body.light-mode .hero-title .highlight-gradient,
[data-theme="light"] .hero-title .highlight-gradient {
  background: linear-gradient(135deg, #145296 0%, #088090 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .hero-badge,
[data-theme="light"] .hero-badge {
  background: rgba(20, 82, 150, 0.08);
  border-color: rgba(20, 82, 150, 0.22);
  color: var(--brand-blue);
}

body.light-mode .hero-metrics,
[data-theme="light"] .hero-metrics {
  border-top-color: var(--border-color);
}

body.light-mode .metric-number,
[data-theme="light"] .metric-number {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .metric-label,
[data-theme="light"] .metric-label {
  color: var(--text-muted);
}

body.light-mode .hero-card-showcase,
[data-theme="light"] .hero-card-showcase {
  background: #ffffff;
  border-color: rgba(15, 29, 48, 0.1);
  box-shadow: 0 16px 45px rgba(15, 29, 48, 0.08), 0 0 35px rgba(8, 128, 144, 0.08);
}

body.light-mode .floating-feature-badge,
[data-theme="light"] .floating-feature-badge {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 29, 48, 0.12);
  box-shadow: 0 8px 24px rgba(15, 29, 48, 0.1);
}

body.light-mode .badge-text-title,
[data-theme="light"] .badge-text-title {
  color: #0f1c2e;
}

body.light-mode .badge-text-desc,
[data-theme="light"] .badge-text-desc {
  color: var(--text-muted);
}

/* Highlights Bar */
body.light-mode .highlights-bar,
[data-theme="light"] .highlights-bar {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 2px 10px rgba(15, 29, 48, 0.03);
}

body.light-mode .highlight-text h4,
[data-theme="light"] .highlight-text h4 {
  color: #0f1c2e;
}

body.light-mode .highlight-text p,
[data-theme="light"] .highlight-text p {
  color: var(--text-muted);
}

body.light-mode .highlight-icon,
[data-theme="light"] .highlight-icon {
  background: rgba(20, 82, 150, 0.08);
  border-color: rgba(20, 82, 150, 0.2);
  color: var(--brand-blue);
}

/* Serviços */
body.light-mode .services-section,
[data-theme="light"] .services-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

body.light-mode .service-card,
[data-theme="light"] .service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(15, 29, 48, 0.04);
}

body.light-mode .service-card:hover,
[data-theme="light"] .service-card:hover {
  background: #ffffff;
  border-color: rgba(20, 82, 150, 0.35);
  box-shadow: 0 16px 36px rgba(15, 29, 48, 0.1), 0 0 25px rgba(8, 128, 144, 0.08);
}

body.light-mode .service-card-title,
[data-theme="light"] .service-card-title {
  color: #0f1c2e;
}

body.light-mode .service-num,
[data-theme="light"] .service-num {
  color: rgba(15, 29, 48, 0.1);
}

body.light-mode .service-features-list li,
[data-theme="light"] .service-features-list li {
  color: #33475f;
}

body.light-mode .service-tag-pill,
[data-theme="light"] .service-tag-pill {
  background: #f1f5f9;
  border-color: rgba(15, 29, 48, 0.08);
  color: #475569;
}

body.light-mode .service-icon-badge,
[data-theme="light"] .service-icon-badge {
  background: rgba(20, 82, 150, 0.08);
  border-color: rgba(20, 82, 150, 0.2);
  color: var(--brand-blue);
}

body.light-mode .service-btn-action,
[data-theme="light"] .service-btn-action {
  color: var(--brand-blue);
}

body.light-mode .service-btn-action:hover,
[data-theme="light"] .service-btn-action:hover {
  color: var(--brand-teal);
}

/* Portfólio / Galeria */
body.light-mode .filter-btn,
[data-theme="light"] .filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: #475569;
}

body.light-mode .filter-btn:hover,
[data-theme="light"] .filter-btn:hover {
  background: rgba(20, 82, 150, 0.08);
  border-color: rgba(20, 82, 150, 0.28);
  color: var(--brand-blue);
}

body.light-mode .filter-btn.active,
[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  border-color: transparent;
  color: #ffffff;
}

body.light-mode .portfolio-item,
[data-theme="light"] .portfolio-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(15, 29, 48, 0.04);
}

body.light-mode .portfolio-item:hover,
[data-theme="light"] .portfolio-item:hover {
  border-color: rgba(20, 82, 150, 0.35);
  box-shadow: 0 16px 36px rgba(15, 29, 48, 0.1);
}

/* Calculadora / Simulador de Orçamento */
body.light-mode .budget-calculator-section,
[data-theme="light"] .budget-calculator-section {
  background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
  border-color: var(--border-color);
}

body.light-mode .wizard-card,
[data-theme="light"] .wizard-card {
  background: #ffffff;
  border-color: rgba(15, 29, 48, 0.1);
  box-shadow: 0 16px 45px rgba(15, 29, 48, 0.08), 0 0 35px rgba(8, 128, 144, 0.08);
}

body.light-mode .wizard-group-title,
[data-theme="light"] .wizard-group-title {
  color: #0f1c2e;
}

body.light-mode .wizard-step-header,
[data-theme="light"] .wizard-step-header {
  border-bottom-color: var(--border-color);
}

body.light-mode .chip-option,
[data-theme="light"] .chip-option {
  background: #f8fafc;
  border-color: rgba(15, 29, 48, 0.1);
}

body.light-mode .chip-option:hover,
[data-theme="light"] .chip-option:hover {
  background: rgba(20, 82, 150, 0.06);
  border-color: rgba(20, 82, 150, 0.3);
}

body.light-mode .chip-option.selected,
[data-theme="light"] .chip-option.selected {
  background: rgba(20, 82, 150, 0.09);
  border-color: var(--brand-blue);
  box-shadow: 0 0 16px rgba(20, 82, 150, 0.15);
}

body.light-mode .chip-label,
[data-theme="light"] .chip-label {
  color: #0f1c2e;
}

body.light-mode .chip-icon,
[data-theme="light"] .chip-icon {
  background: #e2e8f0;
  color: var(--brand-blue);
}

body.light-mode .chip-option.selected .chip-icon,
[data-theme="light"] .chip-option.selected .chip-icon {
  background: var(--brand-blue);
  color: #ffffff;
}

body.light-mode .form-label,
[data-theme="light"] .form-label {
  color: #33475f;
}

body.light-mode .form-control,
[data-theme="light"] .form-control {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f1c2e;
}

body.light-mode .form-control:focus,
[data-theme="light"] .form-control:focus {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(20, 82, 150, 0.15);
}

body.light-mode .wizard-actions,
[data-theme="light"] .wizard-actions {
  border-top-color: var(--border-color);
}

/* Diferenciais / Por que nos escolher */
body.light-mode .why-card,
[data-theme="light"] .why-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(15, 29, 48, 0.04);
}

body.light-mode .why-card:hover,
[data-theme="light"] .why-card:hover {
  border-color: rgba(20, 82, 150, 0.35);
  box-shadow: 0 12px 30px rgba(15, 29, 48, 0.08);
}

body.light-mode .why-card h3,
[data-theme="light"] .why-card h3 {
  color: #0f1c2e;
}

body.light-mode .why-icon-box,
[data-theme="light"] .why-icon-box {
  background: rgba(20, 82, 150, 0.08);
  border-color: rgba(20, 82, 150, 0.2);
  color: var(--brand-blue);
}

/* Depoimentos */
body.light-mode .testimonials-section,
[data-theme="light"] .testimonials-section {
  background: var(--bg-dark-secondary);
  border-color: var(--border-color);
}

body.light-mode .testimonial-card,
[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(15, 29, 48, 0.04);
}

body.light-mode .testimonial-text,
[data-theme="light"] .testimonial-text {
  color: #33475f;
}

body.light-mode .author-info h4,
[data-theme="light"] .author-info h4 {
  color: #0f1c2e;
}

/* FAQ */
body.light-mode .faq-item,
[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(15, 29, 48, 0.03);
}

body.light-mode .faq-item:hover,
[data-theme="light"] .faq-item:hover {
  border-color: rgba(20, 82, 150, 0.3);
}

body.light-mode .faq-question,
[data-theme="light"] .faq-question {
  color: #0f1c2e;
}

/* Contato */
body.light-mode .contact-section,
[data-theme="light"] .contact-section {
  background: var(--bg-dark-secondary);
}

body.light-mode .contact-channel-card,
[data-theme="light"] .contact-channel-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(15, 29, 48, 0.04);
}

body.light-mode .contact-channel-card:hover,
[data-theme="light"] .contact-channel-card:hover {
  border-color: rgba(20, 82, 150, 0.35);
  box-shadow: 0 12px 28px rgba(15, 29, 48, 0.08);
}

body.light-mode .channel-info h4,
[data-theme="light"] .channel-info h4 {
  color: #0f1c2e;
}

body.light-mode .channel-value,
[data-theme="light"] .channel-value {
  color: var(--brand-blue);
}

body.light-mode .contact-hours-box,
[data-theme="light"] .contact-hours-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
}

body.light-mode .contact-hours-box h4,
[data-theme="light"] .contact-hours-box h4 {
  color: #0f1c2e;
}

body.light-mode .contact-form-panel,
[data-theme="light"] .contact-form-panel {
  background: #ffffff;
  border-color: rgba(15, 29, 48, 0.1);
  box-shadow: 0 16px 45px rgba(15, 29, 48, 0.08);
}

body.light-mode .contact-form-panel h3,
[data-theme="light"] .contact-form-panel h3 {
  color: #0f1c2e;
}

/* Página contato.html específicos */
body.light-mode .page-hero,
[data-theme="light"] .page-hero {
  background: radial-gradient(circle at 50% 20%, rgba(20, 82, 150, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
  border-bottom: 1px solid var(--border-color);
}

body.light-mode .urgent-banner,
[data-theme="light"] .urgent-banner {
  background: rgba(37, 211, 102, 0.09);
  border-color: rgba(37, 211, 102, 0.35);
}

body.light-mode .urgent-banner p,
[data-theme="light"] .urgent-banner p {
  color: #1e293b;
}

/* Menu Mobile no Tema Claro */
body.light-mode .hamburger-line,
[data-theme="light"] .hamburger-line {
  background-color: #0f1c2e;
}

@media (max-width: 992px) {
  body.light-mode .nav-menu,
  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 29, 48, 0.12);
  }
  body.light-mode .nav-link,
  [data-theme="light"] .nav-link {
    color: #0f1c2e;
  }
}


