/**
 * ============================================================
 * FUSION REALTY - KEN BURNS SLIDER STYLESHEET
 * ============================================================
 * File: slider.css
 * Version: 1.2
 * Created: January 3, 2026
 * Updated: January 11, 2026 - Changed hero subtitle to white
 * 
 * Purpose:
 * Provides styles for the Ken Burns background slideshow with
 * Art Direction (separate desktop/mobile images) on the homepage.
 * Uses Swiper.js for slide functionality.
 * 
 * Features:
 * - Ken Burns zoom effect (slow zoom in)
 * - Art Direction responsive images
 * - Semi-transparent overlay for text readability
 * - Hero text overlay with CTAs
 * - Full responsive design
 * - Reduced motion support for accessibility
 * 
 * Dependencies:
 * - Swiper.js (loaded via CDN)
 * - Bootstrap 5.x (for button utilities)
 * 
 * ============================================================
 */

/* ============================================
   KEN BURNS SLIDER - MAIN CONTAINER
   ============================================ */

/**
 * Hero Slider Container
 * Full-width container that holds the Swiper slider
 */
.hero-slider-kenburns {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    background-color: #005c87; /* Fallback color while images load */
}

/**
 * Swiper Container
 * Ensures Swiper fills the entire hero section
 */
.hero-slider-kenburns .swiper {
    width: 100%;
    height: 100%;
}

/**
 * Swiper Slide
 * Each slide takes full width and height
 */
.hero-slider-kenburns .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


/* ============================================
   KEN BURNS EFFECT - ANIMATION
   ============================================ */

/**
 * Ken Burns Keyframes
 * Slow zoom in effect - starts at 100% scale and zooms to 115%
 * Duration matches slide interval (5 seconds) + transition (0.5s)
 */
@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/**
 * Slide Image Container
 * Uses <picture> element for Art Direction
 */
.hero-slider-kenburns .slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/**
 * Picture Element
 * Ensures picture element fills container
 */
.hero-slider-kenburns .slide-image-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

/**
 * Slide Image
 * Applies Ken Burns animation only to the active slide
 */
.hero-slider-kenburns .slide-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    /* Animation applied via JavaScript class */
}

/**
 * Active Slide Animation
 * Ken Burns effect triggers on active slide
 */
.hero-slider-kenburns .swiper-slide-active .slide-image-container img {
    animation: kenburns 5.5s ease-out forwards;
}


/* ============================================
   OVERLAY - DARK SEMI-TRANSPARENT
   ============================================ */

/**
 * Dark Overlay
 * Provides contrast for text readability
 */
.hero-slider-kenburns .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}


/* ============================================
   HERO CONTENT - TEXT OVERLAY
   ============================================ */

/**
 * Hero Content Container
 * Centered text overlay on top of slider
 */
.hero-slider-kenburns .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 2rem;
}

/**
 * Hero Title (H1)
 * Main headline displayed over slider
 */
.hero-slider-kenburns .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/**
 * Hero Subtitle
 * Secondary text below title
 */
.hero-slider-kenburns .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #FFFFFF; /* White */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

/**
 * Hero Buttons Container
 * Holds CTA buttons
 */
.hero-slider-kenburns .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/**
 * Primary CTA Button
 * Gold background, blue text
 */
.hero-slider-kenburns .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #d9bb89;
    color: #005c87;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slider-kenburns .btn-hero-primary:hover {
    background-color: #c9a970;
    color: #005c87;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-kenburns .btn-hero-primary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/**
 * Secondary CTA Button
 * Transparent with white border
 */
.hero-slider-kenburns .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #FFFFFF;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-slider-kenburns .btn-hero-secondary:hover {
    background-color: #FFFFFF;
    color: #005c87;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider-kenburns .btn-hero-secondary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/**
 * Button Icons
 * Icons inside buttons
 */
.hero-slider-kenburns .btn-hero-primary i,
.hero-slider-kenburns .btn-hero-secondary i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/**
 * Large Desktop (1440px+)
 * Slightly larger text
 */
@media (min-width: 1440px) {
    .hero-slider-kenburns {
        height: 90vh;
    }
    
    .hero-slider-kenburns .hero-title {
        font-size: 4rem;
    }
    
    .hero-slider-kenburns .hero-subtitle {
        font-size: 1.75rem;
    }
}

/**
 * Desktop (1024px - 1439px)
 * Standard desktop layout
 */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-slider-kenburns {
        height: 85vh;
    }
    
    .hero-slider-kenburns .hero-title {
        font-size: 3.25rem;
    }
    
    .hero-slider-kenburns .hero-subtitle {
        font-size: 1.4rem;
    }
}

/**
 * Tablet (768px - 1023px)
 * Adjusted sizing for tablets
 */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-slider-kenburns {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-slider-kenburns .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-slider-kenburns .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .hero-slider-kenburns .btn-hero-primary,
    .hero-slider-kenburns .btn-hero-secondary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/**
 * Mobile Landscape & Small Tablets (576px - 767px)
 * Portrait images start loading here
 */
@media (max-width: 767px) {
    .hero-slider-kenburns {
        height: 75vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-slider-kenburns .hero-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .hero-slider-kenburns .hero-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-slider-kenburns .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-slider-kenburns .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-slider-kenburns .btn-hero-primary,
    .hero-slider-kenburns .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/**
 * Mobile Portrait (max-width: 575px)
 * Smallest screens
 */
@media (max-width: 575px) {
    .hero-slider-kenburns {
        height: 70vh;
        min-height: 450px;
        max-height: 600px;
    }
    
    .hero-slider-kenburns .hero-content {
        width: 100%;
        padding: 1rem;
    }
    
    .hero-slider-kenburns .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-slider-kenburns .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-slider-kenburns .btn-hero-primary,
    .hero-slider-kenburns .btn-hero-secondary {
        max-width: 260px;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/**
 * Extra Small Mobile (max-width: 380px)
 * Very small phones
 */
@media (max-width: 380px) {
    .hero-slider-kenburns {
        min-height: 400px;
    }
    
    .hero-slider-kenburns .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-slider-kenburns .hero-subtitle {
        font-size: 0.9rem;
    }
}


/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

/**
 * Reduced Motion Support
 * Disables Ken Burns animation for users who prefer reduced motion
 */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-kenburns .swiper-slide-active .slide-image-container img {
        animation: none;
        transform: scale(1);
    }
    
    .hero-slider-kenburns .btn-hero-primary:hover,
    .hero-slider-kenburns .btn-hero-secondary:hover {
        transform: none;
    }
}


/* ============================================
   LOADING STATE
   ============================================ */

/**
 * Slider Loading State
 * Shows while images are loading
 */
.hero-slider-kenburns.is-loading {
    background: linear-gradient(135deg, #005c87 0%, #003d5c 100%);
}

.hero-slider-kenburns.is-loading .swiper {
    opacity: 0;
}

.hero-slider-kenburns .swiper {
    opacity: 1;
    transition: opacity 0.5s ease;
}


/* ============================================
   NOTE: Print styles have been consolidated into print.css v3.1
   Do not add @media print blocks to this file.
   ============================================ */


/* ============================================
   END OF SLIDER STYLESHEET
   ============================================ */
