<?php

$architecture_construction_custom_css = "";

$architecture_construction_primary_color = get_theme_mod('architecture_construction_primary_color');

/*------------------ Primary Global Color -----------*/

if ($architecture_construction_primary_color) {
  $architecture_construction_custom_css .= ':root {';
  $architecture_construction_custom_css .= '--primary-color: ' . esc_attr($architecture_construction_primary_color) . ' !important;';
  $architecture_construction_custom_css .= '} ';
}

/*-------------------- Post Content Alignment-------------------*/

$architecture_construction_single_post_align = get_theme_mod( 'architecture_construction_single_post_align','left-align');

if($architecture_construction_single_post_align == 'left-align'){
$architecture_construction_custom_css .='body:not(.hide-post-meta) .post{';
	$architecture_construction_custom_css .='text-align: left';
$architecture_construction_custom_css .='}';
}else if($architecture_construction_single_post_align == 'right-align'){
$architecture_construction_custom_css .='body:not(.hide-post-meta) .post{';
	$architecture_construction_custom_css .='text-align: right';
$architecture_construction_custom_css .='}';
}else if($architecture_construction_single_post_align == 'center-align'){
$architecture_construction_custom_css .='body:not(.hide-post-meta) .post{';
	$architecture_construction_custom_css .='text-align: center';
$architecture_construction_custom_css .='}';
}

/*-------------------- Scroll Top Alignment-------------------*/

$architecture_construction_scroll_top_alignment = get_theme_mod( 'architecture_construction_scroll_top_alignment','right-align');

if($architecture_construction_scroll_top_alignment == 'right-align'){
$architecture_construction_custom_css .='#button{';
	$architecture_construction_custom_css .='right: 5%;';
$architecture_construction_custom_css .='}';
}else if($architecture_construction_scroll_top_alignment == 'center-align'){
$architecture_construction_custom_css .='#button{';
	$architecture_construction_custom_css .='right:0; left:0; margin: 0 auto;';
$architecture_construction_custom_css .='}';
}else if($architecture_construction_scroll_top_alignment == 'left-align'){
$architecture_construction_custom_css .='#button{';
	$architecture_construction_custom_css .='left: 5%;';
$architecture_construction_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$architecture_construction_archive_pagination_alignment = get_theme_mod( 'architecture_construction_archive_pagination_alignment','left-align');

if($architecture_construction_archive_pagination_alignment == 'right-align'){
$architecture_construction_custom_css .='.pagination{';
	$architecture_construction_custom_css .='justify-content: end;';
$architecture_construction_custom_css .='}';
}else if($architecture_construction_archive_pagination_alignment == 'center-align'){
$architecture_construction_custom_css .='.pagination{';
	$architecture_construction_custom_css .='justify-content: center;';
$architecture_construction_custom_css .='}';
}else if($architecture_construction_archive_pagination_alignment == 'left-align'){
$architecture_construction_custom_css .='.pagination{';
	$architecture_construction_custom_css .='justify-content: start;';
$architecture_construction_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$architecture_construction_resp_scroll_top = get_theme_mod( 'architecture_construction_resp_scroll_top',true);
if($architecture_construction_resp_scroll_top == true && get_theme_mod( 'architecture_construction_footer_scroll_to_top',true) != true){
	$architecture_construction_custom_css .='#button.show{';
		$architecture_construction_custom_css .='visibility:hidden !important;';
	$architecture_construction_custom_css .='} ';
}
if($architecture_construction_resp_scroll_top == true){
	$architecture_construction_custom_css .='@media screen and (max-width:575px) {';
	$architecture_construction_custom_css .='#button.show{';
		$architecture_construction_custom_css .='visibility:visible !important;';
	$architecture_construction_custom_css .='} }';
}else if($architecture_construction_resp_scroll_top == false){
	$architecture_construction_custom_css .='@media screen and (max-width:575px){';
	$architecture_construction_custom_css .='#button.show{';
		$architecture_construction_custom_css .='visibility:hidden !important;';
	$architecture_construction_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

$architecture_construction_resp_loader = get_theme_mod('architecture_construction_resp_loader',false);
if($architecture_construction_resp_loader == true && get_theme_mod('architecture_construction_preloader_setting',false) == false){
	$architecture_construction_custom_css .='@media screen and (min-width:575px){
		.preloader{';
		$architecture_construction_custom_css .='display:none !important;';
	$architecture_construction_custom_css .='} }';
}

if($architecture_construction_resp_loader == false){
	$architecture_construction_custom_css .='@media screen and (max-width:575px){
		.preloader{';
		$architecture_construction_custom_css .='display:none !important;';
	$architecture_construction_custom_css .='} }';
}

// Scroll to top button shape 

$architecture_construction_scroll_border_radius = get_theme_mod( 'architecture_construction_scroll_to_top_radius','curved-box');
if($architecture_construction_scroll_border_radius == 'box'){
	$architecture_construction_custom_css .='#button{';
		$architecture_construction_custom_css .='border-radius: 0px;';
	$architecture_construction_custom_css .='}';
}else if($architecture_construction_scroll_border_radius == 'curved-box'){
	$architecture_construction_custom_css .='#button{';
		$architecture_construction_custom_css .='border-radius: 4px;';
	$architecture_construction_custom_css .='}';
}
else if($architecture_construction_scroll_border_radius == 'circle'){
	$architecture_construction_custom_css .='#button{';
		$architecture_construction_custom_css .='border-radius: 50%;';
	$architecture_construction_custom_css .='}';
}

// Footer Background Image Attatchment 

$architecture_construction_footer_attatchment = get_theme_mod( 'architecture_construction_background_attatchment','scroll');
if($architecture_construction_footer_attatchment == 'fixed'){
	$architecture_construction_custom_css .='.site-footer{';
		$architecture_construction_custom_css .='background-attachment: fixed;';
	$architecture_construction_custom_css .='}';
}elseif ($architecture_construction_footer_attatchment == 'scroll'){
	$architecture_construction_custom_css .='.site-footer{';
		$architecture_construction_custom_css .='background-attachment: scroll;';
	$architecture_construction_custom_css .='}';
}

// Menu Hover Style	

$architecture_construction_menus_item = get_theme_mod( 'architecture_construction_menus_style','None');
if($architecture_construction_menus_item == 'None'){
	$architecture_construction_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$architecture_construction_custom_css .='';
	$architecture_construction_custom_css .='}';
}else if($architecture_construction_menus_item == 'Zoom In'){
	$architecture_construction_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$architecture_construction_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
	$architecture_construction_custom_css .='}';
}	
