:root {
    /*--primary: #253031;*/
    /*--secondary: #603c38;*/

    /* new colors from 5/14*/
    --primary: #293736;
    --secondary: #6c3f40;
    --button-hover: #80504b;
    --white: #f2f2f2;
}

body {
    /*font-family: 'Work Sans', sans-serif;*/
    font-family: "Playfair Display", serif;
    margin: 0;
    background-color: #fff;
    overflow-x: hidden;
}
/**Scrollbar**/
::-webkit-scrollbar {
    max-width: 10px;
    width: 1rem;
}

/* Track */
::-webkit-scrollbar-track {
    background: #363838;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #704641;
}

::-webkit-scrollbar-thumb:active {
    background:#905a54;
}

/* Top Hero Section */

.hero-row {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.hero-pic {
    flex: 35%;
}

.hero-pic img {
    max-width: 100%;
    height: 103.5%;
    object-fit: cover;
    width: 100%;
}

.hero-text {
    flex: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 85vh;
    background: var(--primary);
    margin: 0;
    padding: 0;

}

.hero-text button {
    font-size: 1vmax;
    float: right;
    margin: 5% 20%;
    color: #f2f2f2;
}

.hero-text-slogan {
    padding: 0 20%;
    font-size: 2rem;
    color: var(--white);
}

.hero-text-subtext {
    text-align: center;
    padding: 0 20%;
    font-size: 1.75rem;
    color: var(--white);
}

.hero-text img {
    position: relative;
    margin: auto;
    padding: 20% 20% 10%;
    width: 100%;
}

@media screen and (max-width: 950px) {
    .hero-row {
        flex-direction: column-reverse;
        height: 125vh;
        margin-bottom: 20%;
    }

    .hero-text-slogan {
        font-size: 1.25rem;
        text-align: center;
    }

    .hero-text-subtext {
        font-size: .9rem;
        text-align: center;
    }

    .hero-text {
        /*flex: 75%;*/
        height: auto;
    }

    .hero-pic {
        /*flex: 25%;*/
        margin-bottom: 0;
    }

    .hero-text button {
        font-size: 1.5vmax;
    }
}

/* About Us Section */

.about-container {
    display: flex;
    flex-direction: row;
    margin: 12% 10% 0% 10%;
    color: var(--primary);
}


.about-img {
    width: 22.5vmax;
    height: 22.5vmax;
    transform: translatey(5%);
    object-fit: cover;
}

.about-text h1 {
    font-size: 3rem;

}

.about-text p {
    font-size: 1.1rem;
    line-height: 2.5;
}

@media screen and (max-width: 1300px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        /*border: 1px red solid;*/
    }

    .about-text {
        width: 100%;
    }

    .about-text h1 {
        /*font-size: 3rem;*/
        text-align: center;
    }


}

@media screen and (max-width: 950px) {
    .about-img {
        transform: translatey(20%);
    }

    .about-text h1 {
        font-size: 2.25rem;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
        line-height: revert;

    }
}

/* Our Process Section */

.process-container {
    display: flex;
    flex-direction: column;

    margin: -3% 0 0;
    background: var(--primary);
}

.process-container h1 {
    font-size: 3rem;
    color: var(--white);
    margin: 5% 10%;
}

.process-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 5% 5% 5%;
}

.process-single {
    flex: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;

    flex-grow: 0;
    padding: 0 5% 5%;
}

.process-single-number {
    color: var(--white);
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 10%;
    display: inline-block;
    padding: 0 10%;
    font-size: 2.75em
}

.process-single h4 {
    text-align: center;
    font-size: 2rem;
}

.process-text {
    color: var(--white);
    text-align: center;
    font-size: 1.1rem;
}

.process-text-underline {
    border-bottom: 1px solid var(--secondary);
    display: inline-block;
    padding: 0 10%;
}

@media screen and (max-width: 1200px) {
    .process-single {
        flex: 50%;
        flex-grow: 0;
    }

}

@media screen and (max-width: 950px) {
    .process-container h1 {
        text-align: center;
        padding: 15% 10%;
        font-size: 2.25rem;
    }

    .process-text-underline {
        display: none;
    }

    .process-single {
        flex: 100%;
        flex-grow: 0;
    }
    .process-single h4 {
        font-size: 1.5rem;
    }
    .process-single p {
        font-size: 1rem;
    }

}

/* Services Section */

