/* ======================== PAGE HERO ======================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* full height */
.hero.full-h {
    min-height: 100dvh;
}

/* flex height */
.hero.flex-h {
    height: 100%;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-overlay:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    content: '';
}

.bg-video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* O <picture> que embrulha a imagem de fundo responsiva leva a mesma classe: sem
   isto ficava `display: inline` (o valor por defeito do elemento) e o `height:
   100%` do <img> passava a resolver contra uma caixa de altura zero em vez de
   contra o contentor.

   `.bg-video` pela mesma razão: quando o vídeo de fundo não se justifica (dados
   poupados, ligação lenta, movimento reduzido, ecrã de telemóvel) o elemento é
   substituído pela imagem — que herda a classe do vídeo, não a de imagem. */
picture.bg-image,
picture.bg-video,
img.bg-video {
    display: block;
}

img.bg-video {
    object-position: 50% 50%;
}

.hero-container {
    margin: auto;
    padding: calc(var(--main-header-height) + 70px) 10% 70px 10%;
    width: 100%;
}

.hero-container.center {
    display: flex;
    justify-content: center;
}

.hero-content.center {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

/* Hero Highlights */

.hero-highlights {
    margin: 50px 0 0 0;
    padding: 0;
}

.hero-highlight {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 15px;
    text-align: left;
}

.hero-highlight img {
    margin: 10px;
    max-width: 25px;
    max-height: 25px;
}

.hero-highlight span {
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    color: #ffffff; /* intentional: white text over dark video hero */
}

@media (max-width: 991px) {

    .hero-container {
        margin: auto;
        padding: calc(var(--main-header-height) + 70px) 2% 70px 2%;
        width: 100%;
    }

    .hero-container.mobile-centered {
        display: flex;
        justify-content: center;
    }

    .hero-content.mobile-centered {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .headline-svg-wrapper.mobile-centered {
        margin: 0 auto;
        justify-content: center;
    }
}












.headline-svg-wrapper {
    display: flex;
    width: 100%;
    max-width: 250px;
    padding: 0 0 20px 0;
}

.headline-svg-wrapper.center {
    margin: 0 auto;
    justify-content: center;
}

.headline-svg-wrapper img {
    display: block;
    width: 100%;
}

.headline-svg-wrapper svg {
    display: block;
    max-width: 150px;
}

.headline-svg-wrapper svg path {
    fill: #ffffff;
}

.headline {
    display: block;
    margin: 0 0 25px 0;
    padding: 0;
    color: #ffffff;
}

.headline span {
    padding: 7px;
    color: #ffffff;
    background-color: #000000;
}

.hero-content {
    width: 95%;
    max-width: 800px;
}

.hero-content .hero-paragraph {
    display: block;
    margin: 0 0 20px 0;
    padding: 0;
    font-weight: var(--weight-light);
    font-size: var(--text-xl);
    line-height: 20px; /* intentional: specific hero readability, between line-tight and line-snug */
    color: #ffffff; /* intentional: white text over dark hero */
}

.hero-content .hero-paragraph span {
    font-weight: 500;
}

.hero-content .hero-price-paragraph {
    font-weight: var(--weight-regular);
    font-size: var(--text-xl);
    line-height: 20px; /* intentional: specific hero readability */
    color: #ffffff; /* intentional: white text over dark hero */
}

.hero-content .hero-price-paragraph span {
    font-weight: 500;
}

.default-notes {
    position: relative;
    width: 100%;
    margin: 0 auto 30px auto;
    padding: 0 10%;
}

.default-notes p {
    margin: 0;
    color: #a5a5a5;
    font-size: 9px;
    line-height: 13px;
    font-weight: 400;
    text-align: center;
}

.hero-content button,
.hero-content a {
    margin: 10px 3px 0 0 !important;
}

.hero-content button:last-child,
.hero-content a:last-child {
    margin: 10px 0 0 0 !important;
}






/* scroll down animation */

.icon-scroll {
    width: 20px;
    height: 40px;
    box-shadow: inset 0 0 0 1px #dcdcdc;
    border-radius: 25px;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.icon-scroll,
.icon-scroll:before {
    position: absolute;
    left: 50%;
    top: -50px;
}

.icon-scroll:before {
    content: '';
    width: 4px;
    height: 4px;
    background: #dcdcdc;
    margin-left: -2px;
    top: 8px;
    border-radius: 4px;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-name: scroll;
}

.icon-scroll div {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.icon-scroll span {
    position: absolute;
    display: none;
    left: 130%;
    width: 100px;
    top: 50%;
    font-size: 12px;
    font-weight: 300;
    color: #ffffff;
    text-align: left;
    transform: translate(0px, -50%);
}

@keyframes scroll {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(46px);
    }
}

/** For desktop devices **/
@media (min-width: 992px) {

    .hero-highlights {
        max-width: 100%;
    }

    .hero-highlight {
        display: flex;
        justify-content: center;
    }

}