/* Why Choose Me Section Styles */

#lubinik-shape-divider-shape_1757992958 {
  margin-top: -80px !important; /* override inline style margin-bottom: 0 */
}

#lubinik-custom-section-29 .section-subtitle {
    color: var(--color-primary);
}

.why-choose {
  background-color: var(--color-background);
  position: relative;
}

.why-choose::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  pointer-events: none;
}

.why-choose .container {
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-4xl);
}

.why-card {
  background-color: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-primary);
}

.why-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* removed background behind icon */
  border-radius: var(--radius-2xl);
  border: 0; /* no border by default */
  box-shadow: none; /* no shadow behind icon */
  opacity: 1 !important; /* ensure wrapper is fully opaque */
  filter: none !important;
  transition: all var(--transition-normal);
  position: relative;
}

.why-icon::before,
.why-icon::after {
  content: none !important; /* ensure no overlay contributes to fading */
  display: none !important;
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(5deg); /* keep animation only */
  background: transparent !important; /* still no background on hover */
}

.why-icon svg {
  color: var(--color-text-light);
  transition: all var(--transition-normal);
}

.why-card:hover .why-icon svg {
  color: var(--color-white);
  transform: scale(1.1);
}

/* Image icons: keep vivid colors (no fade) and same hover animation */
.why-icon img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-normal);
}

.why-card:hover .why-icon img {
  transform: scale(1.1);
}

.why-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  transition: color var(--transition-fast);
}

.why-card:hover h3 {
  color: var(--color-primary);
}

.why-card p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* Individual Card Styling */
.why-card:nth-child(1):hover .why-icon { background: none; }

.why-card:nth-child(2):hover .why-icon { background: none; }

.why-card:nth-child(3):hover .why-icon { background: none; }

.why-card:nth-child(4):hover .why-icon { background: none; }

/* Staggered Animation */
.why-card {
  opacity: 1; /* prevent initial fade */
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards; /* now only slides up */
}

.why-card:nth-child(1) {
  animation-delay: 0.1s;
}

.why-card:nth-child(2) {
  animation-delay: 0.2s;
}

.why-card:nth-child(3) {
  animation-delay: 0.3s;
}

.why-card:nth-child(4) {
  animation-delay: 0.4s;
}

.why-card:nth-child(5) {
  animation-delay: 0.5s;
}

.why-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    transform: translateY(0); /* slide without opacity change */
  }
}

/* Hover Effects for Icons */
.why-card:hover h3 {
  color: var(--color-primary);
}



/* Pulse Animation for Icons */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.why-icon {
  animation: pulse 3s ease-in-out infinite;
}

.why-card:nth-child(2) .why-icon {
  animation-delay: 0.5s;
}

.why-card:nth-child(3) .why-icon {
  animation-delay: 1s;
}

.why-card:nth-child(4) .why-icon {
  animation-delay: 1.5s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .why-card {
    padding: var(--spacing-xl);
  }
  
  .why-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-md);
  }
  
  .why-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .why-card h3 {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  .why-card {
    padding: var(--spacing-lg);
  }
  
  .why-icon {
    width: 60px;
    height: 60px;
  }
  
  .why-icon svg {
    width: 36px;
    height: 36px;
  }
}

