/*
 Theme Name:   ARC Wildlife Removal
 Template:     generatepress
 Author: Community Web Development
 Author URI: http://www.comminternet.com/
 Version: 1.0
*/

/* clearfix */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/* prevent tel clicks on desktops */
a[href^="tel"] { pointer-events: none; text-decoration: none; }

/* allow tel clicks on phones */
@media (max-width: 767px) {
	a[href^="tel"] { pointer-events: auto; }
}


/* GLOBALS */

a.gb-container {
	text-decoration: none;
}

p:empty {
	display: none;
}

.alignleft, .alignright, .aligncenter {
	margin-top: 1em;
	margin-bottom: 1em;
}

.wp-caption {
    border: 1px solid #ccc;
    padding-top: 5px;
}

.wp-caption .wp-caption-text {
	text-align: center;
	padding: 1em;
	margin: 0;
}

.copyright-bar ul.menu {
	margin-left: 0;
}

.copyright-bar ul.menu li {
	display: inline;
	margin: 0 10px;
}

.copyright-bar p.branding {
	margin-bottom: 0;
}

.social-media li.other path {
	fill: currentColor;
}

.social-media li svg {
	height: 1em;
	width: 1em;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	text-decoration: none;
}

/*

FIX BUG WHERE TOP LEVEL HOVER COLOR REVERTS WHEN SELECTING A DROPDOWN MENU ITEM WHICH IS A DESCENDANT OF THE CURRENT PAGE

.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"]:focus > a {
	color: #fff !important;
}

*/

/* Gravity forms popup confirmation message */

/* functional */
.gform_confirmation_message {
  top: 50%;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
  position: fixed;
  z-index: 99999;
}

.gform_confirmation_message:after {
	content: "\2715";
	position: absolute;
	top: 5px;
	right: 10px;
	color: #fff;
	font-weight: bold;
}

.gform_confirmation_message.hide {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
}

/* colors and styling */
.gform_confirmation_message {
  width: 90%;
  max-width: 660px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 30px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.gform_confirmation_message a {
	color: #fff;
	text-decoration: none;
}

button {
	border-radius: 3px;
}

#primary-menu ul.menu > li:last-child a {
  color: var(--base-3);
  background: var(--orange);
  border-radius: 3px;
  transition: all 0.5s ease;
  margin-left: 15px;
}

#primary-menu ul.menu > li:last-child a:hover {
  background: var(--green);
  transition: all 0.5s ease;
}

#sticky-navigation #primary-menu ul.menu > li:last-child a {
	border-radius: 0px;
}

.absolute-form {
	position: absolute;
	right: 60px;
	top: -60px;
}

body .footer-form .gform_footer,
body .footer-form .gform_button,
.absolute-form .gform_footer,
.absolute-form .gform_button {
	padding-bottom: 0px !important;
	margin-bottom: 0px !important;
	width: 100%;
}

body .footer-form .gform_button,
.absolute-form .gform_button {
	padding: 10px 15px !important;
}

body .footer-form .gform_required_legend {
	display: none;
}

iframe.gmap {
	width: 100%;
	height: 100%;
}

iframe.gmap:before {
	content: "";
	position: absolute;
	height: 40px;
	width: 40px;
	top: 0;
	right: 0;
	background: red;
}

.menu-footer-menu-container ul {
	margin-left: 0;
	list-style-type: none;
}

.menu-footer-menu-container ul li {
	margin-right: 10px;
	display: inline;
}

.copyright, .branding {
	margin: 0;
}

/* contact */
body.page-id-67 .banner-hero .gb-button {
	display: none;
}

@media (min-width: 1024px) {
	
	#sticky-placeholder {
		height: 60px;
	}
	
}

@media (min-width: 1024px) and (max-width: 1139px) {
	
	#primary-menu ul.menu > li:first-child {
		display: none;
	}
	
}

/* Generatepress Preset Breakpoints iPad portrait*/
@media (max-width: 1023px) {

	.main-navigation .menu-toggle {
		background: var(--green) !important;
		color: #fff !important;
		font-size: 27px;
	}
	
}

/* Custom iPad breakpoint */
@media (max-width: 768px) {

	.site-header .header-image {
		margin-left: 20px;
	}
	
	#primary-menu .menu li a {
		text-align: center;
	}
	
	#primary-menu ul.menu > li:last-child a {
		margin: 15px;
	}
	
	.main-navigation .menu-toggle {
		margin-right: 20px;
	}
	
	.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle {
		float: right;
		position: absolute;
		width: 100%;
		text-align: right;
		right: 0;
	}
	
	.main-navigation.toggled .main-nav ul ul.toggled-on {
		top: -20px;
		background: var(--base-2);
	}

	#sticky-navigation.main-navigation.has-sticky-branding.navigation-stick .menu-toggle {
		padding: 0 15px;
		height: 50px;
		margin-top: 5px;
		margin-bottom: 5px;
		line-height: 50px;
	}
	

}

/* Generatepress Preset Breakpoints under iPad*/
@media (max-width: 767px) {

	#sticky-navigation a.gb-button-primary .gb-icon {
		padding-left: 0;
	}
	
	.main-navigation .menu-toggle {
		margin-right: 15px;
	}
	
	.site-header .header-image {
	  margin-left: 15px;
	  width: 220px;
	}

	#sticky-navigation .navigation-branding img {
	  height: 50px;
	}

	.cape-cod-map ul {
		margin-left: 1.5em;
	}
	
	.copyright,
	.menu-footer-menu-container ul {
		margin: 10px;
	}

}

@media (max-width: 359px) {

	.site-header .header-image {
	  width: 200px;
	}

	#sticky-navigation .navigation-branding img {
	  height: 46px;
	}
	
	.site-footer {
		font-size: 15px;
	}

	.branding a {
		font-size: 10px;
	}
}

/**
 * MODERN ANIMATION EFFECTS FOR GP
 */
 
 /* Sub-menu effect */
.main-navigation ul ul {
	left: auto;
	transition: opacity 300ms ease-in-out, transform 200ms ease-in-out, height 200ms ease-in-out;
	transform: translateY(20px);
	height: auto;
}

.main-navigation:not(.toggled) ul li:hover>ul, .main-navigation:not(.toggled) ul li.sfHover>ul {
	transform: translateY(0);
}

.slideout-navigation.do-overlay .slideout-menu .sub-menu li a {
	display: block;
}


.secondary-navigation.toggled .main-nav > ul {
	max-height: 1000px;
	animation: navFadeInDown 500ms ease-in-out both;
	transition: opacity 500ms ease-in-out;
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0;
}
    
@keyframes navFadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}