/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*** Base Styles ***/

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    background: #0054a4;
}

header,
footer {
    background: #0054a4;
    font-family: 'Work Sans', sans-serif;
}

.body-area > .container-fluid {
    background: #fff;
}

body .table {
    color: #323232;
}

/* Buttons */
/* Need to adjust the font sizes to be smaller by default, and then make them larger in the home section */

.btn-white-blue {
    background: #fff;
    color: #006fcf;
    border: 2px solid #006fcf;
    padding: 1em 2.7em;
    border-radius: 0.5em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    display:inline-block;
    text-align: center;
}

.btn-white-blue:hover {
    background: #3077B6;
    color: #fff;
    text-decoration: none;
}

.btn-blue-white {
    background: #3077B6;
    color: #fff;
    border: 2px solid #3077B6;
    padding: 1em 2.7em;
    border-radius: 0.5em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
}

.btn-blue-white:hover {
    background: #fff;
    color: #3077B6;
    text-decoration: none;
}

.btn-char-white {
    background: #393737;
    color: #fff;
    border: 2px solid #fff;
    padding: 1em 2.7em;
    border-radius: 0.5em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
}

.btn-char-white:hover {
    background: #fff;
    color: #393737;
    text-decoration: none;
}

/*** Header ***/
header {
    min-height: 80px;
}

header img {
    max-width: 100%;;
}

/* Nav */
nav.navbar {
    background: #0054a4;
    z-index: 9999;
    height: 100%;
    border-left: 5px solid #fff;
    padding: 0;
    display: block;
    overflow: auto;
}

.navbar-closer {
    text-align: right;
    position: absolute;
    top: 0;
    right: 0;
}

.nav-toggler-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    float: right;
}

.navbar-toggler {
    border: 0;
    height: 50px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    color: #fff;
    font-size: 1.8em;
}

.navbar-dark .navbar-toggler-icon {
    background-image: none;
}

.btn-close {
    width: auto;
    height: auto;
    background: none;
    opacity: 1;
    padding: 1em;
}

.n8a-nav_box {
    padding: 20px;
}

.navbar-dark .navbar-brand {
    max-width: 70%;
    margin: 0;
}

.navbar-dark .navbar-brand img {
    max-width: 60%;
}

#main-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.nav-item {
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    display: block;
    width: 100%;
}

#main-nav li a {
    text-decoration: underline;
    color: #fff;
    padding: 10px 0 10px 50px;
    font-size: 1.5em;
}

#main-nav li a.active {
    font-weight: bold;
}

.header-sub-menu {
    background: #e8e7e7;
    width: 100%;
}

.header-sub-menu ul li a {
    color: #0054a4;
    font-size: 1.2em;
    text-decoration: underline;
}

@media screen and (min-width: 768px) {
    .header-sub-menu {
        display: none;
        visibility: hidden;
    }

    .p_69 .header-sub-menu{
        display:block;
        visibility: visible;
    }
}

/*** Footer ***/

footer .row {
    align-items: center;
}

footer ul.social-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

footer ul.social-links li {
    margin: 0;
    padding: 0;
    margin-left: 2em;
}

footer ul.social-links li a {
    color: #fff;
}

footer ul.social-links li a:hover {
    opacity: 0.75;
}

footer ul.social-links li a i {
    font-size: 1.2em;
}

.footer-nav {
    text-align: right;
    font-size: 1.2em;
}

.footer-nav a {
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
}

.logo-footer {
    width: 225px;
}

.site-credit {
    border-top: 1px solid #fff;
}

footer a{
    color:#fff;
}

@media screen and (min-width: 992px) {
    #footer-nav {
        justify-content: flex-start;
    }

    footer ul.social-links {
        justify-content: flex-end;
    }
}

@media screen and (max-width: 767px) {
    footer {
        text-align: center;
    }

    #footer-nav {
        flex-direction: column;
    }

    #footer-nav li {
        margin-right: 0;
    }

    .footer-nav {
        text-align: center;
    }
}

