/* ==========================================================================
   Cl02 GENERATORS EXCLUSIVE STYLING LAYER (cl02_generators.css)
   ========================================================================== */

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.Cl02-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('../images/cl02_hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  box-sizing: border-box;
}

.Cl02-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: var(--color-secondary);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  color: var(--color-white);
  text-align: left;
}

#Cl02-overview, #Cl02-process, #Cl02-resources {
  scroll-margin-top: 50px;
}

.Cl02-intro-txt {
  line-height: 1.6;
  margin-bottom: 30px;
}

.Cl02-body-txt {
  margin-top: 40px;
  line-height: 1.6;
}

/* ==========================================================================
   2. OVERVIEW CARD GRID
   ========================================================================== */
.Cl02-grid-wrapper {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.Cl02-lead-txt {
  grid-column: 1 / -1;
  line-height: 1.6;
  margin-bottom: 35px !important;
}

.Cl02-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-white-highlight);
  border-radius: 3px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(15, 184, 254, 0.15); 
}

.esg-icon {
  width: auto;
  height: 100px;
  flex-shrink: 0;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.esg-icon.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.Cl02-card-content {
  width: 100%;
  text-align: center;
}

.Cl02-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-align: center !important;
}

.Cl02-card-content p {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* ==========================================================================
   3. ANIMATED MISSION BOX
   ========================================================================== */
.mission-box {
  margin: 0 auto 30px auto;
  padding: 3px;
  background-color: transparent;
  
  background-image: 
    linear-gradient(var(--color-secondary), var(--color-secondary)),
    linear-gradient(var(--color-secondary), var(--color-secondary)),
    linear-gradient(var(--color-secondary), var(--color-secondary)),
    linear-gradient(var(--color-secondary), var(--color-secondary)),
    linear-gradient(var(--color-secondary), var(--color-secondary));
  
  background-repeat: no-repeat;
  background-position: 
    top center, 
    top right, 
    top left, 
    bottom left,
    bottom right;
  
  background-size: 0 3px, 3px 0, 3px 0, 0 3px, 0 3px;
  will-change: background-size;
}

.mission-box.is-visible {
  animation: drawBorderFromCenter 4s ease-in-out forwards;
  -webkit-animation: drawBorderFromCenter 4s ease-in-out forwards;
}

.mission-container {
  background: var(--color-primary);
  padding: 30px;
  text-align: center;
  font-size: 4.75rem;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 1px;
}

.mission-container p {
  margin-bottom: 10px !important;
}

.mission-container span {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-white-highlight);
  display: block;
  line-height: 1.2;
  margin-top: -15px;
}

@keyframes drawBorderFromCenter {
    0% { background-size: 0 3px, 3px 0, 3px 0, 0 3px, 0 3px; }
    20% { background-size: 100% 3px, 3px 0, 3px 0, 0 3px, 0 3px; }
    66% { background-size: 100% 3px, 3px 100%, 3px 100%, 0 3px, 0 3px; }
    100% { background-size: 100% 3px, 3px 100%, 3px 100%, 51% 3px, 51% 3px; }
}

/* ==========================================================================
   4. PDF CUT SHEETS GRID (PERFECTLY ALIGNED PAGE CURL HOVER EFFECT)
   ========================================================================== */
.pdf-resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

figure.snip0024 {
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  background: #000000;
  border: 0.5px solid var(--color-white-highlight);
  box-shadow: 0 4px 12px rgba(15, 184, 254, 0.15);
}

figure.snip0024 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

figure.snip0024 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.snip0024 > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Dark diagonal backdrop overlay */
figure.snip0024 > div::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  opacity: 0;
  background-image: linear-gradient(-45deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 12%, rgba(11, 109, 182, 0.8) 30%, rgba(11, 109, 182, 0.8) 60%, rgba(11, 109, 182, 1));
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
  z-index: 1;
}

/* Text Overlay (Blur-to-sharp animation) */
figure.snip0024 h2 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  text-transform: uppercase;
  top: 0;
  left: 0;          /* Added: defines left boundary */
  right: 0;         /* Added: defines right boundary */
  text-align: center; /* Added: centers inline text */
  opacity: 0;
  padding: 25px 20px;
  margin: auto;
  position: absolute;
  color: transparent;
  text-shadow: 0 0 10px #ffffff;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  z-index: 2;
}

figure.snip0024 h2 span {
  font-weight: 800;
  color: inherit;
}

/* Curled Page Flap & Tightly Cast Fold Shadow */
figure.snip0024 .curl {
  width: 0px;
  height: 0px;
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffffff 45%,
    #ebebeb 49.2%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.18) 58%,
    transparent 68%
  );
  box-shadow: none;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
  z-index: 3;
}

/* Right-aligned Arrow Icon (Z-INDEX: 4 - Above the curl fold) */
figure.snip0024 i {
  display: inline-block;
  font-size: 36px;
  -webkit-text-stroke: 0.5px var(--color-secondary);
  color: var(--color-secondary);
  padding: 0 16px;
  position: absolute;
  bottom: 0px;
  right: 0px;
  opacity: 0;
  z-index: 4;
  -webkit-transition: opacity 0.05s linear;
  transition: opacity 0.05s linear;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

/* Click Target Overlay (Z-INDEX: 5) */
figure.snip0024 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  color: var(--color-primary);
  z-index: 5;
}

/* Hover States */
figure.snip0024:hover > div h2,
figure.snip0024.hover > div h2 {
  opacity: 1;
  text-shadow: 0 0 0px #ffffff;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

figure.snip0024:hover > div::before,
figure.snip0024.hover > div::before {
  opacity: 1;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

figure.snip0024:hover i,
figure.snip0024.hover i {
  opacity: 0.85;
  -webkit-transition-delay: 0.15s;
  transition-delay: 0.15s;
}

figure.snip0024:hover .curl,
figure.snip0024.hover .curl {
  width: 90px;
  height: 90px;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

/* ==========================================================================
   5. CALL TO ACTION SECTION
   ========================================================================== */
#cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .pdf-resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .Cl02-grid-wrapper, .pdf-resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pdf-resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .Cl02-card {
    padding: 30px 20px;
  }

  .esg-icon {
    width: 150px;
    align-self: center;
  }

  .Cl02-hero {
    padding: 60px 20px;
  }

  .mission-container {
    font-size: 1.5rem;
  }

  .mission-container span {
    font-size: 1.5rem!important;
  }
}