/********************************
 * Custom Properties 
 */
:root {
    --jazzy-blue-primary: #050987;
    --jazzy-yellow-primary: #f4f300;
}

/******************************** 
 * Global Styles
 */
body {
    box-sizing: border-box;
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    padding: 0;
}

body .mobile-menu {
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    height: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
}

body .mobile-menu li {
    cursor: pointer;
}

body .mobile-menu.active {
    display: flex;
}

body .mobile-menu-close {
    background-color: var(--jazzy-yellow-primary);
    border: 0;
    color: var(--jazzy-blue-primary);
    cursor: pointer;
    font-size: 4em;
    font-weight: 800;
    line-height: 1em;
    padding: 0 15px;
    position: absolute;
    right: 2%;
    top: 0%;
    z-index: 10;
}

.mobile-hamburger {
    display: none;
    position: fixed;
    right: 5%;
    top: 2%;
    width: 50px;
}

.mobile-hamburger img {
    height: auto;
    width: 100%;
    box-shadow: 8px 8px 10px black;
}

li.mobile-menu-header {
    margin-top: 15%;
}

/***********************************
 * Header Styles
 */
header {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 35vh;
    overflow: hidden;
    padding: 50px 0;
    position: relative;
    width: 100%;
}

header .jazzy-logo {
    left: -10px;
    position: relative;
    width: 75px;
}

header .jazzy-logo:hover,
header .jazzy-logo-text-container a:hover {
    filter: drop-shadow(0 -15px 10px blue);
    transition: all 0.1s ease;
}

header .jazzy-logo:hover {
    transform: translateY(5px);
}

header .jazzy-logo img {
    height: auto;
    width: 100%;
}

header .jazzy-logo-text-container {
    align-items: center;
    display: flex;
    justify-content: center;
    padding-bottom: 5%;
    padding-top: 8%;
    position: relative;
    text-align: center;
    width: 100%;
}

header .jazzy-logo-text {
    max-width: 600px;
}

.jazzy-menu-background {
    align-items: center;
    display: flex;
    filter: blur(8px) grayscale(80%);
    justify-content: center;
    left: 0;
    position: absolute;
    top: -25%;
    width: 100%;
}

.jazzy-menu-background img {
    height: auto;
    width: 100%;
}

header .jazzy-menu-container {
    align-items: center;
    display: flex;
    flex-basis: 100%;
    justify-content: right;
    position: absolute;
    top: 3%;
    width: 85%;
}

body.scrolled header .jazzy-menu-container {
    position: fixed;
    top: 2%;
    z-index: 10;
}

/***********************************
 * Menu Styles 
 */
header menu,
.mobile-menu {
    background-color: var(--jazzy-yellow-primary);
    border: 10px double var(--jazzy-blue-primary);
    border-radius: 5px;
    color: var(--jazzy-blue-primary);
    display: flex;
    padding: 0 2px;
}

body.scrolled header menu,
body.scrolled header .jazzy-logo img {
    box-shadow: 8px 8px 10px black;
}

header menu li,
.mobile-menu li {
    align-items: center;
    color: inherit;
    display: flex;
    justify-content: center;
    list-style: none;
    position: relative;
}

header menu li,
header menu li *,
.mobile-menu li,
.mobile-menu li * {
    transition: all 0.1s ease;
}