/*** Home Page ***/

/* Masthead */

.body-area .masthead {
    background: url('../img/masthead-bg.png');
    background-size: none;
    background-repeat: repeat;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.body-area .masthead img{
    max-width: 100%;
    height:auto;
    vertical-align: middle;
}

.masthead-logo {
    text-align: center;
}

.masthead-logo img {
    margin: 0 auto;
    max-width: 100%;
}

.masthead-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 100vw;
    background: rgba(204,204,204,0.57);
    transform: translateX(-57%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    z-index: -1;
}

.masthead-copy {
    align-self: center;
}

.masthead-copy p {
    margin: 0;
    color: #006fcf;
    font-weight: 600;
    font-size: 5vw;
    line-height: 0.9em;
}

.masthead-powered {
    font-size: 1.3em;
    color: #999;
    margin: 25px 20px;
}

.masthead-powered img {
    width: 225px;
    margin-left: 5px;
}

.masthead .btn-row{
    display: flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.masthead .btn-row button{
    padding:.5em 1.5em;
    margin-right:.5rem;
    display:block;
    margin-bottom:.5rem;
    width: 100%;
}

.masthead .contract-connections-logo{
    display:block;
    width:100%;
}

.masthead-container{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction: row;
    padding:3rem;
}

@media screen and (max-width: 1147px) {
    .masthead-copy {
        font-size: 5em;
    }

    .masthead-powered {
        font-size: 0.3em;
    }

    .masthead .btn-row{
        /*flex-direction:column;*/
    }

    .masthead .btn-row button{
        width:100%;
    }
}

@media screen and (max-width: 767px) {
    .masthead-container{
        flex-direction: column;
        padding:1rem
    }

    /*
    .masthead .btn-row{
        flex-direction:row;
    }
    */

    .masthead .btn-row button{
        padding:1rem;
        font-size:.9rem;
        width:auto;
    }

    .masthead .contract-connections-logo{
        width:100%;
    }
    .masthead-logo img {
        max-width: 80%git pull;
    }

    .masthead-logo::before {
        content: none;
    }

    .masthead-copy {
        padding: 20px 4em 0;
    }

    .masthead-copy p {
        font-size: 3.5em;
    }

    .masthead-powered {
        font-size: 1em;
    }
}

/* Carousel */
#homeCarousel{
    padding:6rem 0;
}

/* Carousel Controls */
.carousel-indicators [data-bs-target] {
    background-color: #ccc;
    opacity: 1;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: #006fcf;
}

.carousel-control-next,
.carousel-control-prev {
    opacity: 1;
    width: 5%;
}

.carousel-control-next:hover,
.carousel-control-prev:hover {
    opacity: 0.75;
}

.carousel-control-next-icon {
    width: 0; 
    height: 0; 
    border-top: 45px solid transparent;
    border-bottom: 45px solid transparent; 
    border-left: 25px solid #006fcf;
    background-image: none;
}

.carousel-control-prev-icon {
    width: 0; 
    height: 0; 
    border-top: 45px solid transparent;
    border-bottom: 45px solid transparent; 
    border-right: 25px solid #006fcf;
    background-image: none;
}

@media screen and (max-width: 767px) {
    .carousel-control-next,
    .carousel-control-prev {
        display: none;
        visibility: hidden;
        opacity: 0;
    }
    /* Carousel */
    #homeCarousel{
        padding:10rem 1rem;
    }
}

/* More Events Row */

.body-area .more-events-row {
    background: #393737;
    color: #fff;
}

.more-events-img img {
    max-width: 100%;
}

.more-events-copy {
    margin: 0 0 0.5em;
    font-size: 4vw;
    font-weight: 500;
    line-height: 1.2em;
    align-self: center;
    padding: 0 0 0 4vw;
}

