﻿

/* =========================================================
   Verco Promo Popup
   - Background image 800x450
   - Fade + grow from center
   - Mobile max-width: 100%
   ========================================================= */
.verco-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 16px;
    /* Start faded out until .is-open is applied */
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}

    .verco-popup.is-open {
        opacity: 1;
    }

.verco-popup.is-hidden {
    display: none;
}

/* Backdrop */
.verco-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* Dialog wrapper (animated) */
.verco-popup__dialog {
    position: relative;
    width: min(800px, 100%);
    max-width: 100%;
    border-radius: 5px;
    overflow: hidden;
    /* Start slightly smaller + transparent */
    transform: scale(0.92);
    opacity: 0;
    /* entrance/exit */
    transition: transform 500ms ease-in-out, opacity 500ms ease-in-out;
    will-change: transform, opacity;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* When shown (your JS will toggle .is-open on the root) */
.verco-popup.is-open .verco-popup__dialog {
    transform: scale(1);
    opacity: 1;
}

/* Close button */
.verco-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent; /* no background */
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    font-size: 24px;
}

    .verco-popup__close:hover {
        background: transparent; /* keep it clean */
        opacity: 0.85; /* subtle feedback instead */
    }

/* Card */
.verco-popup__card {
    position: relative;
}

/* Background image */
.verco-popup__bg {
    display: block;
    width: 100%;
    height: auto;
}

/* Content overlay */
.verco-popup__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    /* Overlay removed */
    background: none;
}

/* Kicker */
.verco-popup__kicker {
    font-family: 'FSIndustrie-Medium';
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: -22px;
    color: rgba(255, 255, 255, 0.9);
}

/* SVG headline image */
.verco-popup__headline {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 12px 24px;
}

/* Supporting text */
.verco-popup__text {
    font-family: Termina;
    margin: 0 0 18px 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.95);
    font-size: 26px;
    letter-spacing: 0.4em;
    line-height: 1.4;
}

/* CTA button */
.verco-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;

    /* Placeholder colors - match Verco brand later */
    background: #ffffff;
    color: #000000;
    transition: transform 160ms ease, opacity 160ms ease;
}

    .verco-popup__cta:hover {

        transform: translateY(1px);
        background: #006325;
        color: #ffffff;
        /*opacity: 0.92;*/
    }

/* Mobile refinements */
/*@media (max-width: 480px) {
    .verco-popup {
        padding: 10px;
    }

    .verco-popup__content {
        padding: 16px;
    }

    .verco-popup__text {
        font-size: 15px;
    }
}*/

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .verco-popup__dialog {
        transition: none;
    }
}
@media (max-width: 767.98px) {
    .verco-popup {
        display: none !important;
    }
}