/* ==========================================================================
   Veridian Climate Pulse — Site Animations
   (Scroll reveals, hero entrances, micro-interactions)
   ========================================================================== */

:root {
  --vcp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --vcp-ease-smooth: cubic-bezier(0.33, 0.05, 0.2, 1);
  --vcp-duration: 2.4s;
  --vcp-hero-duration: 2.5s;
  --vcp-offset: 36px;
  --vcp-green: #90bb51;
  --vcp-green-dark: #4d742e;
  --vcp-navy: #172c4e;
}

/* --------------------------------------------------------------------------
   Scroll-reveal base
   -------------------------------------------------------------------------- */

.vcp-reveal {
  opacity: 0;
  transform: translate3d(0, var(--vcp-offset), 0);
  transition:
    opacity calc(var(--vcp-duration) * 0.9) var(--vcp-ease-smooth),
    transform var(--vcp-duration) var(--vcp-ease-out);
  transition-delay: var(--vcp-delay, 0s);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.vcp-reveal.vcp-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.vcp-reveal--fade-up {
  transform: translate3d(0, var(--vcp-offset), 0);
}

.vcp-reveal--fade-down {
  transform: translate3d(0, calc(var(--vcp-offset) * -0.85), 0);
}

.vcp-reveal--fade-left {
  transform: translate3d(var(--vcp-offset), 0, 0);
}

.vcp-reveal--fade-right {
  transform: translate3d(calc(var(--vcp-offset) * -1), 0, 0);
}

.vcp-reveal--fade-left.vcp-visible,
.vcp-reveal--fade-right.vcp-visible {
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   Hero — page-load entrance
   -------------------------------------------------------------------------- */

.vcp-hero-load {
  opacity: 0;
  animation: vcpHeroIn var(--vcp-hero-duration) var(--vcp-ease-out) forwards;
  animation-delay: var(--vcp-delay, 0s);
}

@keyframes vcpHeroIn {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.vcp-hero-load--soft {
  animation-name: vcpHeroSoft;
}

@keyframes vcpHeroSoft {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-content-left h1 {
  opacity: 0;
  animation: vcpHeroIn 2.2s var(--vcp-ease-out) forwards;
  animation-delay: 0.18s;
}

.hero-content-left p {
  opacity: 0;
  animation: vcpHeroSoft 2.1s var(--vcp-ease-out) forwards;
  animation-delay: 0.42s;
}

.hero-content-left .hero-btns {
  opacity: 0;
  animation: vcpHeroBtnIn 2s var(--vcp-ease-out) forwards;
  animation-delay: 0.7s;
}

.hero-content-right {
  opacity: 0;
  transform: translate3d(var(--vcp-parallax-x, 0px), 24px, 0) scale(0.98);
  animation: vcpHeroVisualIn 2.5s var(--vcp-ease-out) forwards;
  animation-delay: 0.4s;
  transition: transform 0.55s var(--vcp-ease-smooth);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero-content-right.vcp-hero-visual-ready {
  transform: translate3d(var(--vcp-parallax-x, 0px), 0, 0) scale(1);
}

@keyframes vcpHeroVisualIn {
  0% {
    opacity: 0;
    transform: translate3d(calc(36px + var(--vcp-parallax-x, 0px)), 32px, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--vcp-parallax-x, 0px), 0, 0) scale(1);
  }
}

.hero-content-right img {
  animation: vcpHeroImageSway 10s var(--vcp-ease-smooth) infinite alternate;
  animation-delay: 2.4s;
}

@keyframes vcpHeroImageSway {
  0% {
    transform: translate3d(0, -5px, 0);
  }
  100% {
    transform: translate3d(0, 5px, 0);
  }
}

@keyframes vcpHeroBtnIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* --------------------------------------------------------------------------
   Buttons — micro lift
   -------------------------------------------------------------------------- */

.hero-btn,
.hero-btn2,
.cta-btn {
  transition:
    transform 0.45s var(--vcp-ease-smooth),
    box-shadow 0.45s var(--vcp-ease-smooth),
    background 0.45s var(--vcp-ease-smooth),
    border-color 0.45s var(--vcp-ease-smooth),
    color 0.45s var(--vcp-ease-smooth);
}

.hero-btn:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(144, 187, 81, 0.28);
}

.hero-btn2:hover {
  transform: translateY(-2px);
}

.hero-btn:active,
.hero-btn2:active,
.cta-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Cards — hover lift
   -------------------------------------------------------------------------- */

.work-card,
.pillar-card,
.pillar-card1,
.pillar-card2,
.commitment-card,
.climate-card,
.serve-card,
.second-section-right-content,
.pointer-content {
  transition:
    transform 0.55s var(--vcp-ease-smooth),
    box-shadow 0.55s var(--vcp-ease-smooth),
    border-color 0.45s var(--vcp-ease-smooth);
}

.work-card:hover,
.commitment-card:hover,
.climate-card:hover,
.serve-card:hover,
.second-section-right-content:hover,
.pointer-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(23, 44, 78, 0.12);
}

.pillar-card:hover,
.pillar-card1:hover,
.pillar-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(23, 44, 78, 0.14);
}

.difference-img img,
.fourth-img img,
.dashboard-img img,
.mission-image-container img,
.research-img .left-side img,
.commitment-img img {
  transition: transform var(--vcp-duration) var(--vcp-ease-out), opacity var(--vcp-duration) var(--vcp-ease-out);
}

.difference-img:hover img,
.fourth-img:hover img,
.dashboard-img:hover img,
.research-img .left-side:hover img {
  transform: scale(1.02);
}

/* Section eyebrow line draw (when element has a span underline pattern) */
.third-section-left-content > h2,
.fourth-section-left-content > h2 {
  position: relative;
}

/* --------------------------------------------------------------------------
   Images / footer
   -------------------------------------------------------------------------- */

.footer-bottom a,
.footer-links a,
.explore a {
  transition: color 0.3s var(--vcp-ease-smooth), opacity 0.3s var(--vcp-ease-smooth);
}

.footer-bottom a:hover,
.footer-links a:hover,
.explore a:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 991.98px) {
  .hero-content-right {
    transform: none !important;
  }

  .hero-content-right img {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .vcp-reveal,
  .vcp-hero-load,
  .hero-content-left h1,
  .hero-content-left p,
  .hero-content-left .hero-btns,
  .hero-content-right,
  .hero-content-right img,
  .page-hero-eyebrow,
  .page-hero-title {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .work-card:hover,
  .pillar-card:hover,
  .pillar-card1:hover,
  .pillar-card2:hover,
  .commitment-card:hover,
  .climate-card:hover,
  .serve-card:hover,
  .hero-btn:hover,
  .cta-btn:hover {
    transform: none;
  }
}
