<?php
	
	$industrial_hub_tp_theme_css = '';

	// 1st color
	$industrial_hub_tp_color_option_first = get_theme_mod('industrial_hub_tp_color_option_first', '#FF5317');
	if ($industrial_hub_tp_color_option_first) {
		$industrial_hub_tp_theme_css .= ':root {';
		$industrial_hub_tp_theme_css .= '--color-primary1: ' . esc_attr($industrial_hub_tp_color_option_first) . ';';
		$industrial_hub_tp_theme_css .= '}';
	}

	// 2nd color
	$industrial_hub_tp_color_option_second = get_theme_mod('industrial_hub_tp_color_option_second', '#FF9900');
	if ($industrial_hub_tp_color_option_second) {
		$industrial_hub_tp_theme_css .= ':root {';
		$industrial_hub_tp_theme_css .= '--color-primary2: ' . esc_attr($industrial_hub_tp_color_option_second) . ';';
		$industrial_hub_tp_theme_css .= '}';
	}

	// preloader
	$industrial_hub_tp_preloader_color1_option = get_theme_mod('industrial_hub_tp_preloader_color1_option');

	if($industrial_hub_tp_preloader_color1_option != false){
	$industrial_hub_tp_theme_css .='.center1{';
		$industrial_hub_tp_theme_css .='border-color: '.esc_attr($industrial_hub_tp_preloader_color1_option).' !important;';
	$industrial_hub_tp_theme_css .='}';
	}
	if($industrial_hub_tp_preloader_color1_option != false){
	$industrial_hub_tp_theme_css .='.center1 .ring::before{';
		$industrial_hub_tp_theme_css .='background: '.esc_attr($industrial_hub_tp_preloader_color1_option).' !important;';
	$industrial_hub_tp_theme_css .='}';
	}

	$industrial_hub_tp_preloader_color2_option = get_theme_mod('industrial_hub_tp_preloader_color2_option');

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

	$industrial_hub_tp_preloader_bg_color_option = get_theme_mod('industrial_hub_tp_preloader_bg_color_option');

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

	$industrial_hub_tp_footer_bg_color_option = get_theme_mod('industrial_hub_tp_footer_bg_color_option');


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

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

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

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

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

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

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

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


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