/* ============================================
   ORGANISMS - HEROES
   Purposeful Media Design System
   Version: 4.0
   Last Modified: 2025-10-30
   Dependencies: variables-v4.0-20251027.css

   Components:
   - Hero Carousel
   - Hero Simple (Default)
   - Hero Simple Reverse
   - Hero ATF Center
   ============================================ */

/* Import dependencies */
@import url('variables-v4.0-20251027.css');

/* ==========================================================================
   1. HERO CAROUSEL
   Full-screen carousel with navigation controls
   ========================================================================== */

.hero-carousel {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-neutral-900, #0e0f10);
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Carousel Track and Slides */
.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carousel-slide.prev {
  transform: translateX(-100%);
  z-index: 1;
}

/* Slide Background and Media */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-background img,
.slide-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient Overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(27, 20, 100, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Slide Content */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: var(--space-8, 32px);
  max-width: 800px;
  width: 90%;
}

.slide-eyebrow {
  color: var(--color-neutral-600, #51585e);
  font-family: 'Open Sans', 'OpenSans-Semibold', sans-serif;
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  margin-bottom: var(--space-4, 16px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-headline {
  color: var(--color-white, #ffffff);
  font-family: 'Lato', 'Lato-Heavy', sans-serif;
  font-size: 36px;
  line-height: 54px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 var(--space-5, 20px) 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-description {
  color: var(--color-primary-700, #1b1464);
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  margin-bottom: var(--space-8, 32px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.slide-cta {
  display: inline-block;
  background: var(--color-primary-700, #1b1464);
  color: var(--color-white, #ffffff);
  padding: 16px 80px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-cta:hover {
  background: var(--color-accent-500, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation Controls */
.carousel-controls {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 317px;
  z-index: 20;
}

.carousel-nav {
  width: 48px;
  height: 48px;
  border-radius: var(--space-2, 8px);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.carousel-nav .nav-icon {
  width: 48px;
  height: 48px;
  fill: var(--color-neutral-400, #868f97);
}

.carousel-nav:hover .nav-icon {
  fill: var(--color-primary-700, #1b1464);
}

/* Slide Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 56px; /* Aligned with carousel-controls vertical center (60px - 4px) */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3, 12px);
  padding: var(--space-5, 20px);
  z-index: 20;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-neutral-400, #868f97);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: var(--color-accent-500, #d4af37);
  transform: scale(1.25);
}

.indicator:hover:not(.active) {
  background: var(--color-accent-400, #dcbe5d);
  opacity: 0.7;
}

/* Carousel Text Visibility Enhancements */
.slide-eyebrow {
    color: var(--color-accent-500, #D4AF37);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-family: 'Open Sans', 'OpenSans-Regular', sans-serif;
    font-size: 24px;
    line-height: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Navigation with UI Icons */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover state - Gray to Navy filter for UI icons */
.carousel-nav:hover .ui-icon-display[data-color="gray"] {
    filter: brightness(0) saturate(100%) invert(8%) sepia(94%) saturate(3268%) hue-rotate(237deg) brightness(93%) contrast(101%);
}

/* Demo content styling */
.demo-content {
    padding: 40px;
    background: #f5f5f5;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

.demo-content h2 {
    color: var(--color-primary-700, #1b1464);
    font-family: 'Lato', sans-serif;
    margin-bottom: 20px;
}

.demo-content p {
    color: var(--color-neutral-600, #51585e);
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 10px;
}

.demo-content p:first-of-type {
    margin-top: 0;
}

.demo-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--color-neutral-600, #51585e);
}

.demo-content li {
    margin-bottom: 5px;
}

/* ==========================================================================
   2. HERO SIMPLE (DEFAULT)
   Simple hero with gradient background and centered text
   ========================================================================== */

.hero-simple {
    position: relative;
    width: 100%;
    height: 124px;
    background: linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-primary-700) 100%);
    border-bottom: 4px solid var(--color-accent-500);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Content Container - with 40px padding to show gradient background */
.hero-simple__content {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    background-color: var(--color-primary-700);
    display: flex;
    align-items: center;
    padding: 0 100px; /* 40px outer + 60px inner = 100px total */
}

/* Headline Typography */
.hero-simple__headline {
    font-family: var(--font-primary);
    font-size: 36px; /* v4.0 H1 */
    line-height: 1.5; /* v4.0 H1 */
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;
    width: 100%;
}

/* ==========================================================================
   3. HERO SIMPLE REVERSE
   Reverse color scheme hero with radial gradient content
   ========================================================================== */

.hero-simple-reverse {
    position: relative;
    width: 100%;
    height: 124px;
    background: var(--color-primary-700); /* Solid blue background */
    border-bottom: 4px solid var(--color-accent-500);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Content Container - Light Gray to Gold Radial Gradient */
.hero-simple-reverse__content {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    /* Exact gradient from Figma - light gray center to gold edges */
    background: radial-gradient(355.56% 50% at 50% 50%, #F5F5F5 0%, var(--color-accent-500) 100%);
    display: flex;
    align-items: center;
    padding: 0 100px; /* 40px outer + 60px inner = 100px total */
}

/* Headline Typography - Dark Blue on Light Background */
.hero-simple-reverse__headline {
    font-family: var(--font-primary);
    font-size: 36px; /* v4.0 H1 */
    line-height: 1.5; /* v4.0 H1 */
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-700); /* Dark blue text */
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;
    width: 100%;
}

/* ==========================================================================
   4. HERO ATF CENTER
   Above-the-fold hero with media support and centered content
   ========================================================================== */

.hero-atf-center {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 600px; /* Default height */
    min-height: 500px;
    background: linear-gradient(
        0deg,
        var(--primary-700, #1b1464) 0%,
        var(--accent-500, #d4af37) 50%
    );
    border: 4px solid var(--accent-500, #d4af37);
    box-sizing: border-box;
}

/* Media Container Styles */
.hero-media-container {
    position: absolute;
    top: var(--space-4, 16px);
    left: var(--space-5, 20px);
    right: var(--space-5, 20px);
    bottom: var(--space-20, 80px);
    width: auto;
    height: auto;
    overflow: hidden;
    z-index: 1;
}

/* Overlay gradient for better text contrast */
.hero-media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(27, 20, 100, 0.85) 0%,
        rgba(212, 175, 55, 0.4) 50%,
        rgba(212, 175, 55, 0.2) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Media elements (images and videos) */
.hero-media-container img,
.hero-media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Video-specific styling */
video.hero-media {
    pointer-events: none; /* Prevents default video controls */
}

/* Fallback when no media is provided */
.hero-atf-center.no-media .hero-media-container {
    display: none;
}

/* Demo placeholder styling */
.hero-media-placeholder {
    width: 100%;
    height: 100%;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: sans-serif;
    font-size: 24px;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 554px;
    padding: 0 var(--space-5, 20px);
}

/* Typography Styles */
.hero-headline {
    color: var(--neutrals-50, #ffffff);
    font-family: var(--font-primary, 'Lato'), sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 54px;
    text-transform: uppercase;
    margin: 0 0 var(--space-6, 24px) 0;
    text-align: center;
}

.hero-subheadline {
    color: var(--neutrals-50, #ffffff);
    font-family: var(--font-primary, 'Lato'), sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 var(--space-8, 32px) 0;
    text-align: center;
}

/* Button Styles */
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500, #d4af37);
    color: var(--primary-700, #1b1464);
    font-family: var(--font-primary, 'Lato'), sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    text-transform: uppercase;
    padding: var(--space-4, 16px) var(--space-20, 80px);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: var(--accent-600, #b39226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-button:focus {
    outline: 2px solid var(--accent-400, #dcbe5d);
    outline-offset: 2px;
}

/* ==========================================================================
   5. HERO ATF LEFT
   Above-the-fold hero with left-aligned content and diagonal gradient
   ========================================================================== */

.hero-atf-left {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    height: 600px; /* Default height */
    min-height: 500px;
    background: linear-gradient(
        45deg,
        var(--primary-700, #1b1464) 0%,
        var(--accent-500, #d4af37) 100%
    );
    border: 4px solid var(--accent-500, #d4af37);
    box-sizing: border-box;
}

/* Inherit media container and overlay styles from hero-atf-center */
.hero-atf-left .hero-media-container {
    position: absolute;
    top: var(--space-4, 16px);
    left: var(--space-5, 20px);
    right: var(--space-5, 20px);
    bottom: var(--space-20, 80px);
    width: auto;
    height: auto;
    overflow: hidden;
    z-index: 1;
}

.hero-atf-left .hero-media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(27, 20, 100, 0.85) 0%,
        rgba(212, 175, 55, 0.4) 50%,
        rgba(212, 175, 55, 0.2) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-atf-left .hero-media-container img,
.hero-atf-left .hero-media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-atf-left video.hero-media {
    pointer-events: none;
}

.hero-atf-left.no-media .hero-media-container {
    display: none;
}

.hero-atf-left .hero-media-placeholder {
    width: 100%;
    height: 100%;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: sans-serif;
    font-size: 24px;
}

/* Content positioning for left variant */
.hero-atf-left .hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    width: 100%;
    max-width: 554px;
    padding: 0 var(--space-20, 80px);
}

/* Inherit typography and button styles from hero-atf-center */

/* ==========================================================================
   6. HERO ATF RIGHT
   Above-the-fold hero with right-aligned content and diagonal gradient
   ========================================================================== */

.hero-atf-right {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    height: 600px; /* Default height */
    min-height: 500px;
    background: linear-gradient(
        135deg,
        var(--accent-500, #d4af37) 0%,
        var(--primary-700, #1b1464) 100%
    );
    border: 4px solid var(--accent-500, #d4af37);
    box-sizing: border-box;
}

/* Inherit media container and overlay styles from hero-atf-center */
.hero-atf-right .hero-media-container {
    position: absolute;
    top: var(--space-4, 16px);
    left: var(--space-5, 20px);
    right: var(--space-5, 20px);
    bottom: var(--space-20, 80px);
    width: auto;
    height: auto;
    overflow: hidden;
    z-index: 1;
}

.hero-atf-right .hero-media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(27, 20, 100, 0.85) 0%,
        rgba(212, 175, 55, 0.4) 50%,
        rgba(212, 175, 55, 0.2) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-atf-right .hero-media-container img,
.hero-atf-right .hero-media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-atf-right video.hero-media {
    pointer-events: none;
}

.hero-atf-right.no-media .hero-media-container {
    display: none;
}

.hero-atf-right .hero-media-placeholder {
    width: 100%;
    height: 100%;
    background: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: sans-serif;
    font-size: 24px;
}

/* Content positioning for right variant */
.hero-atf-right .hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    width: 100%;
    max-width: 554px;
    padding: 0 var(--space-20, 80px);
}

/* Inherit typography and button styles from hero-atf-center */

/* ==========================================================================
   RESPONSIVE STYLES FOR ALL HERO VARIANTS
   ========================================================================== */

/* DesktopPlus: 1920px and wider */
@media (min-width: 1920px) {
    /* Hero Carousel */
    .hero-carousel {
        max-height: 1080px;
    }

    .slide-headline {
        font-size: 48px;
        line-height: 72px;
    }

    .slide-eyebrow {
        font-size: 28px;
        line-height: 42px;
    }

    .slide-description {
        font-size: 20px;
        line-height: 30px;
    }

    .slide-content {
        max-width: 1000px;
    }
    
    .slide-cta {
        padding: 20px 100px;
        font-size: 20px;
    }
    
    /* Hero Simple - max-width 1840px creates 40px margin each side at 1920px */
    .hero-simple__content {
        width: 100%;
        max-width: 1840px;
        margin: 0 auto; /* Centers content, allowing gradient to show on sides */
        padding: 0 60px; /* Inner padding only */
    }

    /* Hero Simple Reverse - max-width 1840px creates 40px margin each side at 1920px */
    .hero-simple-reverse__content {
        width: 100%;
        max-width: 1840px;
        margin: 0 auto; /* Centers content, allowing gradient to show on sides */
        padding: 0 60px; /* Inner padding only */
    }
    
    /* Hero ATF Center */
    .hero-atf-center {
        min-height: 1051px;
    }

    .hero-media-container {
        top: var(--space-4, 16px);
        left: var(--hero-padding-x, 40px);
        right: var(--hero-padding-x, 40px);
        bottom: var(--space-20, 80px);
    }

    .hero-content {
        margin-bottom: 198px;
    }

    /* Hero ATF Left */
    .hero-atf-left {
        min-height: 1051px;
    }

    .hero-atf-left .hero-media-container {
        top: var(--space-4, 16px);
        left: var(--hero-padding-x, 40px);
        right: var(--hero-padding-x, 40px);
        bottom: var(--space-20, 80px);
    }

    .hero-atf-left .hero-content {
        margin-bottom: 198px;
    }

    /* Hero ATF Right */
    .hero-atf-right {
        min-height: 1051px;
    }

    .hero-atf-right .hero-media-container {
        top: var(--space-4, 16px);
        left: var(--hero-padding-x, 40px);
        right: var(--hero-padding-x, 40px);
        bottom: var(--space-20, 80px);
    }

    .hero-atf-right .hero-content {
        margin-bottom: 198px;
    }
}

/* Desktop: 1150px to 1919px */
@media (min-width: 1150px) and (max-width: 1919px) {
    /* Hero Carousel */
    .hero-carousel {
        max-height: 900px;
    }
    
    .slide-content {
        max-width: 800px;
    }
    
    /* Hero Simple */
    .hero-simple__content {
        width: calc(100% - 80px);
        max-width: calc(100% - 80px);
        margin: 0 40px;
    }
    
    /* Hero Simple Reverse */
    .hero-simple-reverse__content {
        width: calc(100% - 80px);
        max-width: calc(100% - 80px);
        margin: 0 40px;
    }
    
    /* Hero ATF Center */
    .hero-atf-center {
        height: calc(100vw * 0.6426); /* Aspect ratio 1919:1233 */
        min-height: 739px;
        max-height: 1233px;
    }

    .hero-media-container {
        top: var(--space-4, 16px);
        left: var(--hero-padding-x, 40px);
        right: var(--hero-padding-x, 40px);
        bottom: var(--space-20, 80px);
    }

    .hero-content {
        margin-bottom: calc(100vw * 0.176);
        max-width: 554px;
    }

    .hero-button {
        padding: var(--space-3, 12px) var(--space-16, 64px);
    }

    /* Hero ATF Left */
    .hero-atf-left {
        height: calc(100vw * 0.6426);
        min-height: 739px;
        max-height: 1233px;
    }

    .hero-atf-left .hero-media-container {
        top: var(--space-4, 16px);
        left: var(--hero-padding-x, 40px);
        right: var(--hero-padding-x, 40px);
        bottom: var(--space-20, 80px);
    }

    .hero-atf-left .hero-content {
        margin-bottom: calc(100vw * 0.176);
        max-width: 554px;
    }

    /* Hero ATF Right */
    .hero-atf-right {
        height: calc(100vw * 0.6426);
        min-height: 739px;
        max-height: 1233px;
    }

    .hero-atf-right .hero-media-container {
        top: var(--space-4, 16px);
        left: var(--hero-padding-x, 40px);
        right: var(--hero-padding-x, 40px);
        bottom: var(--space-20, 80px);
    }

    .hero-atf-right .hero-content {
        margin-bottom: calc(100vw * 0.176);
        max-width: 554px;
    }
}

/* Tablet: 768px to 1149px */
@media (min-width: 768px) and (max-width: 1149px) {
    /* Hero Carousel */
    .hero-carousel {
        max-height: 800px;
        min-height: 500px;
    }

    .slide-content {
        max-width: 600px;
        padding: var(--space-6, 24px);
    }

    .slide-headline {
        font-size: 32px;
        line-height: 48px;
    }

    .slide-eyebrow {
        font-size: 20px;
        line-height: 30px;
    }

    .slide-description {
        font-size: 16px;
        line-height: 24px;
    }

    .slide-cta {
        padding: 14px 60px;
        font-size: 16px;
    }

    .carousel-controls {
        width: 280px;
        bottom: 30px;
    }

    .carousel-indicators {
        bottom: 50px; /* Aligned with controls center at tablet: 30px + 24px - 4px = 50px */
    }
    
    /* Hero Simple & Reverse - Transition zone */
    .hero-simple__content,
    .hero-simple-reverse__content {
        width: calc(100% - 80px);
        margin: 0 40px;
        padding: 0 40px;
    }
    
    .hero-simple__headline,
    .hero-simple-reverse__headline {
        font-size: var(--text-h2-size);
        line-height: var(--text-h2-height);
    }
    
    /* Hero ATF Center */
    .hero-atf-center {
        height: calc(100vw * 0.6426); /* Maintains aspect ratio */
        min-height: 493px;
        max-height: 738px;
    }

    .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-8, 32px);
        right: var(--space-8, 32px);
        bottom: var(--space-16, 64px);
    }

    .hero-content {
        margin-bottom: calc(100vw * 0.15);
        max-width: 480px;
    }

    .hero-headline {
        font-size: 32px;
        line-height: 48px;
        margin-bottom: var(--space-5, 20px);
    }

    .hero-subheadline {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: var(--space-6, 24px);
    }

    .hero-button {
        padding: var(--space-3, 12px) var(--space-12, 48px);
        font-size: 16px;
    }

    /* Hero ATF Left */
    .hero-atf-left {
        height: calc(100vw * 0.6426);
        min-height: 493px;
        max-height: 738px;
    }

    .hero-atf-left .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-8, 32px);
        right: var(--space-8, 32px);
        bottom: var(--space-16, 64px);
    }

    .hero-atf-left .hero-content {
        margin-bottom: calc(100vw * 0.15);
        max-width: 480px;
    }

    /* Hero ATF Right */
    .hero-atf-right {
        height: calc(100vw * 0.6426);
        min-height: 493px;
        max-height: 738px;
    }

    .hero-atf-right .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-8, 32px);
        right: var(--space-8, 32px);
        bottom: var(--space-16, 64px);
    }

    .hero-atf-right .hero-content {
        margin-bottom: calc(100vw * 0.15);
        max-width: 480px;
    }
}

/* Tablet transition: 768px to 808px - smooth margin increase from 0px to 40px */
@media (min-width: 768px) and (max-width: 808px) {
    .hero-simple__content,
    .hero-simple-reverse__content {
        width: calc(100% - (100vw - 768px) * 2); /* Width reduces as margin increases */
        /* Margin increases pixel-for-pixel: at 768px = 0px, at 808px = 40px */
        margin: 0 calc((100vw - 768px));
        padding: 0 60px; /* Inner padding only */
    }
}

/* Tablet with full padding: 808px to 1149px */
@media (min-width: 808px) and (max-width: 1149px) {
    .hero-simple__content,
    .hero-simple-reverse__content {
        width: 100%;
        padding: 0 100px; /* 40px outer + 60px inner */
    }

    .hero-simple__headline,
    .hero-simple-reverse__headline {
        font-size: var(--text-h2-size);
        line-height: var(--text-h2-height);
    }
}

/* Mobile: 380px to 767px */
@media (max-width: 767px) {
    /* Hero Carousel */
    .hero-carousel {
        min-height: 450px;
        max-height: 700px;
    }

    .slide-content {
        max-width: 90%;
        padding: var(--space-4, 16px);
    }

    .slide-headline {
        font-size: 24px;
        line-height: 36px;
        margin-bottom: var(--space-4, 16px);
    }

    .slide-eyebrow {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: var(--space-3, 12px);
    }

    .slide-description {
        font-size: 14px;
        line-height: 21px;
        margin-bottom: var(--space-5, 20px);
    }

    .slide-cta {
        padding: 12px 40px;
        font-size: 14px;
    }

    .carousel-controls {
        width: calc(100% - 40px);
        max-width: 280px;
        bottom: 20px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav .nav-icon {
        width: 40px;
        height: 40px;
    }

    .carousel-indicators {
        bottom: 37px; /* Aligned with controls center at mobile: 20px + 20px - 3px = 37px */
        gap: var(--space-2, 8px);
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    /* Mobile: UI Icon adjustments for carousel navigation */
    .carousel-nav .ui-icon-display {
        width: 32px;
        height: 32px;
        background-size: 192px 64px;
    }

    /* Hero Simple - Mobile: no margin, padding only */
    .hero-simple__content,
    .hero-simple-reverse__content {
        width: 100%;
        margin: 0; /* No margin at mobile */
        padding: 0 40px; /* Inner padding only */
    }

    .hero-simple__headline,
    .hero-simple-reverse__headline {
        font-size: var(--text-h3-size);
        line-height: var(--text-h3-height);
    }

    /* Update arrow positions for 32px size */
    .carousel-nav .ui-icon-display[data-icon="arrow-up"] {
        background-position: -32px 0;
    }
    
    /* Hero Simple */
    .hero-simple {
        background: var(--color-primary-700);
    }
    
    .hero-simple__content {
        width: 100%;
        min-width: unset;
        padding: 0 20px;
        margin: 0;
    }
    
    .hero-simple__headline {
        font-size: var(--text-h3-size);
        line-height: var(--text-h3-height);
    }
    
    /* Hero Simple Reverse */
    .hero-simple-reverse {
        background: var(--color-primary-700);
    }
    
    .hero-simple-reverse__content {
        width: 100%;
        min-width: unset;
        padding: 0 20px;
        margin: 0;
        background: radial-gradient(355.56% 50% at 50% 50%, #F5F5F5 0%, var(--color-accent-500) 100%);
    }
    
    .hero-simple-reverse__headline {
        font-size: var(--text-h3-size);
        line-height: var(--text-h3-height);
    }
    
    /* Hero ATF Center */
    .hero-atf-center {
        height: 600px;
        min-height: 500px;
    }

    .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-5, 20px);
        right: var(--space-5, 20px);
        bottom: var(--space-12, 48px);
    }

    .hero-content {
        margin-bottom: var(--space-16, 64px);
        max-width: 320px;
    }

    .hero-headline {
        font-size: 28px;
        line-height: 42px;
        margin-bottom: var(--space-4, 16px);
    }

    .hero-subheadline {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: var(--space-5, 20px);
    }

    .hero-button {
        padding: var(--space-3, 12px) var(--space-10, 40px);
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }

    /* Hero ATF Left */
    .hero-atf-left {
        height: 600px;
        min-height: 500px;
    }

    .hero-atf-left .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-5, 20px);
        right: var(--space-5, 20px);
        bottom: var(--space-12, 48px);
    }

    .hero-atf-left .hero-content {
        margin-bottom: var(--space-16, 64px);
        max-width: 320px;
    }

    /* Hero ATF Right */
    .hero-atf-right {
        height: 600px;
        min-height: 500px;
    }

    .hero-atf-right .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-5, 20px);
        right: var(--space-5, 20px);
        bottom: var(--space-12, 48px);
    }

    .hero-atf-right .hero-content {
        margin-bottom: var(--space-16, 64px);
        max-width: 320px;
    }
}

/* Small Mobile: Below 380px */
@media (max-width: 379px) {
    /* Hero Carousel */
    .hero-carousel {
        min-height: 400px;
    }
    
    .slide-headline {
        font-size: 20px;
        line-height: 30px;
    }
    
    .slide-cta {
        padding: 10px 30px;
        font-size: 12px;
    }
    
    /* Hero Simple & Reverse */
    .hero-simple__content,
    .hero-simple-reverse__content {
        padding: 0 16px;
    }
    
    .hero-simple__headline,
    .hero-simple-reverse__headline {
        font-size: var(--text-h4-size);
        line-height: var(--text-h4-height);
    }
    
    /* Hero ATF Center */
    .hero-atf-center {
        height: 500px;
        min-height: 450px;
    }

    .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-4, 16px);
        right: var(--space-4, 16px);
        bottom: var(--space-10, 40px);
    }

    .hero-content {
        margin-bottom: var(--space-12, 48px);
        max-width: 280px;
    }

    .hero-headline {
        font-size: 24px;
        line-height: 36px;
        margin-bottom: var(--space-3, 12px);
    }

    .hero-subheadline {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: var(--space-4, 16px);
    }

    .hero-button {
        padding: var(--space-2, 8px) var(--space-8, 32px);
        font-size: 14px;
        width: 100%;
    }

    /* Hero ATF Left */
    .hero-atf-left {
        height: 500px;
        min-height: 450px;
    }

    .hero-atf-left .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-4, 16px);
        right: var(--space-4, 16px);
        bottom: var(--space-10, 40px);
    }

    .hero-atf-left .hero-content {
        margin-bottom: var(--space-12, 48px);
        max-width: 280px;
    }

    /* Hero ATF Right */
    .hero-atf-right {
        height: 500px;
        min-height: 450px;
    }

    .hero-atf-right .hero-media-container {
        top: var(--space-3, 12px);
        left: var(--space-4, 16px);
        right: var(--space-4, 16px);
        bottom: var(--space-10, 40px);
    }

    .hero-atf-right .hero-content {
        margin-bottom: var(--space-12, 48px);
        max-width: 280px;
    }
}

/* ==========================================================================
   ANIMATION CLASSES (OPTIONAL)
   ========================================================================== */

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

.hero-content.animate-in > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-content.animate-in .hero-headline {
    animation-delay: 0.2s;
}

.hero-content.animate-in .hero-subheadline {
    animation-delay: 0.4s;
}

.hero-content.animate-in .hero-button {
    animation-delay: 0.6s;
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-button,
    .hero-content.animate-in > *,
    .carousel-slide {
        animation: none;
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-media-container::after,
    .slide-overlay {
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .hero-button {
        border: 2px solid currentColor;
    }
}
