//== Variables

//== Elements
.hdeng-footer-background() {
    background-color: @hdeng-footer-bg-default-color;
    box-shadow: 0 4px 4px -2px rgba(21, 21, 21, 0.4);
}

.hdeng-footer-content() {
    // Silence
}

.hdeng-footer-info() {
    float: left;
    width: 70%;
    padding-right: floor(@hdeng-spacing / 2);

    @media (max-width: @hdeng-breakpoint-default) {
        width: 50%;
    }

    @media (max-width: @hdeng-breakpoint-mobile) {
        width: 100%;
        padding: 0;
    }
}

.hdeng-footer-contact() {
    float: left;
    width: 30%;
    padding-left: floor(@hdeng-spacing / 2);
    text-align: right;

    @media (max-width: @hdeng-breakpoint-default) {
        width: 50%;
    }

    @media (max-width: @hdeng-breakpoint-mobile) {
        width: 100%;
        padding: 0;
        text-align: left;
    }
}

.hdeng-footer-menu() {
    clear: both;

    ul {
        padding: 0;
        margin: 0;
    }

    li {
        display: inline-block;
        margin: 0 @hdeng-spacing floor(@hdeng-spacing / 2) 0;

        @media (max-width: @hdeng-breakpoint-mobile) {
            display: block;
            margin-right: 0;
        }
    }
}

//== Generates
.hdeng-footer-critical-generate() {
    // Silence
}

.hdeng-footer-generate(@background: true) {
    .footer {
        padding: (@hdeng-spacing * 2) 0;

        color: @hdeng-footer-font-default-color;
        font-size: 12px;

        @media (max-width: @hdeng-breakpoint-mobile) {
            padding: @hdeng-spacing 0;
        }
    }

    .footer__container {
        .hdeng-container();
        .hdeng-content-padding();
    }

    .footer__content {
        .hdeng-footer-content();
    }

    .footer__info {
        .hdeng-footer-info();
    }

    .footer__contact {
        .hdeng-footer-contact();
    }

    .footer__title {
        color: @hdeng-footer-font-contrast-color;
    }

    .footer__menu {
        .hdeng-footer-menu();
    }
}

.hdeng-footer-generate(@background: true) when (@background) {
    .footer {
        .hdeng-footer-background();
    }
}
