/* Homepage Hero V6 - Split Image Layout (Copper Canyon Style) */

/* Base container styles */
.homepage-hero-v6 {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.homepage-hero-v6 .hero-v6-container {
  display: flex;
  height: var(--hero-height-desktop, 80vh);
  min-height: 500px;
  position: relative;
  gap: 0;
}

/* Content Section (Left Side) */
.homepage-hero-v6 .hero-v6-content-section {
  width: 50%;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Remove harsh divide - blend sections naturally */
.homepage-hero-v6 .hero-v6-content-section {
  border-right: none;
}

.homepage-hero-v6 .hero-v6-image-section {
  border-left: none;
}

/* Alternative flowing curve option - uncomment to use */
/*
.homepage-hero-v6 .hero-v6-content-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 120px;
  height: 100%;
  background: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
  clip-path: polygon(0 0, 100% 0%, 90% 10%, 80% 20%, 70% 30%, 60% 40%, 50% 50%, 40% 60%, 30% 70%, 20% 80%, 10% 90%, 0% 100%);
  z-index: 1;
}
*/

.homepage-hero-v6 .hero-v6-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}



.homepage-hero-v6 .hero-v6-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-hero-v6 .hero-v6-text-content {
  max-width: 600px;
  width: 100%;
  padding: 2rem;
}

/* Slider Section (Right Side) */
.homepage-hero-v6 .hero-v6-slider-section {
  width: 50%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.homepage-hero-v6 .hero-v6-carousel {
  height: 100%;
  width: 100%;
}

.homepage-hero-v6 .hero-v6-carousel .carousel-inner {
  height: 100%;
}

.homepage-hero-v6 .hero-v6-carousel .carousel-item {
  height: 100%;
  position: relative;
}

.homepage-hero-v6 .hero-v6-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Indicators */
.homepage-hero-v6 .hero-v6-carousel .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
}

.homepage-hero-v6 .hero-v6-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  margin: 0 5px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.homepage-hero-v6 .hero-v6-carousel .carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.homepage-hero-v6 .hero-v6-carousel .carousel-indicators button:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.7);
}

/* Typography */
.homepage-hero-v6 .hero-v6-headline {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: inherit;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.homepage-hero-v6 .hero-v6-subheadline {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: inherit;
}

/* CTA Button */
.homepage-hero-v6 .hero-v6-cta {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: none;
  position: relative;
  overflow: hidden;
}

.homepage-hero-v6 .hero-v6-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-decoration: none;
}

.homepage-hero-v6 .hero-v6-cta:active {
  transform: translateY(-1px);
}

/* Button Size Variants */
.homepage-hero-v6 .hero-v6-cta.btn-sm {
  padding: 10px 25px;
  font-size: 0.875rem;
}

.homepage-hero-v6 .hero-v6-cta.btn-md {
  padding: 12px 30px;
  font-size: 1rem;
}

.homepage-hero-v6 .hero-v6-cta.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.homepage-hero-v6 .hero-v6-cta.btn-xl {
  padding: 18px 50px;
  font-size: 1.25rem;
}

/* Text Alignment */
.homepage-hero-v6 .text-left .hero-v6-text-content {
  text-align: left;
}

.homepage-hero-v6 .text-center .hero-v6-text-content {
  text-align: center;
}

.homepage-hero-v6 .text-right .hero-v6-text-content {
  text-align: right;
}

/* Error message */
.homepage-hero-v6 .hero-v6-error {
  padding: 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  color: #6c757d;
}


