/* Home Slider block (axisworld/home-slider, inc/home-slider.php).
   Loaded on the site and in the editor, so it can't live in css/style.css.
   Sizes are px: bootstrap.min.css sets html { font-size: 62.5% }. */

.aw-slider {
    position: relative;
    width: 100vw;
    max-width: none;
    margin: 0 0 0 calc(50% - 50vw);
    aspect-ratio: 1758 / 895;
    min-height: 240px;
    overflow: hidden;
    background-color: #18120c;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: #fdfbf7;
    box-sizing: border-box;
}

.aw-slider .aw-slider__track,
.aw-slider .aw-slider__slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.aw-slider .aw-slider__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1s;
}

.aw-slider .aw-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.aw-slider .aw-slider__img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: none;
}


.aw-slider .aw-slider__shade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(14, 18, 28, .55) 0%, rgba(14, 18, 28, .25) 45%, rgba(14, 18, 28, 0) 75%);
}

.aw-slider .aw-slider__caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(-50%);
}

.aw-slider .aw-slider__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(253, 251, 247, .9);
}

.aw-slider .aw-slider__label::before {
    content: "";
    width: 40px;
    height: 1px;
    background-color: #e0b57a;
}

.aw-slider .aw-slider__title {
    max-width: 760px;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: none;
}

.aw-slider .aw-slider__line1,
.aw-slider .aw-slider__line2 {
    display: block;
}

.aw-slider .aw-slider__line1 {
    font-weight: 300;
    color: #fdfbf7;
}

.aw-slider .aw-slider__line2 {
    font-weight: 600;
    color: #e8c590;
}

.aw-slider .aw-slider__text {
    max-width: 520px;
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .06em;
    color: rgba(253, 251, 247, .9);
}

.aw-slider .aw-slider__rule {
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 18px;
    background-color: #e0b57a;
}

.aw-slider .aw-slider__btn,
.aw-slider .aw-slider__btn:hover,
.aw-slider .aw-slider__btn:focus {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 32px;
    background-color: #c47723;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fdfbf7;
    transition: background-color .3s cubic-bezier(.4, 0, .2, 1);
}

.aw-slider .aw-slider__btn:hover {
    background-color: #a55f17;
}

/* Arrows and dots */
.aw-slider .aw-slider__arrow {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(253, 251, 247, .4);
    border-radius: 0;
    background: rgba(24, 18, 12, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdfbf7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: background-color .3s cubic-bezier(.4, 0, .2, 1), border-color .3s cubic-bezier(.4, 0, .2, 1);
}

.aw-slider .aw-slider__arrow:hover {
    border-color: #c47723;
    background-color: #c47723;
}

.aw-slider .aw-slider__arrow--prev {
    right: 72px;
    transform: scaleX(-1);
}

.aw-slider .aw-slider__arrow--next {
    right: 20px;
}

.aw-slider .aw-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.aw-slider .aw-slider__dot {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: rgba(253, 251, 247, .4);
    cursor: pointer;
    transition: background-color .3s cubic-bezier(.4, 0, .2, 1);
}

.aw-slider .aw-slider__dot.is-active {
    background-color: #c47723;
}

@media (min-width: 640px) {

    .aw-slider .aw-slider__caption {
        padding: 0 32px;
    }

    .aw-slider .aw-slider__title {
        font-size: 38px;
    }

    .aw-slider .aw-slider__arrow--prev {
        right: 88px;
    }

    .aw-slider .aw-slider__arrow--next {
        right: 32px;
    }
}

@media (min-width: 1024px) {

    .aw-slider .aw-slider__caption {
        padding: 0 48px;
    }

    .aw-slider .aw-slider__title {
        font-size: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aw-slider .aw-slider__slide,
    .aw-slider .aw-slider__img {
        transition: none;
    }
}

/* Editor preview: no full-bleed, no default block width/margins */
.editor-styles-wrapper .wp-block[data-type="axisworld/home-slider"] {
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
}

.editor-styles-wrapper .aw-slider {
    width: auto;
    margin: 0;
}
