/*
 Theme Name:   Divi Child Theme
 Theme URI:    https://chaletrun.com/
 Description:  A custom child theme for Divi, built for performance and customization.
 Author:       nitemare@pyratetech.com
 Author URI:   https://pyratetech.com/
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child-pyratetech
*/

@import url("./opinionated-defaults.css");

*,
html {
    padding: 0;
    margin: 0;
}

body {
    background: var(--bg-color);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

body,
.page-container * {
    background: var(--bg-color);
}

/******************************************
*** DIVI overrides                      ***
******************************************/
.et_pb_section,
.et_pb_row {
    background-color: transparent;
    width: 100vw;
    background: var(--bg-color);
}

.page-container {
    position: relative;
    top: -24px;
    overflow-x: hidden;
}

.team .et_pb_column_0 {
    flex: 1 1 30%;
}

.team .et_pb_column_1 {
    flex: 1 1 70%;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--white-color);
    font-weight: 700;
}

strong {
    font-weight: 600;
    color: var(--white-color);
}

h1 {
    font-size:36px;
    padding: 3em 0 .75em 0;
}

h2 {
    font-size: 1.5em;
    line-height: 1.2;
    max-width:9ch;
    word-wrap: normal;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--white-color);
    padding: 0;
    font-size: 1.125em;
    line-height: 1.5;
}

p.intro {
    font-size: 1.625em;
    line-height: 1.7;
    color: #E6E6E6;
    text-align: center;
    padding: 1.5em 0 6em 0;
    max-width: 80vw;
}

.banner {
    position: relative;
    width: 100vw;
    height: 113px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}

.footer * {
    background: var(--bg-color);
}

.footer p {
    height: 3em;
    font-size: .6667em;
    color: var(--lt-gray-color);
}


/****************************************************
**** Main Navigation                             ****
****************************************************/
.main-nav {
    position: relative;
    top: 0;
    left: 0;
    height: 125px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 98.7vw;
    background-color: var(--bg-color) !important;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.25));
    margin-bottom: 12px;
    padding-top: 20px;
}

.logo::before{
    content: "";
    display:block;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--bg-color);
    z-index: -1;
}
.logo {
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    margin-left: 3vw;
    width: 210px;
    height: 100%;
    max-height: 53.72px;
    z-index: 100;
    margin-top:20px;
}

.main-nav .logo,
.main-nav .space {
    width: 210px;
    flex: 0 0 210px;
    max-width: 210px;
}

.main-nav .hamburger {
    width: 6vw;
    max-width: 35px;
    height: auto;
    position: absolute;
    right: 4vw;
    display: none;
    z-index: 999;
}

.top-nav {
    z-index: 100;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    padding-right: 5vw;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li a {
    display: block;
    color: var(--white-color)!important;
    text-decoration: none;
    font-weight: 200;
    transition: color 0.3s;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    padding: 3.1em 1em 0 1em;
}

.main-nav ul li a:hover,
.main-nav ul li.selected a {
    color: var(--aqua-color)!important;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 3vw;
    width: 210px;
    height: 100%;
    max-height: 53.72px;
    z-index: 100;
}


/****************************************************************
*** LEADERSHIP                                                ***
****************************************************************/
.single-team .profile-pic {
    width: 85%;
}
.team-card {
    margin-bottom: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    overflow: visible;
}

.team-card>.bio {
    display: flex;
    flex-direction: column;
    column-gap: 0;
    row-gap: 0;
    justify-content: flex-start;
    flex: 1 1 30%;
}

.team-card .bio:hover .profile-pic img {
    opacity: 0.8;
    transition: all .6s ease-out;
}

.team-card .bio:hover h2 {
    color: var(--aqua-color);
    transition: all .6s ease-out;
}

.team-card .profile-pic {
    align-items: flex-start;
    justify-content: flex-start;
}

.team-card .profile-pic img {
    height: auto;
}

.team .team-card .profile-pic img,
.team.team-card .position {
   width: min(26vw, 550px) !important;
}

.team-card .name h2 {
    padding: 22px 0 0 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    transition: color .6s ease-out;
    line-height: 1.2;
    text-transform: uppercase;
}

.team-card .position {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1em;
    line-height: 1.2;
}

.bio-copy p {
    font-size: 1em;
    line-height: 1.4;
    padding: 0 5vw 1em 0;
}

.bio-copy p:first-child {
    padding-top: 2.8em;
}

.bio-copy p:last-child {
    padding-bottom: 2.8em;
}

.bio-copy {
    background-color: var(--bg-black-80) !important;
    transition: all .75s ease-out;
    overflow: hidden;
}

.bio-copy.is-open {
    background-color: var(--bg-black-80);
    max-height: 70vh;
    transition: all .75s ease-out;
}


.backbutton{
    color:var(--white-color)!important;
    text-decoration:none;
    font-size:1em;
    font-weight:200;
    margin-top:-1px;
}   
.backbutton:hover{
    color:var(--aqua-color)!important;
}

/****************************************************************
*** ABOUT                                                     ***
****************************************************************/
.et_pb_contact {
    padding: 0 3vw 0 0;
}

.et_pb_contact input.text,
.et_pb_contact form textarea,
.et_pb_contact form checkbox {
    background-color: var(--bg-color) !important;
    border: 1px solid var(--lt-gray-color) !important;
    padding: .5em .3em;
    font-size: 1em;
    color: var(--white-color);
}

.contact_form .et_pb_contact_submit {
    background-color: var(--aqua-color) !important;
    color: #ffffff;
    font-size: 16px !important;
    font-weight: 200;
    padding: .25em 1em!important;
    border-radius: 1.5em!important;
    border: 0px solid transparent!important;
}

.et_pb_contact_form .et_pb_contact_submit::after {
    display: none !important;
}

.et_pb_contact_form .et_pb_contact_submit {
    padding-right: 1em !important;
}

.et_pb_contact_form .et_pb_contact_submit:hover {
    background-color: inherit;
    color: inherit;
    border-color: inherit;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.et_pb_column.et_pb_column_empty {
     display: flex!important; 
}

@media screen and (max-width: 600px) {
    p {
        font-size: 21px;
        font-weight: 300;
        line-height: 1.8;
    }

    h1 {
        font-size: 36px!important;
        font-weight: 700;
        line-height: 1.2;
        padding: 20px 12px !important;
    }

    .main-nav .hamburger {
        display: block;
    }

    .team-card{
        width:96vw;
        flex-direction:column;
        justify-content:flex-start;
    }
    .team .team-card .profile-pic img{
        width:80vw !important;
        max-width:80vw;
    }
    .team-card .position p{
        width:20ch;
        word-wrap:normal;
        padding:0 !important;
    }
    .bio-copy {
        width: 96vw;
    }

    p.intro {
        font-size: 20px;
        width: 100%;
    }

    p.intro br {
        display: none;
    }

    .main-nav ul.top-nav {
        background-color: var(--bg-black-80);
        position: absolute;
        right: -10px;
        left:-5px;
        top: 100%;
        width:100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: all .6s ease-out;
    }
    ul.top-nav li{
        width:100%;
    }
    .main-nav ul.top-nav.is-open {
        max-height: 70vh;
        padding-top:20px;
        padding-bottom:40px;
    }

    .main-nav ul li a {
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 24px;
        padding: 1em 2em;
        display: block;
        border-bottom: 1px solid var(--dk-gray-color);
    }
}