<?php 

	$cleaning_expert_custom_style = '';

	// Logo Size
	$cleaning_expert_logo_top_padding = get_theme_mod('cleaning_expert_logo_top_padding');
	$cleaning_expert_logo_bottom_padding = get_theme_mod('cleaning_expert_logo_bottom_padding');
	$cleaning_expert_logo_left_padding = get_theme_mod('cleaning_expert_logo_left_padding');
	$cleaning_expert_logo_right_padding = get_theme_mod('cleaning_expert_logo_right_padding');

	if( $cleaning_expert_logo_top_padding != '' || $cleaning_expert_logo_bottom_padding != '' || $cleaning_expert_logo_left_padding != '' || $cleaning_expert_logo_right_padding != ''){
		$cleaning_expert_custom_style .=' .logo {';
			$cleaning_expert_custom_style .=' padding-top: '.esc_attr($cleaning_expert_logo_top_padding).'px; padding-bottom: '.esc_attr($cleaning_expert_logo_bottom_padding).'px; padding-left: '.esc_attr($cleaning_expert_logo_left_padding).'px; padding-right: '.esc_attr($cleaning_expert_logo_right_padding).'px;';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_logo_size = get_theme_mod('cleaning_expert_logo_size');
	if( $cleaning_expert_logo_size != '' ) {
		if($cleaning_expert_logo_size >= 0 && $cleaning_expert_logo_size <= 100) {
			$calculated_width = $cleaning_expert_logo_size * 3.5;
			$cleaning_expert_custom_style .= ' .custom-logo-link img {';
			$cleaning_expert_custom_style .= ' width: ' . esc_attr($calculated_width) . 'px;';
			$cleaning_expert_custom_style .= ' }';
		}
	}

	//Site title tagline color
	$cleaning_expert_site_title_color = get_theme_mod('cleaning_expert_site_title_color');
	if ( $cleaning_expert_site_title_color != '') {
		$cleaning_expert_custom_style .=' h1.site-title a, p.site-title a {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_site_title_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_site_tagline_color = get_theme_mod('cleaning_expert_site_tagline_color');
	if ( $cleaning_expert_site_tagline_color != '') {
		$cleaning_expert_custom_style .=' p.site-description {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_site_tagline_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_hdrbtn_color = get_theme_mod('cleaning_expert_hdrbtn_color');
	if ( $cleaning_expert_hdrbtn_color != '') {
		$cleaning_expert_custom_style .=' #header .contact-btn a {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_hdrbtn_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_hdrbtnbg_color1 = get_theme_mod('cleaning_expert_hdrbtnbg_color1');
	$cleaning_expert_hdrbtnbg_color2 = get_theme_mod('cleaning_expert_hdrbtnbg_color2');
	if ( $cleaning_expert_hdrbtnbg_color1 != '') {
		$cleaning_expert_custom_style .=' #header .contact-btn a {';
			$cleaning_expert_custom_style .=' background-image: linear-gradient(90deg,'.esc_attr($cleaning_expert_hdrbtnbg_color1).' 0%,'.esc_attr($cleaning_expert_hdrbtnbg_color2).' 86%);';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_menu_color = get_theme_mod('cleaning_expert_menu_color');
	if ( $cleaning_expert_menu_color != '') {
		$cleaning_expert_custom_style .=' .nav-menu ul li a {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_menu_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_submenu_color = get_theme_mod('cleaning_expert_submenu_color');
	$cleaning_expert_submenubg_color = get_theme_mod('cleaning_expert_submenubg_color');
	if ( $cleaning_expert_submenu_color != '') {
		$cleaning_expert_custom_style .=' .nav-menu ul ul a {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_submenu_color).'; background-color:'.esc_attr($cleaning_expert_submenubg_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_headerbg_color = get_theme_mod('cleaning_expert_headerbg_color');
	if ( $cleaning_expert_headerbg_color != '') {
		$cleaning_expert_custom_style .=' #header {';
			$cleaning_expert_custom_style .=' background-color:'.esc_attr($cleaning_expert_headerbg_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	//layout width
	$cleaning_expert_boxfull_width = get_theme_mod('cleaning_expert_boxfull_width');
	if ($cleaning_expert_boxfull_width !== '') {
		switch ($cleaning_expert_boxfull_width) {
			case 'container':
				$cleaning_expert_custom_style .= ' body, #header, .bottom-header {
					max-width: 1140px;
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'container-fluid':
				$cleaning_expert_custom_style .= ' body, #header, .bottom-header { 
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'none':
				// No specific width specified, so no additional style needed.
				break;
			default:
				// Handle unexpected values.
				break;
		}
	}

	//Menu animation
	$cleaning_expert_dropdown_anim = get_theme_mod('cleaning_expert_dropdown_anim');

	if ( $cleaning_expert_dropdown_anim != '') {
		$cleaning_expert_custom_style .=' .nav-menu ul ul {';
			$cleaning_expert_custom_style .=' animation:'.esc_attr($cleaning_expert_dropdown_anim).' 1s ease;';
		$cleaning_expert_custom_style .=' }';
	}

	//Slider color
	$cleaning_expert_slider_heading_font_size = get_theme_mod('cleaning_expert_slider_heading_font_size');
	if ( $cleaning_expert_slider_heading_font_size != '') {
		$cleaning_expert_custom_style .=' #slider h3 {';
			$cleaning_expert_custom_style .=' font-size:'.esc_attr($cleaning_expert_slider_heading_font_size).'px;';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_slider_heading_color = get_theme_mod('cleaning_expert_slider_heading_color');
	if ( $cleaning_expert_slider_heading_color != '') {
		$cleaning_expert_custom_style .=' #slider h3 {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_slider_heading_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_slider_title_color = get_theme_mod('cleaning_expert_slider_title_color');
	if ( $cleaning_expert_slider_title_color != '') {
		$cleaning_expert_custom_style .=' #slider h2 {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_slider_title_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_slider_text_color = get_theme_mod('cleaning_expert_slider_text_color');
	if ( $cleaning_expert_slider_text_color != '') {
		$cleaning_expert_custom_style .=' #slider p {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_slider_text_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_slider_btn_color = get_theme_mod('cleaning_expert_slider_btn_color');
	$cleaning_expert_slider_btnbg_color = get_theme_mod('cleaning_expert_slider_btnbg_color');
	if ( $cleaning_expert_slider_btn_color != '') {
		$cleaning_expert_custom_style .=' #slider a.read-btn {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_slider_btn_color).'; background-color:'.esc_attr($cleaning_expert_slider_btnbg_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_slider_btnhvr_color = get_theme_mod('cleaning_expert_slider_btnhvr_color');
	$cleaning_expert_slider_btnbghvr_color = get_theme_mod('cleaning_expert_slider_btnbghvr_color');
	if ( $cleaning_expert_slider_btnhvr_color != '') {
		$cleaning_expert_custom_style .=' #slider a.read-btn:hover {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_slider_btnhvr_color).'; background-color:'.esc_attr($cleaning_expert_slider_btnbghvr_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	//Feature css
	$cleaning_expert_featuresection_title_font_size = get_theme_mod('cleaning_expert_featuresection_title_font_size');
	if ( $cleaning_expert_featuresection_title_font_size != '') {
		$cleaning_expert_custom_style .=' .section-heading h3 {';
			$cleaning_expert_custom_style .=' font-size:'.esc_attr($cleaning_expert_featuresection_title_font_size).'px;';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_color = get_theme_mod('cleaning_expert_feature_color');
	if ( $cleaning_expert_feature_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .section-heading h3 {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_feature_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_before_color = get_theme_mod('cleaning_expert_feature_before_color');
	if ( $cleaning_expert_feature_before_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .section-heading h3:before {';
			$cleaning_expert_custom_style .=' background-color:'.esc_attr($cleaning_expert_feature_before_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_after_color = get_theme_mod('cleaning_expert_feature_after_color');
	if ( $cleaning_expert_feature_after_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .section-heading h3:after {';
			$cleaning_expert_custom_style .=' background-color:'.esc_attr($cleaning_expert_feature_after_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_child1_icon_color = get_theme_mod('cleaning_expert_feature_child1_icon_color');
	if ( $cleaning_expert_feature_child1_icon_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .featuresbx:nth-child(1) .hi-icon i, #feature-section .featuresbx:nth-child(5) .hi-icon i {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_feature_child1_icon_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_child2_icon_color = get_theme_mod('cleaning_expert_feature_child2_icon_color');
	if ( $cleaning_expert_feature_child2_icon_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .featuresbx:nth-child(2) .hi-icon i, #feature-section .featuresbx:nth-child(6) .hi-icon i {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_feature_child2_icon_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_child3_icon_color = get_theme_mod('cleaning_expert_feature_child3_icon_color');
	if ( $cleaning_expert_feature_child3_icon_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .featuresbx:nth-child(3) .hi-icon i, #feature-section .featuresbx:nth-child(7) .hi-icon i {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_feature_child3_icon_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_feature_child4_icon_color = get_theme_mod('cleaning_expert_feature_child4_icon_color');
	if ( $cleaning_expert_feature_child4_icon_color != '') {
		$cleaning_expert_custom_style .=' #feature-section .featuresbx:nth-child(4) .hi-icon i, #feature-section .featuresbx:nth-child(8) .hi-icon i {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_feature_child4_icon_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	//Service css
	$cleaning_expert_service_img_hight = get_theme_mod('cleaning_expert_service_img_hight');

	if ( $cleaning_expert_service_img_hight != '') {
		$cleaning_expert_custom_style .=' #service-section .service-box img {';
			$cleaning_expert_custom_style .=' height:'.esc_attr($cleaning_expert_service_img_hight).'px;';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_font_size = get_theme_mod('cleaning_expert_service_font_size');
	if ( $cleaning_expert_service_font_size != '') {
		$cleaning_expert_custom_style .=' #service-section .section-heading h3 {';
			$cleaning_expert_custom_style .=' font-size:'.esc_attr($cleaning_expert_service_font_size).'px;';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_heading_color = get_theme_mod('cleaning_expert_service_heading_color');
	if ( $cleaning_expert_service_heading_color != '') {
		$cleaning_expert_custom_style .=' .section-heading h3 {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_service_heading_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_heading_before_color = get_theme_mod('cleaning_expert_service_heading_before_color');
	if ( $cleaning_expert_service_heading_before_color != '') {
		$cleaning_expert_custom_style .=' .section-heading h3:before {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_service_heading_before_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_heading_after_color = get_theme_mod('cleaning_expert_service_heading_after_color');
	if ( $cleaning_expert_service_heading_after_color != '') {
		$cleaning_expert_custom_style .=' .section-heading h3:after {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_service_heading_after_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_servicebdr_color = get_theme_mod('cleaning_expert_servicebdr_color');
	if ( $cleaning_expert_servicebdr_color != '') {
		$cleaning_expert_custom_style .=' #service-section .service-box {';
			$cleaning_expert_custom_style .=' border-color:'.esc_attr($cleaning_expert_servicebdr_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_color = get_theme_mod('cleaning_expert_service_color');
	if ( $cleaning_expert_service_color != '') {
		$cleaning_expert_custom_style .=' .service-box .service-content h4 {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_service_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_text_color = get_theme_mod('cleaning_expert_service_text_color');
	if ( $cleaning_expert_service_text_color != '') {
		$cleaning_expert_custom_style .=' .service-box .service-content p {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_service_text_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_service_btn_color = get_theme_mod('cleaning_expert_service_btn_color');
	$cleaning_expert_service_btnbg_color = get_theme_mod('cleaning_expert_service_btnbg_color');
	if ( $cleaning_expert_service_btn_color != '') {
		$cleaning_expert_custom_style .=' .service-box .service-btn a {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_service_btn_color).'; background-color:'.esc_attr($cleaning_expert_service_btnbg_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	//copyright css
	$cleaning_expert_footer_copy_font_size = get_theme_mod('cleaning_expert_footer_copy_font_size');
	if ( $cleaning_expert_footer_copy_font_size != '') {
		$cleaning_expert_custom_style .=' .site-info p, .site-info a {';
			$cleaning_expert_custom_style .=' font-size:'.esc_attr($cleaning_expert_footer_copy_font_size).'px;';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_footer_copy_color = get_theme_mod('cleaning_expert_footer_copy_color');
	if ( $cleaning_expert_footer_copy_color != '') {
		$cleaning_expert_custom_style .=' .site-info p, .site-info a {';
			$cleaning_expert_custom_style .=' color:'.esc_attr($cleaning_expert_footer_copy_color).';';
		$cleaning_expert_custom_style .=' }';
	}

	$cleaning_expert_footer_copybg_color = get_theme_mod('cleaning_expert_footer_copybg_color');
	if ( $cleaning_expert_footer_copybg_color != '') {
		$cleaning_expert_custom_style .=' .copyright {';
			$cleaning_expert_custom_style .=' background:'.esc_attr($cleaning_expert_footer_copybg_color).';';
		$cleaning_expert_custom_style .=' }';
	}