/* ALPHATECH — loaded after style.css; overrides and additions. */

/* Back to top (footer.php + assets/js/scroll-to-top.js) */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 99999;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #dc2626;
    color: #fff;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.is-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background-color: #b91c1c;
    color: #fff;
    transform: translateY(-2px);
}

.scroll-to-top:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.scroll-to-top__icon {
    display: block;
    line-height: 1;
}

@media (max-width: 640px) {
    .scroll-to-top {
        right: 14px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Home hero slider — full viewport height on mobile (avoids black band above slides) */
@media (max-width: 768px) {
    .hero-section.hero-section--slider {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .hero-section--slider .hero-slider {
        min-height: calc(100vh - 64px);
        min-height: calc(100svh - 64px);
        height: calc(100vh - 64px);
        height: calc(100svh - 64px);
    }

    .hero-section--slider .hero-slides {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-section--slider .hero-content--over-slider {
        padding: 88px 16px 28px;
    }
}
