/* HGD AB */

/* Animationer */
@import url('/resources/scripts/aos/2.3.1/aos.css');

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 86, 175, 205;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 243, 241, 237;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 6.5rem;
    --menu-height-scrolled: 6.5rem;
    --section-width: 150rem;

    /* 	Typography */
    --base-size: 1.8rem;

    /* 	Mobile nav */
    --activate-mobile-menu: 1024;
    --mobile-menu-height: 6.5rem;
    --mobile-menu-bg: var(--white-color);
    --menu-color: var(--black-color);
}

@media only screen and (max-width: 580px) {
    :root {
        --base-size: 1.5rem;
    }
}

/* Layout
========================================================================== */
.section-block {
    padding: 12rem 5rem;
}

/* Paddings */
.p-2 .section-block,
.p-2:not(.section-wrapper) {
    padding: 2rem;
}

.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
    padding-bottom: 0;
}

/* Margins */
.mb-2 {
    margin-bottom: 2rem;
}

/* Ovriga klasser */
.justify-center {
    justify-content: center;
}

@media only screen and (max-width: 1024px) {
    .section-block {
        padding: 10rem 3rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-block {
        padding: 7rem 2rem;
    }
}

/* Text och typsnitt
========================================================================== */
body {
    font-family: 'DM Sans', sans-serif;
}

/* Rubriker */
.section-title {
    padding-bottom: 0.2em;
    font-size: 4.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--gray-dark-color));
}

/* Ovriga klasser */
.text-block {
    max-width: 70rem;
}

.text-block-center {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 700;
}

@media only screen and (max-width: 1300px) {
    .section-title {
        font-size: 3.5rem;
    }

    .small-title {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-title {
        font-size: 2.8rem;
    }

    .small-title {
        font-size: 1.8rem;
    }
}

/* Knappar och speciella lankar
========================================================================== */
.btn-wrapper {
    margin-top: 2rem;
}

.btn-wrapper.center {
    text-align: center;
}

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.2rem 2.5rem;
    margin: 5px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 3rem;
    transition: all .4s ease;
}