.services-container {
    display: flex;
    flex-direction: row;
    color: var(--primary);
}

.services-title {
    padding: 5% 5% 0;

    font-size: 3rem;
    color: var(--primary);
}

.single-service {
    padding: 2% 2%;
    flex: 50%;
    display: flex;
    flex-direction: row;
    align-items: start;
}


.single-service h3 {
    flex: 35%;
    padding: 0 5%;
    margin-top: 0;
    width: 100%;
    font-size: 2rem;
}

.single-service p {
    padding: 0 4%;
    flex: 65%;

    border-left: 2px solid var(--secondary);
    font-size: 1.1rem;
}

@media screen and (max-width: 1500px) {
    .services-container {
        flex-direction: column;
    }
}


@media screen and (max-width: 950px) {
    .single-service {
        flex-direction: column;
        padding: 7% 0;
        text-align: center;

    }
    .single-service h3 {
        font-size: 1.5rem;
    }

    .single-service p {
        text-align: start;
        font-size: 1rem;

    }

    .services-title {
        text-align: center;
        font-size: 2.25rem;
    }


}

/* Contact Us section */


.contact-container {
    width: auto;
    background: var(--primary);
    padding: 5%;
    margin: 5% 0 0 20%;
}

.contact-container form input {
    color: #f2f2f2
}

.contact-title {
    color: #f2f2f2;
    font-size: 3rem;
}


@media screen and (max-width: 950px) {
    .contact-container {
        margin: 5% 5% 0% 5%;
    }

    .contact-title {
        margin-top: 10%;
        font-size: 2.25rem;
        text-align: center;
    }
}

/* Footer Section */


.footer {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;

    background: var(--primary);
    /*background: var(--secondary);*/
    color: var(--white);
    margin-top: 1%;

    z-index: 1000;
}


.footer-text {
    flex: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;

    textwrap: wrap;
    text-align: left;
}

.footer-icons {
    display: flex;
    justify-content: end;
    align-items: center;
    flex: 50%;
    margin: 20px 0 20px 0;

    text-align: right;
}
.footer-icons p {
    margin-right: 10px;
}

.footer-icons a img, .footer-socials a img {
    margin: 5px;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
    width: 38px;
    height: auto;
}

.footer-icons a img:hover, .footer-socials a img:hover {
    filter: brightness(75%);
}

.footer-socials {
    display: flex;
    flex-direction: row;

}




@media (max-width: 950px) {
    .footer {
        flex-direction: column-reverse !important;
    }

    .footer-text {
        padding-bottom: 5%;
        text-align: center;
    }

    .footer-icons a img {
       margin: 0;
    }
}

/* END OF CUSTOM STYLES/CSS, START OF NAV BAR CODEPEN CSS*/


button {
    border: none;
    padding: 1.5%;
    font-size: 1vmax;
    color: var(--primary);
    background: var(--secondary);
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
}

/* Layout */

#container {
    padding: 0;
    margin: 0;
    background-color: #fff;
}

#main {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

#header {
    padding: 1.5em;
    margin: 0 0 1em 0;
    background-color: #eee;
}

#footer {
    padding: 1.5em;
    margin: 2em 0 0 0;
    background-color: #eee;

}


/* Menu Styles */

.primary-nav {
    position: fixed;
    z-index: 999;
}

.menu {
    position: relative;

}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;

}

.open-panel {
    border: none;
    background-color: #fff;
    padding: 0;
}

.hamburger {
    background: #fff;
    position: relative;
    display: block;
    text-align: center;
    padding: 13px 0;
    width: 50px;
    height: 73px;
    left: 0;
    top: 0;
    z-index: 1000;
    cursor: pointer;
}

.hamburger:before {
    content: "\2630"; /* hamburger icon */
    display: block;
    color: var(--primary);
    line-height: 32px;
    font-size: 16px;
}

.openNav .hamburger:before {
    content: "\2715"; /* close icon */
    display: block;
    color: var(--primary);
    line-height: 32px;
    font-size: 16px;
}

.hamburger:hover:before {
    color: #777;
}

.primary-nav .menu li {
    position: relative;
}

.menu .icon {
    position: absolute;
    top: 12px;
    right: 10px;
    pointer-events: none;
    width: 24px;
    height: 24px;
    color: #fff;
}

.menu,
.menu a,
.menu a:visited {
    color: #aaa;
    text-decoration: none !important;
    position: relative;
}

