/*
 Theme Name:   Divi Child Theme
 Theme URI:    https://c-3group.com
 Description:  Child Theme for Divi
 Author:       C-3 Group
 Author URI:   https://c-3group.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

h2 {
	color:#B9D552!important;
	font-size: 50px;
	padding-bottom:unset;
}

h3 {
	color:#515B6B!important;
	font-size: 30px;
	font-weight:400!important;
	padding-bottom:unset;
}

h4 {
	color:#B9D552!important;
	font-size: 25px;
	padding-bottom:unset;
}

h5 {
	color:#515B6B!important;
	font-size: 20px;
	font-style:italic!important;
	font-weight:600!important;
}

#et-main-area ul {
    margin-left: 25px;
}

#main-header {
    background-color: unset!important;
    -webkit-box-shadow: unset!important;
    box-shadow: unset!important;
	position:absolute!important;
}

/* Mobile: remove the extra top padding on #main-content */
@media (max-width: 980px) {
  #main-content {
    padding-top: 0 !important;
  }

  /* optional: add spacing only to the hero section under the header */
  .duotone-diag-section {
    padding-top: 140px; /* tweak to match your mobile header height */
  }
}


/* MOBILE LOGO SIZE */
@media (max-width: 980px) {

  /* Divi’s default logo */
  #logo {
    max-height: 90px !important;   /* change this */
    width: auto !important;
  }

  /* Divi Mobile Menu Customizer logo */
  .chi_dmm_mobile_menu_logo img {
    max-height: 90px !important;   /* change this */
    width: auto !important;
  }
	header#main-header.chi_mmc_activated {
    padding: 12px 0;
	}
	
	.et_header_style_left .mobile_menu_bar.mobile_menu_bar_toggle,
.et_header_style_left .logo_container {
        z-index: 10000;
    }
}

body.chi_dmm_styles header#main-header.chi_mmc_activated, body.chi_dmm_styles #top-header {
	    background-color: unset!important;
}

@media (min-width: 981px) {

	  /* Edit to change logo size */
	div#et-top-navigation {
    	margin-top: 50px;
    	margin-bottom: 50px;
	}

	#top-menu {
		gap: 0!important;
    }

	/* Control padding on each menu link */
#top-menu > li > a {
    padding: 18px 14px !important;
    line-height: 1.2 !important;
    height: auto !important;
    display: inline-block;
  }

  /* Turn the header container into a flex row */
  #main-header .container.et_menu_container {
    display: flex;
    align-items: center;      /* vertically center logo + nav together */
  }

  /* Kill the old float-based layout Divi uses */
  #main-header .logo_container,
  #main-header #et-top-navigation {
    float: none !important;
  }

  /* Push the nav over to the right, logo stays left */
  #main-header #et-top-navigation {
    margin-left: auto;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Optional: normalize menu item spacing a bit */
  #top-menu {
    display: flex;
    gap: 16px;                /* space between menu items; adjust as needed */
  }

  #top-menu > li {
    margin: 0;
    padding: 0;
  }
	
}

nav#top-menu-nav, #top-menu, nav.et-menu-nav, .et-menu {
	background: white;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
}

#top-menu > li.take-tour > a,
#mobile_menu > li.take-tour > a {
	background-color:#B9D552!important;
	color:white!important;
    font-weight: 800!important;
}

#top-menu-nav>ul>li>a:hover,
#mobile_menu > li.take-tour > a {
	opacity:1!important;
}

#top-menu-nav>ul>li>a:hover {
	background-color:#f0f0f0!important;
	opacity:1!important;
}

#top-menu-nav>ul>li.take-tour>a:hover {
	background-color:#9cb344!important;
	opacity:1!important;
}




/* Base overlay: always exists, but invisible by default */
.mobile_nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45); /* overlay color */
    z-index: 9990;
    pointer-events: none;             /* don't block menu clicks */
    opacity: 0;                        /* hidden by default */
    transition: opacity 0.35s ease 0.05s; /* small delay for smoother sync */
}

/* When menu is opened → fade overlay IN */
.mobile_nav.opened::before {
    opacity: 1;
}



.duotone-diag-section {
  position: relative;
  overflow: hidden;
}

/* 1. Grayscale overlay (in the diagonal area only) */
.duotone-diag-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: #000;               /* doesn't matter, blend-mode does the work */
  opacity: 1;

  mix-blend-mode: saturation;     /* forces grayscale */
  
  clip-path: polygon(
    0% 0%,
    60% 0%,
    40% 100%,
    0% 100%
  );
}

/* 2. Duotone color overlay (same shape) */
.duotone-diag-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(135deg, #515b6a, #464f5c);
  opacity: 0.85;

  mix-blend-mode: unset; /* or overlay / soft-light / multiply */

  clip-path: polygon(
    0% 0%,    
    60% 0%,  
    40% 100%, 
    0% 100%
  );
}

/* Mobile: full-image treatment */
@media (max-width: 980px) {
  .duotone-diag-section::before,
  .duotone-diag-section::after {
    clip-path: none;      /* full coverage */
  }
}



