/* ===== SUSTAINABILITY SECTION – DARK THEME, SCROLL‑TRIGGERED ANIMATIONS (MASTRIQ GREEN) ===== */
:root {
  --primary: #76b900;
  --primary-dark: #5a8c00;
  --primary-light: rgba(118, 185, 0, 0.15);
  --bg-dark: #0a0a0a;
  --card-bg: #111111;
  --border-light: #2a2a2a;
}

.sustainability-section {
  padding: 5rem 0;
  background: var(--bg-dark);
  position: relative;
  scroll-margin-top: 80px;
  overflow: hidden;
}

/* subtle background grid */
.sustainability-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(118, 185, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.sustainability-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  z-index: 1;
}

.sustainability-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Header */
.sustainability-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sustainability-badge {
  display: inline-block;
  background: rgba(118, 185, 0, 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 1rem;
  border: 1px solid rgba(118, 185, 0, 0.3);
  backdrop-filter: blur(4px);
}

.sustainability-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  animation: slideFromLeft 0.6s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}

.sustainability-title .green-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

/* Content text */
.sustainability-content {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.sustainability-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 1.2rem;
}

/* ===== PILLARS – initially hidden, will animate when section becomes visible ===== */
.sustainability-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  overflow: hidden;
}

.pillar {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  opacity: 0;  /* start hidden */
}

/* Pillar animations when section gets .in-view class */
.sustainability-section.in-view .pillar:first-child {
  animation: slideFromLeft 0.6s ease forwards;
  animation-delay: 0.1s;
}

.sustainability-section.in-view .pillar:nth-child(2) {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.sustainability-section.in-view .pillar:last-child {
  animation: slideFromRight 0.6s ease forwards;
  animation-delay: 0.5s;
}

/* Hover effects (stay as before) */
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 30px -10px rgba(118, 185, 0, 0.25);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background: rgba(118, 185, 0, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  transition: all 0.3s;
}

.pillar-icon i {
  font-size: 1.8rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.pillar:hover .pillar-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.pillar:hover .pillar-icon i {
  color: #0a0a0a;
  transform: scale(1.1);
}

.pillar h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.pillar p {
  font-size: 0.85rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* Keyframes for animations */
@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile: all pillars fade up from bottom when section becomes visible */
@media (max-width: 768px) {
  .sustainability-section {
    padding: 3rem 0;
  }
  .sustainability-title {
    font-size: 1.8rem;
  }
  .sustainability-text {
    font-size: 0.9rem;
  }
  .sustainability-pillars {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .sustainability-section.in-view .pillar:first-child,
  .sustainability-section.in-view .pillar:nth-child(2),
  .sustainability-section.in-view .pillar:last-child {
    animation: fadeInUp 0.6s ease forwards;
  }
  .sustainability-section.in-view .pillar:first-child { animation-delay: 0.1s; }
  .sustainability-section.in-view .pillar:nth-child(2) { animation-delay: 0.2s; }
  .sustainability-section.in-view .pillar:last-child { animation-delay: 0.3s; }
  .pillar {
    padding: 1.2rem;
  }
  .pillar-icon {
    width: 50px;
    height: 50px;
  }
  .pillar-icon i {
    font-size: 1.5rem;
  }
  .pillar h3 {
    font-size: 1rem;
  }
  .pillar p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .sustainability-section {
    padding: 2rem 0;
  }
  .sustainability-title {
    font-size: 1.5rem;
  }
}