<?php
	
	$buildora_architect_tp_theme_css = '';

	// 1st color
	$buildora_architect_tp_color_option_first = get_theme_mod('buildora_architect_tp_color_option_first', '#CAA05C');
	if ($buildora_architect_tp_color_option_first) {
		$buildora_architect_tp_theme_css .= ':root {';
		$buildora_architect_tp_theme_css .= '--color-primary1: ' . esc_attr($buildora_architect_tp_color_option_first) . ';';
		$buildora_architect_tp_theme_css .= '}';
	}

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

	$buildora_architect_tp_preloader_color2_option = get_theme_mod('buildora_architect_tp_preloader_color2_option');

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

	$buildora_architect_tp_preloader_bg_color_option = get_theme_mod('buildora_architect_tp_preloader_bg_color_option');

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

	$buildora_architect_tp_footer_bg_color_option = get_theme_mod('buildora_architect_tp_footer_bg_color_option');


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

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

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

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

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

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

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

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