/* =========================================================
   MYAPARTMENTCARE HOME HERO
   Full background: assets/images/home-page.png
========================================================= */

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("../assets/images/home-page.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    border-bottom: 1px solid #edf4ef;
}


/* =========================================================
   SOFT WHITE CENTER LAYER
========================================================= */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.90) 25%,
            rgba(255, 255, 255, 0.54) 47%,
            rgba(255, 255, 255, 0.08) 72%,
            rgba(255, 255, 255, 0) 100%
        );
}


/* =========================================================
   BOTTOM SOFT FADE
========================================================= */

.hero::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 65px;
    z-index: 0;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.45)
        );
}


/* =========================================================
   HERO CONTAINER
========================================================= */

.hero .hero-container {
    width: min(94%, 1450px);
    min-height: 610px;

    margin: 0 auto;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero .hero-content {
    width: min(900px, 92vw);

    padding: 30px 20px 42px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


/* =========================================================
   MAIN LOGO
========================================================= */

.hero .hero-main-logo {
    width: min(100%, 680px);
    max-height: 185px;

    margin: 0 auto 20px;

    object-fit: contain;
    object-position: center;

    filter:
        drop-shadow(
            0 7px 14px rgba(8, 84, 53, 0.08)
        );
}


/* =========================================================
   MAIN HEADING
   CLEANER + LESS HEAVY
========================================================= */

.hero .hero-content h1 {
    margin: 0 0 18px;

    color: #082c35;

    font-size: clamp(30px, 2.35vw, 40px);
    font-weight: 700;

    line-height: 1.12;
    letter-spacing: -0.45px;

    text-align: center;
    white-space: normal;
}

.hero .hero-content h1 span {
    display: inline;

    color: #079447;
    font-weight: 700;

    white-space: normal;
}


/* =========================================================
   SECONDARY HEADING
========================================================= */

.hero .hero-content h2 {
    margin: 0 0 17px;

    color: #183c46;

    font-size: clamp(19px, 1.35vw, 24px);
    font-weight: 700;

    line-height: 1.3;

    text-align: center;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.hero .hero-content p {
    max-width: 720px;

    margin: 0 auto 25px;

    color: #50625c;

    font-size: 16px;
    line-height: 1.62;

    text-align: center;
}


/* =========================================================
   STORE BUTTONS
========================================================= */

.hero .store-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: row;
    flex-wrap: nowrap;

    gap: 16px;

    margin: 0 auto;
}


/* =========================================================
   STORE BADGE LINKS
========================================================= */

.hero .store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}


/* =========================================================
   COMMON STORE IMAGE SETTINGS
========================================================= */

.hero .store-badge img {
    display: block;

    width: auto;
    max-width: none;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   GOOGLE PLAY
========================================================= */

.hero .store-badge:first-child img {
    height: 56px;
}


/* =========================================================
   APP STORE
========================================================= */

.hero .store-badge:last-child img {
    height: 47px;
}


/* =========================================================
   STORE BADGE HOVER
========================================================= */

.hero .store-badge:hover {
    transform: translateY(-2px);

    filter: brightness(1.05);
}


/* =========================================================
   DISABLE OLD HERO ELEMENTS
========================================================= */

.hero .hero-apartments,
.hero .hero-visual,
.hero .hero-building-placeholder,
.hero .phone-mockup {
    display: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .hero {
        min-height: 560px;
        background-position: center center;
    }


    /* HERO CONTAINER */

    .hero .hero-container {
        min-height: 560px;

        display: flex;
        align-items: center;
        justify-content: center;
    }


    /* HERO CONTENT */

    .hero .hero-content {
        width: min(94%, 720px);

        padding: 35px 16px;

        text-align: center;
    }


    /* LOGO */

    .hero .hero-main-logo {
        width: min(100%, 540px);
        max-height: 155px;

        margin: 0 auto 18px;
    }


    /* MAIN HEADING */

    .hero .hero-content h1 {
        font-size: 32px;
        font-weight: 700;

        line-height: 1.12;
        letter-spacing: -0.4px;

        text-align: center;
    }

    .hero .hero-content h1 span {
        font-weight: 700;
    }


    /* SECONDARY HEADING */

    .hero .hero-content h2 {
        font-size: 21px;

        text-align: center;
    }


    /* DESCRIPTION */

    .hero .hero-content p {
        max-width: 600px;

        margin-left: auto;
        margin-right: auto;

        text-align: center;
    }


    /* STORE BUTTONS */

    .hero .store-buttons {
        flex-direction: row;
        flex-wrap: nowrap;

        gap: 14px;
    }


    /* GOOGLE PLAY */

    .hero .store-badge:first-child img {
        height: 52px;
    }


    /* APP STORE */

    .hero .store-badge:last-child img {
        height: 44px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .hero {
        min-height: 585px;
        background-position: center center;
    }


    /* HERO CONTAINER */

    .hero .hero-container {
        min-height: 585px;
    }


    /* HERO CONTENT */

    .hero .hero-content {
        width: 100%;

        padding: 28px 16px;
    }


    /* LOGO */

    .hero .hero-main-logo {
        width: min(100%, 400px);
        max-height: 125px;

        margin: 0 auto 16px;
    }


    /* MAIN HEADING */

    .hero .hero-content h1 {
        font-size: 27px;
        font-weight: 700;

        line-height: 1.12;
        letter-spacing: -0.3px;

        text-align: center;
    }

    .hero .hero-content h1 span {
        font-weight: 700;
    }


    /* SECONDARY HEADING */

    .hero .hero-content h2 {
        font-size: 18px;
        line-height: 1.3;

        text-align: center;
    }


    /* DESCRIPTION */

    .hero .hero-content p {
        max-width: 400px;

        font-size: 14px;
        line-height: 1.55;

        text-align: center;
    }


    /* STORE BUTTONS */

    .hero .store-buttons {
        flex-direction: row;
        flex-wrap: nowrap;

        gap: 10px;
    }


    /* GOOGLE PLAY */

    .hero .store-badge:first-child img {
        height: 46px;
    }


    /* APP STORE */

    .hero .store-badge:last-child img {
        height: 39px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    /* LOGO */

    .hero .hero-main-logo {
        width: min(100%, 350px);
        max-height: 115px;
    }


    /* MAIN HEADING */

    .hero .hero-content h1 {
        font-size: 25px;
        font-weight: 700;

        line-height: 1.12;
        letter-spacing: -0.2px;
    }

    .hero .hero-content h1 span {
        font-weight: 700;
    }


    /* SECONDARY HEADING */

    .hero .hero-content h2 {
        font-size: 17px;
    }


    /* STORE BUTTONS */

    .hero .store-buttons {
        flex-direction: row;
        flex-wrap: nowrap;

        gap: 8px;
    }


    /* GOOGLE PLAY */

    .hero .store-badge:first-child img {
        height: 41px;
    }


    /* APP STORE */

    .hero .store-badge:last-child img {
        height: 35px;
    }
}