/*
	Theme Name:  UAM2021
	Theme URI:   https://www.ccgideas.com
	Description: Custom WordPress Theme built by Cummings Creative Group and based upon the EA Starter Theme by Bill Erickson: https://github.com/billerickson/EA-Starter
	Author:      Bill Erickson & Nathan Owens
	Author URI:  https://www.ccgideas.com
	Version:     1.0.0
	License:     GPL-2.0+
	License URI: http://www.gnu.org/licenses/gpl-2.0.html


	BEFORE MODIFYING THIS THEME:
	Please read the instructions here (private repo): https://github.com/Cummings-Creative-Group/CCG-WordPressStarterTheme/tree/master/themes/ccgBlank2020-guten
	Devs, contact me if you need access
*/

/* Gravity Forms custom classes: labels-hidden & labels-hidden-top */
.gform_wrapper .gform_fields .labels-hidden label { 
	/* hides any label with the field */
	display: none!important;
  }
  .gform_wrapper .gform_fields .labels-hidden-top > label {
	   /* only hides the field's top label */
	display: none!important;
  }
  .gform_wrapper .gform_fields .gfield .ginput_container input[type="text"] {
	width: 100%;
  }
  .gform_button {
	display: inline-block;
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.42857143;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 4px;
  }
  
  /* there's also Gravity Forms classes like gf_left_half, gf_right_half, gf_left_third, gf_middle_third, gf_list_2col, gf_list_3col */

  /* change the text area field to be shorter */
  body .gform_wrapper textarea {
    height: 250px!important;
}

/* THEME STYLES */

/* using a lighter color for the diagonal background */
.lines-bg:before {
	background: url(/wp-content/themes/UAM2021/assets/img/brown-line-half.png);
}
.lines-bg--footer:before {
	background: url(/wp-content/themes/UAM2021/assets/img/blue-line.png);
}

/* remove dots from the items in footer menu */
.footer-menu-item {
	list-style-type: none;
	font-size:20px;
	line-height: 45px;
}

.hidden-cta-section{
	min-height: 461px;
}

.suggested-post-link{
	text-decoration: none;
	color:#000;
	font-size: 16px;
	line-height: 1.5em;
}

.search-results-container p::before{
	content:none;
}

.search-results-container a {
	text-decoration: none !important;
}

.search-results-container h3{
	margin-bottom: 0px;
}

.content{
	min-height: 60vh;
}

.nav-section{
	padding-top:30px;
}

.nav-section .col-12 a {
	font-weight: bold;
	float:right;
}

/* basic edits for paragraphs, headings, etc */
p {
	font-size: 16px;
}
@media (min-width: 580px) {
    h1 {
        font-size: 42px;
        line-height: 52px;
    }
    h2 {
        font-size: 38px;
        line-height: 46px;
    }
    h3 {
        font-size: 28px;
        line-height: 40px;
    }
    h4 {
        font-size: 24px;
        line-height: 32px;
    }
    h5 {
        font-size: 20px;
        line-height: 36px;
    }
	p, h5, .article li {
		font-size: 20px;
		line-height: 36px;
	}
	.home-top p, 
	.home-services__item p,
	.card__text {
		font-size: 16px;
		line-height: 24px;
	}
}
p {
	margin-block-start: 1.67em;
	margin-block-end: 1.67em;
}





@media (max-width: 767px){
	.footer-menu-item li {
		margin-bottom: 30px;
	}

	.footer-menu-item {
		margin:0px;
		padding: 0px;
	}
}

/* WordPress (WP) Admin Bar */
#wpadminbar {
    min-width: 0;
    max-width: 40px;
    overflow: hidden;
    transition: .5s;
}
#wpadminbar:hover {
    max-width: 100%;
    overflow: unset;
}
@media screen and (max-width: 782px) {
    #wpadminbar {
        top: unset;
        bottom: 0;
        position: fixed;
    }
}

/*Search form*/
*{margin:0;box-sizing:border-box;}
html,body{height:100%;font:14px/1.4 sans-serif;}
input, textarea{font:14px/1.4 sans-serif;}

