<?php 

	$modern_architecture_custom_style = '';

	// Logo Size
	$modern_architecture_logo_top_padding = get_theme_mod('modern_architecture_logo_top_padding');
	$modern_architecture_logo_bottom_padding = get_theme_mod('modern_architecture_logo_bottom_padding');
	$modern_architecture_logo_left_padding = get_theme_mod('modern_architecture_logo_left_padding');
	$modern_architecture_logo_right_padding = get_theme_mod('modern_architecture_logo_right_padding');

	if( $modern_architecture_logo_top_padding != '' || $modern_architecture_logo_bottom_padding != '' || $modern_architecture_logo_left_padding != '' || $modern_architecture_logo_right_padding != ''){
		$modern_architecture_custom_style .=' .logo {';
			$modern_architecture_custom_style .=' padding-top: '.esc_attr($modern_architecture_logo_top_padding).'px; padding-bottom: '.esc_attr($modern_architecture_logo_bottom_padding).'px; padding-left: '.esc_attr($modern_architecture_logo_left_padding).'px; padding-right: '.esc_attr($modern_architecture_logo_right_padding).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_logo_size = get_theme_mod('modern_architecture_logo_size');
	if( $modern_architecture_logo_size != '') {
		if($modern_architecture_logo_size == 100) {
			$modern_architecture_custom_style .=' .custom-logo-link img {';
				$modern_architecture_custom_style .=' width: 350px;';
			$modern_architecture_custom_style .=' }';
		} else if($modern_architecture_logo_size >= 10 && $modern_architecture_logo_size < 100) {
			$modern_architecture_custom_style .=' .custom-logo-link img {';
				$modern_architecture_custom_style .=' width: '.esc_attr($modern_architecture_logo_size).'%;';
			$modern_architecture_custom_style .=' }';
		}
	}

	// service section padding
	$modern_architecture_what_we_do_section_padding = get_theme_mod('modern_architecture_what_we_do_section_padding');

	if( $modern_architecture_what_we_do_section_padding != ''){
		$modern_architecture_custom_style .=' #our-services {';
			$modern_architecture_custom_style .=' padding-top: '.esc_attr($modern_architecture_what_we_do_section_padding).'px; padding-bottom: '.esc_attr($modern_architecture_what_we_do_section_padding).'px;';
		$modern_architecture_custom_style .=' }';
	}

	// Site Title Font Size
	$modern_architecture_site_title_font_size = get_theme_mod('modern_architecture_site_title_font_size');
	if( $modern_architecture_site_title_font_size != ''){
		$modern_architecture_custom_style .=' .logo h1.site-title, .logo p.site-title {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_site_title_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_site_title_color = get_theme_mod('modern_architecture_site_title_color');
	if ( $modern_architecture_site_title_color != '') {
		$modern_architecture_custom_style .=' p.site-title a  {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_site_title_color).';';
		$modern_architecture_custom_style .=' }';
	}

	// Site Tagline Font Size
	$modern_architecture_site_tagline_font_size = get_theme_mod('modern_architecture_site_tagline_font_size');
	if( $modern_architecture_site_tagline_font_size != ''){
		$modern_architecture_custom_style .=' .logo p.site-description {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_site_tagline_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_site_tagline_color = get_theme_mod('modern_architecture_site_tagline_color');
	if ( $modern_architecture_site_tagline_color != '') {
		$modern_architecture_custom_style .=' .logo p.site-description {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_site_tagline_color).';';
		$modern_architecture_custom_style .=' }';
	}

	//layout width
	$modern_architecture_boxfull_width = get_theme_mod('modern_architecture_boxfull_width');
	if ($modern_architecture_boxfull_width !== '') {
		switch ($modern_architecture_boxfull_width) {
			case 'container':
				$modern_architecture_custom_style .= ' body, #header {
					max-width: 1140px;
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'container-fluid':
				$modern_architecture_custom_style .= ' body, #header { 
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
				 }';
				break;
			case 'none':
				// No specific width specified, so no additional style needed.
				break;
			default:
				// Handle unexpected values.
				break;
		}
	}

	//Menu animation
	$modern_architecture_dropdown_anim = get_theme_mod('modern_architecture_dropdown_anim');

	if ( $modern_architecture_dropdown_anim != '') {
		$modern_architecture_custom_style .=' .nav-menu ul ul {';
			$modern_architecture_custom_style .=' animation:'.esc_attr($modern_architecture_dropdown_anim).' 1s ease;';
		$modern_architecture_custom_style .=' }';
	}

	// Header Image
	$header_image_url = modern_architecture_banner_image( $image_url = '' );
	if( $header_image_url != ''){
		$modern_architecture_custom_style .=' #inner-pages-header {';
			$modern_architecture_custom_style .=' background-image: url('. esc_url( $header_image_url ).'); background-size: cover; background-repeat: no-repeat; background-attachment: fixed;';
		$modern_architecture_custom_style .=' }';
		$modern_architecture_custom_style .=' .header-overlay {';
			$modern_architecture_custom_style .=' position: absolute; 	width: 100%; height: 100%; 	top: 0; left: 0; background: #000; opacity: 0.3;';
		$modern_architecture_custom_style .=' }';
	} else {
		$modern_architecture_custom_style .=' #inner-pages-header {';
			$modern_architecture_custom_style .=' background: linear-gradient(0deg,#c1babe,#faf6f6 80%) no-repeat; ';
		$modern_architecture_custom_style .=' }';
		$modern_architecture_custom_style .=' #inner-pages-header h1 {';
			$modern_architecture_custom_style .=' color: #000; ';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_slider_hide_show = get_theme_mod('modern_architecture_slider_hide_show',false);
	if( $modern_architecture_slider_hide_show == true){
		$modern_architecture_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
			$modern_architecture_custom_style .=' display:none;';
		$modern_architecture_custom_style .=' }';
	}

	// Copyright padding
	$modern_architecture_copyright_padding = get_theme_mod('modern_architecture_copyright_padding');
	if( $modern_architecture_copyright_padding != ''){
		$modern_architecture_custom_style .=' .site-info {';
			$modern_architecture_custom_style .=' padding-top: '.esc_attr($modern_architecture_copyright_padding).'px; padding-bottom: '.esc_attr($modern_architecture_copyright_padding).'px;';
		$modern_architecture_custom_style .=' }';
	}

	//topbar color
	$modern_architecture_topbar_color = get_theme_mod('modern_architecture_topbar_color');
	if ( $modern_architecture_topbar_color != '') {
		$modern_architecture_custom_style .=' .topbar p, .topbar .social-icons i {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_topbar_color).';';
		$modern_architecture_custom_style .=' }';
	}
	$modern_architecture_topbarbg_color = get_theme_mod('modern_architecture_topbarbg_color');
	if ( $modern_architecture_topbarbg_color != '') {
		$modern_architecture_custom_style .=' .topbar {';
			$modern_architecture_custom_style .=' background-color:'.esc_attr($modern_architecture_topbarbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_menu_color = get_theme_mod('modern_architecture_menu_color');
	if ( $modern_architecture_menu_color != '') {
		$modern_architecture_custom_style .=' .nav-menu ul li a {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_menu_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_logobg_color = get_theme_mod('modern_architecture_logobg_color');
	if ( $modern_architecture_logobg_color != '') {
		$modern_architecture_custom_style .=' .logo {';
			$modern_architecture_custom_style .=' background:'.esc_attr($modern_architecture_logobg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_headerbg_color = get_theme_mod('modern_architecture_headerbg_color');
	if ( $modern_architecture_headerbg_color != '') {
		$modern_architecture_custom_style .=' .bottom-header {';
			$modern_architecture_custom_style .=' background-color:'.esc_attr($modern_architecture_headerbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	//Slider css
	$modern_architecture_slider_title_font_size = get_theme_mod('modern_architecture_slider_title_font_size');
	if( $modern_architecture_slider_title_font_size != ''){
		$modern_architecture_custom_style .=' #slider .inner_carousel p {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_slider_title_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_slider_opacity = get_theme_mod('modern_architecture_slider_opacity');
	if ( $modern_architecture_slider_opacity != '') {
		$modern_architecture_custom_style .=' #slider img {';
			$modern_architecture_custom_style .=' opacity:'.esc_attr($modern_architecture_slider_opacity).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_slider_color = get_theme_mod('modern_architecture_slider_color');
	if ( $modern_architecture_slider_color != '') {
		$modern_architecture_custom_style .=' #slider .inner_carousel h2 a {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_slider_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_sliderbg_color = get_theme_mod('modern_architecture_sliderbg_color');
	if ( $modern_architecture_sliderbg_color != '') {
		$modern_architecture_custom_style .=' #slider .inner_carousel h2 {';
			$modern_architecture_custom_style .=' background-color:'.esc_attr($modern_architecture_sliderbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_slidernbtn_color = get_theme_mod('modern_architecture_slidernbtn_color');
	$modern_architecture_slidernbtnbg_color = get_theme_mod('modern_architecture_slidernbtnbg_color');
	if ( $modern_architecture_slidernbtn_color != '') {
		$modern_architecture_custom_style .=' #slider .carousel-control-next {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_slidernbtn_color).'; background-color:'.esc_attr($modern_architecture_slidernbtnbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_sliderpbtn_color = get_theme_mod('modern_architecture_sliderpbtn_color');
	$modern_architecture_sliderpbtnbg_color = get_theme_mod('modern_architecture_sliderpbtnbg_color');
	if ( $modern_architecture_sliderpbtn_color != '') {
		$modern_architecture_custom_style .=' #slider .carousel-control-prev {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_sliderpbtn_color).'; background-color:'.esc_attr($modern_architecture_sliderpbtnbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	//what we do color
	$modern_architecture_secbg_color = get_theme_mod('modern_architecture_secbg_color');
	if ( $modern_architecture_secbg_color != '') {
		$modern_architecture_custom_style .=' #our-services {';
			$modern_architecture_custom_style .=' background-color:'.esc_attr($modern_architecture_secbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_subheading_font_size = get_theme_mod('modern_architecture_subheading_font_size');
	if( $modern_architecture_subheading_font_size != ''){
		$modern_architecture_custom_style .=' .service-title strong {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_subheading_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_heading_font_size = get_theme_mod('modern_architecture_heading_font_size');
	if( $modern_architecture_heading_font_size != ''){
		$modern_architecture_custom_style .=' .service-title h2 {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_heading_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_what_we_do_font_size = get_theme_mod('modern_architecture_what_we_do_font_size');
	if( $modern_architecture_what_we_do_font_size != ''){
		$modern_architecture_custom_style .=' .service-content h3 a {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_what_we_do_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_what_we_do_text_font_size = get_theme_mod('modern_architecture_what_we_do_text_font_size');
	if( $modern_architecture_what_we_do_text_font_size != ''){
		$modern_architecture_custom_style .=' .service-content p {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_what_we_do_text_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_what_we_do_img_size = get_theme_mod('modern_architecture_what_we_do_img_size');
	if( $modern_architecture_what_we_do_img_size != ''){
		$modern_architecture_custom_style .=' #our-services img {';
			$modern_architecture_custom_style .=' width: '.esc_attr($modern_architecture_what_we_do_img_size).'px; height: '.esc_attr($modern_architecture_what_we_do_img_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_service_subtitle_color = get_theme_mod('modern_architecture_service_subtitle_color');
	if ( $modern_architecture_service_subtitle_color != '') {
		$modern_architecture_custom_style .=' .service-title strong {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_service_subtitle_color).';';
		$modern_architecture_custom_style .=' }';
	}
	$modern_architecture_service_title_color = get_theme_mod('modern_architecture_service_title_color');
	if ( $modern_architecture_service_title_color != '') {
		$modern_architecture_custom_style .=' .service-title h2 {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_service_title_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_service_titlebdr_color = get_theme_mod('modern_architecture_service_titlebdr_color');
	if ( $modern_architecture_service_titlebdr_color != '') {
		$modern_architecture_custom_style .=' .service-title {';
			$modern_architecture_custom_style .=' border-color:'.esc_attr($modern_architecture_service_titlebdr_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_service_boxtitle_color = get_theme_mod('modern_architecture_service_boxtitle_color');
	if ( $modern_architecture_service_boxtitle_color != '') {
		$modern_architecture_custom_style .=' .service-content h3 a {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_service_boxtitle_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_service_boxtext_color = get_theme_mod('modern_architecture_service_boxtext_color');
	if ( $modern_architecture_service_boxtext_color != '') {
		$modern_architecture_custom_style .=' .service-content p {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_service_boxtext_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_service_boxbtn_color = get_theme_mod('modern_architecture_service_boxbtn_color');
	if ( $modern_architecture_service_boxbtn_color != '') {
		$modern_architecture_custom_style .=' .service-content .read-btn a {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_service_boxbtn_color).';';
		$modern_architecture_custom_style .=' }';
	}

	//Footer color
	$modern_architecture_footer_copy_font_size = get_theme_mod('modern_architecture_footer_copy_font_size');
	if( $modern_architecture_footer_copy_font_size != ''){
		$modern_architecture_custom_style .=' .site-footer .site-info p, .site-footer .site-info a {';
			$modern_architecture_custom_style .=' font-size: '.esc_attr($modern_architecture_footer_copy_font_size).'px;';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_copyright_color = get_theme_mod('modern_architecture_copyright_color');
	if ( $modern_architecture_copyright_color != '') {
		$modern_architecture_custom_style .=' .site-footer .site-info p, .site-footer .site-info a {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_copyright_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_copyrightbg_color = get_theme_mod('modern_architecture_copyrightbg_color');
	if ( $modern_architecture_copyrightbg_color != '') {
		$modern_architecture_custom_style .=' .copyright {';
			$modern_architecture_custom_style .=' background-color:'.esc_attr($modern_architecture_copyrightbg_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_footer_widgets_color = get_theme_mod('modern_architecture_footer_widgets_color');
	if ( $modern_architecture_footer_widgets_color != '') {
		$modern_architecture_custom_style .=' .site-footer h2.widget-title a, .site-footer h2.widget-title {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_footer_widgets_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_footer_widgets_menu_color = get_theme_mod('modern_architecture_footer_widgets_menu_color');
	if ( $modern_architecture_footer_widgets_menu_color != '') {
		$modern_architecture_custom_style .=' .widget ul li a, .site-footer .widget-area ul li a, .site-footer .widget-area ul li a {';
			$modern_architecture_custom_style .=' color:'.esc_attr($modern_architecture_footer_widgets_menu_color).';';
		$modern_architecture_custom_style .=' }';
	}

	$modern_architecture_footerbg_color = get_theme_mod('modern_architecture_footerbg_color');
	if ( $modern_architecture_footerbg_color != '') {
		$modern_architecture_custom_style .=' #colophon {';
			$modern_architecture_custom_style .=' background-color:'.esc_attr($modern_architecture_footerbg_color).';';
		$modern_architecture_custom_style .=' }';
	}