.menu a {
    display: block;
    white-space: nowrap;
    padding: 1em;
    font-size: 14px;
}

.menu a:hover {
    color: #fff;
}

.menu {
    margin-bottom: 3em;
}

.menu-dropdown li .icon {
    color: #777;
}

.menu-dropdown li:hover .icon {
    color: #fff;
}


.menu label {
    margin-bottom: 0;
    display: block;
}

.menu label:hover {
    cursor: pointer;
}

.menu input[type="checkbox"] {
    display: none;
}

input#menu[type="checkbox"] {
    display: none;
}


.sub-menu-dropdown {
    display: none;
}

.new-wrapper {
    position: absolute;
    left: 50px;
    width: calc(100% - 50px);
    transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu:checked + ul.menu-dropdown {

    left: 0;
    -webkit-animation: all .45s cubic-bezier(0.77, 0, 0.175, 1);
    animation: all .45s cubic-bezier(0.77, 0, 0.175, 1);
}

.sub-menu-checkbox:checked + ul.sub-menu-dropdown {
    display: block !important;
    -webkit-animation: grow .45s cubic-bezier(0.77, 0, 0.175, 1);
    animation: grow .45s cubic-bezier(0.77, 0, 0.175, 1);
}


.openNav .new-wrapper {
    position: absolute;
    transform: translate3d(200px, 0, 0);
    width: calc(100% - 250px);
    transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
}


.downarrow {
    background: transparent;
    position: absolute;
    right: 50px;
    top: 12px;
    color: #777;
    width: 24px;
    height: 24px;
    text-align: center;
    display: block;
}

.downarrow:hover {
    color: #fff;
}

.menu {
    position: absolute;
    display: block;
    left: -200px;
    top: 0;
    width: 250px;
    height: 100vh;
    transition: all 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    background-color: var(--primary);
    z-index: 999;
}

.menu-dropdown {
    top: 0;
    overflow-y: auto;
}

.overflow-container {
    position: relative;
    height: calc(100vh - 73px) !important;
    overflow-y: auto;
    border-top: 73px solid #fff;
    z-index: -1;
    display: block;
}

.menu a.logotype {
    position: absolute !important;
    top: 11px;
    left: 55px;
    display: block;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    font-size: 21px;
    padding: 10px;
}

.menu a.logotype span {
    font-weight: 400;
}

.menu a.logotype:hover {
    color: #777;
}

.sub-menu-dropdown {
    background-color: #333;
}

.menu:hover {
    position: absolute;
    left: 0;
    top: 0;
}

.openNav .menu:hover {
    position: absolute;
    left: -200px;
}

.openNav .menu {
    transform: translate3d(200px, 0, 0);
    transition: transform .45s cubic-bezier(0.77, 0, 0.175, 1);
}

/* label.hamburger {
    display: none;
} */

/* look and feel only, not needed for core menu*/

@-webkit-keyframes grow {

    0% {
        display: none;
        opacity: 0;
    }
    50% {
        display: block;
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }

}

@keyframes grow {

    0% {
        display: none;
        opacity: 0;
    }
    50% {
        display: block;
        opacity: 0.5;
    }
    100% {
        opacity: 1
    }

}


/* Text meant only for screen readers. */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
}


/* Resposive Typography */


body,
button,
input,
select,
optgroup,
textarea {

    font-size: 1em;
    line-height: 1.5;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    clear: both;
    font-weight: 800;
}

dfn, cite, em, i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", Courier, monospace;
    font-size: 15px;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code, kbd, tt, var {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 15px;
    font-size: 0.9375rem;
}

abbr, acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark, ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

.light {
    color: #ddd;
}

strong {
    font-weight: 600;
}

cite,
em,
i {
    font-style: italic;
}

p.big {
    font-size: 140%;
    line-height: 1.3em;
}

p.small {
    font-size: 80%;
}

blockquote {
    display: block;
    margin: 1em 20px;
    padding: 0 1em;
    position: relative;
}

blockquote:before {

}