.input-group{
  display: table;
  border-collapse: collapse;
  width:100%;
  margin-top:15px;
  margin-bottom:15px;
}
.input-group > div{
  display: table-cell;
  border: 1px solid #ddd;
  vertical-align: middle;  /* needed for Safari */
}
.input-group-icon{
  background:#f0ad4e;
  color: #777;
}
.input-group-area{
  width:100%;
}
.input-group input{
  border: 0;
  display: block;
  width: 100%;
  padding: 8px;
}

.input-group-icon button{
	border:none;
	cursor: pointer;
	background-color: #f0ad4e;
	color:#fff;
	font-weight: bold;
	font-size: 25px;
}


/* blockquote styles */
blockquote {
    position: relative;
    background: #fffdfa;
    -webkit-box-shadow: 0 3px 5px 2px #dadada;
    box-shadow: 0 3px 5px 2px #dadada;
    border-radius: 9px;
    color: #234b67;
    text-align: center!important;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
    margin-top: 24px;
}
blockquote:after,
blockquote:before {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -23px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: url(./assets/img/icons/quote.svg) 50% 50% no-repeat #e5ccba;
}
blockquote:before {
    left: -23px;
}
blockquote:after {
    right: -23px;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}
blockquote cite {
	font-style: normal;
	font-weight: bold;

}

.blog-single .article > p:first-of-type {
	font-weight: 700;
}

@media (max-width: 1149px) {
	blockquote {
        padding: 9px 24px;
    }
    blockquote:after,
    blockquote:before {
        width: 24px;
        height: 24px;
        background-size: 16px auto;
    }
    blockquote:after {
        right: -12px;
    }
    blockquote:before {
        left: -12px;
    }
}

@media (min-width: 1150px) {
	blockquote {
        padding: 39px 55px;
    }
}

.page-bottom .large p {
    letter-spacing: 0.04em;
    font-weight: 400;
	font-size: 28px;
}
.page-bottom .normal p {
	font-size: 20px;
}
.page-bottom .large strong,
.page-bottom .normal strong {
	color: #0c7d70;
}

.page-bottom__icon p.font-semibold {
	text-transform: uppercase;
	margin-bottom: 0;
	margin-top: 0;
	font-family: "DM Sans", sans-serif;
}

.qa ul li {
	font-weight: normal;
}

.skip-link {
	z-index: 9999 !important;
	background: #f0ad4e;
	color: #234b67;
	font-weight: 700;
	left: 50%;
	padding: 4px;
	position: absolute;
	transform: translateY(-100%);
  }
  
  .skip-link:focus {
	transform: translateY(0%);
  }


  /* gravity forms */
