﻿/* ----------------------------------------------------------------

	Layouts.scss

-----------------------------------------------------------------*/
/* ----------------------------------------------------------------
	Bootstrap Adjustments
-----------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: auto;
    }
}

[class*=col-]:not([class*=sticky-]):not([class*=position-]) {
    position: relative;
}

@media (max-width: 575.98px) {
    .card-columns {
        -moz-column-count: 3;
        column-count: 3;
        -moz-column-gap: 1.25rem;
        column-gap: 1.25rem;
        orphans: 1;
        widows: 1;
    }

        .card-columns.grid-2 {
            -moz-column-count: 2;
            column-count: 2;
        }

        .card-columns > * {
            display: inline-block;
            width: 100%;
        }
}

.form-group {
    margin-bottom: 1rem;
}

/*	Custom Bootstap Columns */
.col-1-5 {
    flex: 0 0 auto;
    width: 20%;
}

@media (min-width: 576px) {
    .col-sm-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 768px) {
    .col-md-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 1200px) {
    .col-xl-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 1400px) {
    .col-xxl-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

#wrapper {
    position: relative;
    float: none;
    width: 100%;
    margin: 0 auto;
    background-color: var(--cnvs-body-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    body:not(.stretched) #wrapper {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    body:not(.stretched) #wrapper {
        max-width: 1400px;
    }
}

.stretched #wrapper {
    width: 100%;
    margin: 0;
    box-shadow: none;
}

/* ----------------------------------------------------------------
	Sections
-----------------------------------------------------------------*/
.section {
    position: relative;
    width: 100%;
    margin: var(--cnvs-section-margin) 0;
    padding: var(--cnvs-section-padding) 0;
    background-color: var(--cnvs-section-bg);
    overflow: hidden;
}

    .section .container {
        z-index: 2;
    }

        .section .container + .video-wrap {
            z-index: 1;
        }

.parallax {
    --cnvs-parallax-ratio: 2;
    --cnvs-parallax-width: 100%;
    --cnvs-parallax-height: calc(1px * (var(--cnvs-scroll-height) + ((var(--cnvs-parallax-ratio) * 100))));
    --cnvs-parallax-factor: -1px;
    --cnvs-parallax-value: calc(var(--cnvs-parallax-factor) * var(--cnvs-parallax-ratio) * var(--cnvs-scroll-percent));
    overflow: hidden;
    will-change: transform;
    position: relative;
}

.parallax-bg {
    position: absolute !important;
    z-index: -1;
    left: 0;
    top: 0;
    max-width: none !important;
    width: var(--cnvs-parallax-width) !important;
    height: var(--cnvs-parallax-height) !important;
    -o-object-fit: cover;
    object-fit: cover;
    transform: translate3d(0px, var(--cnvs-parallax-value), 0px);
    transition: transform 0.1s linear;
    will-change: transform;
}

.parallax[data-parallax-to=bottom] {
    --cnvs-parallax-factor: 1px;
}

    .parallax[data-parallax-to=bottom] .parallax-bg {
        top: auto;
        bottom: 0;
    }

.parallax[data-parallax-direction=horizontal] {
    --cnvs-parallax-width: calc(1px * (var(--cnvs-scroll-width) + ((var(--cnvs-parallax-ratio) * 100))));
    --cnvs-parallax-height: 100%;
}

    .parallax[data-parallax-direction=horizontal] .parallax-bg {
        transform: translate3d(var(--cnvs-parallax-value), 0px, 0px);
    }

    .parallax[data-parallax-direction=horizontal][data-parallax-to=right] {
        --cnvs-parallax-factor: 1px;
    }

        .parallax[data-parallax-direction=horizontal][data-parallax-to=right] .parallax-bg {
            left: auto;
            right: 0;
        }

.mobile-parallax,
.video-placeholder {
    background-size: cover !important;
    background-attachment: scroll !important;
    background-position: center center !important;
}

