/**
 * File Path: public/assets/css/frontend/components/hero.css
 * Hero Carousel Component Styles for FinPluss
 * All classes prefixed with hero-
 */

/* ============================================
   Hero Carousel Container
   ============================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 86vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
    /* Remove any top spacing */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================
   Carousel Slides
   ============================================ */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.hero-slide-active {
    opacity: 1;
    z-index: 5;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* No filters or overlays on the image */
}

/* ============================================
   Slide Content (No overlay tint)
   ============================================ */
.hero-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
    /* Optional: Add subtle gradient for text readability */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-content-wrapper {
    text-align: center;
    max-width: 800px;
    animation: heroFadeInUp 1s ease-out;
}

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

/* ============================================
   Typography
   ============================================ */
.hero-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 2.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

/* ============================================
   CTA Buttons
   ============================================ */
.hero-cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.hero-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.hero-btn-primary {
    background: #243E93;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(36, 62, 147, 0.3);
}

.hero-btn-primary:hover {
    background: #1a2d6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 62, 147, 0.4);
}

.hero-btn-primary:active {
    transform: translateY(0);
}

.hero-btn-secondary {
    background: #F36D21;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(243, 109, 33, 0.3);
}

.hero-btn-secondary:hover {
    background: #e55a0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 109, 33, 0.4);
}

.hero-btn-secondary:active {
    transform: translateY(0);
}

/* Button ripple effect */
.hero-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   Navigation Arrows
   ============================================ */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 62, 147, 0.5);
}

.hero-arrow svg {
    width: 24px;
    height: 24px;
    color: #243E93;
}

.hero-arrow-left {
    left: 2rem;
}

.hero-arrow-right {
    right: 2rem;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator.hero-hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-scroll-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-scroll-arrow {
    animation: heroBounce 2s infinite;
}

.hero-scroll-arrow svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
    opacity: 0.8;
}

@keyframes heroBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}



/* If hero comes after header, remove gap */
.header + .hero-carousel,
.header-main + .hero-carousel,
header + .hero-carousel {
    margin-top: 0 !important;
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 768px) {
    .hero-carousel {
        height: 85vh;
        min-height: 500px;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtext {
        font-size: clamp(1rem, 2vw, 1.25rem);
        margin-bottom: 2rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-arrow-left {
        left: 1rem;
    }
    
    .hero-arrow-right {
        right: 1rem;
    }
    
    .hero-scroll-indicator {
        bottom: 1.5rem;
    }
    
    .hero-scroll-text {
        font-size: 0.75rem;
    }
    
    .hero-scroll-arrow svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */
@media (max-width: 480px) {
    .hero-carousel {
        height: 75vh;
        min-height: 450px;
    }
    
    .hero-content-wrapper {
        padding: 0 1rem;
    }
    
    .hero-headline {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtext {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.25rem;
        min-width: 140px;
        max-width: 250px;
    }
    
    /* Hide arrows on very small screens */
    .hero-arrow {
        display: none;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
    }
    
    .hero-scroll-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .hero-arrow:hover {
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .hero-btn:hover {
        transform: none;
    }
}

/* ============================================
   Loading State
   ============================================ */
.hero-slide:not(.hero-slide-active) {
    pointer-events: none;
}

.hero-slide.hero-slide-active .hero-content-wrapper {
    animation: heroFadeInUp 1s ease-out;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .hero-carousel {
        height: auto;
        min-height: auto;
    }
    
    .hero-arrow,
    .hero-scroll-indicator {
        display: none;
    }
    
    .hero-slide:not(.hero-slide-active) {
        display: none;
    }
}