/* 
 Theme Name:     Effective Digital Marketing - Child
 Author:         Effective Digital Marketing, LLC
 Author URI:     https://www.effectivedigital.us
 Template:       Divi
 Version:        1.0.9
 Date:           8/31/2022
 Description:    A Child Theme built using the elegantmarketplace.com Child theme maker. Developed by Andrew Palmer for Elegant Marketplace www.elegantmarketplace.com Free to use and duplicate as many times as you like
 Wordpress Version: 6.0.1
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 

/* Setting the breakpoint of the mobile menu
@media only screen and ( max-width: 1190px ) {
#top-menu-nav, #top-menu {
	display: none;
	}
#et_top_search {
	display: none;
	}
#et_mobile_nav_menu {
	display: block;
	}
}*/

/*Google Review Button
#greview {
	bottom: 100px;
	position: fixed;
	left: -120px;
	z-index: 99999999;
	transition: 1s ease-out !important;
}
#greview::after {
	box-sizing: inherit;
}
#greview::before {
	box-sizing: inherit;
}
#greview a:active {
	outline: none;
}
#greview a:hover {
	outline: none;
}
#greview img {    
	max-width: 180px !important;
	margin: 0;
}
#greview picture {    
	margin: 0;
}
#greview:hover {
    left: 0px !important;
    transition: 1s ease-in !important;
}
@media (max-width: 700px){
	#greview {
		display:none !important;
	}
}*/

/*WP Forms CSS*/
.wpforms-submit {
    background:#990000 !important;
    color: #ffffff !important;
    border: 2px solid #990000 !important;
	border-radius: 50px!important;
    transition-duration: .2s !important;
    float: right !important;
}
.wpforms-submit:hover {
    background:#4b0000 !important;
    color: #ffffff !important;
    border: 2px solid #4b0000 !important;
	border-radius: 50px!important;
    transition-duration: .2s !important;
    float: right !important;
}

/* Move reCAPTCHA v3 badge to the left*/
.grecaptcha-badge {
  width: 70px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  left: 4px !important;
  z-index: 99999999 !important;
}

.grecaptcha-badge:hover {
  width: 256px !important;
}

@media (max-width: 700px) {
.grecaptcha-badge {
	display:none
	}
}

/* Footer Social Icons not Stacked*/
.et-social-icons {
	list-style-type:none;
	font-size: 24px!important;
}
.et-social-icon {
	display: inline;
	margin:0 5px 0 5px;
}
.et-social-icon::marker {
	color:transparent !important;
}

/* Bigger Logo Size > 980px
@media (max-width: 980px) {
.et_header_style_left #logo {
    width: 5em;
    height: auto !important;
}
.logo_container {
    height: 8em !important;
    margin-top: -1.5em
}
}*/

/* Logo Sizing on Tablet & Mobile
@media ( max-width: 980px ) {
.logo_container {
    height: 9em !important;
    width: 100% !important;
    margin-top: -2em
}
}*/

/*Hover Zoom
.hover-zoom .et_pb_image_wrap {
    box-shadow: 4px 0 4px rgba(0, 23, 55, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hover-zoom .et_pb_image_wrap:hover {
    box-shadow: 8px 0 8px rgba(0, 23, 55, 0.4);
    transform: scale(1.1);
}*/

/*hide mobile header
@media (max-width: 1190px) {
#main-header { display:none; }
#page-container {
padding-top:0px !important;
margin-top:-1px !important
}
}*/


