<?php
	
	$hr_services_tp_theme_css = '';

	// 1st color
	$hr_services_tp_color_option_first = get_theme_mod('hr_services_tp_color_option_first', '#3D0D7B');
	if ($hr_services_tp_color_option_first) {
		$hr_services_tp_theme_css .= ':root {';
		$hr_services_tp_theme_css .= '--color-primary1: ' . esc_attr($hr_services_tp_color_option_first) . ';';
		$hr_services_tp_theme_css .= '}';
	}

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

	$hr_services_tp_preloader_color2_option = get_theme_mod('hr_services_tp_preloader_color2_option');

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

	$hr_services_tp_preloader_bg_color_option = get_theme_mod('hr_services_tp_preloader_bg_color_option');

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

	$hr_services_tp_footer_bg_color_option = get_theme_mod('hr_services_tp_footer_bg_color_option');


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

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

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

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

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

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

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

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