<?php

    $architect_engineer_theme_css= "";

    /*--------------------------- Scroll To Top Positions -------------------*/

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

    /*--------------------------- Scroll To Top Border Radius -------------------*/

    $architect_engineer_scroll_to_top_border_radius = get_theme_mod('architect_engineer_scroll_to_top_border_radius');
    if($architect_engineer_scroll_to_top_border_radius != false){
        $architect_engineer_theme_css .='#colophon a#button{';
            $architect_engineer_theme_css .='border-radius: '.esc_attr($architect_engineer_scroll_to_top_border_radius).'px;';
        $architect_engineer_theme_css .='}';
    }

    /*--------------------------- Slider Image Opacity -------------------*/

    $architect_engineer_slider_img_opacity = get_theme_mod( 'architect_engineer_slider_opacity_color','');
    if($architect_engineer_slider_img_opacity == '0'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.1'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.1';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.2'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.2';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.3'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.3';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.4'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.4';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.5'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.5';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.6'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.6';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.7'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.7';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.8'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.8';
        $architect_engineer_theme_css .='}';
        }else if($architect_engineer_slider_img_opacity == '0.9'){
        $architect_engineer_theme_css .='.slider-box img{';
            $architect_engineer_theme_css .='opacity:0.9';
        $architect_engineer_theme_css .='}';
        }

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

    $architect_engineer_slider_img_height = get_theme_mod('architect_engineer_slider_img_height');
    if($architect_engineer_slider_img_height != false){
        $architect_engineer_theme_css .='#top-slider .owl-carousel .owl-item img{';
            $architect_engineer_theme_css .='height: '.esc_attr($architect_engineer_slider_img_height).';';
        $architect_engineer_theme_css .='}';
    }

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

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

    /*--------------------------- Woocommerce Product Sale Positions -------------------*/

    $architect_engineer_product_sale = get_theme_mod( 'architect_engineer_woocommerce_product_sale','Right');
    if($architect_engineer_product_sale == 'Right'){
        $architect_engineer_theme_css .='.woocommerce ul.products li.product .onsale{';
            $architect_engineer_theme_css .='left: auto; right: 15px;';
        $architect_engineer_theme_css .='}';
    }else if($architect_engineer_product_sale == 'Left'){
        $architect_engineer_theme_css .='.woocommerce ul.products li.product .onsale{';
            $architect_engineer_theme_css .='left: 15px; right: auto;';
        $architect_engineer_theme_css .='}';
    }else if($architect_engineer_product_sale == 'Center'){
        $architect_engineer_theme_css .='.woocommerce ul.products li.product .onsale{';
            $architect_engineer_theme_css .='right: 50%;left: 50%;';
        $architect_engineer_theme_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Border Radius -------------------*/

    $architect_engineer_woo_product_sale_border_radius = get_theme_mod('architect_engineer_woo_product_sale_border_radius');
    if($architect_engineer_woo_product_sale_border_radius != false){
        $architect_engineer_theme_css .='.woocommerce ul.products li.product .onsale{';
            $architect_engineer_theme_css .='border-radius: '.esc_attr($architect_engineer_woo_product_sale_border_radius).'px;';
        $architect_engineer_theme_css .='}';
    }

    /*--------------------------- Woocommerce Related Products -------------------*/

    $architect_engineer_woocommerce_related_product_show_hide = get_theme_mod('architect_engineer_woocommerce_related_product_show_hide',true);
    if($architect_engineer_woocommerce_related_product_show_hide != true){
        $architect_engineer_theme_css .='.related.products{';
            $architect_engineer_theme_css .='display: none;';
        $architect_engineer_theme_css .='}';
    }

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

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

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

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

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

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

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

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

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

    $architect_engineer_footer_bg_image = get_theme_mod('architect_engineer_footer_bg_image');
    if($architect_engineer_footer_bg_image != false){
        $architect_engineer_theme_css .='#colophon{';
            $architect_engineer_theme_css .='background: url('.esc_attr($architect_engineer_footer_bg_image).');';
        $architect_engineer_theme_css .='}';
    }

    /*--------------------------- Copyright Background Color -------------------*/

    $architect_engineer_copyright_background_color = get_theme_mod('architect_engineer_copyright_background_color');
    if($architect_engineer_copyright_background_color != false){
        $architect_engineer_theme_css .='.footer_info{';
            $architect_engineer_theme_css .='background-color: '.esc_attr($architect_engineer_copyright_background_color).' !important;';
        $architect_engineer_theme_css .='}';
    }

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

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

    /*--------------------------- Site Title And Tagline Color -------------------*/

    $architect_engineer_logo_title_color = get_theme_mod('architect_engineer_logo_title_color');
    if($architect_engineer_logo_title_color != false){
        $architect_engineer_theme_css .='p.site-title a, .navbar-brand a{';
            $architect_engineer_theme_css .='color: '.esc_attr($architect_engineer_logo_title_color).' !important;';
        $architect_engineer_theme_css .='}';
    }

    $architect_engineer_logo_tagline_color = get_theme_mod('architect_engineer_logo_tagline_color');
    if($architect_engineer_logo_tagline_color != false){
        $architect_engineer_theme_css .='.logo p.site-description, .navbar-brand p{';
            $architect_engineer_theme_css .='color: '.esc_attr($architect_engineer_logo_tagline_color).'  !important;';
        $architect_engineer_theme_css .='}';
    }

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

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

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

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

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

    $architect_engineer_global_color = get_theme_mod('architect_engineer_global_color');

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

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

    $architect_engineer_heading_color = get_theme_mod('architect_engineer_heading_color');
    $architect_engineer_heading_font_family = get_theme_mod('architect_engineer_heading_font_family');
    $architect_engineer_heading_font_size = get_theme_mod('architect_engineer_heading_font_size');
    if($architect_engineer_heading_color != false || $architect_engineer_heading_font_family != false || $architect_engineer_heading_font_size != false){
        $architect_engineer_theme_css .='h1, h2, h3, h4, h5, h6, #latest_post h2, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, .slider-inner-box h1 a, h2.woocommerce-loop-product__title, .article-box h3.entry-title, #colophon h5, .sidebar h5, .latest-project h3, .latest-project h6{';
            $architect_engineer_theme_css .='color: '.esc_attr($architect_engineer_heading_color).'!important; 
            font-family: '.esc_attr($architect_engineer_heading_font_family).'!important;
            font-size: '.esc_attr($architect_engineer_heading_font_size).'px !important;';
        $architect_engineer_theme_css .='}';
    }

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

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

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

    /*--------------------------- Product Image Box Shadow -------------------*/

    $architect_engineer_woo_product_image_box_shadow = get_theme_mod('architect_engineer_woo_product_image_box_shadow',0);
    if($architect_engineer_woo_product_image_box_shadow != false){
        $architect_engineer_theme_css .='.woocommerce ul.products li.product a img{';
            $architect_engineer_theme_css .='box-shadow: '.esc_attr($architect_engineer_woo_product_image_box_shadow).'px '.esc_attr($architect_engineer_woo_product_image_box_shadow).'px '.esc_attr($architect_engineer_woo_product_image_box_shadow).'px #cccccc;';
        $architect_engineer_theme_css .='}';
    }

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

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

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

    $architect_engineer_nav_menu_font_weight = get_theme_mod( 'architect_engineer_nav_menu_font_weight',600);
    if($architect_engineer_menu_font_size != ''){
        $architect_engineer_theme_css .='.main-navigation .menu > li > a{';
            $architect_engineer_theme_css .='font-weight: '.esc_attr($architect_engineer_nav_menu_font_weight).';';
        $architect_engineer_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/

    $architect_engineer_slider_content_layout = get_theme_mod( 'architect_engineer_slider_content_layout','Left');
    if($architect_engineer_slider_content_layout == 'Left'){
        $architect_engineer_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $architect_engineer_theme_css .='text-align : left;';
        $architect_engineer_theme_css .='}';
    }
    if($architect_engineer_slider_content_layout == 'Center'){
        $architect_engineer_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $architect_engineer_theme_css .='text-align : center;';
        $architect_engineer_theme_css .='}';
    }
    if($architect_engineer_slider_content_layout == 'Right'){
        $architect_engineer_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $architect_engineer_theme_css .='text-align : right;';
        $architect_engineer_theme_css .='}';
    }

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

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