/**
 * Hero Image Component Styles
 * Full-page hero with sidebar text overlay
 */

/* Main wrapper - ensures full viewport coverage */

.content-wrap {
    padding:0px !important;
}

.hero-image-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.hero-image-wrapper:first-child {
  margin-top: -160px !important;
}

/* Height variations */
.hero-image-wrapper.full-height {
  height: 100vh;
}

.hero-image-wrapper.half-height {
  height: 50vh;
  min-height: 400px;
}

/* Hero image container */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background image styling */
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Initial state for scroll animation */
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-image-bg.animate-in {
  opacity: 1;
}

.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Initial zoom state */
  transform: scale(1.1);
  transition: transform 1.2s ease;
}

.hero-image-bg.animate-in img {
  transform: scale(1);
}

/* Image placeholder */
.hero-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-align: center;
  z-index: 1;
}

/* Overlay for darkening image */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: background 0.3s ease;
}

.hero-overlay.none-overlay {
  background: transparent;
}

.hero-overlay.light-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.hero-overlay.medium-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.hero-overlay.dark-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Text overlay containing title and subtitle */
.hero-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
}

/* Title styling */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #ffffff;
  line-height: 1.15;
  word-break: break-word;
  text-transform: uppercase;
  max-width: 800px;
  /* Initial state for scroll animation */
  opacity: 0;
  translate: 0 50px;
  transition: opacity 0.8s ease 0.3s, translate 0.8s ease 0.3s;
}

.hero-title.animate-in {
  opacity: 1;
  translate: 0 0;
}

/* Subtitle styling */
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
  max-width: 600px;
  /* Initial state for scroll animation */
  opacity: 0;
  translate: 0 50px;
  transition: opacity 0.8s ease 0.5s, translate 0.8s ease 0.5s;
}

.hero-subtitle.animate-in {
  opacity: 1;
  translate: 0 0;
}

/* Date styling - positioned at center bottom */
.hero-date-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.hero-date {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* Initial state for scroll animation */
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.8s ease 0.7s, translate 0.8s ease 0.7s;
}

.hero-date.animate-in {
  opacity: 1;
  translate: 0 0;
}

/* Text color variations */
.hero-image-wrapper.white-text .hero-title {
  color: #ffffff;
}

.hero-image-wrapper.white-text .hero-subtitle {
  color: #ffffff;
}

.hero-image-wrapper.white-text .hero-date {
  color: #ffffff;
}

.hero-image-wrapper.black-text .hero-title {
  color: #1a1a1a;
}

.hero-image-wrapper.black-text .hero-subtitle {
  color: #1a1a1a;
}

.hero-image-wrapper.black-text .hero-date {
  color: #1a1a1a;
}

/* Placeholder text styling */
.hero-placeholder-text {
  opacity: 0.5;
  font-style: italic;
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tablet responsive */
@media (max-width: 1024px) {
  .hero-text-overlay {
    padding: 30px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-date {
    font-size: 1.1rem;
  }

  .hero-date-wrapper {
    bottom: 30px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-image-wrapper.full-height {
    height: 100vh;
    min-height: 600px;
  }

  .hero-image-wrapper.half-height {
    height: 60vh;
    min-height: 400px;
  }

  .hero-image-container {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 40px;
  }

  .hero-text-overlay {
    padding: 20px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-date {
    font-size: 1rem;
  }

  .hero-date-wrapper {
    bottom: 25px;
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-text-overlay {
    padding: 15px;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-date {
    font-size: 0.9rem;
  }

  .hero-date-wrapper {
    bottom: 20px;
  }
}

/* Editing mode styles */
.sdc-editable-container .hero-image-wrapper {
  border: 3px dashed transparent;
  transition: border-color 0.3s ease;
}

.sdc-editable-container .hero-image-wrapper:hover {
  border-color: #007cba;
}

/* Accessibility */
.hero-title:focus,
.hero-subtitle:focus,
.hero-date:focus {
  outline: 2px solid #007cba;
  outline-offset: 4px;
}

/* Print styles */
@media print {
  .hero-image-wrapper {
    height: auto;
    min-height: 400px;
    page-break-inside: avoid;
  }

  .hero-title {
    color: #000 !important;
    text-shadow: none !important;
  }

  .hero-subtitle {
    color: #333 !important;
    text-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-title {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  }

  .hero-subtitle {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  }

  .hero-date {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
  }

  .hero-image-wrapper.black-text .hero-title {
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 1);
  }

  .hero-image-wrapper.black-text .hero-subtitle {
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 1);
  }

  .hero-image-wrapper.black-text .hero-date {
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 1);
  }
}

/* Disable animations when wrapped in block-wrapper */
.block-wrapper .hero-image-bg,
.block-wrapper .hero-image-bg img,
.block-wrapper .hero-title,
.block-wrapper .hero-subtitle,
.block-wrapper .hero-date {
  opacity: 1 !important;
  translate: 0 0 !important;
  transform: none !important;
  transition: none !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-text-overlay {
    animation: none;
  }

  .hero-overlay {
    transition: none;
  }
  
  /* Disable scroll animations for reduced motion */
  .hero-image-bg,
  .hero-image-bg img,
  .hero-title,
  .hero-subtitle,
  .hero-date {
    opacity: 1 !important;
    translate: 0 0 !important;
    transform: none !important;
    transition: none !important;
  }
}


