<?php

$landscape_architecture_first_color = get_theme_mod('landscape_architecture_first_color');
$landscape_architecture_second_color = get_theme_mod('landscape_architecture_second_color');
$landscape_architecture_color_scheme_css = '';

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

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

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

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

// slider hide css
$landscape_architecture_hide_categorysec = get_theme_mod( 'landscape_architecture_hide_categorysec', false);
if($landscape_architecture_hide_categorysec != true){
$landscape_architecture_color_scheme_css .='.page-template-template-home-page .header {';
  $landscape_architecture_color_scheme_css .='position:static;';
$landscape_architecture_color_scheme_css .='}';
$landscape_architecture_color_scheme_css .='.page-template-template-home-page p.site-title a, .page-template-template-home-page span.site-description, .page-template-template-home-page .main-nav a{';
  $landscape_architecture_color_scheme_css .='color:var(--second-theme-color);';
$landscape_architecture_color_scheme_css .='}';
}

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

if($landscape_architecture_logo_width != false){

$landscape_architecture_color_scheme_css .='.landscape-architecture-logo img{';

  $landscape_architecture_color_scheme_css .='width: '.esc_html($landscape_architecture_logo_width).'px;';

$landscape_architecture_color_scheme_css .='}';
}

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

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

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

$landscape_architecture_footer_bg_image = get_theme_mod('landscape_architecture_footer_bg_image');
if($landscape_architecture_footer_bg_image != false){
    $landscape_architecture_color_scheme_css .='#footer{';
        $landscape_architecture_color_scheme_css .='background: url('.esc_attr($landscape_architecture_footer_bg_image).');';
        $landscape_architecture_color_scheme_css .= 'background-size: cover;';     
    $landscape_architecture_color_scheme_css .='}';
}

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

$landscape_architecture_footer_img_position = get_theme_mod('landscape_architecture_footer_img_position','center center');
if($landscape_architecture_footer_img_position != false){
    $landscape_architecture_color_scheme_css .='#footer{';
        $landscape_architecture_color_scheme_css .='background-position: '.esc_attr($landscape_architecture_footer_img_position).';';
    $landscape_architecture_color_scheme_css .='}';
}	

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

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

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

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

/*--------------------------- Woocommerce Product Sale Position -------------------*/    

$landscape_architecture_product_sale_position = get_theme_mod( 'landscape_architecture_product_sale_position','Left');
if($landscape_architecture_product_sale_position == 'Right'){
    $landscape_architecture_color_scheme_css .='.woocommerce ul.products li.product .onsale{';
        $landscape_architecture_color_scheme_css .='left:auto !important; right:.5em !important;';
    $landscape_architecture_color_scheme_css .='}';
}else if($landscape_architecture_product_sale_position == 'Left'){
    $landscape_architecture_color_scheme_css .='.woocommerce ul.products li.product .onsale {';
        $landscape_architecture_color_scheme_css .='right:auto !important; left:.5em !important;';
    $landscape_architecture_color_scheme_css .='}';
}        

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

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

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

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

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

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

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

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

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

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