/**
 * Small compatibility layer so Foundation + fullPage v4 match the live MEDIX homepage.
 */

html.fp-enabled,
html.fp-enabled body {
    overflow: hidden;
    height: 100%;
}

/* Hide fullPage.js watermark (GPL build) */
.fp-watermark {
    display: none !important;
}

/* Hero nav links — light on dark photography (match live MEDIX) */
#section0 .top-bar .top-bar-section ul.navigation li a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

#section0 .top-bar .top-bar-section ul.navigation li.active a,
#section0 .top-bar .top-bar-section ul.navigation li a:hover {
    color: #ffffff;
    border-bottom: 3px solid #7fd4f7;
}

#navBagTop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}

#navfixTop .top-bar {
    margin-bottom: 0;
}

/* Hero needs relative positioning for absolute bottom copy */
#section0 {
    position: relative;
}

#section0 .hero-copy {
    width: 100%;
    left: 0;
}

/* Tablet illustration sizing from live site */
#section2 #tablet1 {
    max-width: 70%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Thank-you modal (Foundation reveal substitute) */
#contactmsg.reveal-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    padding: 1.5rem 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

#contactmsg .close-reveal-modal:not(.button) {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 1.5rem;
    color: #999;
    text-decoration: none;
}

#contactmsg.open {
    display: block !important;
}

#submit.disabled {
    pointer-events: none;
    opacity: 0.65;
}

/* Mobile top-bar expand without Foundation JS */
.top-bar.expanded .top-bar-section {
    display: block !important;
}

@media only screen and (max-width: 40em) {
    #section2 #tablet1 {
        max-width: 95%;
    }

    #slide3info .columns {
        float: none !important;
        text-align: center !important;
        margin-right: 0 !important;
    }

    #section2 #slide3info h2 {
        font-size: 1.4em;
    }

    #section4 .contact-footer {
        position: relative !important;
        bottom: auto !important;
    }
}
