/* ========================================
   GLOBAL STYLES & DESIGN SYSTEM
   ======================================== */
:root {
  --brand-green: #16A34A;
  --brand-green-hover: #07A569;
  --brand-green-deep: #15803D;
  --dark-deep: #052E16;
  --light-green-bg: #ECFDF5;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #1F2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Poppins', sans-serif;
}

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

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16A34A;
}

/* ========================================
   UTILITIES
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, #16A34A 0%, #07A569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.05s;
}

.fade-in-delay-2 {
  transition-delay: 0.1s;
}

.fade-in-delay-3 {
  transition-delay: 0.15s;
}

.fade-in-delay-4 {
  transition-delay: 0.2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* ========================================
   LIGHT SECTIONS
   ======================================== */
.bg-light-green {
  background-color: var(--light-green-bg);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.glass-card:hover {
  border-color: #16A34A40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.btn-primary {
  background: #16A34A;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: white;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #07A569;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-content.open {
  max-height: 500px;
  padding-bottom: 1.5rem;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #16A34A;
}

/* Step Indicators (Connectors Removed) */
.step-line {
  position: relative;
  transition: transform 0.2s ease;
}

.step-line:hover {
  transform: translateY(-5px);
}

/* No connector line per user request */

/* Pipeline Snapshot Card */
.pipeline-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border-radius: 2.25rem;
  padding: 2.5rem;
  box-shadow: 0 20px 60px -15px rgba(5, 46, 22, 0.08), 0 0 0 1px #f1f5f9;
  position: relative;
  overflow: hidden;
}

.stat-pill {
  padding: 0.75rem 1.25rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-pill:hover {
  border-color: #16A34A40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

/* Form styling */
input:focus,
textarea:focus {
  outline: none;
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Navbar Adaptive Styling */
#navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #F1F5F9;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 40;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mega Menu Styles */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(10px);
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 100;
  padding: 2rem;
}

.nav-item-services:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile Services Accordion */
.mobile-services-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.mobile-subcategory-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-subcategory-content.open {
  max-height: 400px;
  opacity: 1;
  padding-top: 0.5rem;
}

.mobile-services-content.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 0.5rem;
}

.chevron-icon {
  transition: transform 0.3s ease;
}

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

/* Testimonial slider */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* ========================================
   WHATSAPP WIDGET
   ======================================== */
.wa-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

.wa-button {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.wa-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.wa-button svg {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wa-button .wa-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.wa-button .close-icon {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

.wa-button.active {
  background: #EF4444;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.wa-button.active .wa-icon {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

.wa-button.active .close-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Logo Styling */
.header-logo-img {
  height: 2rem;
  /* Reduced per user request for premium feel */
  width: auto;
  transition: transform 0.3s ease;
}

.footer-logo-img {
  height: 2.25rem;
  /* Equivalent to h-9 */
  width: auto;
  filter: brightness(0) invert(1);
  /* Optional: make logo white if background is dark */
}

.wa-chat-box {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: auto;
  width: 320px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  border: 1px solid #F1F5F9;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-chat-box.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.wa-header {
  background: #075E54;
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #0A7C6E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.wa-status {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
}

.wa-body {
  padding: 20px;
  background: #E5DDD5;
}

.wa-bubble {
  background: white;
  padding: 10px 15px;
  border-radius: 0 15px 15px 15px;
  font-size: 0.875rem;
  color: #1F2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wa-footer {
  padding: 15px;
  background: white;
  display: flex;
  gap: 10px;
  border-top: 1px solid #F1F5F9;
}

.wa-input {
  flex-grow: 1;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 15px;
  font-size: 0.875rem;
  outline: none;
}

.wa-send {
  background: #075E54;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.wa-send:hover {
  background: #128C7E;
}

/* ==================== HERO DASHBOARD ANIMATIONS ==================== */
@keyframes bar-grow {
  from {
    height: 0;
    opacity: 0;
  }

  to {
    height: var(--target-height);
    opacity: 1;
  }
}

@keyframes float-notify {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  10%,
  90% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

@keyframes stat-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    color: var(--color-primary-600);
  }
}

.animate-bar {
  animation: bar-grow 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.notification-toast {
  animation: float-notify 4s ease-in-out infinite;
}

.stat-value {
  display: inline-block;
  transition: all 0.3s ease;
}

.pulse-primary {
  animation: stat-pulse 2s infinite;
}

@media (max-width: 640px) {
  .wa-widget {
    bottom: 20px;
    left: 15px;
    right: auto;
  }

  .wa-chat-box {
    width: calc(100vw - 30px);
    left: 0;
    right: auto;
  }
}