/* =========================================================
   ROBERTSON REALTY
   HOMEPAGE MOVING ANNOUNCEMENT OVERLAY
   File: assets/css/moving-home-overlay.css
========================================================= */


/* =========================================================
   OVERLAY POSITIONING

   The parent hero/slider on index.php MUST have:
   position: relative;

   Example:
   .hero-slider {
       position: relative;
   }
========================================================= */

.move-home-overlay {
    position: absolute;
    inset: 0;

    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    /*
       The overlay itself stays transparent.
       Only the center announcement panel gets
       the 50% transparent black background.
    */
    background: transparent;

    text-align: center;

    /*
       Allows clicks to pass through the transparent
       area surrounding the announcement.
    */
    pointer-events: none;
}


/* =========================================================
   CENTER ANNOUNCEMENT PANEL
========================================================= */

.move-home-content {
    position: relative;

    width: min(850px, 92%);

    padding: 55px 65px;

    /*
       50% transparent black background
    */
    background: rgba(0, 0, 0, 0.50);

    color: #ffffff;

    /*
       Robertson Realty red accent
    */
    border-top: 4px solid #e31b23;

    /*
       Subtle shadow around panel
    */
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.30);

    /*
       Makes links/buttons inside the panel clickable
    */
    pointer-events: auto;
}


/* =========================================================
   WE'VE MOVED BADGE
========================================================= */

.move-home-badge {
    display: inline-block;

    margin: 0 0 22px;

    padding: 8px 20px;

    background: #e31b23;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* =========================================================
   MAIN HEADLINE
========================================================= */

.move-home-content h1 {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(46px, 5.5vw, 76px);
    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -1px;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.55);
}


/* "A New Chapter." */

.move-home-content h1 span {
    font-style: italic;
}


/* =========================================================
   SUBTITLE
========================================================= */

.move-home-subtitle {
    margin: 22px 0 0;
    padding: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 400;

    font-style: italic;

    line-height: 1.4;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.65);
}


/* =========================================================
   RED DIVIDER
========================================================= */

.move-home-divider {
    width: 65px;
    height: 3px;

    margin: 26px auto;

    background: #e31b23;
}


/* =========================================================
   ADDRESS
========================================================= */

.move-home-address {
    margin: 0 0 30px;
    padding: 0;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.65;

    letter-spacing: 0.3px;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.70);
}


/* =========================================================
   READ OUR STORY BUTTON
========================================================= */

.move-home-button {
    display: inline-block;

    padding: 14px 32px;

    border: 2px solid #ffffff;

    background: transparent;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 2px;

    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.move-home-button:hover,
.move-home-button:focus {
    background: #e31b23;

    border-color: #e31b23;

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-2px);
}


.move-home-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);

    outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 2000px) {

    .move-home-overlay {
        position: relative;
        inset: auto;
        z-index: 30;
        display: flex;
        justify-content: center;
        padding: 25px 25px 0;
    }

    .move-home-content {
        width: min(760px, 94%);

        padding: 45px;
    }

    .move-home-content h1 {
        font-size: clamp(42px, 7vw, 62px);
    }

    .move-home-subtitle {
        font-size: 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 992px) {

    .move-home-overlay {
        position: relative;
        inset: auto;

        padding: 0 15px 20px;

        z-index: 30;
    }

    .move-home-content {
        width: 100%;

        padding: 35px 20px;

        border-top-width: 3px;
    }

 

    .move-home-badge {
        margin-bottom: 18px;

        padding: 7px 16px;

        font-size: 10px;

        letter-spacing: 2px;
    }

    .move-home-content h1 {
        font-size: clamp(35px, 10vw, 46px);

        line-height: 1.08;

        letter-spacing: 0;
    }

    .move-home-subtitle {
        margin-top: 17px;

        font-size: 19px;

        line-height: 1.4;
    }

    .move-home-divider {
        width: 50px;

        margin: 20px auto;
    }

    .move-home-address {
        margin-bottom: 23px;

        font-size: 14px;

        line-height: 1.55;
    }

    .move-home-button {
        padding: 12px 24px;

        font-size: 11px;

        letter-spacing: 1.5px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .move-home-overlay {
        position: relative;
        inset: auto;
        z-index: 2;
    }

    .move-home-content {
        padding: 28px 16px;
    }

    .move-home-content h1 {
        font-size: 32px;
    }

    .move-home-subtitle {
        font-size: 17px;
    }

    .move-home-address {
        font-size: 13px;
    }

}