.custom-form {
    margin-bottom: 44px;
    padding: 24px;
}
.custom-form .gfield {
    position: relative;
    margin-top: 16px;
}
.custom-form .gfield .gfield_label,
.custom-form .gfield .ginput_container_checkbox label {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}
.custom-form .gfield .gfield_label {
    position: absolute;
    left: 30px;
    top: 20px;
}
.custom-form .gfield .gfield_label.top {
    font-size: 10px;
    top: 7px;
}
.custom-form .gfield .ginput_container_checkbox--small label {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}
.custom-form .gfield .ginput_container {
    margin-top: 4px;
}
.custom-form .gfield .ginput_container_checkbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.custom-form .gfield .gfield_fake-ckeckbox {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 10px;
}
.custom-form .gfield .gfield_fake-ckeckbox input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
}
.custom-form .gfield .gfield_fake-ckeckbox input:checked + span {
    background: url(../img/icons/check.svg) 50% 50%/12px auto no-repeat #b38869;
}
  .custom-form .gfield .gfield_fake-ckeckbox span {
    width: 16px;
    height: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border: 2px solid #b38869;
    border-radius: 2px;
}
.custom-form .gfield input[type="email"],
.custom-form .gfield input[type="number"],
.custom-form .gfield input[type="tel"],
.custom-form .gfield input[type="text"],
.custom-form .gfield select,
.custom-form .gfield textarea {
    width: 100%;
    padding-left: 30px!important;
    padding-right: 30px!important;
    border-radius: 5px 5px 0 0;
    border: 1px solid #e5ccba;
    border-bottom: 2px solid #b38869;
    background: 0 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    font-family: "DM Sans", sans-serif!important;
    font-size: 16px!important;
    font-weight: 500!important;
	margin-top: 0!important;
}
.custom-form .gfield select { 
	padding-left: 25px!important;
}
.custom-form .gfield input[type="email"]:focus,
.custom-form .gfield input[type="email"]:hover,
.custom-form .gfield input[type="number"]:focus,
.custom-form .gfield input[type="number"]:hover,
.custom-form .gfield input[type="tel"]:focus,
.custom-form .gfield input[type="tel"]:hover,
.custom-form .gfield input[type="text"]:focus,
.custom-form .gfield input[type="text"]:hover,
.custom-form .gfield select:focus,
.custom-form .gfield select:hover,
.custom-form .gfield textarea:focus,
.custom-form .gfield textarea:hover {
    outline: 0 !important;
    border-bottom-color: #f0ad4e;
}
.custom-form .gfield input[type="email"],
.custom-form .gfield input[type="number"],
.custom-form .gfield input[type="tel"],
.custom-form .gfield input[type="text"],
.custom-form .gfield select {
    height: 45px;
}
.custom-form .gfield input[type="email"],
.custom-form .gfield input[type="number"],
.custom-form .gfield input[type="tel"],
.custom-form .gfield input[type="text"] {
    padding-top: 10px!important;
}
.custom-form .gfield textarea {
    height: 96px;
    padding-top: 15px!important;
    padding-bottom: 15px!important;
    resize: none;
}
.custom-form .gform_footer {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 20px;
}
.custom-form .gform_footer input[type="submit"] {
    width: 230px!important;
    height: 45px!important;
    border-radius: 23px!important;
    border: none;
    background: #234b67;
    color: #fff;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    letter-spacing: 0.04em;
}
.custom-form .gform_footer input[type="submit"]:hover {
    background: #f0ad4e;
    color: #234b67;
}

.custom-form .gfield_checkbox {
	margin-bottom: 0!important;
}
.custom-form .gfield_checkbox > li {
	display: flex;
	align-items: flex-start;
}
.custom-form .gfield_checkbox input {
	margin-top: 0!important;
	margin-right: 10px!important;
}

@media (max-width: 640px) {
	.custom-form .gfield .gfield_label {
		top: 13px;
	}
	.custom-form .gfield .gfield_label.top {
		top: 5px;
	}
}


/* remove grayscale effect */
.card:not(.card--static) .card__photo {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}

.search-result-paragraphs p
{
    margin-block-start: 0px; 
    margin-block-end:0px;
    margin-bottom:15px;
}

.search-result-timestamp
{
    margin-left:10px;
    font-size:12px;
    font-weight: bold;
}

.searchNav .col-12 {
    width:100%;
    position:relative;
}

/* The previous or previous page link (last link on page) */
.searchNav .col-12 a:first-child{
    color: #234b67;
    font-size: 20px;
    float:right;
    text-decoration: none;
}

/* The next or next page link (first link on page) */
.searchNav .col-12 a:last-child { 
    color:#234b67;
    font-size: 20px;
    float:left;
    text-decoration: none;

}

.article ul, .article ol {
    margin-bottom: 2rem;
}
.article h1 strong {
    font-weight: 900;
}

body {
    font-family: 'DM Sans', sans-serif;
}

.sub-menu li a {
    display: inline-flex;
}

.side-menu > span.green {
    font-size: 16px;
}

.article a:not(.btn):hover {
    background-color: #ebf1ec;
}

.article ul li, .article ol li {
    line-height: 32px;
}

footer .btn--yellow-navy:hover,
header .navigation .navigation__links .btn--yellow-navy:hover {
    background-color: white;
    color: #234b67;
}