@media screen and (min-width: 1250px) {
    .more-events-copy {
        font-size: 3.8em;
    }
}

@media screen and (max-width: 767px) {
    .more-events-copy {
        padding: 20px 2em;
        font-size: 1em;
    }

    .more-events-copy p {
        font-size: 2.5em;
        line-height: 1em;
        margin: 0 auto 20px;
    }
}

/* Home Buttons */

#page-home .btn-white-blue {
    font-size: 1.8vw;
}

#page-home .btn-char-white {
    font-size: 1.5vw;
}

@media screen and (min-width: 1250px) {
    #page-home .btn-white-blue,
    #page-home .btn-char-white {
        font-size: 0.3em;
    }
}

@media screen and (max-width: 767px) {
    #page-home .btn-white-blue,
    #page-home .btn-char-white {
        font-size: 1em;
    }
}

/*** Interior Pages ***/
.body-area {
    background: #fff;
    color: #333;
    padding: 20px 0 10px;
    min-height:60vh;
}

#page-home .body-area,
#page-event_landing .body-area {
    padding-top: 0;
}

.body-area h2,
.body-area h4,
.body-area h5,
.body-area h6 {
    color: #0054a4;
}

.body-area h3 {
    color: #666;
    font-weight: bold;
}

/* Sub Menu */
.sub-menu {
    background: #e8e7e7;
    font-family: 'Work Sans', sans-serif;
}

.sm-col {
    display: flex;
    align-items: center;
}

.sm-logo {
    width: 50px;
    margin: 10px 0;
}

.sub-menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style-type: none;
    padding: 1rem 0;
    margin: 0;
    width:100%;
    justify-content: center;
}

.sub-menu ul li {
    font-size: 1.4em;
    text-transform: uppercase;
    font-weight: 500;
}

.sub-menu ul li::after {
    content: '|';
    margin: 0 1vw;
    color: #666;
}

.sub-menu ul li:last-of-type::after {
    content: '';
}

.sub-menu ul li a {
    color: #0054a4;
}

@media screen and (max-width: 767px) {
    .sub-menu {
        display: none;
        visibility: hidden;
    }
}

/* Page Header */
.page-header {
    background: url('../img/masthead-bg.png');
    color: #0054a4;
    font-family: 'Work Sans', sans-serif;
}

.page-header h1 {
    font-weight: 600;
    font-size: 2.6em;
}

/* Company Details */
.company-details {
    background: #dee9f3;
    border-radius: 8px;
}

main#page-company h2 {
    color:#016fd0;
    font-size: 2rem;
    font-weight: normal;
    margin:0;
}

.company-details h3{
    color:#016fd0;
    font-weight: normal;
    font-size:1.4rem;
}

.company-details > div {
    display: flex;
}

.company-details a {
    color: #016fd0;
}

.company-details .table th {
    font-weight: normal;
}

.company-info,
.company-profile {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
}

.company-details .table td, .company-details .table th{
    border-color:#016fce;
}

.contact-name {
    font-weight: 600;
    font-size: 1.25em;
}

.contact-title {
    font-size: 1.2em;
}

.naics-table tr td:first-of-type {
    width: 10%;
}

.company-registered-events {
    border: 2px solid #016fd0;
    border-radius: 12px;
}

.company-registered-events ul {
    list-style-type: none;
}

/* FAQ */
main#page-faq h2 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.25em;
}

main#page-faq p {
    margin-top: 0;
}

.faq-item {
    margin-bottom: 25px;
}

/* Contact */
#page-contact form, .login-form {
    background: #f7f7f7;
    border: 3px solid #ccc;
    border-radius: 10px;
    padding:1rem;
}

.login-form label{
    font-weight:bold;
    font-size:1.1rem;
}

#page-contact form label {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* Events */
.event-item {
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #f7f7f7;
    color: #0054a4;
    margin-bottom:1rem;
}

.event-img img {
    max-width: 80px;
}

