
/* =========================================================
   VELMONT BATHROOMS PROMOTIONAL POPUP
   Coppersmith Creations
   ========================================================= */

/* ---------------------------------------------------------
   Popup Overlay
   --------------------------------------------------------- */

#velmont-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(18, 27, 23, 0.48);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#velmont-popup.is-visible {
    display: flex;
    animation: velmontOverlayIn 0.25s ease forwards;
}

/* ---------------------------------------------------------
   Popup Container
   --------------------------------------------------------- */

#velmont-popup .velmont-popup-inner {
    position: relative;

    width: min(950px, 100%);
    max-height: calc(100vh - 60px);

    overflow: hidden;

    border-radius: 10px;
    background: #fff;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);

    transform: translateY(12px) scale(0.98);
    opacity: 0;

    animation: velmontModalIn 0.3s ease 0.05s forwards;
}

/* ---------------------------------------------------------
   DESKTOP / TABLET LAYOUT
   Show desktop artwork only.
   IMPORTANT: Hide the complete mobile layout.
   --------------------------------------------------------- */

#velmont-popup .velmont-popup-desktop-link {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    cursor: pointer;
}

#velmont-popup .velmont-popup-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
}

#velmont-popup .velmont-popup-mobile {
    display: none;
}

/* ---------------------------------------------------------
   Close Button
   --------------------------------------------------------- */

#velmont-popup .velmont-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);
    color: #25342d;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

#velmont-popup .velmont-popup-close:hover {
    background: #fff;
    transform: scale(1.06);
}

#velmont-popup .velmont-popup-close:focus-visible {
    outline: 2px solid #25342d;
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Desktop / Tablet Animations
   --------------------------------------------------------- */

@keyframes velmontOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes velmontModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 900px) {

    #velmont-popup {
        padding: 20px;
    }

    #velmont-popup .velmont-popup-inner {
        width: min(720px, 100%);
        max-height: calc(100vh - 40px);
    }

}

/* ---------------------------------------------------------
   MOBILE
   Hide desktop artwork completely and show mobile layout.
   --------------------------------------------------------- */

@media (max-width: 767px) {

    #velmont-popup {
        align-items: flex-end;
        justify-content: center;

        padding: 0;

        background: rgba(18, 27, 23, 0.48);
    }

    #velmont-popup .velmont-popup-inner {
        width: 100%;
        max-width: 100%;
        max-height: 88vh;

        overflow-x: hidden;
        overflow-y: auto;

        border-radius: 18px 18px 0 0;

        transform: translateY(30px);
        animation: velmontMobileIn 0.3s ease 0.05s forwards;
    }

    /* Hide desktop artwork and its clickable area. */
    #velmont-popup .velmont-popup-desktop-link {
        display: none;
    }

    /* Show the mobile layout. */
    #velmont-popup .velmont-popup-mobile {
        display: block;
        width: 100%;
        background: #f5f3ee;
    }

    /* Mobile image area. */
    #velmont-popup .velmont-popup-mobile-image-wrap {
        display: block;
        width: 100%;
        height: 205px;
        overflow: hidden;
        line-height: 0;
    }

    #velmont-popup .velmont-popup-mobile-image {
        display: block;

        width: 100%;
        max-width: 100%;
        height: 205px;

        margin: 0;

        object-fit: cover;
        object-position: 76% center;
    }

    /* Mobile text and CTA. */
    #velmont-popup .velmont-popup-mobile-content {
        display: block;

        padding: 24px 24px 28px;

        background: #f5f3ee;
        text-align: center;
    }

    #velmont-popup .velmont-popup-mobile-eyebrow {
        margin: 0 0 7px;

        font-family: Arial, sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.5;

        letter-spacing: 1.5px;
        text-transform: uppercase;

        color: #68766f;
    }

    #velmont-popup .velmont-popup-mobile-content h2 {
        margin: 0 0 10px;
        padding: 0;

        font-family: Georgia, "Times New Roman", serif;
        font-size: 30px;
        font-weight: 500;
        line-height: 1.08;

        color: #26372f;
    }

    #velmont-popup .velmont-popup-description {
        margin: 0 auto 20px;
        padding: 0;

        max-width: 430px;

        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.55;

        color: #52605a;
    }

    #velmont-popup .velmont-popup-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        min-height: 50px;
        padding: 0 28px;

        border: 0;
        border-radius: 2px;

        background: #304239;
        color: #fff;

        font-family: Georgia, "Times New Roman", serif;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 0.3px;
        line-height: 1.3;

        text-decoration: none;

        transition:
            background 0.2s ease,
            transform 0.2s ease;
    }

    #velmont-popup .velmont-popup-mobile-cta:hover {
        background: #25352d;
        color: #fff;
        transform: translateY(-1px);
    }

    /* Mobile close button. */
    #velmont-popup .velmont-popup-close {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;

        font-size: 25px;
    }

}

/* ---------------------------------------------------------
   Mobile Animation
   --------------------------------------------------------- */

@keyframes velmontMobileIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   Accessibility: Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    #velmont-popup,
    #velmont-popup .velmont-popup-inner {
        animation: none;
    }

    #velmont-popup .velmont-popup-inner {
        opacity: 1;
        transform: none;
    }

}