/* GLOBAL */


/* LAYOUT */

/* Global */
body {
    padding-top: 0 !important;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 81px);
}
.main {
    flex: 1;
}
.heading-sm {
    line-height: 1.2em;
}


/* Section Headings */
section .heading {
    padding: 70px 0;
}

/* Sections */
section .container {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Header */
@media (min-width: 992px) {
    .header .navbar-nav > li > a:hover,
    .header .navbar-nav > li > a.active {
        bottom: -2px;
        position: relative;
    }
}

/* Title */
.title {
    background-position: 50% 0;
    background-repeat: repeat;
    background-attachment: fixed;
    padding: 20px 0;
	position: relative;
}
.title h1 {
    margin-bottom: 30px;
}


/* COLOR */

/* Global */
.wrapper {
    background: #f8f8f8;
}

/* Section Headings */
section .heading {
    background: black;
}
section .heading * {
    color: white;
}

/* Header */
.header {
    background: #222;
    border-bottom: solid 2px #666;
    min-height: 67px;
}

/* Title */
.anchor.title {
    background-image:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url(../img/bg.jpg);
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
}
.anchor.title h1 {
    color: #fff;
}
.anchor.title h3 {
    color: #fff;
}


/* FONT */

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}
h1 {
    font-size: 7em;
    font-family: 'Carter One', cursive;
    line-height: 1em;
}
h3 {
    font-size: 1.5em;
}
h4 {
    font-size: 2.5em;
    line-height: 1.4em;
}
h5 {
    font-size: 2em;
}
p {
    font-size: 1.3em;
}

/* Section Headings */
section .heading h2 {
    font-size: 3.5em;
    line-height: 1.2em !important;
}

/* Title */
.title {
	text-align: center;
    text-transform: uppercase;
}


/* SERVICE BLOCK */
.service-block {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2),
    0 1px 1px 0 rgba(0,0,0,0.14),
    0 2px 1px -1px rgba(0,0,0,0.12);
}
.service-box-v1 li:hover {
    color: inherit;
}
.service-box-v1 p:after {
    background: black;
}
.service-box-v1 li:not(:first-child) {
    border-top: dotted 1px grey;
}


/* HEADER */
.header {
    margin-top: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
.header ul {
    list-style: none;
}
.header li {
    color: white !important;
}
.header li > a {
    color: #687074;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
}
.header li > a.active {
    border-bottom: solid 2px white;
    color: white;
}

.header-wrap {
    flex-basis: 960px;
    display: flex;
}

.header-brand {
    flex: 1;
    padding: 15px;
}
.header-brand img {
    height: 70px;
}

.header-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.header-menu a {
    padding: 9px 20px;
    text-decoration: none;
}
.header-menu li {
    float: left;
    position: relative;
    bottom: 5px;
}
.header-menu ul {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .header-menu ul {
        display: flex;
    }
    .header-menu li {
        bottom: -8px;
        flex-basis: 25%;
    }
    .header-brand img {
        height: 35px;
    }
    .header-brand {
        flex-grow: 0;
    }
    .header-menu {
        flex: 1;
        justify-content: center;
        justify-content: center;
        padding-top: 15px;
    }
}
@media (max-width: 512px) {
    .header-brand {
        display: none;
    }
}


/* PURLFOLIO */

/* Layout */
.purlfolio-inner img {
    width: 100%;
}
.purlfolio-content {
    display: flex;
    flex-flow: row wrap;
}
.purlfolio-wrap {
    padding: 15px;
}
.purlfolio-inner {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2),
    0 1px 1px 0 rgba(0,0,0,0.14),
    0 2px 1px -1px rgba(0,0,0,0.12);
    padding: 10px;
    position: relative;
}
.purlfolio-item {
    flex-basis: 100%;
}
@media(min-width: 500px) {
    .purlfolio-item {
        flex-basis: 50%;
    }
}
@media(min-width: 768px) {
    .purlfolio-item {
        flex-basis: 33.33%;
    }
}

/* Overlay */
.purlfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    flex-direction: column;
    display: none;
}
.purlfolio-inner:hover .purlfolio-overlay {
    display: flex;
}
.purlfolio-overlay h5, .purlfolio-overlay h6 {
    color: white;
}
.purlfolio-copy {
    flex: 3;
    display: flex;
    flex-direction: column;
}
.purlfolio-copy * {
    margin: auto 10px;
    line-height: 1.2em;
}
.purlfolio-buttons {
    flex: 2;
}
.purlfolio-buttons a,
.purlfolio-buttons a:active,
.purlfolio-buttons a:visited {
    background: black;
    color: white;
    border: 3px solid white;
    border-radius: 10px;
}
.purlfolio-buttons a:hover {
    background: white;
    color: black;
    border-color: white
}

/* Modal */
.purlfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
}
.purlfolio-modal img {
    height: 100%;
    display: none;
    object-fit: contain;
}
.pfl-m-wrap {
    position: fixed;
    top: 50px;
    left: 50px;
    bottom: 50px;
    right: 50px;
}
.pfl-m-inner {
    position: relative;
    display: inline-block;
    height: 100%;
}
.pfl-m-close {
    position: absolute;
    top: 15px;
    right: 15px;
}
.pfl-m-close,
.pfl-m-close:active,
.pfl-m-close:visited {
    border-radius: 10px;
    border: 3px solid white;
    background: black;
    color: white;
}
.pfl-m-close:hover {
    border-color: black;
    background: white;
    color: black;
}

/* Filters */
section.examples {
    padding-bottom: 100px;
}
.pfl-filters {
    margin: 50px 0 30px;
}
.pfl-filters a {
    font-weight: bold;
    border-radius: 5px;
    border: 3px solid #333;
    background: #333;
    color: whitesmoke;
    margin-bottom: 5px;
}
.pfl-filters a:hover {
    background: #666;
    color: whitesmoke;
}
.pfl-filters a.active,
.pfl-filters a.active:hover {
    background: whitesmoke;
    color: #333;
}


/* FOOTER */
.footer-v6 li {
    color: whitesmoke !important;
}
.footer-v6 .row {
    display: flex;
}
.footer-v6 .terms-menu {
    margin-right: 15px;
    flex: 3;
}
.footer-v6 .dark-social {
    flex: 2;
    display: flex;
    justify-content: space-around;
}
@media(max-width: 767px) {
    .footer-v6 .row {
        flex-flow: row wrap;
    }
    .footer-v6 .terms-menu {
       flex-basis: 100%;
       padding-bottom: 15px;
    }
    .footer-v6 .dark-social {
        margin: 0 100px;
        flex-basis: 100%;
    }
}


/* Mobile Adjustments */
@media(max-width: 767px) {
    /* Sig image */
    .intro img {
        width: 50% !important;
        text-align: left;
    }

    /* Header */
    .header ul {
        padding-left: 0;
    }

    /* Fonts */
    .header li > a {
        font-size: 12px;
    }
    section .heading {
        padding: 35px 0;
    }
    section .heading h2 {
        font-size: 2.5em;
    }
    h3 {
        font-size: 1.2em;
    }
    h4 {
        font-size: 1.8em;
        line-height: 1.2em;
    }

    /* Modal */
    .pfl-m-wrap {
        top: 5px;
        left: 5px;
        bottom: 5px;
        right: 5px;
    }
}