.btn-primary-filled {
    color: rgb(var(--white-color));
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

.btn-primary-filled:hover {
    color: rgb(var(--primary-color));
    background-color: transparent;
}

.btn-white-filled,
.ContactSubmit {
    color: rgb(var(--black-color));
    border: 1px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

.btn-white-filled:hover,
.ContactSubmit:hover {
    color: rgb(var(--white-color));
    background-color: transparent;
}
/* Dropdown-knapp */
.dropdown-wrapper {
  position: relative;
  margin-left: 1rem;
}

.dropdown-wrapper.opened {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  
}

.dropdown {
  display: none;
  z-index: 1;
  position: absolute;
  top: 4rem;
  left: -5px;
  width: calc(100% + 2px);
  max-height: 50vh;
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  overflow: auto;
}

.dropdown-wrapper.opened .dropdown {
  display: grid;
}

.dropdown a {
  padding: 10px 5px;
  text-decoration: none;
  transition: .3s ease;
}

.dropdown a:hover {
  background: rgb(var(--secondary-color));
}

/* Arrow link */
.arrow-link {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.arrow-link::after {
    content: ' \f061';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    color: rgb(var(--primary-color));
    transition: transform .4s ease;
}

.arrow-link:hover::after {
    transform: translateX(5px);
    transition: transform .4s ease;
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-gray-light {
    background-color: rgb(var(--gray-light-color));
}

.bg-primary {
    background-color: rgb(var(--primary-color));
}

/* Text */
.text-white {
    color: rgb(var(--white-color));
}

/* Grafiska element
========================================================================== */
/* Border radius */
.br-3 {
    border-radius: 3rem;
    overflow: hidden;
}

/* Video ratio */
.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image,
.bg-video {
    position: relative;
    overflow: hidden;
}

.bg-image-wrapper,
.bg-video-wrapper {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Parallax */
.parallax {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax-cypern {
    background-image: url('/assets/images/berg-solnedgang-2000px.jpg');
}

.parallax .section-block {
    padding-top: 15rem;
    padding-bottom: 15rem;
}

.parallax .text-block {
    max-width: 75rem;
    padding: 7rem;
    background: rgb(var(--white-color), .9);
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}

@media only screen and (max-width: 980px) {
    .parallax .section-block {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }

    .parallax .text-block {
        padding: 5rem;
    }
}

@media only screen and (max-width: 580px) {
    .parallax .text-block {
        padding: 3rem;
    }
}

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.cards-wrapper .card-item {
    text-decoration: none;
    transition: .3s ease;
}

/* Bredder */
.cards-wrapper.w-33 .card-item {
    width: calc((100% / 3) - 2rem);
    margin: 1rem;
}

.cards-wrapper.w-100 .card-item {
    width: 100%;
    margin: 1rem 0;
}

@media only screen and (max-width: 1050px) {

    /* Bredder */
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
        margin: 1rem;
    }
}

@media only screen and (max-width: 750px) {

    /* Bredder */
    .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

/* Card 2-5 */
.card-2-5 .card-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 2rem;
    border: 1px solid rgb(var(--gray-light-color));
    background-color: rgb(var(--gray-light-color));
    transition: .3s ease;
}

.card-2-5 a.card-item:hover {
    background-color: transparent;
}

.card-2-5 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
}

.card-2-5 .card-header i {
    font-size: 2.6rem;
}

.card-2-5 .card-body {
    padding: 0 2rem;
}

/* Card 3-1 */
.card-3-1 .image-wrapper.br-3,
.card-3-1 .video-wrapper.br-3 {
    border-radius: 3rem 3rem 0 0;
}

.card-3-1 .btn {
    padding: .9rem 1.3rem;
}

.card-3-1 .btn-white-filled:hover {
    color: rgb(var(--primary-color));
}

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.split-wrapper.reverse {
    flex-direction: row-reverse;
}

.split-content {
    width: 50%;
    padding: 5rem;
}

.split-image {
    width: 50%;
}

/* Centrera content */
.split-wrapper .align-center {
    align-self: center;
}

@media screen and (max-width: 1024px) {

    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
        background: transparent;
    }

    .split-content {
        width: 100%;
        padding: 0 0 3rem;
        background: transparent;
    }

    .split-image {
        width: 100%;
    }

    /* Centrera content */
    .split-wrapper .align-center {
        align-self: flex-start;
    }

    /* Split med bg */
    .split-wrapper.bg-gray-light .split-content,
    .split-wrapper .split-content.bg-gray-light {
        padding: 3rem;
        background: rgb(var(--gray-light-color));
    }
}

/* Header / Navigation
========================================================================== */

header:not(.mobile-menu) {
    top: 1rem;
    background-color: transparent;
}

header:not(.mobile-menu) .container {
    padding: 0 2rem;
    border-radius: 5rem;
    background: rgb(var(--white-color), .9);
    box-shadow: 0 0 25px rgb(var(--black-color), .1);
    transition: .3s ease;
}

header:not(.scrolled, .mobile-menu) .container {
    box-shadow: 0 0 25px rgb(var(--black-color), 0);
    background: rgb(var(--white-color), 0);
}

/* Logo */
.header-logo {
    flex: 1 1 0;
}

.header-logo a {
    font-size: 2.8rem;
    font-weight: 600;
    color: rgb(var(--primary-color));
    text-decoration: none;
}

header:not(.scrolled, .active-menu) .header-logo a {
    color: rgb(var(--white-color));
}

/* Nav */
.TemplateMenu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(var(--black-color));
}

header:not(.scrolled, .mobile-menu) .TemplateMenu>li:not(.active)>a:not(:hover) {
    color: rgb(var(--white-color));
}

/* CTA  */
.header-cta-wrapper {
    z-index: 9;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.flag a {
    display: flex;
    align-items: center;
    margin: 0 8px;
    font-size: 1.4rem;
    text-decoration: none;
    transition: .2s ease;
}

.flag div {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    margin-right: 4px;
    border-radius: 50%;
}
.flag-selection{
     width: 3rem;
    height: 3rem;
        border-radius: 50%;
}
.fa-sort-down{
    margin-left: 1.2rem;
}


/* Mobilmeny */
header.mobile-menu:not(.scrolled) {
    background: transparent
}

.mobile-menu .TemplateMenu {
    text-align: center;
}

@media only screen and (max-width: 580px) {

    /* CTA  */
    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
    }
}

/* ==========================================================================
Startsida
========================================================================== */

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    min-height: 95vh;
    margin-top: calc(-2 * var(--menu-height));
    background-color: rgb(var(--black-color), .25);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    background-position: center left;
    overflow: visible;
}

.top-section .section-block {
    width: 100%;
}

.top-section .section-title {
    font-size: 5.5rem;
}

/* Bouncing arrow */
.bouncing-arrow-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 20rem;
    height: 6.8rem;
    background-image: url(/assets/images/graphics/arrow-bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: translateX(-50%);
}

.bouncing-arrow {
    position: relative;
    bottom: -2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    text-decoration: none;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 2rem;
    font-weight: 300;
    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.arrow-animate {
    position: absolute;
    left: 50%;
    bottom: -4rem;
    width: 9rem;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-3px);
    }
}

