<?php

$preventive_maintenance_tp_theme_css = '';

//theme color
$preventive_maintenance_tp_color_option = get_theme_mod('preventive_maintenance_tp_color_option');

// 1st color
$preventive_maintenance_tp_color_option = get_theme_mod('preventive_maintenance_tp_color_option', '#1e2452');
if ($preventive_maintenance_tp_color_option) {
	$preventive_maintenance_tp_theme_css .= ':root {';
	$preventive_maintenance_tp_theme_css .= '--color-primary1: ' . esc_attr($preventive_maintenance_tp_color_option) . ';';
	$preventive_maintenance_tp_theme_css .= '}';
}

//second-color
$preventive_maintenance_tp_second_color_option = get_theme_mod('preventive_maintenance_tp_second_color_option','#348ce2');
if ($preventive_maintenance_tp_second_color_option) {
	$preventive_maintenance_tp_theme_css .= ':root {';
	$preventive_maintenance_tp_theme_css .= '--color-primary2: ' . esc_attr($preventive_maintenance_tp_second_color_option) . ';';
	$preventive_maintenance_tp_theme_css .= '}';
}
//Third color

$preventive_maintenance_tp_third_color_option = get_theme_mod('preventive_maintenance_tp_third_color_option','#ffcf00');
if ($preventive_maintenance_tp_third_color_option) {
	$preventive_maintenance_tp_theme_css .= ':root {';
	$preventive_maintenance_tp_theme_css .= '--color-primary3: ' . esc_attr($preventive_maintenance_tp_third_color_option) . ';';
	$preventive_maintenance_tp_theme_css .= '}';
}

//preloader
$preventive_maintenance_tp_preloader_color1_option = get_theme_mod('preventive_maintenance_tp_preloader_color1_option');
$preventive_maintenance_tp_preloader_color2_option = get_theme_mod('preventive_maintenance_tp_preloader_color2_option');
$preventive_maintenance_tp_preloader_bg_color_option = get_theme_mod('preventive_maintenance_tp_preloader_bg_color_option');

if($preventive_maintenance_tp_preloader_color1_option != false){
$preventive_maintenance_tp_theme_css .='.center1{';
	$preventive_maintenance_tp_theme_css .='border-color: '.esc_attr($preventive_maintenance_tp_preloader_color1_option).' !important;';
$preventive_maintenance_tp_theme_css .='}';
}
if($preventive_maintenance_tp_preloader_color1_option != false){
$preventive_maintenance_tp_theme_css .='.center1 .ring::before{';
	$preventive_maintenance_tp_theme_css .='background: '.esc_attr($preventive_maintenance_tp_preloader_color1_option).' !important;';
$preventive_maintenance_tp_theme_css .='}';
}
if($preventive_maintenance_tp_preloader_color2_option != false){
$preventive_maintenance_tp_theme_css .='.center2{';
	$preventive_maintenance_tp_theme_css .='border-color: '.esc_attr($preventive_maintenance_tp_preloader_color2_option).' !important;';
$preventive_maintenance_tp_theme_css .='}';
}
if($preventive_maintenance_tp_preloader_color2_option != false){
$preventive_maintenance_tp_theme_css .='.center2 .ring::before{';
	$preventive_maintenance_tp_theme_css .='background: '.esc_attr($preventive_maintenance_tp_preloader_color2_option).' !important;';
$preventive_maintenance_tp_theme_css .='}';
}
if($preventive_maintenance_tp_preloader_bg_color_option != false){
$preventive_maintenance_tp_theme_css .='.loader{';
	$preventive_maintenance_tp_theme_css .='background: '.esc_attr($preventive_maintenance_tp_preloader_bg_color_option).';';
$preventive_maintenance_tp_theme_css .='}';
}


$preventive_maintenance_tp_footer_bg_color_option = get_theme_mod('preventive_maintenance_tp_footer_bg_color_option');


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

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

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

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

// footer widget title color
$preventive_maintenance_footer_widget_title_color = get_theme_mod('preventive_maintenance_footer_widget_title_color');
if($preventive_maintenance_footer_widget_title_color != false){
$preventive_maintenance_tp_theme_css .='#footer h3{';
$preventive_maintenance_tp_theme_css .='color: '.esc_attr($preventive_maintenance_footer_widget_title_color).';';
$preventive_maintenance_tp_theme_css .='}';
}

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

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

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

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