blockquote cite,
blockquote em,
blockquote i {
    font-style: italic;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

sup,
sub {
    height: 0;
    line-height: 1;
    vertical-align: baseline;
    position: relative;
}

sup {
    bottom: 1ex;
}

sub {
    top: .5ex;
}


p {
    font-size: 1em;
    margin: 0 0 2em 0;
}

article:last-of-type, p:last-of-type {
    margin-bottom: 0;
}

p.intro {
    font-size: 1.25em;
    line-height: 1.5;
    font-weight: 300;
    margin: 0 0 1.5em 0;
}

h1, h2 {
    letter-spacing: -1px;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
    margin: 0 0 0.5em 0;
    line-height: 1.1;
}

h1, .h1 {
    font-size: 2.074em;
}

h2, .h2 {
    font-size: 1.728em;
}

h3, .h3 {
    font-size: 1.44em;
}

h4, .h4 {
    font-size: 1.2em;
}


/* Medium Screen Typography - Scale: 1.333 Perfect Fourth (thanks http://type-scale.com/)  */

@media screen and (min-width: 42em) {

    h1, .h1 {
        letter-spacing: -2px;
    }

    h1, .h1 {
        font-size: 3.157em;
    }

    h2, .h2 {
        font-size: 2.369em;
    }

    h3, .h3 {
        font-size: 1.777em;
    }

    h4, .h4 {
        font-size: 1.333em;
    }

    p {
        font-size: 1.0625em;
    }

    p.intro {
        font-size: 1.3em;
    }

}


/* Large Screen Typography  - Scale: 1.414 Augmented Fourth (thanks http://type-scale.com/)  */

@media screen and (min-width: 72em) {

    h1 {
        letter-spacing: -3px;
    }

    h1, .h1 {
        margin-bottom: 0.35em;
        font-size: 3.998em;
    }

    h2, .h2 {
        font-size: 2.827em;
    }

    h3, .h3 {
        font-size: 1.999em;
    }

    h4, .h4 {
        font-size: 1.414em;
    }

    p {
        font-size: 1.125em;
    }

    p.intro {
        font-size: 1.4em;
    }

}


label {
    color: #200000;
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea, input[type=email] {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
    border: none;
    background: var(--primary);
    color: #f0ece8;
    border-bottom: 2px solid var(--secondary);


}

/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    float: right;
    margin-bottom: 5%;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    background-color: var(--button-hover);
}

/* Add a background color and some padding around the form */
.container {
    border-radius: 5px;
    padding: 5% 10%;
}

button:hover {
    background: var(--button-hover);
}

/* Loading Page */
.loading_screen {
    background-color: #293736; /* Background color */
    /*background-color: rgba(202, 174, 124, 0.2); !* 0.5 is 50% transparency *!*/
    height: 150vw; /* Large enough to cover the viewport */
    width: 150vw; /* Large enough to cover the viewport */
    border-radius: 50%; /* Circular shape */

    display: flex; /* Centering the content */
    flex-direction: column;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */

    position: fixed; /* Fixes the loading screen in place */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Move it back to the center */

    z-index: 1000; /* Ensure it sits above other elements */
    animation: grow .7s 1.5s ease-in-out forwards; /* Animation for shrinking */ /* first num is time of animation, second is delay */
    transform-origin: top; /* Disappear towards */
    /*transform-origin: bottom; !* Disappear towards *!*/
    /*transform-origin: center; !* Disappear towards *!*/
}

.loading_screen img {
    opacity: 0; /* Initially hidden */
    /*opacity: 0.1;*/
    animation: fadeIn .7s ease-in-out forwards, blinkEffect 0.35s ease-in-out 1s forwards; /* Combined animations */
    max-width: 10%; /* Fit image within the loading screen */
    max-height: 10%; /* Fit image within the loading screen */
}

@keyframes fadeIn {
    from {
        opacity: 0; /* Start hidden */
    }
    to {
        opacity: 1; /* Fade to fully visible */
    }
}
@keyframes blinkEffect {
    0%, 100% {
        transform: scaleY(1); /* Normal size */
    }
    50% {
        transform: scaleY(0.2); /* Compressed vertically */
    }
}

@keyframes grow {
    from {
        transform: translate(-50%, -50%) scale(1); /* Keep centered while shrinking */
    }
    to {
        transform: translate(-50%, -50%) scale(0); /* Shrink to nothing while centered */
    }
}

@media (max-width: 950px) {
    .loading_screen {
        width: 150vh; /* Large enough to cover the viewport */
        height: 150vh; /* Large enough to cover the viewport */

    }
    .loading_screen img {
        height: 20%;
        width: 20%;
    }
}
