<?php

    $house_roofing_theme_css= "";

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

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

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

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

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

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

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

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

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

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

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

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

    $house_roofing_menu_font_size = get_theme_mod( 'house_roofing_menu_font_size');
    if($house_roofing_menu_font_size != ''){
        $house_roofing_theme_css .='.main-navigation .menu > li > a{';
            $house_roofing_theme_css .='font-size: '.esc_attr($house_roofing_menu_font_size).'px;';
        $house_roofing_theme_css .='}';
    }

    $house_roofing_nav_menu_font_weight = get_theme_mod( 'house_roofing_nav_menu_font_weight',400);
    if($house_roofing_menu_font_size != ''){
        $house_roofing_theme_css .='.main-navigation .menu > li > a{';
            $house_roofing_theme_css .='font-weight: '.esc_attr($house_roofing_nav_menu_font_weight).';';
        $house_roofing_theme_css .='}';
    }

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

    $house_roofing_first_color = get_theme_mod('house_roofing_first_color');

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

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

    $house_roofing_heading_color = get_theme_mod('house_roofing_heading_color');
    $house_roofing_heading_font_family = get_theme_mod('house_roofing_heading_font_family');
    $house_roofing_heading_font_size = get_theme_mod('house_roofing_heading_font_size');
    if($house_roofing_heading_color != false || $house_roofing_heading_font_family != false || $house_roofing_heading_font_size != false){
        $house_roofing_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, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, .ser-content h4 a, #colophon h5, .sidebar h5{';
            $house_roofing_theme_css .='color: '.esc_attr($house_roofing_heading_color).'!important; 
            font-family: '.esc_attr($house_roofing_heading_font_family).'!important;
            font-size: '.esc_attr($house_roofing_heading_font_size).'px !important;';
        $house_roofing_theme_css .='}';
    }

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

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

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

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