<?php				

$air_conditioning_services_custom_style= "";

//Scroll-top-position 

$air_conditioning_services_scroll_options = get_theme_mod( 'air_conditioning_services_scroll_options','right_align');

if($air_conditioning_services_scroll_options == 'right_align'){

$air_conditioning_services_custom_style .='.scroll-top button{';

	$air_conditioning_services_custom_style .='';

$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_scroll_options == 'center_align'){

$air_conditioning_services_custom_style .='.scroll-top button{';

	$air_conditioning_services_custom_style .='right: 0; left:0; margin: 0 auto; top:85% !important';

$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_scroll_options == 'left_align'){

$air_conditioning_services_custom_style .='.scroll-top button{';

	$air_conditioning_services_custom_style .='right: auto; left:5%; margin: 0 auto';

$air_conditioning_services_custom_style .='}';
}

$air_conditioning_services_scroll_color = get_theme_mod( 'air_conditioning_services_scroll_color','#DF6160');
$air_conditioning_services_custom_style .='.scroll-top .scrollup{';
$air_conditioning_services_custom_style .='background-color: '.esc_attr($air_conditioning_services_scroll_color).';';
$air_conditioning_services_custom_style .='}';

//logo-max-height

$air_conditioning_services_logo_max_height = get_theme_mod('air_conditioning_services_logo_max_height','50');

if($air_conditioning_services_logo_max_height != false){

$air_conditioning_services_custom_style .='.custom-logo-link img{';

	$air_conditioning_services_custom_style .='max-height: '.esc_html($air_conditioning_services_logo_max_height).'px;';

$air_conditioning_services_custom_style .='}';
}

//text-transform

$air_conditioning_services_text_transform = get_theme_mod( 'air_conditioning_services_menu_text_transform','CAPITALISE');
if($air_conditioning_services_text_transform == 'CAPITALISE'){

$air_conditioning_services_custom_style .='nav#top_gb_menu ul li a{';

	$air_conditioning_services_custom_style .='text-transform: capitalize ;';

$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_text_transform == 'UPPERCASE'){

$air_conditioning_services_custom_style .='nav#top_gb_menu ul li a{';

	$air_conditioning_services_custom_style .='text-transform: uppercase ;';

$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_text_transform == 'LOWERCASE'){

$air_conditioning_services_custom_style .='nav#top_gb_menu ul li a{';

	$air_conditioning_services_custom_style .='text-transform: lowercase ;';

$air_conditioning_services_custom_style .='}';
}

// sticky header
if (false === get_option('air_conditioning_services_sticky_header')) {
    add_option('air_conditioning_services_sticky_header', 'off');
}

// Define the custom CSS based on the 'air_conditioning_services_sticky_header' option

if (get_option('air_conditioning_services_sticky_header', 'off') !== 'on') {
    $air_conditioning_services_custom_style .= '.fixed_header.fixed {';
    $air_conditioning_services_custom_style .= 'position: static;';
    $air_conditioning_services_custom_style .= '}';
}

if (get_option('air_conditioning_services_sticky_header', 'off') !== 'off') {
    $air_conditioning_services_custom_style .= '.fixed_header.fixed {';
    $air_conditioning_services_custom_style .= 'position: fixed; background:var(--post-bg-color); box-shadow: 0px 3px 10px 2px #eee; padding: 10px;';
    $air_conditioning_services_custom_style .= '}';

    $air_conditioning_services_custom_style .= '.admin-bar .fixed {';
    $air_conditioning_services_custom_style .= ' margin-top: 32px;';
    $air_conditioning_services_custom_style .= '}';
}

//slider-content-alignment

$air_conditioning_services_slider_content_alignment = get_theme_mod( 'air_conditioning_services_slider_content_alignment','LEFT-ALIGN');

if($air_conditioning_services_slider_content_alignment == 'LEFT-ALIGN'){

$air_conditioning_services_custom_style .='#slider .slide-inner-box{';

	$air_conditioning_services_custom_style .='text-align:left;';

$air_conditioning_services_custom_style .='}';


}else if($air_conditioning_services_slider_content_alignment == 'CENTER-ALIGN'){

$air_conditioning_services_custom_style .='#slider .slide-inner-box{';

	$air_conditioning_services_custom_style .='text-align:center;';

$air_conditioning_services_custom_style .='}';


}else if($air_conditioning_services_slider_content_alignment == 'RIGHT-ALIGN'){

$air_conditioning_services_custom_style .='#slider .slide-inner-box{';

	$air_conditioning_services_custom_style .='text-align:right;';

$air_conditioning_services_custom_style .='}';

}

