/*
Theme Name: Sash Window Repairs
Description: Timber sash window repair & restoration, London. Based on Twenty Twelve.
Author: Sash Window Repairs
Version: 1.1
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: #444;
	background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: #21759b; text-decoration: none; }
a:hover { color: #0f3647; text-decoration: underline; }

.site { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 22px 0 0; }
.site-title { margin: 0; line-height: 0; }
.site-title a { display: block; }
.site-title img { display: block; width: 100%; height: auto; }

/* Header banner sits directly under the sign board */
.header-image { margin: 6px 0 0; }
.header-image img { display: block; width: 100%; height: auto; }

/* Navigation */
.main-navigation {
	margin: 16px 0 0;
	border-top: 1px solid #ededed;
	border-bottom: 1px solid #ededed;
	clear: both;
	overflow: hidden;
}
.header-phone { float: right; text-align: right; }
.header-phone .call-us {
	display: block; color: #6a6a6a; font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 1px; padding-top: 6px;
}
.main-navigation .header-phone a {
	display: block; color: #21759b; font-size: 40px; font-weight: 700;
	line-height: 1.1; padding: 0 0 6px; letter-spacing: 1px;
}
.main-navigation .header-phone a:hover { text-decoration: none; }
.main-navigation ul { list-style: none; }
.main-navigation li { display: inline-block; }
.main-navigation a {
	display: block; color: #6a6a6a; font-size: 13px;
	padding: 11px 14px 11px 0;
}
.main-navigation a:hover { color: #21759b; text-decoration: none; }
.main-navigation .current a { color: #21759b; font-weight: 600; }

/* Layout */
.wrapper { padding: 24px 0; overflow: hidden; }
.content { float: left; width: 65%; }
.widget-area { float: right; width: 28%; }

/* Content */
.entry-title { font-size: 22px; font-weight: 400; color: #444; margin-bottom: 14px; line-height: 1.3; }
.entry-date { font-size: 12px; color: #999; margin: -8px 0 16px; }
.content h2 { font-size: 18px; font-weight: 600; color: #444; margin: 26px 0 10px; }
.content h3 { font-size: 15px; font-weight: 700; color: #444; margin: 20px 0 6px; }
.content p { margin: 0 0 1.5em; }
.content ul { list-style: square; margin: 0 0 1.5em 22px; }
.content ul li { margin-bottom: 4px; }

/* A plain call-out box, in keeping with the flat theme */
.callout {
	border: 1px solid #e2e2e2; background: #f7f7f7;
	padding: 12px 16px; margin: 0 0 1.5em;
}
.callout p:last-child { margin-bottom: 0; }

/* Gallery (old WP [gallery] look) */
.gallery { overflow: hidden; margin: 8px 0 18px; }
.gallery-item { float: left; width: 48%; margin: 0 0 18px 0; text-align: left; }
.gallery-item:nth-child(odd) { clear: left; }
.gallery-item:nth-child(even) { float: right; }
.gallery-item img { display: block; width: 100%; height: auto; border: 1px solid #ccc; padding: 4px; background: #fff; }
.gallery-caption { font-size: 12px; color: #888; margin-top: 4px; }

/* Inline article image (service pages) */
.post-img { margin: 4px 0 20px; }
.post-img img { display: block; width: 100%; height: auto; border: 1px solid #ccc; padding: 4px; background: #fff; }
.post-img figcaption { font-size: 12px; color: #888; margin-top: 4px; }

/* Blog archive */
.post-summary { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid #ededed; overflow: hidden; }
.post-summary:last-of-type { border-bottom: none; }
.post-summary .entry-title { font-size: 19px; margin-bottom: 6px; }
.post-summary .entry-title a { color: #21759b; }
.post-summary p { margin: 0 0 0.7em; }
.post-thumb { display: block; float: right; width: 34%; margin: 2px 0 10px 18px; }
.post-thumb img { display: block; width: 100%; height: auto; border: 1px solid #ccc; padding: 4px; background: #fff; }
.more-link { font-size: 13px; }

/* Ordered lists + simple data tables inside articles */
.content ol { margin: 0 0 1.5em 24px; }
.content ol li { margin-bottom: 4px; }
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 14px; }
.data-table th, .data-table td { border: 1px solid #ddd; padding: 6px 9px; text-align: left; vertical-align: top; }
.data-table th { background: #f2f2f2; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Related reading */
.entry-related { border-top: 1px solid #ededed; margin-top: 26px; padding-top: 14px; }
.entry-related h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #515151; margin: 0 0 8px; }
.entry-related ul { list-style: none; margin: 0; }
.entry-related li { padding: 4px 0; border-bottom: 1px solid #f2f2f2; font-size: 14px; }

/* Pagination (old WP-PageNavi look) */
.pagination { clear: both; padding: 16px 0 4px; font-size: 13px; }
.pagination .page-numbers {
	display: inline-block; padding: 4px 9px; margin: 0 3px 4px 0;
	border: 1px solid #d5d5d5; background: #f6f6f6; color: #21759b;
}
.pagination a.page-numbers:hover { background: #ededed; text-decoration: none; }
.pagination .current { background: #21759b; border-color: #21759b; color: #fff; font-weight: 600; }
.pagination .dots { border-color: transparent; background: none; color: #999; padding-left: 2px; padding-right: 2px; }

/* Sidebar widgets */
.widget { margin-bottom: 28px; font-size: 14px; line-height: 1.6; }
.widget-title {
	font-size: 11px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.1em; color: #515151; margin-bottom: 10px;
}
.widget p { margin: 0 0 0.8em; }
.widget ul { list-style: none; }
.widget ul li { padding: 4px 0; border-bottom: 1px solid #ededed; }
.widget .news-date { color: #999; font-size: 12px; }

/* Contact form */
.contact-form label { display: block; font-size: 13px; color: #555; margin: 12px 0 3px; }
.contact-form input, .contact-form textarea {
	width: 100%; max-width: 420px; padding: 6px 7px;
	border: 1px solid #bbb; font-family: inherit; font-size: 14px;
}
.contact-form textarea { min-height: 110px; }
.contact-form .submit {
	margin-top: 14px; background: #e6e6e6; border: 1px solid #b3b3b3;
	padding: 7px 18px; font-size: 13px; color: #333; cursor: pointer; border-radius: 2px;
}
.contact-form .submit:hover { background: #dcdcdc; }
.form-note { font-size: 12px; color: #999; margin-top: 8px; }
.recaptcha-terms { font-size: 11px; color: #aaa; margin-top: 12px; line-height: 1.4; }
.recaptcha-terms a { color: #999; }
.grecaptcha-badge { visibility: hidden !important; }

/* Footer */
.site-footer {
	clear: both; border-top: 1px solid #ededed;
	padding: 22px 0; margin-top: 12px;
	font-size: 13px; color: #757575;
}
.site-footer a { color: #21759b; }

@media screen and (max-width: 600px) {
	.content, .widget-area { float: none; width: 100%; }
	.widget-area { margin-top: 30px; }
	.gallery-item { width: 48%; }
	.main-navigation a { padding: 10px 12px 10px 0; }
	.header-phone { float: none; text-align: left; }
	.main-navigation .header-phone a { font-size: 28px; padding: 0 0 4px; }
	.post-thumb { float: none; width: 100%; margin: 0 0 12px; }
	.data-table { display: block; overflow-x: auto; white-space: nowrap; }
	.pagination .page-numbers { padding: 6px 11px; }
}
