/**
 * Hero Section Styles for The Studio Page
 * Component: IcaHero-studio
 * Page: The Studio
 * Self-contained CSS - only uses global fonts and colors
 */

/* ===== Studio Hero Section ===== */
.studio-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ica-green-deep);
}

/* Background Slider Container */
.studio-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Image aspect ratio containers */
.studio-hero__slide {
  aspect-ratio: 16/9;
}

.studio-hero__logo {
  aspect-ratio: 1/1;
}

/* Individual Background Slides */
.studio-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  will-change: opacity;
  contain: layout style paint;
}

.studio-hero__slide.active {
  opacity: 1;
  z-index: 2;
}

.studio-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Background Overlay Gradient */
.studio-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(320deg, #17968C 0%, #DCF4EF 100%);
  opacity: 0.75;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}
/* Content Container */
.studio-hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--ica-green-deep);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  /* Ensure logo stands out prominently */
  pointer-events: none;
  /* Initial animation state */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animated state */
.studio-hero__content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Logo container with pointer events */
.studio-hero__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  /* Add subtle glow effect for prominence */
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  /* Initial animation state */
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: opacity 1.0s ease-out 0.2s, transform 1.0s ease-out 0.2s;
}

/* Animated state */
.studio-hero__logo.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.studio-hero__logo img {
  width: auto;
  height: 160px;
  max-height: 160px;
  object-fit: contain;
  /* Remove any dimming effects and make logo more prominent */
  opacity: 1;
  filter: brightness(1.1) contrast(1.2) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  /* Add subtle glow for extra prominence */
  will-change: filter;
  contain: layout style paint;
}

/* ===== Responsive Design ===== */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .studio-hero {
    height: 45vh;
    min-height: 350px;
  }
  
  .studio-hero__logo img {
    height: 120px;
    max-height: 120px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .studio-hero {
    height: 40vh;
    min-height: 320px;
  }
  
  .studio-hero__content {
    padding: 0 1.5rem;
  }
  
  .studio-hero__logo img {
    height: 120px;
    max-height: 120px;
  }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
  .studio-hero {
    height: 35vh;
    min-height: 280px;
  }
  
  .studio-hero__content {
    padding: 0 1rem;
  }
  
  .studio-hero__logo img {
    height: 100px;
    max-height: 100px;
  }
}

/* ===== Accessibility & Motion Preferences ===== */
@media (prefers-reduced-motion: reduce) {
  .studio-hero__slide {
    transition: none;
  }
  
  .studio-hero__content,
  .studio-hero__logo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .studio-hero {
    height: auto;
    min-height: auto;
    background: none !important;
  }
  
  .studio-hero__background,
  .studio-hero__overlay {
    display: none;
  }
  
  .studio-hero__content {
    color: var(--ica-green-deep) !important;
  }
}
