<?php 

	$plumber_services_custom_css = '';

    // Width layout
    $plumber_services_theme_lay = get_theme_mod( 'plumber_services_width_options','Full Width');
    if($plumber_services_theme_lay == 'Full Width'){
		$plumber_services_custom_css .='body{';
			$plumber_services_custom_css .='max-width: 100%;';
		$plumber_services_custom_css .='}';
	}else if($plumber_services_theme_lay == 'Contained Width'){
		$plumber_services_custom_css .='body{';
			$plumber_services_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$plumber_services_custom_css .='}';
	}else if($plumber_services_theme_lay == 'Boxed Width'){
		$plumber_services_custom_css .='body{';
			$plumber_services_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$plumber_services_custom_css .='}';
	}

	//site logo css
	$plumber_services_logo_size = get_theme_mod('plumber_services_logo_size'); // This value should be a percentage (e.g., 50 for 50%)
	if ($plumber_services_logo_size) {
		$logo_width_px = (350 * $plumber_services_logo_size) / 100; // Calculate the pixel width based on the percentage
		$plumber_services_custom_css .= '.site-logo img {';
		$plumber_services_custom_css .= 'width: '.esc_attr($logo_width_px).'px !important;';
		$plumber_services_custom_css .= '}';
	}

	//Submenu Dropdown Effect
	$plumber_services_dropdown_anim = get_theme_mod('plumber_services_dropdown_anim');
	$plumber_services_custom_css .='.primary-navigation ul ul{';
		$plumber_services_custom_css .='animation: '.esc_attr($plumber_services_dropdown_anim).' 1s ease;';
	$plumber_services_custom_css .='}';

	//slider font size
	$plumber_services_slider_title_font_size = get_theme_mod('plumber_services_slider_title_font_size');
	$plumber_services_custom_css .='#slider .inner_carousel h1{';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_slider_title_font_size).'px;';
	$plumber_services_custom_css .='}';

	$plumber_services_slider_text_font_size = get_theme_mod('plumber_services_slider_text_font_size');
	$plumber_services_custom_css .='#slider .inner_carousel p{';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_slider_text_font_size).'px;';
	$plumber_services_custom_css .='}';

	$plumber_services_slider_btn_font_size = get_theme_mod('plumber_services_slider_btn_font_size');
	$plumber_services_custom_css .='#slider .read-btn a {';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_slider_btn_font_size).'px;';
	$plumber_services_custom_css .='}';

	$plumber_services_slider_opacity = get_theme_mod('plumber_services_slider_opacity');
	$plumber_services_custom_css .='#slider img {';
		$plumber_services_custom_css .='opacity: '.esc_attr($plumber_services_slider_opacity).';';
	$plumber_services_custom_css .='}';

	
	//slider left/right position
	$plumber_services_slider_lr_position = get_theme_mod('slider_lr_position', 0);
	$plumber_services_custom_css .='#slider .carousel-caption {';
		$plumber_services_custom_css .='transform: translateX('.esc_attr($plumber_services_slider_lr_position).'px);';
		$plumber_services_custom_css .='text-align: '.(($plumber_services_slider_lr_position <= -20) ? 'left' : (($plumber_services_slider_lr_position >= 20) ? 'right' : 'center')).';';
	$plumber_services_custom_css .='}';
	

	//service font size
	$plumber_services_service_title_font_size = get_theme_mod('plumber_services_service_title_font_size');
	$plumber_services_custom_css .=' #service-section h2 {';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_service_title_font_size).'px;';
	$plumber_services_custom_css .='}';

	$plumber_services_service_post_title_font_size = get_theme_mod('plumber_services_service_post_title_font_size');
	$plumber_services_custom_css .=' #service-section .service-content h3 {';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_service_post_title_font_size).'px;';
	$plumber_services_custom_css .='}';

	$plumber_services_service_post_text_font_size = get_theme_mod('plumber_services_service_post_text_font_size');
	$plumber_services_custom_css .=' #service-section .service-content p {';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_service_post_text_font_size).'px;';
	$plumber_services_custom_css .='}';

	//footer css
	$plumber_services_footerbg_color = get_theme_mod('plumber_services_footerbg_color');
	$plumber_services_custom_css .=' .footersec {';
		$plumber_services_custom_css .='background-color: '.esc_attr($plumber_services_footerbg_color).';';
	$plumber_services_custom_css .='}';

	$plumber_services_footer_copy_font_size = get_theme_mod('plumber_services_footer_copy_font_size');
	$plumber_services_custom_css .=' .copyright p {';
		$plumber_services_custom_css .='font-size: '.esc_attr($plumber_services_footer_copy_font_size).'px;';
	$plumber_services_custom_css .='}';

	$plumber_services_footer_copy_color = get_theme_mod('plumber_services_footer_copy_color');
	$plumber_services_custom_css .=' .copyright p {';
		$plumber_services_custom_css .='color: '.esc_attr($plumber_services_footer_copy_color).';';
	$plumber_services_custom_css .='}';

	$plumber_services_footer_copybg_color = get_theme_mod('plumber_services_footer_copybg_color');
	$plumber_services_custom_css .=' .copyright {';
		$plumber_services_custom_css .='background-color: '.esc_attr($plumber_services_footer_copybg_color).';';
	$plumber_services_custom_css .='}';