<?php
function rawindustry_custom_header_setup() {
	add_theme_support( 'custom-header', apply_filters( 'rawindustry_custom_header_args', array(
		'default-image'          => '',
		'default-text-color'     => '646464',
		'width'                  => 2000, 
		'height'                 => 200,
		'flex-height'            => true,
		'wp-head-callback'       => 'rawindustry_header_style',
	) ) );
}
add_action( 'after_setup_theme', 'rawindustry_custom_header_setup' );

if ( ! function_exists( 'rawindustry_header_style' ) ) :

function rawindustry_header_style() {
	$header_text_color = get_header_textcolor();

  	$service_disable_section = esc_attr(get_theme_mod('service_disable_section','YES'));
  	$feature_disable_section = esc_attr(get_theme_mod('feature_disable_section','YES'));
  	$blog_disable_section = esc_attr(get_theme_mod('blog_disable_section','YES'));


	?>
	<style type="text/css">


		<?php 
		
		?>


		header.site-header .site-title {
			color: <?php echo esc_attr(get_theme_mod('topheader_sitetitlecol')); ?>;

		}

		header.site-header .site-logo a {
			text-decoration-color: <?php echo esc_attr(get_theme_mod('topheader_sitetitlecol')); ?> !important;
		}

		p.site-description {
			color: <?php echo esc_attr(get_theme_mod('topheader_taglinecol')); ?>;
		}
		


		
	 
		header .tp-header {
			background: <?php echo esc_attr(get_theme_mod('header_topheadbgcolor')); ?>;
		}

		.header-section {
			background: <?php echo esc_attr(get_theme_mod('header_bottomheadbgcolor')); ?>;
		}
		
		.primary-menu li a,
		.primary-menu > li > .icon {
			color: <?php echo esc_attr(get_theme_mod('header_menuscolor')); ?>;
		}

		.primary-menu li a:hover {
			color: <?php echo esc_attr(get_theme_mod('header_menushovercolor')); ?>;
		}

		.primary-menu .sub-menu li a {
			color: <?php echo esc_attr(get_theme_mod('header_submenutextcolor')); ?>;
		}

		header .social-icons a i {
			color: <?php echo esc_attr(get_theme_mod('header_socialiconcolor')); ?>;
		}

		header .social-icons a i:hover {
			color: <?php echo esc_attr(get_theme_mod('header_socialiconhovercolor')); ?>;
		}

		.primary-menu ul {
			background: <?php echo esc_attr(get_theme_mod('header_submenusbgcolor')); ?>;
		}
		.primary-menu ul::after {
			border-bottom-color: <?php echo esc_attr(get_theme_mod('header_submenusbgcolor')); ?>;
		}


	




		.hero-style .slide-title h2 {
			color: <?php echo esc_attr(get_theme_mod('slider_titlecolor')); ?> !important;
		}

		.hero-style .slide-text p {
			color: <?php echo esc_attr(get_theme_mod('slider_descriptioncolor')); ?> !important;
		}

		.hero-style .ReadMore {
			color: <?php echo esc_attr(get_theme_mod('slider_btn1textcolor')); ?> !important;
		}

		.hero-style .ReadMore {
			background: <?php echo esc_attr(get_theme_mod('slider_btn1bgcolor')); ?> !important;
			outline-color: <?php echo esc_attr(get_theme_mod('slider_btn1bgcolor')); ?> !important;
		}

		.hero-style .ourservice {
			color: <?php echo esc_attr(get_theme_mod('slider_btn2textcolor')); ?> !important;
		}

		.hero-style .ourservice {
			background: <?php echo esc_attr(get_theme_mod('slider_btn2bgcolor')); ?> !important;
		}
		.hero-slider .raw_industryswiper-button-prev i, .hero-slider .raw_industryswiper-button-next i{
		background: <?php echo esc_attr(get_theme_mod('slider_Arrowcolor')); ?>;
	}

	.hero-slider .raw_industryswiper-button-prev, .hero-slider .raw_industryswiper-button-next{
		background: <?php echo esc_attr(get_theme_mod('slider_ArrowBGcolor')); ?>;
	}

	.hero-slider .raw_industryswiper-button-prev:hover, .hero-slider .raw_industryswiper-button-next:hover{
	background: <?php echo esc_attr(get_theme_mod('slider_ArrowBGHovercolor')); ?>;
}

		.features-area .single-feature h3{
			color: <?php echo esc_attr(get_theme_mod('feature_titlecolor')); ?>;
		}

		.features-area .single-feature p{
			color: <?php echo esc_attr(get_theme_mod('feature_descriptioncolor')); ?>;
		}


		.features-area .rhs-fbx{
			background: <?php echo esc_attr(get_theme_mod('featureBoxBGcolor')); ?>;
		}

		#feature-section {
			padding-top: <?php echo esc_attr(get_theme_mod('raw_industry_feature_top_padding')); ?>em !important;
		}

		#feature-section {
			padding-bottom: <?php echo esc_attr(get_theme_mod('raw_industry_feature_bottom_padding')); ?>em !important;
		}


		#service-section h3.section-title {
			color: <?php echo esc_attr(get_theme_mod('service_headingcolor')); ?>;
		}


		#service-section .single-service h3 {
			color: <?php echo esc_attr(get_theme_mod('service_boxtitlecolorcolor')); ?>;
		}

		#service-section .single-service p {
			color: <?php echo esc_attr(get_theme_mod('service_boxdescriptioncolorcolor')); ?>;
		}


		#service-section .readmore a,
		#service-section .readmore a i {
			color: <?php echo esc_attr(get_theme_mod('service_buttontextcolor')); ?>;
		}



		#service-section {
			padding-top: <?php echo esc_attr(get_theme_mod('raw_industry_service_top_padding')); ?>em !important;
		}

		#service-section {
			padding-bottom: <?php echo esc_attr(get_theme_mod('raw_industry_service_bottom_padding')); ?>em !important;
		}




		.blog-area {
			padding-top: <?php echo esc_attr(get_theme_mod('raw_industry_blog_top_padding')); ?>em !important;
		}

		.blog-area {
			padding-bottom: <?php echo esc_attr(get_theme_mod('raw_industry_blog_bottom_padding')); ?>em !important;
		}




	

		#blog-section h3.section-title {
			color: <?php echo esc_attr(get_theme_mod('blog_headingcolor')); ?>;
		}

		.blogbx .blog-content h6.post-title, .blogbx .blog-content h6.post-title a, .blogbx .blog-content .heding {
			color: <?php echo esc_attr(get_theme_mod('blog_titlecolor')); ?>;
		}

		.blogbx .blog-content p {
			color: <?php echo esc_attr(get_theme_mod('blog_descriptioncolor')); ?>;
		}

		
		.blogbx .b-btn a {
			color: <?php echo esc_attr(get_theme_mod('blog_btntextcolor')); ?>;
		}

		.blogbx .b-btn a {
			background: <?php echo esc_attr(get_theme_mod('blog_btnbgcolor')); ?>;
			outline-color: <?php echo esc_attr(get_theme_mod('blog_btnbgcolor')); ?>;
		}


		.blogbx .box-admin a {
			color: <?php echo esc_attr(get_theme_mod('blog_datetextcolor')); ?>;
		}

		.blogbx .comment-timing {
			background: <?php echo esc_attr(get_theme_mod('blog_datetextbgcolor')); ?>;
		}
	



		.copy-right p {
			color: <?php echo esc_attr(get_theme_mod('footer_copyrightcolor')); ?>;
		}

		.copy-right p a{
			color: <?php echo esc_attr(get_theme_mod('footer_copyrightlinkcolor')); ?>;
		}

		.copy-right {
			background: <?php echo esc_attr(get_theme_mod('footer_copyrightbgcolor')); ?>;
		}

		.footer-area .f-oly {
			background: <?php echo esc_attr(get_theme_mod('footer_bgcolor')); ?>;
		}

		.footer-area .widget_text, .footer-area .widget_text p, .wp-block-latest-comments__comment-excerpt p, .wp-block-latest-comments__comment-date, .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt, .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta,.footer-area .widget_block h1, .footer-area .widget_block h2, .footer-area .widget_block h3, .footer-area .widget_block h4, .footer-area .widget_block h5, .footer-area .widget_block h6,.footer-area .footer-widget .widget:not(.widget_social_widget):not(.widget_tag_cloud) li a,
		.footer-area .footer-widget .widget:not(.widget_social_widget):not(.widget_tag_cloud) li {
			color: <?php echo esc_attr(get_theme_mod('footer_textcolor')); ?>;
		}

		.footer-area li:before, .page-template-home-template .footer-area li:before, .page .footer-area li:before, .single .footer-area li:before {
			color: <?php echo esc_attr(get_theme_mod('footer_iconcolor')); ?>;
		}

		.footer-area .footer-widget .widget:not(.widget_social_widget):not(.widget_tag_cloud) li a:hover {
			color: <?php echo esc_attr(get_theme_mod('footer_listhovercolor')); ?>;
		}

		.scroll-top {
			color: <?php echo esc_attr(get_theme_mod('footer_scrolltotopiconcolor')); ?>;
		}

		.scroll-top {
			background: <?php echo esc_attr(get_theme_mod('footer_scrolltotopbgcolor')); ?>;
		}

		.scroll-top:hover {
			background: <?php echo esc_attr(get_theme_mod('footer_scrolltotopbghrvcolor')); ?>;
		}

		
	<?php  ?>


	<?php
		if ( ! display_header_text() ) :
	?>
		.site-title,
		.site-description {
			position: absolute;
			clip: rect(1px, 1px, 1px, 1px);
		}
	<?php
		else :
	?>
		h4.site-title{
			color: #<?php echo esc_attr( $header_text_color ); ?>;
		}
	<?php endif; ?>



	<?php
        if ($service_disable_section == 1):
	?>
		#service-section {
			display: none;
		}
	<?php
		else :
	?>
		#service-section {
			display: block;
		}
	<?php endif; ?>


	<?php
        if ($feature_disable_section == 1):
	?>
		#feature-section {
			display: none;
		}
	<?php
		else :
	?>
		#feature-section {
			display: block;
		}
	<?php endif; ?>

	<?php
        if ($blog_disable_section == 1):
	?>
		#blog-section {
			display: none;
		}
	<?php
		else :
	?>
		#blog-section {
			display: block;
		}
	<?php endif; ?>


	</style>
	<?php
}
endif;