/* Animation for content */
.homepage-hero-v6 .hero-v6-text-content {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  .homepage-hero-v6 .hero-v6-headline {
    font-size: 2.4rem;
  }
  
  .homepage-hero-v6 .hero-v6-subheadline {
    font-size: 0.95rem;
  }
  
  .homepage-hero-v6 .hero-v6-text-content {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  /* Mobile: Main image becomes background, content overlays */
  .homepage-hero-v6 .hero-v6-container {
    flex-direction: column;
    height: var(--hero-height-mobile, 80vh);
    min-height: 300px;
    position: relative;
  }
  
  /* Hide the slider section on mobile */
  .homepage-hero-v6 .hero-v6-slider-section {
    display: none;
  }
  
  /* Content section takes full width and height on mobile */
  .homepage-hero-v6 .hero-v6-content-section {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }
  
  /* Add main image as background to content section on mobile */
  .homepage-hero-v6 .hero-v6-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--mobile-bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--mobile-bg-position);
    z-index: -2;
  }
  
  /* Hide desktop overlay on mobile */
  .homepage-hero-v6 .hero-v6-content-overlay {
    display: none;
  }
  
  /* Mobile overlay on main image background */
  .homepage-hero-v6 .hero-v6-content-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--mobile-overlay-color, #000000);
    opacity: var(--mobile-overlay-opacity, 0.5);
    z-index: -1;
    pointer-events: none;
  }
  
  .homepage-hero-v6 .hero-v6-headline {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--mobile-text-color, #ffffff) !important;
  }
  
  .homepage-hero-v6 .hero-v6-subheadline {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--mobile-text-color, #ffffff) !important;
  }
  
  .homepage-hero-v6 .hero-v6-text-content {
    padding: 1.2rem;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--mobile-text-color, #ffffff) !important;
  }
  
  .homepage-hero-v6 .hero-v6-cta {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    margin: 0 auto;
  }
  
  .homepage-hero-v6 .hero-v6-cta.btn-xl {
    padding: 14px 30px;
    font-size: 1rem;
    display: block;
    margin: 0 auto;
  }
  
  /* Force center alignment on mobile for all text content */
  .homepage-hero-v6 .text-left .hero-v6-text-content,
  .homepage-hero-v6 .text-right .hero-v6-text-content,
  .homepage-hero-v6 .text-center .hero-v6-text-content {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 768px) {
  .homepage-hero-v6 .hero-v6-container {
    height: var(--hero-height-mobile, 80vh);
    min-height: 300px;
  }
  
  .homepage-hero-v6 .hero-v6-headline {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .homepage-hero-v6 .hero-v6-subheadline {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
  
  .homepage-hero-v6 .hero-v6-text-content {
    padding: 1rem;
  }
  
  .homepage-hero-v6 .hero-v6-cta {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    margin: 0 auto;
  }
  
  .homepage-hero-v6 .hero-v6-cta.btn-xl {
    padding: 14px 30px;
    font-size: 1rem;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .homepage-hero-v6 .hero-v6-container {
    height: var(--hero-height-mobile, 80vh);
    min-height: 300px;
  }
  
  .homepage-hero-v6 .hero-v6-headline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .homepage-hero-v6 .hero-v6-subheadline {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
  }
  
  .homepage-hero-v6 .hero-v6-text-content {
    padding: 0.8rem;
  }
  
  .homepage-hero-v6 .hero-v6-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
    display: block;
    margin: 0 auto;
  }
  
  .homepage-hero-v6 .hero-v6-cta.btn-xl {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    margin: 0 auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .homepage-hero-v6 .hero-v6-headline {
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  }
  
  .homepage-hero-v6 .hero-v6-content-overlay {
    opacity: 0.7 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .homepage-hero-v6 .hero-v6-cta,
  .homepage-hero-v6 .hero-v6-text-content {
    transition: none;
    animation: none;
  }
}

/* Print styles */
@media print {
  .homepage-hero-v6 .hero-v6-image-section {
    display: none;
  }
  
  .homepage-hero-v6 .hero-v6-content-section {
    width: 100%;
    height: auto;
    min-height: auto;
    background-image: none !important;
    background-color: #f8f9fa;
    position: static;
  }
  
  .homepage-hero-v6 .hero-v6-content-overlay {
    display: none;
  }
  
  .homepage-hero-v6 .hero-v6-cta {
    display: none;
  }
  
  .homepage-hero-v6 .hero-v6-headline {
    color: #000 !important;
    text-shadow: none;
  }
  
  .homepage-hero-v6 .hero-v6-subheadline {
    color: #666 !important;
  }
}