.page-bottom.pt-0 {
    padding-top: 0;
}

.search-result-link{
    color: #0c7d70;
    font-weight:900 !important;
}

.search-button {
    color:#234b67 !important;
}

@media (min-width: 1150px) {
    .navigation .menu > li.menu-item-has-children > a {
        padding-right: 24px;
    }
    .navigation .menu > li.menu-item-has-children > a:before {
        content: "";
        position: absolute;
        top: 0;
        right: -1px;
        width: 33px;
        height: 100%;
        background: url(/wp-content/themes/UAM2021/assets/img/icons/arrow-down.svg) 50% 50% no-repeat;
        background-size: 40%;
        -webkit-transition: 0.3s;
        transition: 0.3s;
    }
    .navigation .menu > li.sub-menu-opened a:before {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
}

@media (max-width: 1165px) {
    .navigation .menu > li.menu-item-has-children > a {
        font-size: 14px;
    }
}

@media (max-width: 1149px) {
    .article ul li, .article ol li {
        line-height: 22px;
    }
    .article li + li {
        margin-top: 8px;
    }
    .wrap {
        padding-top: 86px;
    }
}

@media (min-width: 1150px) {
    .article li + li {
        margin-top: 18px;
    }

    .filters-bottom {
        margin-top: 40px;
    }

    .wrap {
        padding-top: 96px;
    }
}

@media (max-width: 767px) {
    .locations__content {
        padding-top: 0;
    }
    .location__address.col {
        margin-bottom: 3rem;
    }

    /*
        Limit the hight of the carousel controls when in mobile
    */

    .carousel-heading-text{
        max-height: 128px !important;
    }

    .footer__links a:after {
        bottom: -3px;
    }
}

.js-search-btn{
    border-style:none;
    background-color:inherit;
}

.container-short {
    max-width: 865px;
    width: 100%;
}

.blog-single .suggestion__item p {
    font-weight: 400;
}

.aligncenter {
    clear: both;
    margin: 1.5rem auto;
    display: block;
}

.mb_1 {
    margin-bottom: 1rem!important;
}
.schema-faq-answer {
    margin-top: 0;
}

.home-services__col {
    max-width: 515px;
    margin-left: auto;
    margin-right: auto;
}

.footer__socials {
    justify-content: flex-end;
}

.header__top-links {
    justify-content: flex-end;
}
.header__top-link {
    margin-left: 85px;
}

@media (max-width: 991px) {
    .header__top-link {
        margin-left: 50px;
    }
}

@media (max-width: 767px) {
    .top-slider .slick-slide:nth-child(3n + 3) {
        background-color: #0a7064;
    }
    
    .top-slider .slick-slide:nth-child(3n+1) {
        background-color: #b74c34;
        background-color: #a4442e;
        background-color: #923c29;
    }
}


.home-services__title--green,
.btn--green-white {
    background-color: #209d9d;
}
.light-green {
    color: #209d9d;
}

.home-services__content p.title {
    line-height: 28px;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 20px;
}

.blog__row, .filters, .filters__hidden-content {
    justify-content: space-around;
}

/* go with the select box for filters in all screens instead of the buttons */
.page-top .filters {
    display: none;
}
.filters-select {
    position: relative;
    width: 100%;
    height: 45px;
    max-width: 417px;
    margin-left: auto;
    margin-right: auto;
    background: #fffdfa;
    border: 1px solid rgba(229,204,186,.5);
    -webkit-box-shadow: 0 3px 5px #dadada;
    box-shadow: 0 3px 5px #dadada;
    border-radius: 5px;
    display: block;
}
.filters-select select {
    width: 100%;
    height: 45px;
    padding-left: 20px;
    padding-right: 60px;
    font-size: 15px;
    color: #234b67;
    font-family: inherit;
    border: none;
    border-radius: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0;
    cursor: pointer;
}
.filters-select:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 20px;
    height: 13px;
    background: url(/wp-content/themes/UAM2021/assets/img/icons/arrow-down.svg);
}