@media only screen and (max-width: 1024px) {
    .top-section .section-title {
        font-size: 4rem;
    }
}

/* ==========================================================================
Undersidor
========================================================================== */

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: flex-end;
    min-height: 60vh;
    padding-top: var(--menu-height);
    margin-top: calc(-1 * var(--menu-height));
    background-color: rgb(var(--black-color), .25);
}

.hero .section-block {
    width: 100%;
}

.hero .section-title {
    font-size: 5.5rem;
}

@media only screen and (max-width: 580px) {
    .hero {
        min-height: 40rem;
    }

    .hero .section-title {
        font-size: 4rem;
    }
}

/* ==========================================================================
Undersida: Kop bostad & Hyr bostad
========================================================================== */
.card-buy-rent {
    padding: 7rem;
}

@media screen and (max-width: 1024px) {
    .card-buy-rent {
        padding: 3rem;
    }
}

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .section-block-wrapper {
    justify-content: space-between;
}

.section-contact .col-2 {
    --base-size: 1.6rem;

    position: relative;
    width: 55rem;
    max-width: 50%;
    padding: 4rem;
    margin-top: -25rem;
    border-radius: 3rem;
    border: 2rem solid rgb(var(--white-color));
    background: rgb(var(--primary-color));
}

.ContactForm p {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgb(var(--white-color));
}

.ContactForm input[type="text"],
.ContactForm input[type="number"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm input[type="date"],
.ContactForm input[type="datetime-local"],
.ContactForm select,
.ContactForm textarea,
.ContactForm .file-item,
.ContactForm .file-dropzone {
    border-radius: 5px;
    border-color: transparent;
}

@media only screen and (max-width: 980px) {
    .section-contact .col-2 {
        width: 100%;
        max-width: 100%;
        margin-top: 3rem;
        border: none;
    }
}

@media only screen and (max-width: 480px) {
    .section-contact .col-2 {
        padding: 2.5rem;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 0 5rem;
    background: rgb(var(--gray-light-color));
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12rem 0 5rem;
}

.footer-menu {
    width: 20%;
}

.footer-menu-large {
    width: 30%;
}

.footer .text-label {
    padding: 0 0 1rem;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
}

.footer-submenu {
    padding: 0;
    margin: 0 0 3rem;
    list-style: none;
}

.footer-top li,
.footer-top p:not(.text-label),
.footer-top a {
    font-size: 1.6rem;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
    color: rgb(var(--primary-color));
}

/* Footer logos */
.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-logos .logo-item {
    height: 10rem;
    padding: 4px;
    margin: 0 1rem 1rem 0;
}

.footer-logos .logo-item img {
    height: 100%;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgb(var(--primary-color));
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
    opacity: .6;
}

@media only screen and (max-width: 1200px) {
    .footer {
        padding: 0 3rem;
    }

    /* Footer top */
    .footer-menu {
        width: 33.333%;
    }

    .footer-menu-large {
        width: 100%;
    }

    .footer-menu-large p {
        max-width: 55rem;
    }
}

@media only screen and (max-width: 750px) {

    /* Footer top */
    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

@media only screen and (max-width: 580px) {
    .footer {
        padding: 0 2rem;
    }

    /* Footer top */
    .footer-top {
        padding: 5rem 0 0;
    }

    /* Footer bottom */
    .footer-bottom {
        flex-direction: column-reverse;
    }

    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}