/* =========================
   SUSTAINABILITY PAGE
========================= */

body {
  margin: 0;
  padding: 0;
  font-family: 'Canva Sans', sans-serif;
}

/* Section reveal animation */
.animate-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.animate-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SUSTAINABILITY HERO
========================= */
.sustainability-hero {
  position: relative;
  height: 85vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      rgba(7, 42, 84, 0.85),
      rgba(7, 42, 84, 0.65)
    ),
    url("/assets/why-sustainability.jpg") center / cover no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.sustainability-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 42, 84, 0.5);
  z-index: 1;
}

/* Canvas for interactive cursor */
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.sustainability-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

.section-eyebrow {
  color: #ecaf27;
  font-weight: 500;
  letter-spacing: 0.25em;
  font-size: 1.85rem;
  font-family: 'Garet', sans-serif;
  margin-bottom: 20px;
  display: inline-block;
  text-shadow: 2px 2px 6px rgba(234, 194, 49, 0.6);
}

.sustainability-hero h1 {
  font-family: 'Garet', sans-serif;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.sustainability-hero p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto;
}

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

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================
   OUR APPROACH
========================= */
.sustainability-approach {
  background-color: #ffffff;
  padding: 5rem 2rem;
}

.sustainability-approach h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2.5rem;
  color: #072a54;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.approach-item {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  border-top: 3px solid #ecaf27;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.approach-item h3 {
  font-family: 'Garet', sans-serif;
  font-size: 1.5rem;
  color: #072a54;
  margin-bottom: 1rem;
  font-weight: 500;
}

.approach-item p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

/* =========================
   IMPACT CAROUSEL
========================= */
.sustainability-carousel {
  background-color: #e6e6e6;
  padding: 5rem 2rem;
  overflow: hidden;
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2.5rem;
  color: #072a54;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.slide-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 42, 84, 0.9) 0%,
    rgba(7, 42, 84, 0.4) 60%,
    rgba(7, 42, 84, 0.2) 100%
  );
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  color: #ffffff;
  z-index: 2;
}

.slide-content h3 {
  font-family: 'Garet', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #ecaf27;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.carousel-btn {
  background-color: #072a54;
  color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: #ecaf27;
  color: #072a54;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-indicators {
  display: flex;
  gap: 0.8rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
  background-color: #999;
  transform: scale(1.15);
}

.carousel-dot.active {
  background-color: #ecaf27;
  transform: scale(1.3);
}

/* =========================
   HOW WE PRACTISE
========================= */
.sustainability-practice {
  background-color: #ffffff;
  padding: 5rem 2rem;
}

.sustainability-practice h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2.5rem;
  color: #072a54;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 400;
}

.practice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.practice-item h3 {
  font-family: 'Garet', sans-serif;
  font-size: 1.6rem;
  color: #072a54;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.practice-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.practice-item li {
  font-size: 1.15rem;
  color: #555;
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.6;
}

.practice-item li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ecaf27;
  font-weight: bold;
  font-size: 1.3rem;
}

/* =========================
   PEOPLE & COMMUNITIES
========================= */
.sustainability-people {
  background-color: #f9f9f9;
  padding: 5rem 2rem;
  text-align: center;
}

.sustainability-people h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2.5rem;
  color: #072a54;
  margin-bottom: 2rem;
  font-weight: 400;
}

.sustainability-people p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
   FUTURE COMMITMENT
========================= */
.sustainability-future {
  background-color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
}

.sustainability-future h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2.5rem;
  color: #072a54;
  margin-bottom: 2rem;
  font-weight: 400;
}

.sustainability-future p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
   SUSTAINABILITY CTA
========================= */
.sustainability-cta {
  background-color: #f0f0f0;
  padding: 5rem 2rem;
  text-align: center;
}

.sustainability-cta-content h2 {
  font-family: 'Garet', sans-serif;
  font-size: 2rem;
  color: #072a54;
  margin-bottom: 2rem;
  font-weight: 400;
  position: relative;
  padding-top: 1rem;
}

.sustainability-cta-content h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #072a54;
  margin: 0 auto 1rem auto;
  border-radius: 2px;
}

.cta-button {
  display: inline-block;
  background-color: #ecaf27;
  color: #072a54;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Garet', sans-serif;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d9a81f;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(236, 175, 39, 0.3);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .sustainability-hero {
    height: 70vh;
  }

  .sustainability-hero h1 {
    font-size: 2.5rem;
  }

  .sustainability-hero p {
    font-size: 1.2rem;
  }

  .approach-grid,
  .practice-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .carousel-slide {
    height: 400px;
  }

  .slide-content h3 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sustainability-hero h1 {
    font-size: 2rem;
  }

  .section-eyebrow {
    font-size: 1.3rem;
  }

  .carousel-slide {
    height: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-section,
  .carousel-track {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile Touch Support */
@media (hover: none) and (pointer: coarse) {
  .approach-item:active {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }
  
  .carousel-btn:active {
    background-color: #ecaf27;
    color: #072a54;
    transform: scale(1.1);
  }
  
  .carousel-dot:active {
    background-color: #999;
    transform: scale(1.15);
  }
  
  .carousel-dot.active {
    background-color: #ecaf27;
    transform: scale(1.3);
  }
  
  .cta-button:active {
    background-color: #d9a81f;
    transform: translateY(-3px);
  }
  
  /* Improve touch targets */
  .carousel-btn {
    min-width: 50px;
    min-height: 50px;
  }
  
  .carousel-dot {
    width: 16px;
    height: 16px;
  }
  
  /* Swipe support for carousel */
  .carousel-wrapper {
    touch-action: pan-y;
  }
  
  .carousel-track {
    cursor: grab;
  }
  
  .carousel-track:active {
    cursor: grabbing;
  }
}