//related products
if( get_option( 'air_conditioning_services_related_product',true) != 'on') {

$air_conditioning_services_custom_style .='.related.products{';

	$air_conditioning_services_custom_style .='display: none;';
	
$air_conditioning_services_custom_style .='}';
}

if( get_option( 'air_conditioning_services_related_product',true) != 'off') {

$air_conditioning_services_custom_style .='.related.products{';

	$air_conditioning_services_custom_style .='display: block;';
	
$air_conditioning_services_custom_style .='}';
}

// theme-width

$air_conditioning_services_theme_width = get_theme_mod( 'air_conditioning_services_width_options','full_width');

if($air_conditioning_services_theme_width == 'full_width'){

$air_conditioning_services_custom_style .='body{';

	$air_conditioning_services_custom_style .='max-width: 100%;';

$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_theme_width == 'container'){

$air_conditioning_services_custom_style .='body{';

	$air_conditioning_services_custom_style .='width: 100%; padding-right: 15px; padding-left: 15px;  margin-right: auto !important; margin-left: auto !important;';

$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='@media screen and (min-width: 601px){';

$air_conditioning_services_custom_style .='body{';

    $air_conditioning_services_custom_style .='max-width: 720px;';
    
$air_conditioning_services_custom_style .='} }';

$air_conditioning_services_custom_style .='@media screen and (min-width: 992px){';

$air_conditioning_services_custom_style .='body{';

    $air_conditioning_services_custom_style .='max-width: 960px;';
    
$air_conditioning_services_custom_style .='} }';

$air_conditioning_services_custom_style .='@media screen and (min-width: 1200px){';

$air_conditioning_services_custom_style .='body{';

    $air_conditioning_services_custom_style .='max-width: 1140px;';
    
$air_conditioning_services_custom_style .='} }';

$air_conditioning_services_custom_style .='@media screen and (min-width: 1400px){';

$air_conditioning_services_custom_style .='body{';

    $air_conditioning_services_custom_style .='max-width: 1320px;';
    
$air_conditioning_services_custom_style .='} }';

$air_conditioning_services_custom_style .='@media screen and (max-width:600px){';

$air_conditioning_services_custom_style .='body{';

    $air_conditioning_services_custom_style .='max-width: 100%; padding-right:0px; padding-left: 0px';
    
$air_conditioning_services_custom_style .='} }';


}else if($air_conditioning_services_theme_width == 'container_fluid'){

$air_conditioning_services_custom_style .='body{';

	$air_conditioning_services_custom_style .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';

$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='@media screen and (max-width:600px){';

$air_conditioning_services_custom_style .='body{';

    $air_conditioning_services_custom_style .='max-width: 100%; padding-right:0px; padding-left: 0px';
    
$air_conditioning_services_custom_style .='} }';
}

// footer text alignment
$air_conditioning_services_footer_content_alignment = get_theme_mod( 'air_conditioning_services_footer_content_alignment','CENTER-ALIGN');

if($air_conditioning_services_footer_content_alignment == 'LEFT-ALIGN'){

$air_conditioning_services_custom_style .='.site-info{';

	$air_conditioning_services_custom_style .='text-align:left; padding-left: 30px;';

$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='.site-info a{';

	$air_conditioning_services_custom_style .='padding-left: 30px;';

$air_conditioning_services_custom_style .='}';


}else if($air_conditioning_services_footer_content_alignment == 'CENTER-ALIGN'){

$air_conditioning_services_custom_style .='.site-info{';

	$air_conditioning_services_custom_style .='text-align:center;';

$air_conditioning_services_custom_style .='}';


}else if($air_conditioning_services_footer_content_alignment == 'RIGHT-ALIGN'){

$air_conditioning_services_custom_style .='.site-info{';

	$air_conditioning_services_custom_style .='text-align:right; padding-right: 30px;';

$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='.site-info a{';

	$air_conditioning_services_custom_style .='padding-right: 30px;';

$air_conditioning_services_custom_style .='}';

}

// slider button
$mobile_button_setting = get_option('air_conditioning_services_slider_button_mobile_show_hide', '1');
$main_button_setting = get_option('air_conditioning_services_slider_button_show_hide', '1');

$air_conditioning_services_custom_style .= '#slider .home-btn {';

if ($main_button_setting == 'off') {
    $air_conditioning_services_custom_style .= 'display: none;';
}

$air_conditioning_services_custom_style .= '}';

// Add media query for mobile devices
$air_conditioning_services_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_button_setting == 'off' || $mobile_button_setting == 'off') {
    $air_conditioning_services_custom_style .= '#slider .home-btn { display: none; }';
}
$air_conditioning_services_custom_style .= '}';


// scroll button
$mobile_scroll_setting = get_option('air_conditioning_services_scroll_enable_mobile', '1');
$main_scroll_setting = get_option('air_conditioning_services_scroll_enable', '1');

