/**
 * Support Hero Section Styles
 * 
 * Component: components/support/hero/
 * Loader: smart-support-loader.php
 * Dependencies: site-grid-rails.css (layout), style.css (colors/fonts)
 * 
 * Features:
 * - Performance optimized animations with reduced motion support
 * - CLS prevention with reserved space
 * - Responsive design with mobile breakpoints
 * - BEM methodology for maintainable CSS
 */

/* Performance-optimized animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .support-hero__logo img,
  .support-hero__heading,
  .support-hero__column {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.support-hero {
  background-color: var(--ica-green-deep);
  padding: var(--global-padding-desktop) 0;
  position: relative;
  overflow: hidden;
  /* Core Web Vitals optimizations */
  contain: layout style paint;
  will-change: transform;
  /* Define shared color variable */
  --support-hero-text-color: var(--ica-bg, #F9F6F4);
}

.support-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  box-sizing: border-box;
}

/* Row 1: Logo */
.support-hero__logo {
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  /* CLS Prevention: Reserve space */
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-hero__logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
}

/* Row 2: Main Heading */
.support-hero__heading {
  font-family: var(--font-ui) !important;
  color: var(--support-hero-text-color);
  font-size: clamp(30px, 5vw, 45px);
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  /* CLS Prevention: Reserve space */
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Row 3: Two Columns */
.support-hero__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  width: 100%;
  max-width: 1000px;
}

.support-hero__column {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  /* CLS Prevention: Reserve space */
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

/* Section Headers */
.support-hero__section-header {
  margin-bottom: 2rem;
}

.support-hero__section-header h2 {
  font-family: var(--font-ui) !important;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  padding: 0.5rem 1.5rem;
}

/* Shared List Styling */
.support-hero__goals-list,
.support-hero__support-list {
  margin-bottom: 2rem;
}

.support-hero__goal-item,
.support-hero__support-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.support-hero__goal-icon,
.support-hero__support-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-hero__goal-icon img,
.support-hero__support-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.support-hero__goal-item p,
.support-hero__support-item p {
  color: var(--support-hero-text-color);
  font-family: var(--font-ui) !important;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Goals Column Specific Styling */
.support-hero__goals .support-hero__section-header h2 {
  background-color: #D0E8E4;
  color: var(--ica-green-deep);
}

.support-hero__goals-description p {
  color: var(--support-hero-text-color);
  font-family: var(--font-ui) !important;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
}

/* Support Column Specific Styling */
.support-hero__support .support-hero__section-header h2 {
  background-color: #D8BDE2;
  color: var(--ica-green-deep);
}

.support-hero__contact p {
  color: var(--support-hero-text-color);
  font-family: var(--font-ui) !important;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.support-hero__contact a {
  color: var(--ica-lime);
  text-decoration: none;
  transition: color 250ms ease;
}

.support-hero__contact a:hover {
  color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .support-hero__content {
    gap: 2rem;
  }
  
  .support-hero__logo img {
    width: 170px;
    height: 170px;
  }
  
  .support-hero__columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .support-hero__section-header h2 {
    font-size: 14px;
    padding: 0.75rem 1rem;
  }
  
  .support-hero__goal-item,
  .support-hero__support-item {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .support-hero {
    padding: var(--global-padding-mobile) !important;
  }
  
  .support-hero__content {
    gap: 1.5rem;
  }
    
  .support-hero__columns {
    gap: 2rem;
  }
  
  .support-hero__goal-item p,
  .support-hero__support-item p {
    font-size: 15px;
  }
  
  .support-hero__goals-description p {
    font-size: 13px;
  }
  
  .support-hero__contact p {
    font-size: 12px;
  }
}
