/* ===== IMPACT MT summer BANNER COMPONENT ===== */
/* Follows @PERFORMANCE_CHECKLIST.md requirements */

/* Banner Container */
.banner--impact-mt-summer {
  width: 100%;
  overflow: hidden;
}

/* Individual Banner Sections */
.banner__container {
  width: 100%; /* stay within parent */
  height: 40vh;
  min-height: 200px;
  display: block; /* Remove flexbox centering - let inner container handle layout */
  text-align: center;
  padding: 0.2rem 0; /* horizontal handled by inner */
  position: static; /* no breakout */
}

/* Sale Banner (First Container) */
.banner__container--sale {
  background-color: var(--ica-lavender);
  color: var(--ica-green-deep);
  padding: var(--global-padding-desktop) 0;
}

/* Shared section inner styling */
.banner__container--sale .section__inner--wide,
.banner__container--intro .section__inner--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%; /* Take full height of parent */
  display: flex;
  align-items: center; /* Center content vertically */
  /* Remove justify-content: center - let content center naturally */
}

.banner__container--sale .banner__title {
  color: var(--ica-green-deep);
  margin: 0 auto 0.375rem auto; /* zero top, minimal bottom */
  display: block;
  width: fit-content;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.banner__title-highlight {
  font-size: 48px;
  font-weight: 300;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.5) 50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-transform: none; /* Override parent's uppercase */
}

.banner__container--sale .banner__subtitle {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 auto 2rem auto;
  max-width: 800px;
  text-align: center;
  margin-top: 15px ;
}

.banner__subtitle-highlight {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 21px;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.5) 50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.banner__container--sale .banner__button {
  margin: 0 auto;
  display: inline-block;
  text-align: center;
}

/* Program Intro Banner (Second Container) */
.banner__container--intro {
  background-color: var(--ica-green-deep);
  color: var(--ica-bg);
}

/* Ensure inner content is truly centered and constrained */
.banner__content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.banner__container--intro .banner__title {
  color: var(--ica-lavender);
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.banner__container--intro .banner__description {
  font-family: var(--font-body, "roboto-condensed", system-ui, sans-serif) !important;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 800px;
  text-align: center;
  margin: 0 auto 1.5rem auto; /* center the block itself and add bottom margin */
}

.banner__action {
  text-align: center;
  margin-top: 1.5rem;
}

/* Button Styling - Uses Global btn-ica Classes */
/* 
 * IMPORTANT: This button uses global .btn-ica classes from ica-buttons.css
 * No custom button styling should be added here to maintain consistency
 * HTML: <a class="banner__button btn-ica btn-ica--large">
 * 
 * The button will inherit all styles from:
 * - .btn-ica (base button styles)
 * - .btn-ica--large (large size variant)
 * - Global responsive styles from ica-buttons.css
 */
/* Button styling handled by global .btn-ica classes from ica-buttons.css */

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets */
@media (max-width: 1200px) {
  
  
  .banner__container--sale .banner__subtitle {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
  }
  
  .banner__container--intro .banner__description {
    font-size: 22px;
    max-width: 650px;
  }
  
  .banner__container--sale .section__inner--wide,
  .banner__container--intro .section__inner--wide {
    padding: 0 1.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .banner__container {
    height: 40vh;
    min-height: 160px;
    padding: 1.5rem 0; /* Remove horizontal padding - handled by inner */
  }
  .banner__container--sale{
    padding: var(--global-padding-mobile) 0;
  }
  
  .banner__container--sale .banner__subtitle {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  }
  
  .banner__container--intro .banner__description {
    font-size: 20px;
    max-width: 600px;
  }
  
  .banner__container--sale .section__inner--wide,
  .banner__container--intro .section__inner--wide {
    padding: 0 1.5rem;
  }
  
}

/* Mobile */
@media (max-width: 480px) {
  .banner__container {
    min-height: 140px;
    padding: 1.5rem 0; /* Remove horizontal padding - handled by inner */
  }
  
  
  .banner__container--sale .banner__title {
    font-size: 38px;
  }
  
  .banner__title-highlight {
    font-size: 34px;
  }
  .banner__container--sale .banner__subtitle {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  }
  
  .banner__container--intro .banner__description {
    font-size: 20px;
    max-width: 550px;
  }
  
  .banner__container--sale .section__inner--wide,
  .banner__container--intro .section__inner--wide {
    padding: 0 1.5rem;
  }
  
}

/* ===== ANIMATIONS ===== */

/* Banner Content Animations - Immediate Load for SEO */
.banner--impact-mt-summer .banner__title {
  animation: bannerTextFadeIn 1s ease-out 0.1s both;
}

.banner--impact-mt-summer .banner__subtitle {
  animation: bannerTextFadeIn 1s ease-out 0.2s both;
}

.banner--impact-mt-summer .banner__button {
  animation: bannerTextFadeIn 1s ease-out 0.3s both;
}

/* Keyframe Animations */
@keyframes bannerTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .banner--impact-mt-summer .banner__title,
  .banner--impact-mt-summer .banner__subtitle,
  .banner--impact-mt-summer .banner__button {
    animation: none;
  }
}

/* Optimize for GPU acceleration */
.banner--impact-mt-summer .banner__title,
.banner--impact-mt-summer .banner__subtitle,
.banner--impact-mt-summer .banner__button {
  will-change: transform, opacity;
}