$air_conditioning_services_custom_style .= '.scrollup {';

if ($main_scroll_setting == 'off') {
    $air_conditioning_services_custom_style .= 'display: none;';
}

$air_conditioning_services_custom_style .= '}';

// Add media query for mobile devices
$air_conditioning_services_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_scroll_setting == 'off' || $mobile_scroll_setting == 'off') {
    $air_conditioning_services_custom_style .= '.scrollup { display: none; }';
}
$air_conditioning_services_custom_style .= '}';

// theme breadcrumb
$mobile_breadcrumb_setting = get_option('air_conditioning_services_enable_breadcrumb_mobile', '1');
$main_breadcrumb_setting = get_option('air_conditioning_services_enable_breadcrumb', '1');

$air_conditioning_services_custom_style .= '.archieve_breadcrumb {';

if ($main_breadcrumb_setting == 'off') {
    $air_conditioning_services_custom_style .= 'display: none;';
}

$air_conditioning_services_custom_style .= '}';

// Add media query for mobile devices
$air_conditioning_services_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_breadcrumb_setting == 'off' || $mobile_breadcrumb_setting == 'off') {
    $air_conditioning_services_custom_style .= '.archieve_breadcrumb { display: none; }';
}
$air_conditioning_services_custom_style .= '}';

// single post and page breadcrumb
$mobile_single_breadcrumb_setting = get_option('air_conditioning_services_single_enable_breadcrumb_mobile', '1');
$main_single_breadcrumb_setting = get_option('air_conditioning_services_single_enable_breadcrumb', '1');

$air_conditioning_services_custom_style .= '.single_breadcrumb {';

if ($main_single_breadcrumb_setting == 'off') {
    $air_conditioning_services_custom_style .= 'display: none;';
}

$air_conditioning_services_custom_style .= '}';

// Add media query for mobile devices
$air_conditioning_services_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_single_breadcrumb_setting == 'off' || $mobile_single_breadcrumb_setting == 'off') {
    $air_conditioning_services_custom_style .= '.single_breadcrumb { display: none; }';
}
$air_conditioning_services_custom_style .= '}';

// woocommerce breadcrumb
$mobile_woo_breadcrumb_setting = get_option('air_conditioning_services_woocommerce_enable_breadcrumb_mobile', '1');
$main_woo_breadcrumb_setting = get_option('air_conditioning_services_woocommerce_enable_breadcrumb', '1');

$air_conditioning_services_custom_style .= '.woocommerce-breadcrumb {';

if ($main_woo_breadcrumb_setting == 'off') {
    $air_conditioning_services_custom_style .= 'display: none;';
}

$air_conditioning_services_custom_style .= '}';

// Add media query for mobile devices
$air_conditioning_services_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_woo_breadcrumb_setting == 'off' || $mobile_woo_breadcrumb_setting == 'off') {
    $air_conditioning_services_custom_style .= '.woocommerce-breadcrumb { display: none; }';
}
$air_conditioning_services_custom_style .= '}';

//colors
$color = get_theme_mod('air_conditioning_services_primary_color', '#DF6160');
$color_light = get_theme_mod('air_conditioning_services_primary_light', '#ffeaea');
$second_color = get_theme_mod('air_conditioning_services_secondary_color', '#5999d9');
$color_heading = get_theme_mod('air_conditioning_services_heading_color', '#000');
$color_text = get_theme_mod('air_conditioning_services_text_color', '#000');
$color_slider_bg = get_theme_mod('air_conditioning_services_slider_bg_color', '#F6F6F6');
$color_footer_bg = get_theme_mod('air_conditioning_services_footer_bg', '#000');
$color_post_bg = get_theme_mod('air_conditioning_services_post_bg', '#ffffff');

$air_conditioning_services_custom_style .= ":root {";
    $air_conditioning_services_custom_style .= "--theme-primary-color: {$color};";
    $air_conditioning_services_custom_style .= "--theme-primary-light: {$color_light};";
    $air_conditioning_services_custom_style .= "--theme-secondary-color: {$second_color};";
    $air_conditioning_services_custom_style .= "--theme-heading-color: {$color_heading};";
    $air_conditioning_services_custom_style .= "--theme-text-color: {$color_text};";
    $air_conditioning_services_custom_style .= "--slider-bg-color: {$color_slider_bg};";
    $air_conditioning_services_custom_style .= "--theme-footer-color: {$color_footer_bg};";
    $air_conditioning_services_custom_style .= "--post-bg-color: {$color_post_bg};";
$air_conditioning_services_custom_style .= "}";


$air_conditioning_services_slider_opacity = get_theme_mod( 'air_conditioning_services_slider_opacity','1');