@media (min-width: 981px) {
/* ===== SUBMENU (DROPDOWN) ===== */
/* Dropdown panel */
.et_pb_menu li ul {
  padding: 0 !important;
  border-top: none !important;
  width: 200px !important;
}

/* Submenu list items (container) */
.et_pb_menu li li {
  padding: 0 !important;
  width: 200px !important;
}

/* Submenu links: white, normal weight, no border/underline */
.et_pb_menu li li a {
  font-size: 12px !important;
  width: 200px !important;
}

/* Submenu hover: #4b0000 background + #b2c0c0 text, bold weight */
.et_pb_menu li li a:hover,
.et_pb_menu li li a:focus {
  opacity: 1 !important;
  background: #4b0000 !important;
}

/* Submenu active = behave like hover */
.et_pb_menu li li.current-menu-item > a,
.et_pb_menu li li.current_page_item > a {
  background: #4b0000 !important;
  color: #b2c0c0 !important;
}
	
/* Make each top-level LI a positioning context */
.et_pb_menu .et-menu > li {
  position: relative;
  z-index: 1; /* keep underline above header background */
}

/* Animated underline on the LI itself (2px thick now) */
.et_pb_menu .et-menu > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;                   /* locks to the bottom edge of the whole menu item */
  height: 2px;                 /* thicker underline */
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease-out;
  pointer-events: none;
  z-index: 0;
}

/* Trigger the line when the link is hovered/focused */
.et_pb_menu .et-menu > li:hover::after,
.et_pb_menu .et-menu > li:focus-within::after {
  transform: scaleX(1);
}

/* Keep the line for active/current items */
.et_pb_menu .et-menu > li.current-menu-item::after,
.et_pb_menu .et-menu > li.menu-item-has-children.current-menu-parent::after,
.et_pb_menu .et-menu > li.menu-item-has-children.current-menu-ancestor::after {
  transform: scaleX(1);
}

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  .et_pb_menu .et-menu > li::after { transition: none; }
}
    
/* Make the caret spin up on hover (top-level items with children) */
.et_pb_menu .et-menu > li.menu-item-has-children > a::after {
  display: inline-block;              /* needed so transform applies */
  transform: rotate(0deg);
  transform-origin: center center;
  transition: transform 180ms ease-out;
  /* Divi already sets the icon via font; we only animate it */
}

/* Hover/focus: rotate the caret to point up */
.et_pb_menu .et-menu > li.menu-item-has-children:hover > a::after,
.et_pb_menu .et-menu > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg);
}

/* Optional: keep it spun for active/ancestor states if you like */
.et_pb_menu .et-menu > li.menu-item-has-children.current-menu-parent > a::after,
.et_pb_menu .et-menu > li.menu-item-has-children.current-menu-ancestor > a::after {
  transform: rotate(180deg);
}

}

/* ===== Global Divi buttons (no extra transitions) ===== */
body .et_pb_button,
body a.et_pb_button,
body .et_pb_promo_button,
body .et_pb_more_button,
body .et_pb_button_module_wrapper .et_pb_button {
  cursor: pointer !important;
}

/* Keep hover consistent (no animation, no spacing jump) */
body .et_pb_button:hover,
body a.et_pb_button:hover,
body .et_pb_promo_button:hover,
body .et_pb_more_button:hover,
body .et_pb_button_module_wrapper .et_pb_button:hover {
  cursor: pointer !important;
}

/* ===== Variant: buttons on red backgrounds ===== */
body .et_pb_button.red-bkg,
body a.et_pb_button.red-bkg {
  cursor: pointer !important;
  background: transparent !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

body .et_pb_button.red-bkg:hover,
body a.et_pb_button.red-bkg:hover {
  cursor: pointer !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #990000 !important;
}

.fixed-scroll-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  opacity: 0; transform: translateY(-100%);
  transition: opacity .28s ease, transform .28s ease;
  will-change: transform, opacity;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.fixed-scroll-nav.visible { opacity: 1; transform: translateY(0); }

#fixed-nav-spacer {
  height: 0px;
  transition: height .28s ease;
}

@media (max-width: 980px) {
  .fixed-scroll-nav {
    display: none !important;
  }

  /* Optional: also reset spacer height so it doesn't leave a gap */
  #fixed-nav-spacer {
    display: none;
    height: 0 !important;
  }
}