/* ==========================================================================
   D'LUX ELECTRIC - ESTILOS PERSONALIZADOS DE ALTO IMPACTO (PT-BR)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --bg-dark: #070B14;
  --bg-card: #0F172A;
  --bg-card-hover: #1E293B;
  
  --electric-gold: #F59E0B;
  --electric-gold-light: #FCD34D;
  --electric-gold-glow: rgba(245, 158, 11, 0.4);
  
  --electric-cyan: #06B6D4;
  --electric-cyan-light: #38BDF8;
  --electric-cyan-glow: rgba(6, 182, 212, 0.35);

  --electric-blue: #2563EB;
  --electric-red: #EF4444;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070B14;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 2px solid #070B14;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Background Gradients & Grids */
.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(6, 182, 212, 0.05) 35%, transparent 70%);
}

.bg-tech-grid {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel-gold {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.2);
}

.glass-nav {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3D Tilt Card Base & Interactive Glow */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), transparent 40%, rgba(6, 182, 212, 0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.tilt-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(245, 158, 11, 0.2);
}

/* Light Reflection Effect on Cards */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tilt-card:hover .card-shine {
  opacity: 1;
}

/* Glowing text & badges */
.text-glow-gold {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
}

.badge-pulse-red {
  position: relative;
}
.badge-pulse-red::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #EF4444;
  animation: pulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Electric Buttons */
.btn-electric {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #070B14;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}

.btn-electric::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.7s ease;
}

.btn-electric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55), 0 0 15px rgba(251, 191, 36, 0.4);
}

.btn-electric:active {
  transform: scale(0.98);
}

.btn-electric:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  transition: all 0.3s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--electric-gold);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.btn-glass:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CALCULADORA INTERATIVA - BOTÕES RESPONSIVOS PARA MOBILE & DESKTOP
   ========================================================================== */

/* Botões de Imóvel (Cards 100% Definidos em Telas Pequenas e Grandes) */
.calc-prop-btn {
  background: #0B1120 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #94A3B8;
  padding: 0.85rem 0.5rem;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
  min-height: 72px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
}

.calc-prop-btn svg {
  color: #64748B;
  transition: color 0.2s ease, transform 0.2s ease;
}

.calc-prop-btn:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #F8FAFC;
  background: #111827 !important;
  transform: translateY(-2px);
}

.calc-prop-btn:hover svg {
  color: #FBBF24;
  transform: scale(1.1);
}

.calc-prop-btn:active {
  transform: scale(0.95);
}

.calc-prop-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
  border: 1.5px solid #F59E0B !important;
  color: #FCD34D !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 0 12px rgba(245, 158, 11, 0.15) !important;
  transform: translateY(-2px) scale(1.02);
}

.calc-prop-btn.active svg {
  color: #F59E0B !important;
  transform: scale(1.15);
}

/* Botões de Urgência (Sempre com Mesma Altura, Borda Nítida e Animação) */
.calc-urgency-btn {
  background: #0B1120 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #94A3B8;
  padding: 0.75rem 0.35rem;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.75rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
}

.calc-urgency-btn:hover {
  border-color: rgba(6, 182, 212, 0.6) !important;
  color: #F8FAFC;
  background: #111827 !important;
  transform: translateY(-2px);
}

.calc-urgency-btn:active {
  transform: scale(0.95);
}

.calc-urgency-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.08) 100%) !important;
  border: 1.5px solid #06B6D4 !important;
  color: #38BDF8 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35) !important;
  transform: translateY(-2px) scale(1.02);
}

.calc-urgency-btn[data-urgency="urgencia"].active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
  border: 1.5px solid #EF4444 !important;
  color: #FCA5A5 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-2px) scale(1.02);
}

/* Before / After Slider Styles */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
  user-select: none;
  touch-action: pan-y;
}

@media (max-width: 768px) {
  .before-after-container {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .before-after-container {
    height: 300px;
  }
}

.before-img, .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  will-change: width;
}

.after-wrapper .after-img {
  width: 100%;
  min-width: 100%;
}

.before-after-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #F59E0B;
  box-shadow: 0 0 15px #F59E0B, 0 0 30px #F59E0B;
  z-index: 10;
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: none;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F172A;
  border: 2px solid #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), inset 0 0 10px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F59E0B;
  cursor: ew-resize;
  pointer-events: auto;
}

/* Modal styles */
.modal-backdrop {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Floating WhatsApp Container */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-whatsapp:hover {
  transform: scale(1.06) translateY(-3px);
}

@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
  }
}

/* Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Service Filter Active State */
.filter-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: #F59E0B;
  color: #F59E0B;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* Range input styling for calculator */
input[type="range"] {
  accent-color: #F59E0B;
}

/* Hide element on filter */
.service-card-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service-card-item.hidden-card {
  display: none !important;
  opacity: 0;
  transform: scale(0.9);
}