if($air_conditioning_services_slider_opacity == '0'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.1'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.1';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.2'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.2';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.3'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.3';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.4'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.4';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.5'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.5';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.6'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.6';
$air_conditioning_services_custom_style .='}';

}else if($air_conditioning_services_slider_opacity == '0.7'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.7';
$air_conditioning_services_custom_style .='}';


}else if($air_conditioning_services_slider_opacity == '0.8'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.8';
$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='@media screen and (max-width: 767px){';
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img{';
    $air_conditioning_services_custom_style .='opacity: 0.5';
$air_conditioning_services_custom_style .='} }';

}
else if($air_conditioning_services_slider_opacity == '0.9'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 0.9';
$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='@media screen and (max-width: 767px){';
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img{';
    $air_conditioning_services_custom_style .='opacity: 0.5';
$air_conditioning_services_custom_style .='} }';

}
else if($air_conditioning_services_slider_opacity == '1'){
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img {';
    $air_conditioning_services_custom_style .='opacity: 1';
$air_conditioning_services_custom_style .='}';

$air_conditioning_services_custom_style .='@media screen and (max-width: 767px){';
$air_conditioning_services_custom_style .='#slider .owl-carousel .owl-item img{';
    $air_conditioning_services_custom_style .='opacity: 0.5';
$air_conditioning_services_custom_style .='} }';

}

$air_conditioning_services_slider_heading_color = get_theme_mod( 'air_conditioning_services_slider_heading_color','#000');
$air_conditioning_services_custom_style .='h2.slider-title {';
$air_conditioning_services_custom_style .='color: '.esc_attr($air_conditioning_services_slider_heading_color).';';
$air_conditioning_services_custom_style .='}';

$air_conditioning_services_slider_excerpt_color = get_theme_mod( 'air_conditioning_services_slider_excerpt_color','#000');
$air_conditioning_services_custom_style .='.slide-inner-box p {';
$air_conditioning_services_custom_style .='color: '.esc_attr($air_conditioning_services_slider_excerpt_color).';';
$air_conditioning_services_custom_style .='}';

//-------------------title-font-size----//  
$air_conditioning_services_site_title_fontsize = get_theme_mod('air_conditioning_services_site_title_fontsize','22');

if($air_conditioning_services_site_title_fontsize != false){

$air_conditioning_services_custom_style .='.air-conditioning-services-logo h1,.site-title,.site-title a,.air-conditioning-services-logo h1 a{';

    $air_conditioning_services_custom_style .='font-size: '.esc_html($air_conditioning_services_site_title_fontsize).'px;';

$air_conditioning_services_custom_style .='}';
}

//-------------------tagline-font-size----//  
$air_conditioning_services_site_tagline_fontsize = get_theme_mod('air_conditioning_services_site_tagline_fontsize','15');

if($air_conditioning_services_site_tagline_fontsize != false){

$air_conditioning_services_custom_style .='p.site-description{';

    $air_conditioning_services_custom_style .='font-size: '.esc_html($air_conditioning_services_site_tagline_fontsize).'px;';

$air_conditioning_services_custom_style .='}';
}

//-------------------menu-font-size----//  
$air_conditioning_services_menu_fontsize = get_theme_mod('air_conditioning_services_menu_fontsize','18');

if($air_conditioning_services_menu_fontsize != false){

$air_conditioning_services_custom_style .='.gb_nav_menu li a{';

    $air_conditioning_services_custom_style .='font-size: '.esc_html($air_conditioning_services_menu_fontsize).'px;';

$air_conditioning_services_custom_style .='}';
}

//-------------------first-letter-capital----//
if (false === get_option('air_conditioning_services_first_letter_capital_enable')) {
    add_option('air_conditioning_services_first_letter_capital_enable', 'on');
}
if (get_option('air_conditioning_services_first_letter_capital_enable') === 'off') {
    $air_conditioning_services_custom_style .= '.entry-content > p:first-of-type:first-letter {';
    $air_conditioning_services_custom_style .= 'font-size: 16px; float: none; line-height: unset; padding: 0;';
    $air_conditioning_services_custom_style .= '}';
}

// ------------------Sticky-Sidebar-----//
if (false === get_option('air_conditioning_services_sticky_sidebar')) {
    add_option('air_conditioning_services_sticky_sidebar', 'off');
}
if ( get_option('air_conditioning_services_sticky_sidebar', 0 ) == 1 ) {
    $air_conditioning_services_custom_style .= '.sidebar{';
    $air_conditioning_services_custom_style .= 'position: sticky;';
    $air_conditioning_services_custom_style .= 'top: 15%;';
    $air_conditioning_services_custom_style .= '}';
}
