﻿/* =========================================================
   OVMA CUSTOM  HERO CAROUSEL
   ========================================================= */
#ovma-hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    overflow: hidden;
    font-family: "GibsonRegular", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ovma-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.ovma-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .ovma-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

.ovma-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 8s ease-out;
}

.ovma-slide.active .ovma-slide-bg {
    transform: scale(1);
}

/* --- CONTENT & TYPOGRAPHY --- */
.ovma-slide-content {
    position: relative;
    z-index: 3;
    width: 45%;
    max-width: 500px;
    padding: 0 0 0 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.ovma-slide.active .ovma-slide-content {
    opacity: 1;
    transform: translateY(0);
}


.ovma-slide[data-content-align="right"] .ovma-slide-content {
    margin-left: 55%;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.ovma-slide[data-content-align="left"] .ovma-slide-content {
    margin-right: auto;
}

.ovma-slide-subtitle {
    display: block;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0193E5 !important;
}

.ovma-slide-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: "GibsonBold", sans-serif;
}

.ovma-slide-desc {
    font-size: 18px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.ovma-slide-content * {
    color: #333 !important;
    text-shadow: none !important;
}

/* --- UNIFIED BUTTON STYLE --- */
.ovma-slide-btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: #0193E5;
    border: 2px solid #0193E5;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 30px;
    transition: all 0.3s ease;
}

    .ovma-slide-btn:hover {
        background-color: transparent;
        color: #0193E5 !important;
        transform: translateY(-3px);
    }

.ovma-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.15);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

    .ovma-nav-btn:hover {
        background: rgba(0,0,0,0.6);
    }

.ovma-prev {
    left: 30px;
}

.ovma-next {
    right: 30px;
}

.ovma-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ovma-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

    .ovma-dot.active {
        background-color: #0193E5;
    }

/* MOBILE & FRENCH */

@media (max-width: 768px) {
    #ovma-hero-carousel {
        height: 500px;
    }

    .ovma-slide-content,
    .ovma-slide[data-content-align="right"] .ovma-slide-content,
    .ovma-slide[data-content-align="left"] .ovma-slide-content {
        text-align: center;
        margin: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .ovma-slide-title {
        font-size: 34px;
        line-height: 1.25;
    }

    .ovma-slide-subtitle {
        font-size: 14px;
    }

    .ovma-slide-desc {
        display: none;
    }

    .ovma-nav-btn {
        display: none;
    }

    .ovma-slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        z-index: 2;
        pointer-events: none;
    }

    .ovma-slide-content * {
        color: #fff !important;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.5) !important;
    }

    .ovma-slide-subtitle {
        color: #3BC3FF !important;
    }

    /* ART-DIRECTED MOBILE IMAGE CROPPING */
    .ovma-slide:nth-child(1) .ovma-slide-bg {
        background-position: 25% center !important;
    }

    .ovma-slide:nth-child(2) .ovma-slide-bg {
        background-position: 30% center !important;
    }

    .ovma-slide:nth-child(3) .ovma-slide-bg {
        background-position: 20% center !important;
    }

    .ovma-slide:nth-child(4) .ovma-slide-bg {
        background-position: 80% center !important;
    }
}

/* FRENCH DESKTOP */
@media (min-width: 769px) {

    html[lang="fr-CA"] .ovma-slide-title {
        font-size: 48px;
    }
}

/* Hide navigation UI automatically if there is only 1 slide */
#ovma-hero-carousel.ovma-single-slide .ovma-nav-btn,
#ovma-hero-carousel.ovma-single-slide .ovma-indicators {
    display: none !important;
}