/* Right-side partial background on the row */
.right-bg-row {
    background: linear-gradient(
        to right,
        #ffffff 0,
        #ffffff 80%,
        #B9D552 80%,
        #B9D552 100%
    ) !important;
}



/* HOMEPAGE BLURB BUTTONS */

/* Center the icon + text group inside the blurb */
.icon-color .et_pb_blurb_content {
    display: flex !important;
    align-items: center !important;    /* vertically center icon + text */
    justify-content: center;           /* 🔑 center the whole group horizontally */
    width: 100%;
    /* outline: 2px solid red !important;  <-- keep for debug, remove when happy */
}

/* ICON WRAPPER – fixed width on the left */
.icon-color .et_pb_main_blurb_image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 45px;                    /* resize the icon */
    margin-bottom: 0 !important;
}

/* IMG fills icon wrapper */
.icon-color .et_pb_main_blurb_image img {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXT – only as wide as needed, no stretching */
.icon-color .et_pb_blurb_container {
    display: block;                    /* or flex, but no growth */
    flex: 0 0 auto;                    /* do NOT fill remaining width */
    text-align: left;                  /* keep text left-aligned within its bubble */
}

.icon-color .et_pb_module_header {
	padding:unset;
}

/* BLURB ICON COLOR */
.icon-color .et_pb_main_blurb_image img {
    filter: invert(35%) sepia(14%) saturate(1100%)
            hue-rotate(182deg) brightness(95%) contrast(94%);
}

/* Smooth transitions on everything */
.icon-color.et_pb_blurb {
    transition: background-color 0.3s ease;
}

.icon-color .et_pb_main_blurb_image img,
.icon-color .et_pb_module_header,
.icon-color .et_pb_module_header span,
.icon-color .et_pb_blurb_container {
    transition: color 0.3s ease, filter 0.3s ease;
}

/* HOVER STATE */
.icon-color.et_pb_blurb:hover {
    background-color: #B9D552 !important;
}

/* PNG turns white on hover */
.icon-color.et_pb_blurb:hover .et_pb_main_blurb_image img {
    filter: brightness(0) invert(1) !important;
}

/* TEXT turns white on hover */
.icon-color.et_pb_blurb:hover .et_pb_module_header,
.icon-color.et_pb_blurb:hover .et_pb_module_header span,
.icon-color.et_pb_blurb:hover .et_pb_blurb_container {
    color: #ffffff !important;
}

/* MOBILE/TABLET ONLY: make row as wide as widest blurb and center it */
@media (max-width: 980px) {
  .auto-width-row.et_pb_row {
    display: flex !important;
    flex-direction: column;              /* stack columns */
    align-items: center;                 /* center columns horizontally */
    width: fit-content !important;       /* row width = widest column */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .auto-width-row .et_pb_column {
    width: auto !important;              /* hug content instead of stretching */
    margin: 0 !important;
  }
}

/* MOBILE/TABLET ONLY: force all blurbs to match the width of the widest one */
@media (max-width: 980px) {

  /* The row is already fit-content and centered — good */

  /* Now force each column (blurb) to stretch to the row width */
  .auto-width-row .et_pb_column {
    width: 100% !important;              /* take full width of the row */
    display: flex !important;
    justify-content: center;             /* center the blurb inside the column */
  }

  /* Ensures the blurb itself doesn't stretch weirdly */
  .auto-width-row .et_pb_column .et_pb_blurb {
    width: 100% !important;              /* match widest blurb */
  }
}



/* 1. Home Slider */

/* 1. HIDE ARROW CONTROLS */
.home-slider .et-pb-arrow-prev,
.home-slider .et-pb-arrow-next {
    display: none !important;
}

/* 2. MOVE DOTS BELOW THE SLIDER */
.home-slider .et-pb-controllers {
    position: static !important;   /* stops Divi from overlaying them */
    margin-top: 20px;              /* adjust spacing below image */
    text-align: center;
}

/* 3. STYLE THE DOTS */
.home-slider .et-pb-controllers a {
    width: 16px;                   /* dot size */
    height: 16px;
    border-radius: 50%;
    background-color: #dcdcdc;     /* inactive dot color */
    margin: 0 6px;
    opacity: 1;
}

/* 4. ACTIVE DOT COLOR */
.home-slider .et-pb-controllers .et-pb-active-control {
    background-color: #B9D552;     /* active dot color */
}

/* Smaller slider dots on mobile */
@media (max-width: 767px) {
    .home-slider .et-pb-controllers a {
        width: 8px !important;   /* smaller dot */
        height: 8px !important;
        margin: 0 2px !important; /* slightly closer together */
    }
}


.mfp-bottom-bar {
	display:none;
}

img.mfp-img {
    border: solid white 10px;
    background: white;
}

.mfp-iframe-holder .mfp-close, .mfp-image-holder .mfp-close {
    color: black;
    padding-top: 8px;
}