/* ==========================================================================
   UM PROJETOS - ENGENHARIA CIVIL & SOLUÇÕES TÉCNICAS
   Design System & Custom Ultra-Modern Styling
   ========================================================================== */

:root {
  /* Brand Official Identity Colors from Logo Projetos (1).png */
  --brand-green-primary: #0E9653;
  /* Primary Emerald/Forest Green */
  --brand-green-accent: #66BB51;
  /* Upper ribbon Leaf/Lime Green */
  --brand-charcoal: #363435;
  /* Official Logo Charcoal text */

  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #66BB51;
  /* Official logo accent leaf green */
  --primary-500: #0E9653;
  /* Official logo primary green */
  --primary-600: #0b8046;
  --primary-700: #096839;
  --primary-800: #07522d;
  --primary-900: #053e22;
  --primary-950: #022212;

  --dark-950: #090d16;
  --dark-900: #0f172a;
  --dark-850: #131d31;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;

  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --primary-glow: rgba(14, 150, 83, 0.35);
  --accent-glow: rgba(102, 187, 81, 0.35);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base & Typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  background-color: var(--dark-950);
  color: #e2e8f0;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
}

/* Blueprint Grid Background Pattern */
.bg-blueprint {
  background-color: var(--dark-950);
  background-image:
    linear-gradient(rgba(14, 150, 83, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 150, 83, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 20%, rgba(14, 150, 83, 0.15) 0%, transparent 60%);
}

.bg-radial-amber {
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(19, 29, 49, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 150, 83, 0.3);
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.glass-panel-amber {
  background: rgba(26, 20, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 35px -10px var(--amber-glow);
}

/* Gradients */
.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 30%, #66BB51 70%, #0E9653 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #ffffff 0%, #fde68a 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #66BB51 0%, #0E9653 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px -2px rgba(14, 150, 83, 0.45);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #74c760 0%, #0b8046 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 150, 83, 0.65);
}

.btn-amber-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.4);
}

.btn-amber-gradient:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

/* Card 3D Hover & Elevation */
.service-card {
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 150, 83, 0.5);
  box-shadow: 0 20px 40px -15px rgba(14, 150, 83, 0.25);
}

/* Floating WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  animation: whatsapp-pulse 2s infinite;
}

/* Pulsing Badge for Urgent Status */
@keyframes ping-subtle {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.ping-alert {
  animation: ping-subtle 2s infinite ease-in-out;
}

/* Before and After Image Comparison Slider */
.comparison-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  border-radius: 1rem;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  border-right: 3px solid #0E9653;
  box-shadow: 4px 0 15px rgba(14, 150, 83, 0.5);
}

.comparison-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #66BB51 0%, #0E9653 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(14, 150, 83, 0.8);
  cursor: ew-resize;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #090d16;
}

::-webkit-scrollbar-thumb:hover {
  background: #0E9653;
}

/* Interactive Map Marker Glow */
.map-marker {
  transition: all 0.3s ease;
}

.map-marker:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #0E9653);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

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

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

/* Subtle Shimmer for High Priority Badges */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.badge-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* ==========================================================================
   HERO METRICS & FLOATING ELEMENTS REFINEMENTS
   ========================================================================== */
.hero-metric-card {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-metric-card:hover {
  transform: translateY(-3px);
  background: rgba(19, 29, 49, 0.95);
  border-color: rgba(102, 187, 81, 0.45);
  box-shadow: 0 10px 25px -8px rgba(14, 150, 83, 0.35);
}

/* Mobile Adjustments for Floating Badges */
@media (max-width: 768px) {
  /* Prevent overlap between floating pills and bottom WhatsApp button */
  .crea-floating-pill {
    display: none !important;
  }
}
