<?php

    $pest_control_services_theme_css= "";

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

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

    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $pest_control_services_single_post_page_image_box_shadow = get_theme_mod('pest_control_services_single_post_page_image_box_shadow',0);
    if($pest_control_services_single_post_page_image_box_shadow != false){
        $pest_control_services_theme_css .='.single-post .entry-header img{';
            $pest_control_services_theme_css .='box-shadow: '.esc_attr($pest_control_services_single_post_page_image_box_shadow).'px '.esc_attr($pest_control_services_single_post_page_image_box_shadow).'px '.esc_attr($pest_control_services_single_post_page_image_box_shadow).'px #cccccc;';
        $pest_control_services_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $pest_control_services_single_post_page_image_border_radius = get_theme_mod('pest_control_services_single_post_page_image_border_radius', 0);
    if($pest_control_services_single_post_page_image_border_radius != false){
        $pest_control_services_theme_css .='.single-post .entry-header img{';
            $pest_control_services_theme_css .='border-radius: '.esc_attr($pest_control_services_single_post_page_image_border_radius).'px;';
        $pest_control_services_theme_css .='}';
    }

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

    $pest_control_services_footer_bg_image = get_theme_mod('pest_control_services_footer_bg_image');
    if($pest_control_services_footer_bg_image != false){
        $pest_control_services_theme_css .='#colophon{';
            $pest_control_services_theme_css .='background: url('.esc_attr($pest_control_services_footer_bg_image).')!important;';
        $pest_control_services_theme_css .='}';
    }

    /*--------------------------- Footer Background Image Position -------------------*/

    $pest_control_services_footer_bg_image_position = get_theme_mod( 'pest_control_services_footer_bg_image_position','scroll');
    if($pest_control_services_footer_bg_image_position == 'fixed'){
        $pest_control_services_theme_css .='#colophon{';
            $pest_control_services_theme_css .='background-attachment: fixed !important; background-position: center !important;';
        $pest_control_services_theme_css .='}';
    }elseif ($pest_control_services_footer_bg_image_position == 'scroll'){
        $pest_control_services_theme_css .='#colophon{';
            $pest_control_services_theme_css .='background-attachment: scroll !important; background-position: center !important;';
        $pest_control_services_theme_css .='}';
    }

    /*--------------------------- Footer Widget Heading Alignment -------------------*/

    $pest_control_services_footer_widget_heading_alignment = get_theme_mod( 'pest_control_services_footer_widget_heading_alignment','Left');
    if($pest_control_services_footer_widget_heading_alignment == 'Left'){
        $pest_control_services_theme_css .='#colophon h5, h5.footer-column-widget-title{';
        $pest_control_services_theme_css .='text-align: left;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_footer_widget_heading_alignment == 'Center'){
        $pest_control_services_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $pest_control_services_theme_css .='text-align: center;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_footer_widget_heading_alignment == 'Right'){
        $pest_control_services_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $pest_control_services_theme_css .='text-align: right;';
        $pest_control_services_theme_css .='}';
    }

    /*--------------------------- Footer Widget Content Alignment -------------------*/

    $pest_control_services_footer_widget_content_alignment = get_theme_mod( 'pest_control_services_footer_widget_content_alignment','Left');
    if($pest_control_services_footer_widget_content_alignment == 'Left'){
        $pest_control_services_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
        $pest_control_services_theme_css .='text-align: left;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_footer_widget_content_alignment == 'Center'){
        $pest_control_services_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $pest_control_services_theme_css .='text-align: center;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_footer_widget_content_alignment == 'Right'){
        $pest_control_services_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $pest_control_services_theme_css .='text-align: right;';
        $pest_control_services_theme_css .='}';
    }

    /*--------------------------- Copyright Content Alignment -------------------*/

    $pest_control_services_copyright_content_alignment = get_theme_mod( 'pest_control_services_copyright_content_alignment','Right');
    if($pest_control_services_copyright_content_alignment == 'Left'){
        $pest_control_services_theme_css .='.footer-menu-left{';
        $pest_control_services_theme_css .='text-align: left;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_copyright_content_alignment == 'Center'){
        $pest_control_services_theme_css .='.footer-menu-left{';
            $pest_control_services_theme_css .='text-align: center;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_copyright_content_alignment == 'Right'){
        $pest_control_services_theme_css .='.footer-menu-left{';
            $pest_control_services_theme_css .='text-align: right;';
        $pest_control_services_theme_css .='}';
    }

    /*---------------------------Width Layout -------------------*/

    $pest_control_services_width_option = get_theme_mod( 'pest_control_services_width_option','Full Width');
    if($pest_control_services_width_option == 'Boxed Width'){
        $pest_control_services_theme_css .='body{';
            $pest_control_services_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
        $pest_control_services_theme_css .='}';
        $pest_control_services_theme_css .='.scrollup i{';
            $pest_control_services_theme_css .='right: 100px;';
        $pest_control_services_theme_css .='}';
        $pest_control_services_theme_css .='.page-template-custom-home-page .home-page-header{';
            $pest_control_services_theme_css .='padding: 0px 40px 0 10px;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_width_option == 'Wide Width'){
        $pest_control_services_theme_css .='body{';
            $pest_control_services_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
        $pest_control_services_theme_css .='}';
        $pest_control_services_theme_css .='.scrollup i{';
            $pest_control_services_theme_css .='right: 30px;';
        $pest_control_services_theme_css .='}';
    }else if($pest_control_services_width_option == 'Full Width'){
        $pest_control_services_theme_css .='body{';
            $pest_control_services_theme_css .='max-width: 100%;';
        $pest_control_services_theme_css .='}';
    }

    /*------------------ Nav Menus -------------------*/

    $pest_control_services_nav_menu = get_theme_mod( 'pest_control_services_nav_menu_text_transform','Capitalize');
    if($pest_control_services_nav_menu == 'Capitalize'){
        $pest_control_services_theme_css .='.main-navigation .menu > li > a{';
            $pest_control_services_theme_css .='text-transform:Capitalize;';
        $pest_control_services_theme_css .='}';
    }
    if($pest_control_services_nav_menu == 'Lowercase'){
        $pest_control_services_theme_css .='.main-navigation .menu > li > a{';
            $pest_control_services_theme_css .='text-transform:Lowercase;';
        $pest_control_services_theme_css .='}';
    }
    if($pest_control_services_nav_menu == 'Uppercase'){
        $pest_control_services_theme_css .='.main-navigation .menu > li > a{';
            $pest_control_services_theme_css .='text-transform:Uppercase;';
        $pest_control_services_theme_css .='}';
    }

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


    $pest_control_services_global_color = get_theme_mod('pest_control_services_global_color');
    $pest_control_services_global_second_color = get_theme_mod('pest_control_services_global_second_color');

    if ($pest_control_services_global_color) {
        $pest_control_services_theme_css .= ':root {';
        $pest_control_services_theme_css .= '--first-color: ' . esc_attr($pest_control_services_global_color) . ' !important;';
        $pest_control_services_theme_css .= '} ';
    }

    /*-------------------------- Global Second Color ----------------------------------*/
    if ($pest_control_services_global_second_color) {
        $pest_control_services_theme_css .= ':root {';
        $pest_control_services_theme_css .= '--second-color: ' . esc_attr($pest_control_services_global_second_color) . ' !important;';
        $pest_control_services_theme_css .= '} ';
    }
   

    /*-------------------- Heading typography -------------------*/

    $pest_control_services_heading_color = get_theme_mod('pest_control_services_heading_color');
    $pest_control_services_heading_font_family = get_theme_mod('pest_control_services_heading_font_family');
    $pest_control_services_heading_font_size = get_theme_mod('pest_control_services_heading_font_size');
    if($pest_control_services_heading_color != false || $pest_control_services_heading_font_family != false || $pest_control_services_heading_font_size != false){
        $pest_control_services_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, .slider-inner-box h2, #top-slider .slider-inner-box h2, .article-box h3.entry-title, .featured h4.main-heading, .ser-content h4 a, #colophon h5, .sidebar h5, .heading-main h3.image-heading, h3.image-heading, .about-image h4.image-heading, h5.tick-box{';
            $pest_control_services_theme_css .='color: '.esc_attr($pest_control_services_heading_color).'!important; 
            font-family: '.esc_attr($pest_control_services_heading_font_family).'!important;
            font-size: '.esc_attr($pest_control_services_heading_font_size).'px !important;';
        $pest_control_services_theme_css .='}';
    }

    $pest_control_services_paragraph_color = get_theme_mod('pest_control_services_paragraph_color');
    $pest_control_services_paragraph_font_family = get_theme_mod('pest_control_services_paragraph_font_family');
    $pest_control_services_paragraph_font_size = get_theme_mod('pest_control_services_paragraph_font_size');
    if($pest_control_services_paragraph_color != false || $pest_control_services_paragraph_font_family != false || $pest_control_services_paragraph_font_size != false){
        $pest_control_services_theme_css .='p, p.site-title, span, .article-box p, ul, li{';
            $pest_control_services_theme_css .='color: '.esc_attr($pest_control_services_paragraph_color).'!important; 
            font-family: '.esc_attr($pest_control_services_paragraph_font_family).'!important;
            font-size: '.esc_attr($pest_control_services_paragraph_font_size).'px !important;';
        $pest_control_services_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/
    $pest_control_services_slider_opacity_setting = get_theme_mod( 'pest_control_services_slider_opacity_setting',true);
    $pest_control_services_image_opacity_color = get_theme_mod( 'pest_control_services_image_opacity_color');
    $pest_control_services_slider_opacity = get_theme_mod( 'pest_control_services_slider_opacity');
    if( $pest_control_services_slider_opacity_setting != false) {
        $pest_control_services_theme_css .='#top-slider .slider-image img{';
            $pest_control_services_theme_css .='opacity: '. $pest_control_services_slider_opacity. ';';
        $pest_control_services_theme_css .='}';
        if( $pest_control_services_image_opacity_color != '') {
            $pest_control_services_theme_css .='#top-slider .slider-image{';
                $pest_control_services_theme_css .='background-color: '. $pest_control_services_image_opacity_color. ';';
            $pest_control_services_theme_css .='}';
        }
    } else {
        $pest_control_services_theme_css .='#top-slider .slider-image img{';
            $pest_control_services_theme_css .='opacity: 1;';
        $pest_control_services_theme_css .='}';
    }

    /*------------------ Footer CSS -------------------*/
    $pest_control_services_footer_bg_color = get_theme_mod( 'pest_control_services_footer_bg_color');
    if($pest_control_services_footer_bg_color != '' ){
        $pest_control_services_theme_css .='#colophon {';
            $pest_control_services_theme_css .='background-color: '.esc_attr($pest_control_services_footer_bg_color).'; ';
        $pest_control_services_theme_css .='}';
    }

    $pest_control_services_footer_content_color = get_theme_mod( 'pest_control_services_footer_content_color');
    if($pest_control_services_footer_content_color != ''){
        $pest_control_services_theme_css .='#colophon, #colophon a, #colophon h5, #colophon .widget #wp-calendar caption {';
            $pest_control_services_theme_css .='color: '.esc_attr($pest_control_services_footer_content_color).';';
        $pest_control_services_theme_css .='}';
    }

    /*------------------ Copyright CSS -------------------*/
    $pest_control_services_copyright_text_color = get_theme_mod( 'pest_control_services_copyright_text_color');
    if($pest_control_services_copyright_text_color != ''){
        $pest_control_services_theme_css .='#colophon .site-info a, #colophon .site-info span {';
            $pest_control_services_theme_css .='color: '.esc_attr($pest_control_services_copyright_text_color).';';
        $pest_control_services_theme_css .='}';
    }

     /*--------------------------- Featured Image Border Radius -------------------*/

    $pest_control_services_post_page_image_border_radius = get_theme_mod('pest_control_services_post_page_image_border_radius', 0);
    if($pest_control_services_post_page_image_border_radius != false){
        $pest_control_services_theme_css .='.article-box img{';
            $pest_control_services_theme_css .='border-radius: '.esc_attr($pest_control_services_post_page_image_border_radius).'px;';
        $pest_control_services_theme_css .='}';
    }

    /*--------------------------- Post Page Image Box Shadow -------------------*/

    $pest_control_services_post_page_image_box_shadow = get_theme_mod('pest_control_services_post_page_image_box_shadow',0);
    if($pest_control_services_post_page_image_box_shadow != false){
        $pest_control_services_theme_css .='.article-box img{';
            $pest_control_services_theme_css .='box-shadow: '.esc_attr($pest_control_services_post_page_image_box_shadow).'px '.esc_attr($pest_control_services_post_page_image_box_shadow).'px '.esc_attr($pest_control_services_post_page_image_box_shadow).'px #cccccc;';
        $pest_control_services_theme_css .='}';
    }

    /*---------------- Single post Settings ------------------*/

    $pest_control_services_single_post_navigation_show_hide = get_theme_mod('pest_control_services_single_post_navigation_show_hide',true);
    if($pest_control_services_single_post_navigation_show_hide != true){
        $pest_control_services_theme_css .='.nav-links{';
            $pest_control_services_theme_css .='display: none;';
        $pest_control_services_theme_css .='}';
    }

    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $pest_control_services_single_post_page_image_box_shadow = get_theme_mod('pest_control_services_single_post_page_image_box_shadow',0);
    if($pest_control_services_single_post_page_image_box_shadow != false){
        $pest_control_services_theme_css .='.single-post .entry-header img{';
            $pest_control_services_theme_css .='box-shadow: '.esc_attr($pest_control_services_single_post_page_image_box_shadow).'px '.esc_attr($pest_control_services_single_post_page_image_box_shadow).'px '.esc_attr($pest_control_services_single_post_page_image_box_shadow).'px #cccccc;';
        $pest_control_services_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $pest_control_services_single_post_page_image_border_radius = get_theme_mod('pest_control_services_single_post_page_image_border_radius', 0);
    if($pest_control_services_single_post_page_image_border_radius != false){
        $pest_control_services_theme_css .='.single-post .entry-header img{';
            $pest_control_services_theme_css .='border-radius: '.esc_attr($pest_control_services_single_post_page_image_border_radius).'px;';
        $pest_control_services_theme_css .='}';
    }