<?php

$cleaning_services_agency_first_color = get_theme_mod('cleaning_services_agency_first_color');
$cleaning_services_agency_second_color = get_theme_mod('cleaning_services_agency_second_color');
$cleaning_services_agency_color_scheme_css = '';

/*------------------ Global First Color -----------*/

if ($cleaning_services_agency_first_color) {
  $cleaning_services_agency_color_scheme_css .= ':root {';
  $cleaning_services_agency_color_scheme_css .= '--first-theme-color: ' . esc_attr($cleaning_services_agency_first_color) . ' !important;';
  $cleaning_services_agency_color_scheme_css .= '} ';
}

/*------------------ Global Second Color -----------*/

if ($cleaning_services_agency_second_color) {
  $cleaning_services_agency_color_scheme_css .= ':root {';
  $cleaning_services_agency_color_scheme_css .= '--second-theme-color: ' . esc_attr($cleaning_services_agency_second_color) . ' !important;';
  $cleaning_services_agency_color_scheme_css .= '} ';
}

// slider hide css
$cleaning_services_agency_hide_categorysec = get_theme_mod( 'cleaning_services_agency_hide_categorysec', false);
  $cleaning_services_agency_slidersection = get_theme_mod('cleaning_services_agency_slidersection');
if($cleaning_services_agency_hide_categorysec != true || $cleaning_services_agency_slidersection != true){
  $cleaning_services_agency_color_scheme_css .=' #service{';
    $cleaning_services_agency_color_scheme_css .='margin-top:30px;';
  $cleaning_services_agency_color_scheme_css .='}';
}

//---------------------------------Logo-Max-height--------- 
$cleaning_services_agency_logo_width = get_theme_mod('cleaning_services_agency_logo_width');

if($cleaning_services_agency_logo_width != false){

  $cleaning_services_agency_color_scheme_css .='.cleaning-services-agency-logo img{';

    $cleaning_services_agency_color_scheme_css .='width: '.esc_html($cleaning_services_agency_logo_width).'px;';

  $cleaning_services_agency_color_scheme_css .='}';
}

/*---------------------------Slider Height ------------*/

  $cleaning_services_agency_slider_img_height = get_theme_mod('cleaning_services_agency_slider_img_height');
  if($cleaning_services_agency_slider_img_height != false){
      $cleaning_services_agency_color_scheme_css .='#slider .content{';
          $cleaning_services_agency_color_scheme_css .='height: '.esc_attr($cleaning_services_agency_slider_img_height).' !important;';
      $cleaning_services_agency_color_scheme_css .='}';
  }

/*--------------------------- Footer background image -------------------*/

  $cleaning_services_agency_footer_bg_image = get_theme_mod('cleaning_services_agency_footer_bg_image');
  if($cleaning_services_agency_footer_bg_image != false){
      $cleaning_services_agency_color_scheme_css .='.footer-content{';
          $cleaning_services_agency_color_scheme_css .='background: url('.esc_attr($cleaning_services_agency_footer_bg_image).');';
      $cleaning_services_agency_color_scheme_css .='}';
  }

/*--------------------------- Footer image position -------------------*/

  $cleaning_services_agency_footer_img_position = get_theme_mod('cleaning_services_agency_footer_img_position','center center');
  if($cleaning_services_agency_footer_img_position != false){
      $cleaning_services_agency_color_scheme_css .='.footer-content{';
          $cleaning_services_agency_color_scheme_css .='background-position: '.esc_attr($cleaning_services_agency_footer_img_position).';';
      $cleaning_services_agency_color_scheme_css .='}';
  }	

  /*--------------------------- Scroll to top positions -------------------*/

  $cleaning_services_agency_scroll_position = get_theme_mod( 'cleaning_services_agency_scroll_position','Right');
  if($cleaning_services_agency_scroll_position == 'Right'){
      $cleaning_services_agency_color_scheme_css .='#button{';
          $cleaning_services_agency_color_scheme_css .='right: 20px;';
      $cleaning_services_agency_color_scheme_css .='}';
  }else if($cleaning_services_agency_scroll_position == 'Left'){
      $cleaning_services_agency_color_scheme_css .='#button{';
          $cleaning_services_agency_color_scheme_css .='left: 20px;';
      $cleaning_services_agency_color_scheme_css .='}';
  }else if($cleaning_services_agency_scroll_position == 'Center'){
      $cleaning_services_agency_color_scheme_css .='#button{';
          $cleaning_services_agency_color_scheme_css .='right: 50%;left: 50%;';
      $cleaning_services_agency_color_scheme_css .='}';
  }  

  /*--------------------------- Woocommerce Product Image Border Radius -------------------*/

  $cleaning_services_agency_woo_product_img_border_radius = get_theme_mod('cleaning_services_agency_woo_product_img_border_radius');
  if($cleaning_services_agency_woo_product_img_border_radius != false){
      $cleaning_services_agency_color_scheme_css .='.woocommerce ul.products li.product a img{';
          $cleaning_services_agency_color_scheme_css .='border-radius: '.esc_attr($cleaning_services_agency_woo_product_img_border_radius).'px;';
      $cleaning_services_agency_color_scheme_css .='}';
  }

