<?php
	
	$manufacturing_hub_tp_theme_css = '';

	// 1st color
	$manufacturing_hub_tp_color_option_first = get_theme_mod('manufacturing_hub_tp_color_option_first', '#FF9900');
	if ($manufacturing_hub_tp_color_option_first) {
		$manufacturing_hub_tp_theme_css .= ':root {';
		$manufacturing_hub_tp_theme_css .= '--color-primary1: ' . esc_attr($manufacturing_hub_tp_color_option_first) . ';';
		$manufacturing_hub_tp_theme_css .= '}';
	}

	// preloader
	$manufacturing_hub_tp_preloader_color1_option = get_theme_mod('manufacturing_hub_tp_preloader_color1_option');
	if($manufacturing_hub_tp_preloader_color1_option != false){
	$manufacturing_hub_tp_theme_css .='.center1{';
		$manufacturing_hub_tp_theme_css .='border-color: '.esc_attr($manufacturing_hub_tp_preloader_color1_option).' !important;';
	$manufacturing_hub_tp_theme_css .='}';
	}
	if($manufacturing_hub_tp_preloader_color1_option != false){
	$manufacturing_hub_tp_theme_css .='.center1 .ring::before{';
		$manufacturing_hub_tp_theme_css .='background: '.esc_attr($manufacturing_hub_tp_preloader_color1_option).' !important;';
	$manufacturing_hub_tp_theme_css .='}';
	}

	$manufacturing_hub_tp_preloader_color2_option = get_theme_mod('manufacturing_hub_tp_preloader_color2_option');

	if($manufacturing_hub_tp_preloader_color2_option != false){
	$manufacturing_hub_tp_theme_css .='.center2{';
		$manufacturing_hub_tp_theme_css .='border-color: '.esc_attr($manufacturing_hub_tp_preloader_color2_option).' !important;';
	$manufacturing_hub_tp_theme_css .='}';
	}
	if($manufacturing_hub_tp_preloader_color2_option != false){
	$manufacturing_hub_tp_theme_css .='.center2 .ring::before{';
		$manufacturing_hub_tp_theme_css .='background: '.esc_attr($manufacturing_hub_tp_preloader_color2_option).' !important;';
	$manufacturing_hub_tp_theme_css .='}';
	}

	$manufacturing_hub_tp_preloader_bg_color_option = get_theme_mod('manufacturing_hub_tp_preloader_bg_color_option');

	if($manufacturing_hub_tp_preloader_bg_color_option != false){
	$manufacturing_hub_tp_theme_css .='.loader{';
		$manufacturing_hub_tp_theme_css .='background: '.esc_attr($manufacturing_hub_tp_preloader_bg_color_option).';';
	$manufacturing_hub_tp_theme_css .='}';
	}

	$manufacturing_hub_tp_footer_bg_color_option = get_theme_mod('manufacturing_hub_tp_footer_bg_color_option');


	if($manufacturing_hub_tp_footer_bg_color_option != false){
	$manufacturing_hub_tp_theme_css .='#footer{';
		$manufacturing_hub_tp_theme_css .='background: '.esc_attr($manufacturing_hub_tp_footer_bg_color_option).';';
	$manufacturing_hub_tp_theme_css .='}';
	}

	// logo tagline color
	$manufacturing_hub_site_tagline_color = get_theme_mod('manufacturing_hub_site_tagline_color');

	if($manufacturing_hub_site_tagline_color != false){
	$manufacturing_hub_tp_theme_css .='.logo h1 a, .logo p a, .logo p.site-title a{';
	$manufacturing_hub_tp_theme_css .='color: '.esc_attr($manufacturing_hub_site_tagline_color).';';
	$manufacturing_hub_tp_theme_css .='}';
	}

	$manufacturing_hub_logo_tagline_color = get_theme_mod('manufacturing_hub_logo_tagline_color');
	if($manufacturing_hub_logo_tagline_color != false){
	$manufacturing_hub_tp_theme_css .='p.site-description{';
	$manufacturing_hub_tp_theme_css .='color: '.esc_attr($manufacturing_hub_logo_tagline_color).';';
	$manufacturing_hub_tp_theme_css .='}';
	}

	// footer widget title color
	$manufacturing_hub_footer_widget_title_color = get_theme_mod('manufacturing_hub_footer_widget_title_color');
	if($manufacturing_hub_footer_widget_title_color != false){
	$manufacturing_hub_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
	$manufacturing_hub_tp_theme_css .='color: '.esc_attr($manufacturing_hub_footer_widget_title_color).';';
	$manufacturing_hub_tp_theme_css .='}';
	}

	// copyright text color
	$manufacturing_hub_footer_copyright_text_color = get_theme_mod('manufacturing_hub_footer_copyright_text_color');
	if($manufacturing_hub_footer_copyright_text_color != false){
	$manufacturing_hub_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
	$manufacturing_hub_tp_theme_css .='color: '.esc_attr($manufacturing_hub_footer_copyright_text_color).'!important;';
	$manufacturing_hub_tp_theme_css .='}';
	}

	// header image title color
	$manufacturing_hub_header_image_title_text_color = get_theme_mod('manufacturing_hub_header_image_title_text_color');
	if($manufacturing_hub_header_image_title_text_color != false){
	$manufacturing_hub_tp_theme_css .='.box-text h2{';
	$manufacturing_hub_tp_theme_css .='color: '.esc_attr($manufacturing_hub_header_image_title_text_color).';';
	$manufacturing_hub_tp_theme_css .='}';
	}

	// menu color
	$manufacturing_hub_menu_color = get_theme_mod('manufacturing_hub_menu_color');
	if($manufacturing_hub_menu_color != false){
	$manufacturing_hub_tp_theme_css .='.main-navigation a{';
	$manufacturing_hub_tp_theme_css .='color: '.esc_attr($manufacturing_hub_menu_color).';';
	$manufacturing_hub_tp_theme_css .='}';
}

//Footer Font Weight
$manufacturing_hub_footer_copyright_title_font_weight = get_theme_mod( 'manufacturing_hub_footer_copyright_title_font_weight','');
if($manufacturing_hub_footer_copyright_title_font_weight == '100'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 100;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '200'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 200;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '300'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 300;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '400'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 400;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '500'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 500;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '600'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 600;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '700'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 700;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '800'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 800;';
$manufacturing_hub_tp_theme_css .='}';
}else if($manufacturing_hub_footer_copyright_title_font_weight == '900'){
$manufacturing_hub_tp_theme_css .='#footer .site-info p {';
    $manufacturing_hub_tp_theme_css .='font-weight: 900;';
$manufacturing_hub_tp_theme_css .='}';
}