/* main theme stylesheet by Backyard Studios */

/* typography */

body {
    font-family: "Inter", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Barlow Condensed", sans-serif;
}

a {
	transition: all 0.5s;
}

.helvetica {
    font-family: "Inter", sans-serif;
}

.barlow {
    font-family: "Barlow Condensed", sans-serif;
}

.heading-small {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.heading-large {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.8rem;
    line-height: 1.1;
    margin: 0 0 1rem;    
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #99C948;
}

@media(min-width: 28rem) {
    .heading-large {
        font-size: 3rem;
    }
}

@media(min-width: 44rem) {
    .heading-small {
        font-size: 1.375rem;
    }
    .heading-large {
        font-size: 3.625rem;
    }
}

.post-content p,
.post-content li,
.post-content blockquote {
    margin-top: 0;
    margin-bottom: 1rem;
}

.post-content p:last-child,
.post-content li:last-child,
.post-content blockquote:last-child {
    margin-bottom: 0rem;
}

/* main wrapper */

.wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

@media(min-width: 28rem) {
    .wrap { max-width: 36rem; }
}

@media(min-width: 44rem) {
    .wrap { max-width: 42rem; padding-left: 1rem; padding-right: 1rem; }
}

@media(min-width: 60rem) {
    .wrap { max-width: 58rem; }
}

@media(min-width: 76rem) {
    .wrap { max-width: 74rem; }
}

@media(min-width: 92rem) {
    .wrap { max-width: 89.625rem; }
}

/* buttons */

.btn {
    line-height: 1.5rem;
    padding: 0.625rem 1rem;
    border: 2px solid #99ca48;
    background-color: #99ca48;
    color: #001620;
    text-decoration: none;
    font-weight: 700;
	transition: all 0.5s;
    display: block;
    width: 100%;
    min-width: 9em;
    text-align: center;
}

.btn:hover {
	background-color: transparent;
	color: #99ca48;
}

.btn--alt {
    color: #fff;
    background-color: transparent;
    border-color: #fff;
	transition: all 0.5s
}

.btn--alt:hover {
	color: #001620;
	background-color: #fff;
}

.btn--blue {
    background-color: #002b42;
    border-color: #002b42;
    color: #fff;
}

.btn--blue:hover {
	color: #002b42;	
}

.btn--blue.btn--blue--alt:hover {
	color: #fff;
	background-color: #002b42;
}

.btn--tiny {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    line-height: 1.2;
    color: #013A58;
}

.btn--blue.btn--alt, .btn--blue--alt {
    background: transparent;
    color: #002b42;
}

.btn--tiny.btn--alt {
    background-color: rgba(0, 43, 66, 0.3);
    color: #fff;
}

.btn--chevron {
    position: relative;
    padding-right: 2rem;
}

.btn--chevron::after {
    content: "";
    background-image: url(../images/glyph-chevron-right.svg);
    background-size: cover;
    display: inline-block;
    position: absolute;
    right: 5px;
    top: calc(50% - 15px);
    width: 30px;
    height: 30px;
	transition: all 0.5s;
}

.btn--chevron:hover::after {
	background-image: url(../images/glyph-chevron-right-blue.svg);
	right: -3px;
}

.btn--chevron.btn--blue:hover::after {
	background-image: url(../images/glyph-chevron-right.svg);
}

.btn--chevron.btn--blue::after {
    background-image: url(../images/glyph-chevron-right-blue.svg);
}

@media(min-width: 28rem) {
    .button {
        display: inline-block;
        width: auto;
    }
}

/* misc utilities */

.w-0 { width: 0%; }

.sticky { position: sticky; }

.object-cover { object-fit: cover; }

.na2\.5 { margin: -12px; }

.pa2\.5 { padding: 12px; }

.ma2\.5 { margin: 12px; }

.stayon-lightblue, .navy-blue {
    color: #013957;
}

.stayon-medblue {
    color: #012B43;
}

.stayon-darkblue, .ink-blue {
    color: #001620;
}

.stayon-darkerblue {
    color: #002B42;
}

.stayon-darkestblue {
    color: #011520;
}

.stayon-green, .eco-green {
    color: #99ca48;
}

.hover-stayondarkestblue:hover {
    color: #011520;
}

.bg-stayonlightblue, .bg-navy-blue {
    background-color: #013957;
}

.bg-stayondarkblue, .bg-ink-blue {
    background-color: #001620;
}

.bg-stayondarkestblue {
    background-color: #011520;
}

.bg-stayonmedblue {
    background-color: #012B43;
}

.bg-stayondarkerblue {
    background-color: #002B42;
}

.bg-stayongreen, .bg-eco-green {
    background-color: #99ca48;
}

.b--eco-green {
    border-color: #99ca48;
}

.b--navy-blue {
    border-color: #013957;
}


/* section specific */
.pv--form-with-image-rs {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.w--testimonial-star-rs {
    width: 3rem;
}

.w--header-logo-rs {
    width: 8rem;
}

.h--header-menu-rs {
    height: 4.75rem;
}

.w--header-logo-rs {
    width: 8rem;
}

@media(min-width: 44rem) {
    .w--header-logo-rs {
        width: 10rem;
    }
    .w--testimonial-star-rs {
        width: auto;
    }
}

@media(min-width: 60rem) {    
    .w--header-logo-rs {
        width: 8rem;
    }
    .mw--home-hero-text-rs {
        max-width: 28rem;
    }
}

@media(min-width: 76rem) {
    .pv--form-with-image-rs {
        padding-top: 5.7rem;
        padding-bottom: 5.7rem;
    }
    .h--header-menu-rs {
        height: 6rem;
    }
    
    .min-h--half-page-rs {
        min-height: 40rem;
    }
    
    .w--header-logo-rs {
        width: auto;
    }
}

@media(min-width: 92rem) {
}

/* WordPress & Genesis styles */

.menu, .sub-menu {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.menu a {
    color: inherit;
    text-decoration: none;
}

/* mobile menu styles */
@media(max-width: 59.9999rem) {
    .menu-header {
        position: absolute;
        top: 100%;
        background-color: #fff;
        color: #013957;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 1.25rem;
        overflow: hidden;
        height: 0;
    }

    .menu-header li {
        border-bottom: 0.125rem solid #99ca48;
    }

    .menu-header li:last-child {
        border-bottom: none;
    }

    .menu-header li a {
        padding: 1.125rem 0;
        display: inline-block;
        font-size: 1rem;
    }

    .menu-header .sub-menu {
        height: 0;
        overflow: hidden;
    }

    .menu-header .sub-menu a {
        font-size: 0.875rem;
    }

    .menu-header .sub-menu li {
        border-bottom: 2px solid #99ca48;
        /*border-bottom: none;*/
    }

    .menu-item-has-children {
        direction: rtl;
    }

    .menu-item-has-children a {
        vertical-align: middle;
    }

    .menu-item-has-children::before {
        content: "";
        width: 1em;
        height: 1em;
        margin-left: 1em;
        background-image: url(../images/glyph-chevron-right-menu.svg);
        background-size: cover;
        display: inline-block;
        vertical-align: middle;
        transition: transform 0.5s;
        transform-origin: 75% 50%;
    }

    .menu-header .sub-menu {
        font-size: 0.7em;
    }

    .menu-header .sub-menu li {
        background-color: #f6ffe9;
        border-top: 0.125rem solid rgba(150, 202, 79, 0.6);
        border-bottom: none;
        /* background-color: #cbfa8a; */
    }

    .menu-header .sub-menu li:first-child {
        border-top: 2px solid #99ca48;
    }

    .menu-header .sub-menu .sub-menu li {
        background-color: #e0f7c0;
    }

    .menu-item-expanded::before {
        transform: rotate(90deg);
    }
}

/* desktop menu styles */
@media(min-width: 60rem) {
    .menu-header {
        position: relative;
        display: inline-block;
    }

    .menu-header .menu-item-has-children::after {
        content: "";
        width: 1.75rem;
        height: 1.75rem;
        background-image: url(../images/glyph-chevron-down-white.svg);
        background-size: cover;
        background-position: center;
        display: inline-block;
        vertical-align: middle;
    }

    .menu-header li {
        border: initial;
        display: inline-block;
        margin-left: 1rem;
        position: relative;
    }

    .menu-header li:first-child {
        margin-left: 0rem;
    }

    .menu-header li a {
        display: inline-block;
        padding: 1rem 0;
        vertical-align: middle;
    }

    .menu-header li a:hover, .menu-header li a:active, .menu-header li .current-menu-item > a {
        color: #98cb48;
    }

    .menu-header .sub-menu {
        height: initial;
        overflow: initial;
        display: none;
        position: absolute;
        padding: 0.5rem;
        top: calc(2rem + 1em);
        left: 0;
        width: auto;
        background-color: #fff;
        color: #013957;
        margin-right: -99999px;
    }

    .menu-header .sub-menu .menu-item-has-children::after {
        position: absolute;
        background-image: url(../images/glyph-chevron-right-menu.svg);
        width: 0.75rem;
        height: 0.75rem;
        top: 0.7rem;
        right: 0.5rem;
    }

    .menu-header .sub-menu a:hover {
        color: #013957;
    }

    .menu-header .sub-menu .sub-menu {
        left: 100%;
        top: 0;
    }

    .menu-header .sub-menu li {
        display: block;
        margin: 0;
        border-bottom: 2px solid #99ca48;
        position: relative;
    }

    .menu-header .sub-menu a:hover {
        background-color: #ECFFD2;
    }

    .menu-header .sub-menu li:last-child {
        border-bottom: none;
    }

    .menu-header .sub-menu li a {
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .menu-header li:hover > .sub-menu {
        display: inline-block;
    }
}

.menu-footer li {
    margin-bottom: 1rem;
}

/* forms */
.nested-form form {
    width: 100%;
    max-width: 61.5rem;
}

.nested-form label {
	font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
	color: #012B43;
}

.nested-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.nested-form textarea {
	background-color: #daf2ff;
	font-size: 18px;
    font-weight: 400;
    line-height: 27px;
	border: none;
	padding: .5rem 1rem;
    width: 100%;
    /* make room for the label text */
    margin-top: 8px;
}

.nested-form input[type=checkbox] {
    margin-right: 0.25rem;
}

.nested-form textarea {
    height: 6rem;
    min-width: 100%;
    max-width: 100%;
}

.nested-form input[type=submit] {
    background-color: #99ca48;
    color: #001620;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.625rem 1.5rem;
    border: none;
    font-weight: 700;
}

/* for contact form 7's inserted p tags */
.nested-form p {
    margin: 0;
}

.nested-form .wpcf7-list-item {
    margin: 0;
}

.nested-form button {
	font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    border-radius: 0px 0px 0px 0px;
    padding: 10px 25px 010px 25px;
	background-color: #99ca48;
}

/* accordions */
.accordion {
    font-family: "Inter", sans-serif;
    background-color: #fff;
    padding: 1.4rem 1.5rem;
    cursor: pointer;
}
.accordion__title {
    display: flex;
    justify-content: space-between;
    font-family: inherit;
    margin: 0;
}
.accordion__title__text {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}
.accordion__title__cross {
    background-color: transparent;
    border: none;
    margin: -0.5rem;
    transition: transform 0.5s;
    transform: rotate(0deg);
}
.accordion--collapsed .accordion__title__cross {
    transform: rotate(-135deg);
}
.accordion__text {
    overflow: hidden;
    cursor: auto;
    font-weight: 400;
    line-height: 1.5;
    padding-top: 1rem;
    transition: padding-top 0.5s;
}
.accordion--collapsed .accordion__text {
    padding-top: 0;
}
.accordion--collapsed .accordion__text {
    height: 0;
}
