/* ===== IMPACT MT summer WHAT'S INCLUDED COMPONENT ===== */
/* Follows @PERFORMANCE_CHECKLIST.md requirements */
/* Performance optimized with proper animations and responsive design */

/* ===== WHAT'S INCLUDED SECTION ===== */
.whats-included {
  background: var(--ica-mint, #DCF4EF); 
  padding: 0 0 clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
}

/* ===== FADE ANIMATION FOR BOXES ===== */
.whats-included__box {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.whats-included__box.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.whats-included__marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  margin-bottom: 3rem;
  overflow: hidden;
}

.whats-included__marquee-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: marquee-scroll 60s linear infinite;
  white-space: nowrap;
  padding-left: 2rem;
  width: max-content;
}

.whats-included__marquee-text {
  font-size: 55px;
  margin: 0 10px;
  font-family: var(--font-ui);
  line-height: 55px;
  letter-spacing: 1px;
  color: var(--ica-green-deep, #1E312F);
  font-weight: 500;
}

.whats-included__marquee-icon {
  padding: 5px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  max-width: 100%;
  width: 45px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(1000%) hue-rotate(120deg) brightness(0.3);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.whats-included__title {
  text-align: center;
  font-family: var(--font-ui, sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ica-green-deep, #1E312F);
  margin: 0 auto 0.5rem auto;
  letter-spacing: 1px;
  display: block;
  width: fit-content;
}

.whats-included__title-highlight {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #C6D62B7A 50%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0.2em 0.4em;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Grid Layout for Content Boxes */
.whats-included__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Create a sub-grid for remaining boxes */
.whats-included__grid::after {
  content: '';
  display: block;
  grid-column: 1 / -1;
}

/* Container for remaining boxes */
.whats-included__remaining {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  grid-column: 1 / -1;
}


.whats-included__box-title {
  font-family: var(--font-heading, sans-serif);
  text-transform: none;
  font-size: 38px;
  font-weight: 300;
  color: var(--ica-green-deep, #1E312F);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: 0px;
  text-align: center;
}

.whats-included__box-description,
.whats-included__box-list li {
  font-family: var(--font-body, sans-serif);
  font-size: 27px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ica-green-deep, #1E312F);
  text-align: center;
}

.whats-included__box-description {
  margin: 0;
}

.whats-included__box-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.whats-included__box-list li {
  margin-bottom: 1rem;
}

.whats-included__box-list li:last-child {
  margin-bottom: 0;
}

.whats-included__box-list strong {
  color: var(--ica-green-deep, #1E312F);
  font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets */
@media (max-width: 1200px) {
  .whats-included__remaining {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .whats-included {
    padding: 0 0 3rem 0;
  }
  
  .whats-included__marquee {
    padding: 0.75rem 0;
    margin-bottom: 2rem;
  }
  
  .whats-included__marquee-content {
    padding-left: 1rem;
  }
  
  .whats-included__marquee-text {
    font-size: 45px;
    line-height: 40px;
    margin-right: 8px;
    margin-left: 8px;
  }
  
  .whats-included__marquee-icon {
    width: 35px;
    padding: 4px;
  }
  .whats-included__box-description,
  .whats-included__box-list li {
    font-size: 24px;
  }
  .whats-included__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }
  
  .whats-included__remaining {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .whats-included__box-title {
    font-size: 35px;
    margin-bottom: 1rem;
  }
  
  
  .whats-included__title-highlight {
    font-size: 25px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .whats-included__marquee {
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
  }
  
  .whats-included__marquee-content {
    padding-left: 0.5rem;
  }
  
  .whats-included__marquee-text {
    font-size: 38px;
    line-height: 32px;
    margin-right: 6px;
    margin-left: 6px;
  }
  
  .whats-included__marquee-icon {
    width: 28px;
    padding: 3px;
  }
  
  .whats-included__title {
    font-size: 1.625rem;
  }
  
  .whats-included__remaining {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .whats-included__box-title {
    font-size: 33px;
    margin-bottom: 1rem;
  }
  
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .whats-included__marquee-content {
    animation: none;
  }
}

/* ===== ACCESSIBILITY ===== */

/* Ensure proper focus management */
.whats-included__box:focus {
  outline: 2px solid var(--ica-lavender);
  outline-offset: 4px;
}

/* Screen reader support */
.whats-included[aria-hidden="true"] {
  display: none;
}