header menu li.social-icon,
.mobile-menu li.social-icon {
    color: black;
    /* Filter black icons to jazzy blue. https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(9%) sepia(69%) saturate(5416%) hue-rotate(241deg) brightness(89%) contrast(121%);
}

header menu li.social-icon img,
.mobile-menu li.social-icon img {
    width: 30px;
    vertical-align: middle;
}

header menu li.social-icon a.text-glyph,
footer .social-icon a.text-glyph {
    font-size: 30px;
    line-height: 1em;
    padding: 0 0.5em;
}

header menu li.social-icon:hover {
    /* Filter black icons to white. https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(92deg) brightness(101%) contrast(102%)
        drop-shadow(0 0 5px blue) drop-shadow(0 0 5px blue) drop-shadow(0 0 5px blue);
}

footer .social-icon img {
    /* Filter black icons to white. https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(92deg) brightness(101%) contrast(102%);
    width: 30px;
    vertical-align: middle;
}

header menu li a,
.mobile-menu li a {
    border-radius: 5px;
    color: inherit;
    font-weight: bold;
    padding: 10px 10px;
    text-decoration: none;
}

.mobile-menu li:not(.social-icon) a {
    width: 100%;
    text-align: center;
}

header menu li.active a {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

header menu li:not(.social-icon) a:hover,
.mobile-menu li:hover {
    color: white;
    text-shadow: 1px 5px 5px var(--jazzy-blue-primary),
        -1px 5px 5px var(--jazzy-blue-primary),
        -1px 0px 5px var(--jazzy-blue-primary),
        1px 0px 5px var(--jazzy-blue-primary);
    transform: translateY(-2px);
}

/***************************
 * Submenu Styles
 */
header menu li .submenu {
    background-color: var(--jazzy-yellow-primary);
    border: 5px double var(--jazzy-blue-primary);
    border-radius: 5px;
    display: none;
    flex-direction: column;
    padding: 5px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
}

header menu li .submenu li {
    justify-content: left;
}

header menu li:hover .submenu {
    display: flex;
}

/***********************************
 * Section Styles
 */

section {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 2em;
}

section > h1,
section > h2,
section > h3,
section > h4 {
    color: var(--jazzy-yellow-primary);
    flex-basis: 100%;
    font-weight: 1000;
    max-width: 1000px;
    padding: 0.5em 0;
    text-align: center;
    text-shadow: 1px 1px 1px var(--jazzy-blue-primary),
        -1px 1px 1px var(--jazzy-blue-primary),
        -1px -1px 1px var(--jazzy-blue-primary),
        1px -1px 1px var(--jazzy-blue-primary),
        2px 2px 0px var(--jazzy-blue-primary),
        -2px 2px 0px var(--jazzy-blue-primary),
        -2px -2px 0px var(--jazzy-blue-primary),
        2px -2px 0px var(--jazzy-blue-primary);
}

section > p,
section > div {
    flex-basis: 100%;
    max-width: 1000px;
}

section:nth-of-type(odd) {
    background-color: #f6f6ff;
}

/***************************
 * Team Member Styles
 */

.team-member {
    align-content: center;
    background: no-repeat center center linear-gradient(90deg, var(--jazzy-blue-primary), var(--jazzy-blue-primary));
    background-size: 0;
    border-radius: 5px;
    display: flex;
    flex-basis: 100%;
    flex-wrap: wrap;
    /* Not using Grid rules until we get the images from the team...
    gap: 1em;
    grid-template-areas:
    "p h" 
    "p d";
    grid-template-columns: 1fr 5fr; */
    justify-content: center;
    margin: 0;
    text-align: center;
    transition: background-size 0.3s ease-out 0.05s, color 0.5s ease;
}

.team-member:hover {
    background-size: 100%;
    color: white;
}

.team-member img {
    display: flex;
    grid-area: p;
    justify-self: center;
    min-width: 100px;
    width: 100%;
}

.team-member h3 {
    align-self: end;
    flex-basis: 100%;
    grid-area: h;
    margin: 1em 0 0.2em 0;
}

.team-member p {
    flex-basis: 100%;
    grid-area: d;
    margin: 0 0 1em 0;
    font-style: italic;
}

/***************************
 * Back to Top Styles
 */
.back-to-top {
    background-color: var(--jazzy-yellow-primary);
    border: 2px solid var(--jazzy-blue-primary);
    border-radius: 50%;
    bottom: 1em;
    color: var(--jazzy-blue-primary);
    display: none;
    font-size: 3em;
    font-weight: bolder;
    height: 50px;
    line-height: 1.25em;
    position: fixed;
    right: 1em;
    text-align: center;
    width: 50px;
}

.back-to-top a {
    text-decoration: none;
}

.back-to-top a:visited {
    color: inherit;
}

body.scrolled .back-to-top {
    display: block;
}

/***********************************
 * Footer Styles
 */
footer {
    align-content: center;
    background-color: var(--jazzy-blue-primary);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 250px;
    padding: 1em;
    text-align: center;
}

footer > * {
    flex-basis: 100%;
}

/* Mobile active footer fuckery */
body.mobile-menu-active footer {
    position: fixed;
    bottom: 0;
}

/* Footer menu links flexbox layout */
footer .jazzy-footer-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    padding: 1em 0;
}

footer .jazzy-footer-section a {
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    padding: 0 1em;
}

footer .jazzy-footer-links a:hover {
    text-decoration: underline;
}

body.mobile-menu-active footer .jazzy-footer-links {
    display: none;
} 

/***********************************
 * Responsive Styles
 */
@media (max-width: 1080px) {
    header .jazzy-menu-background {
        height: 100%;
        width: auto;
        top: 0;
    }

    header .jazzy-menu-background img {
        height: auto;
        width: 100%;
    }

    .team-member {
        grid-template-columns: 1fr 4fr;
    }
}

@media (max-width: 768px) {
    .mobile-hamburger {
        display: block;
    }

    header .jazzy-logo {
        display: none;
    }

    header .jazzy-logo-text-container {
        padding-top: 15%;
    }

    header .jazzy-logo-text {
        width: 90%;
    }

    header .jazzy-menu-background {
        height: 100%;
        left: -50px;
        top: 0;
        width: auto;
    }

    header .jazzy-menu-background img {
        height: 100%;
        width: auto;
    }

    .team-member {
        grid-template-columns: 1fr 3fr;
    }

    header menu {
        display: none;
    }

    footer .jazzy-footer-section a {
        padding: 0 .25em;
    }

    footer .jazzy-footer-section a.text-glyph {
        padding: 0 .12em;
    }
}