/*
Description: Design style sheet for jacek-mobilemechanic.co.uk frontend.  
Author:	Insert - de Jaime de A. Teixeira <webinsert@gmail.com>
Version: March 2017    
 
=== Color Scheme === 
Gray: 
Green:
*/

/* ==================== GENERAL ==================== */

body {
	font-family: sans-serif;
	background-color: #fff;
	color: #aa9999;
}

a {
	text-decoration: none;
}
img {max-width: 100%; height: auto;}
iframe {
	max-width: 100%;	
	margin-right: 0.625em;
}

footer {
	line-height: 2.5em;
	color: #fff;
	background-color: #aa9999;
}

noscript {display: block; padding: 1em 0; font-weight: bold; text-align: center; color: #fff; background-color: #444;}

td, th {padding: 0.625em 0;}
td {
	text-align: center;
	vertical-align: middle;
}
th {
	font-weight: bold;
	color: #333;
}

/* --- Header --- */

.email {
	padding-left: 3em;
}

#top {
	background-color: #333;
}
#logo {
	clear: both;	
}
	
#top-contacts {
	float: right;
	padding-right: 0.625em;	
	line-height: 132px;
	font-size: 1.25em;			
}
	#top-contacts div {
		display: inline-block;
	}
	#top-contacts span {	
		font-size: 0.8em;
		font-weight: bold;	
		color: #333;
	}
	#top-contacts a {color: #aa9999;}
	
/* --- Menu --- */

.main-menu {padding: 0 0.625em;}
	.main-menu li a {
		display: inline-block;		
		padding: 0 1em;
		font-size: 0.875em;
		line-height: 2.8571em;
		color: #faf9f9;
		transition-duration: 0.35s;
	}

#main-nav .main-menu li.active a,
#main-nav .main-menu li a:hover {	
	color: #aa9999;
}

/* --- Language Menu --- */

.menu-language {
	font-size: 0.75em;		
} 
	.menu-language li:first-child {		
		border-right: 1px solid #fff;
	}
	.menu-language li a {
		padding: 0 5px;
		line-height: 3.34em;
		color: #faf9f9;
	}
	.menu-language li a:hover {
		color: #aa9999;
	}

/* --- Footer --- */

footer p {
	font-size: 0.875em; 
}
footer p:last-child {
	font-size: 0.75em;
}

/* --- Generic --- */

.heading {
	margin-bottom: 1em;	
	font-size: 1.25em;
	color: #bb3344;
}

/* ================== CONTENT ==================== */

/* --- Home Page --- */

.subtitle {
	margin: 2.5em 0 0;
	font-weight: bold;
	color: #333;
}
#box-address-times {
	float: left;
	width: 21.875em;
	margin-left: 0.625em;
	line-height: 1.3em;
}
#about {
	clear: left;
	margin: 3.75em auto;
	width: 70%;	
	line-height: 1.4em;
}
	#about p {
		margin: 1.25em 0;
	}
#services {
	margin-bottom: 3.75em;
}
#services h1 {
	margin-bottom: 1.8181em;
	text-align: center;
	font-size: 1.375em;
	color: #333;
}
#services ul {
	font-size: 0;
}
#services ul li {
	display: inline-block;
	width: 16.5%;
	font-size: 1rem;
	text-align: center;
	color: #fff; 
}
#services ul li span {
	display: inline-block;
	width: 7.8125em;
	padding: 1.25em 0.625em;
	background-color: #bb3344;
	border-radius: 25px;
}
.images {padding: 0 0.625em;}
.images li {
	display: inline-block;
	width: 33%;
	text-align: center;	
}
.images img {
	margin: 1.5625em 0;
}

/* --- Trailers Page --- */

#trailers section h1{
		margin: 0 0.625em;
	}
	#trailers section p {
		margin: 0.625em;		
	}	
	#trailers section#prices p {
		margin-left: 0;		
	} 
	
section#prices {
	padding: 0 0.625em;
}
#prices table {
	margin: 2.5em 0;	
	width: 100%;
}
#prices table th, #prices table td {
	border: 1px solid #aa9999;
}	

/* ==================== MEDIA QUERIES ==================== */

@media screen and (max-width: 1100px) {
	aside {text-align: right;}
	iframe {
		width: 500px;		
	}
	#box-address-times {
		width: 18.75em;
	}
}
@media screen and (max-width: 900px) {	
	#services ul li {	
		margin-bottom: 0.625em;
		width: 33%;	 
	}
	.images li {width: 49%;}
}
@media screen and (max-width: 840px) {	
	aside {text-align: center;}
	iframe {width: 90%;}
	
	.subtitle {
		margin-top: 1.25em
	} 
	
	#top-contacts {
		float: none;
		padding-left: 0.625em;	
		line-height: 1.5em;			
	}
	#box-address-times {
		margin-bottom: 1.25em;
	}
	#about {
		width: 90%;
		margin: 2.5em auto;
	}	
	
	#services {margin-bottom: 2.5em;}
	
	footer {
		height: 3.75em;
		line-height: 1.5em;
	}
	footer p:first-child {
		float: none;
	}
	footer p:last-child {
		float: none;
	}
}
@media screen and (max-width: 650px) {
	.email {
		padding-left: 0;		
	}
	#top-contacts {
		font-size: 0.875em;
	}
	#top-contacts div {
		display: block;
	}	
	.images img {
		margin: 0.625em 0;
	}
	
	footer p {font-size: 0.75em;}
	footer p:last-child {font-size: 0.625em;} 	 
}
@media screen and (max-width: 580px) {
	#services {	
		text-align: center;
	}
	#services h1 {
		margin-left: 1.25em;
		margin-bottom: 1.25rem;				
	}	
	#services ul li {
		display: inline;				
	}
	#services ul li span {
		display: inline-block;		
		width: 9.375em;
		margin: 0.625em;
		padding: 1.25em 0.625em;
		background-color: #bb3344;
		border-radius: 25px;
	}
	
	footer p:first-child {
		padding-top: 0.25em; 
		line-height: 1.4em;
	}
}
@media screen and (max-width: 400px) {
	#services,
	#services h1 {
		margin-left: 0;		
	}
	
	#prices {
		font-size: 0.75em;
	}
	
	main {
		padding-bottom: 2.5em;
	}	
}