/*--------------------------- Shop page pagination -------------------*/

$cleaning_services_agency_wooproducts_nav = get_theme_mod('cleaning_services_agency_wooproducts_nav', 'Yes');
if($cleaning_services_agency_wooproducts_nav == 'No'){
  $cleaning_services_agency_color_scheme_css .='.woocommerce nav.woocommerce-pagination{';
    $cleaning_services_agency_color_scheme_css .='display: none;';
  $cleaning_services_agency_color_scheme_css .='}';
}

/*--------------------------- Related Product -------------------*/

$cleaning_services_agency_related_product_enable = get_theme_mod('cleaning_services_agency_related_product_enable',true);
if($cleaning_services_agency_related_product_enable == false){
  $cleaning_services_agency_color_scheme_css .='.related.products{';
    $cleaning_services_agency_color_scheme_css .='display: none;';
  $cleaning_services_agency_color_scheme_css .='}';
}    

/*--------------------------- Scroll to Top Button Shape -------------------*/

$cleaning_services_agency_scroll_top_shape = get_theme_mod('cleaning_services_agency_scroll_top_shape', 'circle');
if($cleaning_services_agency_scroll_top_shape == 'box' ){
  $cleaning_services_agency_color_scheme_css .='#button{';
    $cleaning_services_agency_color_scheme_css .=' border-radius: 0%';
  $cleaning_services_agency_color_scheme_css .='}';
}elseif($cleaning_services_agency_scroll_top_shape == 'curved' ){
  $cleaning_services_agency_color_scheme_css .='#button{';
    $cleaning_services_agency_color_scheme_css .=' border-radius: 20%';
  $cleaning_services_agency_color_scheme_css .='}';
}elseif($cleaning_services_agency_scroll_top_shape == 'circle' ){
  $cleaning_services_agency_color_scheme_css .='#button{';
    $cleaning_services_agency_color_scheme_css .=' border-radius: 50%;';
  $cleaning_services_agency_color_scheme_css .='}';
}

/*--------------------------- Menu Typography -------------------*/

$cleaning_services_agency_theme_lay = get_theme_mod( 'cleaning_services_agency_menu_text_transform','Capitalize');
if($cleaning_services_agency_theme_lay == 'Uppercase'){
    $cleaning_services_agency_color_scheme_css .='.main-nav a{';
        $cleaning_services_agency_color_scheme_css .='text-transform: uppercase;';
    $cleaning_services_agency_color_scheme_css .='}';
}else if($cleaning_services_agency_theme_lay == 'Lowercase'){
    $cleaning_services_agency_color_scheme_css .='.main-nav a{';
        $cleaning_services_agency_color_scheme_css .='text-transform: lowercase;';
    $cleaning_services_agency_color_scheme_css .='}';
}
else if($cleaning_services_agency_theme_lay == 'Capitalize'){
    $cleaning_services_agency_color_scheme_css .='.main-nav a{';
        $cleaning_services_agency_color_scheme_css .='text-transform: capitalize;';
    $cleaning_services_agency_color_scheme_css .='}';
}

/*--------------------------- Post Layout -------------------*/

$cleaning_services_agency_blog_layouts = get_theme_mod('cleaning_services_agency_blog_layout_option_setting', 'Left');
if ($cleaning_services_agency_blog_layouts == 'Left') {
    $cleaning_services_agency_color_scheme_css .= '.postsec-list .listarticle{';
    $cleaning_services_agency_color_scheme_css .= 'text-align:left;';
    $cleaning_services_agency_color_scheme_css .= '}';
} elseif ($cleaning_services_agency_blog_layouts == 'Center') {
    $cleaning_services_agency_color_scheme_css .= '.postsec-list .listarticle{';
    $cleaning_services_agency_color_scheme_css .= 'text-align:center;';
    $cleaning_services_agency_color_scheme_css .= '}';
} elseif ($cleaning_services_agency_blog_layouts == 'Right') {
    $cleaning_services_agency_color_scheme_css .= '.postsec-list .listarticle{';
    $cleaning_services_agency_color_scheme_css .= 'text-align:right;';
    $cleaning_services_agency_color_scheme_css .= '}';
}