.event-date {
    font-weight: 800;
    font-size: 1.3em;
}

.event-title {
    font-weight: 700;
    font-size: 1.2em;
}

@media screen and (max-width: 767px) {
    .event-item .column {
        padding:.4rem .5rem;
    }

    .event-item{
        margin:1rem .5rem;
        text-align: center;
    }
}

/* Event Landing */
.learn-more-row {
    background: url('../img/masthead-bg.png');
    border-top: 20px solid #0054a4;
}

.learn-more-row h2 {
    font-size: 2.8em;
    text-align: center;
    font-weight: 600;
}

.learn-more-ctas {
    /*
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    */
}

.learn-more-ctas .more-container {
    background: #0054a4;
    text-align: center;
    border-radius: 10px;
    padding:1rem;
    margin:.2rem .4rem;
}

.learn-more-ctas h3 {
    font-size: 1.4em;
    font-weight: 600;
}

.learn-more-ctas h3 a {
    color: #fff;
    text-decoration: none;
}

.learn-more-ctas .btn-blue-white {
    border-color: #fff;
}

@media screen and (max-width: 992px) {
    .learn-more-row h2.my-5{
        font-size:1.8rem;
        padding:0;
        margin-top:1.5rem !important;
        margin-bottom:1.5rem !important;
    }
}

.home-growing-row .full-size{
    display:block;
    width:100%;
    height:auto;
}

.home-growing-row {
    background: #393737;
    color: #fff;
}

.home-growing-row h2 {
    font-size: 3.2em;
    font-weight: 600;
    color: #fff;
}

.home-growing-row .home-growing-content p{
    font-size:1.8em;
}

.home-growing-row a {
    color: #fff;
}

.home-growing-row .home-growing-content{
    padding:1rem 2rem;
}

@media screen and (max-width: 1800px) {
    .home-growing-row .home-growing-content h2{
        font-size:2.6rem;
    }

    .home-growing-row .home-growing-content p{
        font-size:1.5rem;
    }
}

@media screen and (max-width: 1500px) {
    .home-growing-row .home-growing-content h2{
        font-size:2rem;
    }

    .home-growing-row .home-growing-content p{
        font-size:1.2rem;
    }
}

@media screen and (max-width: 1200px) {
    .home-growing-row .home-growing-content h2{
        font-size:1.3rem;
    }

    .home-growing-row .home-growing-content p{
        font-size:1rem;
    }
}

@media screen and (max-width: 992px) {
    .home-growing-row .home-growing-content h2{
        font-size:3rem;
    }

    .home-growing-row .home-growing-content p{
        font-size:1.3rem;
    }

    .home-growing-row .full-size{
        display:block;
        width:100%;
        height:220px;
        object-fit: cover;
        object-position:50%;
    }
}

@media screen and (max-width: 575px) {
    .learn-more-ctas {
        margin-left:0;
        margin-right:0;
    }
    .learn-more-ctas img{
        float:left;
        width:85px;
        height:auto;
    }

    .learn-more-ctas h3{
        margin-top:0;
        margin-bottom:.5rem;
        font-size:1.4rem;
        margin-left:0;
        margin-right:0;
    }

    .learn-more-ctas .btn{
        padding:.3rem 1rem;
        margin-bottom:.1rem;
    }
}

.modal{
    color:#323232;
}


/*** MISC ***/

body table.no-bottom tr:last-of-type th,
body table.no-bottom tr:last-of-type td {
    border-bottom-width: 0;
}

body table.no-border tr th,
body table.no-border tr td {
    border-bottom-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Work Sans', sans-serif;
}

.font-ws {
    font-family: 'Work Sans', sans-serif;
}

.blue {
    color: #0054a4;
}

.align-center {
    text-align: center;
}

li > ul {
    margin: 0;
}

.callout {
    border: 3px solid #006fcf;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    color: #0054a4;
    padding:2rem;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
