/* =========================================================
   INTERACTIVE "HEAT" HERO
   ========================================================= */

.interactive-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Default Background Image - subtle */
.interactive-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../assets/images/hero-new.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.interactive-hero.has-active .interactive-hero-bg {
  opacity: 0.05;
}

/* The Letters Container */
.heat-container {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: stretch;
  z-index: 2;
}

/* Individual Letter Zone */
.heat-letter {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: flex 0.6s var(--ease-cinematic), opacity 0.4s ease, margin 0.6s var(--ease-cinematic);
  overflow: hidden;
  margin: 0 -1vw; /* Pull letters closer without breaking text bounding box */
}

.heat-letter:last-child {
  border-right: none;
}

/* Typography of the letter */
.heat-letter .letter-mark {
  display: inline-block; /* Shrink-wrap to text width so background image aligns correctly */
  font-family: var(--font-athletic, var(--font-display));
  font-size: 38vw;
  font-weight: 400; /* Anton is slightly narrower, Bebas is very narrow */
  line-height: 1;
  color: #FAF6EB; /* Cream fill */
  -webkit-text-stroke: 4px var(--accent-red); /* Thick outline */
  text-shadow: 
    -2px -2px 0px rgba(0,0,0,0.5), /* Subtle dark bevel cue */
    6px 6px 0px #0a0a0a, /* Solid offset shadow for vintage poster look */
    10px 10px 0px var(--accent-red); /* Secondary outline shadow */
  opacity: 1;
  transition: all 0.6s var(--ease-cinematic);
  z-index: 2;
  user-select: none;
  background-size: cover;
  background-position: center;
  background-clip: text;
  -webkit-background-clip: text;
  position: relative;
  letter-spacing: 0; /* Removing negative kerning to fix background-clip bug where image stops before letter ends */
}

/* Subtle internal cut line (stencil effect) */
.heat-letter::after {
  content: '';
  position: absolute;
  top: 55%;
  left: -10%;
  width: 120%;
  height: 4px;
  background-color: var(--bg-dark);
  transform: translateY(-50%) rotate(-4deg);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-cinematic);
  z-index: 3;
}

/* Hover Content Container */
.heat-hover-content {
  position: absolute;
  bottom: 2%; /* Move text completely below the letter */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  text-align: center;
  z-index: 3;
  width: 90%;
  max-width: 400px;
  transition: all 0.5s var(--ease-cinematic);
  pointer-events: none;
}

.heat-letter.active .heat-hover-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition-delay: 0.1s;
}

/* Specific Content Styling */
.heat-hover-content .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent-red);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.heat-hover-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 0.5rem;
  color: var(--accent-white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  line-height: 1;
}

.heat-hover-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  line-height: 1.4;
}

/* Interaction States */
.heat-container.has-hover .heat-letter:not(.active) {
  opacity: 0.4;
}

.heat-letter.active {
  opacity: 1;
  flex: 2.2;
}

.heat-letter.active .letter-mark {
  color: transparent; /* Makes the cream fill transparent, revealing the background image */
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8); /* Thinner crisp white outline */
  text-shadow: none; /* Remove shadows to focus on the image inside */
  transform: scale(1.12); /* Pop more to reveal image */
}

/* Hide stencil line when active so it doesn't cut the photo, or keep it for style. Let's keep it but make it slightly transparent to show it's intentional */
.heat-letter.active::after {
  opacity: 0.6;
  background-color: #000;
}

@media (max-width: 1024px) {
  .heat-container {
    flex-direction: column;
  }
  .heat-letter {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .heat-letter:last-child {
    border-bottom: none;
  }
  .heat-letter .letter-mark {
    font-size: 32vh;
  }
  .heat-letter.active {
    flex: 2.5;
  }
  .heat-hover-content {
    bottom: 5%;
    top: auto;
    transform: translateX(-50%) translateY(20px);
  }
  .heat-letter.active .heat-hover-content {
    transform: translateX(-50%) translateY(0);
  }
}