.revealer-image {
    position: relative;
    bottom: -100px;
    transition: bottom 0.3s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .revealer-image {
        transition: none;
    }
}

.section:hover .revealer-image {
    bottom: -50px;
}

/* ----------------------------------------------------------------
	Columns & Grids
-----------------------------------------------------------------*/
.postcontent,
.sidebar {
    position: relative;
}

/*-----------------------------------------------------------------------------------
	typography.scss
-----------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------
	Basic
-----------------------------------------------------------------*/
dl, dt, dd, ol, ul, li {
    margin: 0;
    padding: 0;
}

em {
    font-family: var(--cnvs-secondary-font);
}

.clear {
    clear: both;
    display: block;
    font-size: 0px;
    height: 0px;
    line-height: 0;
    width: 100%;
    overflow: hidden;
}

:active,
:focus {
    outline: none !important;
}

/* ----------------------------------------------------------------
	Typography
-----------------------------------------------------------------*/
body {
    line-height: 1.5;
    font-size: var(--cnvs-font-size-body);
    font-family: var(--cnvs-body-font);
    background: var(--cnvs-body-bg);
}

    body:not(.stretched) {
        background: var(--cnvs-body-bg-boxed);
    }

a {
    color: var(--cnvs-link-color);
}

    a:not(.btn-link):not(.text-decoration-underline):not(.more-link) {
        text-decoration: none !important;
    }

    a:hover {
        color: var(--cnvs-link-hover-color);
    }

    a img {
        border: none;
    }

img {
    max-width: 100%;
}

iframe {
    width: 100%;
    border: 0 !important;
    overflow: hidden !important;
}

/* ----------------------------------------------------------------
	Basic Layout Styles
-----------------------------------------------------------------*/
h1, .h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    color: var(--cnvs-heading-color);
    font-weight: var(--cnvs-headings-font-weight);
    line-height: var(--cnvs-line-height-base);
    margin: 0 0 30px 0;
    font-family: var(--cnvs-primary-font);
}

h5, .h5,
h6,
.h6 {
    font-weight: bold;
    margin-bottom: 20px;
}

h1, .h1 {
    font-size: var(--cnvs-font-size-h1);
}

h2, .h2 {
    font-size: var(--cnvs-font-size-h2);
}

h3, .h3 {
    font-size: var(--cnvs-font-size-h3);
}

h4, .h4 {
    font-size: var(--cnvs-font-size-h4);
}

h5, .h5 {
    font-size: var(--cnvs-font-size-h5);
}

h6, .h6 {
    font-size: var(--cnvs-font-size-h6);
}

.h5 {
    font-size: 1.25rem;
}

.h6 {
    font-size: 1rem;
}

h4, .h4 {
    font-weight: 600;
}

h5, .h5,
h6,
.h6 {
    font-weight: bold;
}

@media (max-width: 767.98px) {
    h1, .h1 {
        font-size: 1.75rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    h3, .h3 {
        font-size: 1.25rem;
    }

    h4, .h4 {
        font-size: 1rem;
    }
}

h1 > span:not(.nocolor):not(.badge), .h1 > span:not(.nocolor):not(.badge),
h2 > span:not(.nocolor):not(.badge),
.h2 > span:not(.nocolor):not(.badge),
h3 > span:not(.nocolor):not(.badge),
.h3 > span:not(.nocolor):not(.badge),
h4 > span:not(.nocolor):not(.badge),
.h4 > span:not(.nocolor):not(.badge),
h5 > span:not(.nocolor):not(.badge),
.h5 > span:not(.nocolor):not(.badge),
h6 > span:not(.nocolor):not(.badge),
.h6 > span:not(.nocolor):not(.badge) {
    color: var(--cnvs-themecolor);
}

p,
pre,
ul,
ol,
dl,
dd,
blockquote,
address,
table,
fieldset,
form {
    margin-bottom: 30px;
}

    blockquote p:last-child {
        margin-bottom: 0;
    }

small, .small {
    font-size: var(--cnvs-font-size-small);
}
