/*
Theme Name: 	SSDS
Description: 	The only theme to be used with Stoke Site & Domestic Services
Version: 		1.0
Author: 		Martyn Locker
Author URI: 	http://www.tr2creative.co.uk
*/

/*=====================
CSS Reset
=====================*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn,  img, ins, kbd, q, s, samp,
small, strike,  sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*=====================
General
=====================*/

body {
    background-color: #F7F7F7;
}

.clear {
    clear: both;
}

p, a, span, h1, h2, h3, li, label, input, textarea, button {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 2em;
    color: #333;
    font-weight: 700;
}

h1 a {
    text-decoration: none;
    color: #333;
}

h1 a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 1.6em;
    color: #929398;
    margin-bottom: 30px;
    font-weight: 700;
}

h3 a {
    display: block;
    color: #573B62;
    font-weight: 700;
    margin-top: 20px;
    font-size: 1.3em;
    text-decoration: none;
}

article p, section p, main p {
    color: #333;
    line-height: 1.8em;
    margin: 30px 0px;
}

article a, article a:visited, main a, main a:visited {
    color: #333;
}

article a:hover, main a:hover {
    color: #929398;
}

article img, main img {
    max-width: 100%;
    height: auto;
}

.container {
    margin: 0 auto;
    width: 1200px;
}

a[href^=tel] {
    text-decoration:inherit;
    color: inherit;
}

.logo-wrap	{
	max-width: 300px;
}

@media (max-width: 1000px)	 {
	.logo-wrap	{
		margin: 20px auto;
	}
}

.logo-wrap img	{
	max-width: 300px;
	width: 100%;
	height: auto;
}

/*=====================
WordPress
=====================*/

.article-written {
    font-size: 0.9em;
    color: #333;
    display: block;
    margin-top: 6px;
}

.news-excerpt {
    border-bottom: 2px dotted #929398;
    padding-bottom: 30px;
}
.news-excerpt p {
    margin-bottom: 15px;
}

.news-excerpt:last-child {
    border: 0;
}

.btn {
    display: block;
    height: 30px;
    width: 200px;
    background-color: #573B62;
    color: #fff;
    padding-top: 17px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

.news-excerpt .btn {
    color: #fff;
}

.btn:hover, .contact-page-button:hover {
    text-decoration: underline;
    background-color: #D4CDD7;
    color: #333;
    cursor: pointer;
}

.news-menu {
    list-style: none;
}

.news-menu li a {
    color: #573B62;
    text-decoration: none;
}

.news-menu li a:hover {
    text-decoration: underline;
}

.services-menu {
    list-style-type: none;
}

.services-menu a {
    text-decoration: none;
}

.services-menu a:hover {
    text-decoration: underline;
}

.category h2 {
    margin-bottom: 0px;
}

.category .sidebar h2 {
    margin-bottom: 30px;
}

.category-excerpt {
    border-bottom: 2px dotted #929398;
}



/*=====================
Header
=====================*/

header {
    padding: 30px 0 15px 0;
}

.header-left	{
	width: 33%;
	display: inline-block;
}

.header-left img	{
	max-width: 100%;
	height: auto;
}

/*=====================
Navigation
=====================*/

.main-nav	{
    margin-top: 75px;
	width: 65%;
	float: right;
}

.main-nav ul	{
	float: right;
}

.main-nav ul li {
    display: inline;
    margin-left: 12px;
	float: left;
}

.main-nav ul li a {
    color: #333333;
    text-decoration: none;
    padding: 8px;
}

.main-nav ul li a:hover {
    background-color: #573B62;
    border-radius: 5px;
    color: #fff;
}

.services-menu ul li a {
    color: #573B62;
    line-height: 1.8em;
    text-decoration: none;
}

.slicknav_menu {
	display:none;
}

/*=====================
Banner
=====================*/

.image-banner img {
    position: relative;
    width: 100%;
    height: auto;
	display: block;

}

.cycle-slideshow img {
    width: 100%;
    height: auto;
}

.slider-text {
    position: absolute;
    top: 10px;
    left: 18%;
    width: 350px;
    height: 90px;
    line-height: 1.3em;
    text-align: center;
    font-size: 1.5em;
    background: rgba(87,59,98,0.8);
    color: #fff;
    padding: 30px;
    z-index: 999;
}

.call-banner {
    width: 100%;
	height: 20px;
    background-color: #573B62;

}

.tel	{
	display: none;
}
.banner-tel-small	{
	display: none;
}

.call-banner a:hover {
    background-color: #fff;
    color: #573B62;
}

.services {
    margin: 30px auto 0px auto; 
}

.services a {
    text-decoration: none;
}

.services a h3  {
    text-decoration: none;
    margin-bottom: 15px;
    color: #929398;
    text-decoration: none;
    font-size: 1.3em;
}

.services a p {
    color: #573B62;
    font-size: 1em;
    margin-top: 20px;
}

.services .left {
    float: left;
    width: 45%;
	text-align: center;
}

.services .right {
    float: right;
    width: 45%;
	text-align: center;
}

.purple-banner {
    width: 100%;
    font-size: 1.5em;
    background-color: #573B62;
    padding: 30px 0;
    text-align: center;
    color: #fff;
    line-height: 1.6em;
}

.purple-banner .container {
    width: 1000px;
}

/*=====================
Content
=====================*/

.content  {
    width: 70%;
    float: left;
}

.content-full-width	{
	box-sizing: border-box;
	width: 95%;
	padding: 2em;
}

.content-full-width article ul,
.content article ul	{
	margin: 20px 0 20px 25px;
}

article, main {
    margin-top: 50px;
    width: 100%;
    float: left;
}

.content-full-width article 	{
	 float: none;
}

article li, main li {
    color: #333;
    line-height: 1.7em;
    list-style-type: disc;
}

article img {
    max-width: 80%;
    height: auto;
}

.wp-block-image	{
	max-width: 80%;
}

/*=====================
Sidebar
=====================*/

.sidebar {
    float: right;
    width: 25%;
    margin: 50px 0px 10px 0px;
}

.sidebar p {
    font-size: 1em;
    color: #929398;
    margin-top: 10px;
    font-weight: 400;
    line-height: 1.4em;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar li a {
    color: #573B62;
    font-weight: 200;
    font-size: 1.2em;
    display: block;
    padding: 10px 0px;
    border-bottom: 2px dotted #929398;
    list-style-type: none;
}



.sidebar li a:hover {
    text-decoration: underline;
}

p.temp-message	{
	color: #ff0000;
}


/*=====================
Footer
=====================*/

footer {
    width: 100%;
    background-color: #333332;
    padding: 30px 0px 85px 0px;
}

footer span {
    color: #fff;
    font-size: 2.2em;
}

footer span a {
    color: #fff;
    text-decoration: none;
}

footer p {
    color: #fff;
    margin-top: 13px;
    font-size: 0.8em;
}

footer .left {
    width: 80%;
    float: left;
}

footer .right {
    width: 20%;
	float: right;
}

.sub-footer {
	background-color: #171B1F;
    color: #929398;
    width: 100%;
    height: 16px;
    padding-top: 8px;
    font-size: 0.6em;
    border-top: 1px solid #000;
}

.sub-footer p {
    float: left;
}

.sub-footer a {
    float: right;
    color: #929398;
    text-decoration: none;
}

.sub-footer span {
    color: #499490;
}

/*=====================
Form
=====================*/

.wpcf7-form input, .wpcf7-form label, .wpcf7-form textarea {
    color: #333;
}

.wpcf7-form input {
    height: 40px;
}

.wpcf7-form input, .wpcf7-form textarea {
    border: 2px solid #573B62;
    box-sizing: border-box;
    width: 60%;
    padding: 10px;
}

.wpcf7-form input:focus, .wpcf7-form textarea:focus {
    background-color: #F7E5FF;
}

.wpcf7-form textarea {
    height: 200px;
}

#contact-submit {
    width: 230px;
    color: #fff;
	background: #573B62;
}

div.wpcf7-validation-errors {
    border: 5px solid #FC3C3C;
}

div.wpcf7-mail-sent-ok {
    border: 5px solid #398f14;
}

div.wpcf7-response-output {
    height: 140px;
    width: 60%;
    box-sizing: border-box;
    margin: 0;
    font-size: 1.5em;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6em;
    background-color: #D4CDD7;
}

/*=====================
Media Queries
=====================*/

/*          SMALL SCREENS           */
@media (max-width: 664px) {
    
    .container {width: 95%;}
    header {width: 100%; padding: 40px 0px; text-align: center;}
    .header-left	{width: 100%;}
    .header-left img {width: 90%; max-width: 381px; height: auto;}
    .main-nav {display: none;}
    .slicknav_menu {display: block;}
    .call-banner {width: 100%; font-size: 1em; text-align: center;  box-sizing: border-box; padding: 20px 0;}
    .banner-tel-main {display: none;}
    .slider-text {display: none;}
	.tel {display: inline-block; font-size: 1.6em;}
    .banner-tel-small	{display: block; width: 60%; margin: 20px auto; border: 2px solid #fff;	padding: 16px; color: #fff;	font-size: 1.3em; text-decoration: none; border-radius: 4px;}
    .services {width: 100%;}
    .services .left, .services .right, .services img {width: 100%; height: auto; display: block;}
    .services .left {margin-bottom: 40px;}
    .purple-banner .container, .purple-banner {width: 100%; box-sizing: border-box; padding: 5px 5px 10px 10px; font-size: 1.0em; line-height: 1.4em; height: auto;}
    .content {width: 100%;}
    .content article, .content main {width: 100%; box-sizing: border-box; padding: 0px 20px; margin-top: 30px; display: block; float: none;}
    .content article img, .content main img {width: 100%; height: auto;}
    .sidebar {width: 100%; display: block; float: none; box-sizing: border-box; padding: 0px 20px; margin-bottom: 30px;}
    article.news-excerpt {padding-bottom: 30px;}
    .article-written {line-height: 1.4em; margin-top: 10px;}
    .news-excerpt:last-child {border-bottom: 2px dotted #929398;; margin-bottom: 40px;}
    footer {height: auto; text-align: center; padding-bottom: 20px;}
    footer p {line-height: 1.8em; margin-bottom: 20px;}
    footer .left {width: 100%; padding: 0px 10px; box-sizing: border-box; line-height: 2.2em;}
    footer .right {display: block; float: none; margin: 0 auto;}
    .sub-footer .container {width: 90%; margin: 0 auto;}
    .sub-footer {text-align: center; line-height: 1.5em; height: auto; padding-bottom: 10px;}
    .sub-footer p {display: block; width: 100%;}
    .sub-footer a {float: none; text-align: center; display: block; width: 100%; margin-top: 5px;}
    form, label, input, textarea, button {width: 100%;}
    textarea {height: 150px;}
    .wpcf7-form input, .wpcf7-form textarea {width: 100%;}
    div.wpcf7-response-output {width: 100%; height: auto; margin-bottom: 60px; margin-top: -200px;}

	.wp-block-media-text	{
		display: flex;
		flex-direction: column;
	}

	
	.wp-block-media-text .wp-block-media-text__content	{
		padding: 0 0;
	}


}

/*       TABLETS      */
@media (min-width: 665px) and (max-width: 1000px) {
    
    .container {width: 100%;}
    header {width: 100%; margin: 5px auto; text-align: center;}
    .header-left {width: 381px;}
    .header-left img {width: 90%; max-width: 381px; height: auto;}
    .main-nav {display: none;}
    .slicknav_menu {display: block;}
    .slider-text {font-size: 1.1em; width: 200px; padding: 15px; top: 20px; left: 52%;}
    .call-banner {width: 100%; font-size: 1em; text-align: center; box-sizing: border-box; padding: 15px 0; height: auto;}
    .services {width: 100%;}
    .services img {max-width: 521px; height: auto; text-align: center; margin: 0 auto;}
    .services .left, .services .right, .services img {width: 100%; height: auto; display: block;}
    .services .left {margin-bottom: 40px;}
    .purple-banner .container, .purple-banner {width: 100%; box-sizing: border-box; padding: 5px 5px 10px 10px; font-size: 1em; line-height: 1.4em; height: auto;}
    .content {width: 100%; padding: 0; margin: 0;}
    .content article, .content main {width: 100%; box-sizing: border-box; padding: 0px 20px; margin-top: 40px;}
    article.news-excerpt, main.news-excerpt {padding-bottom: 20px; }
    .news-excerpt:last-child {border-bottom: 2px solid #573B62; margin-bottom: 40px;}
    div.wpcf7-response-output {margin: 0px 0px 50px 0px;}
    .sidebar {width: 50%; display: block; float: none; box-sizing: border-box; padding: 0px 20px; margin: 50px 0px 30px 0px;}
    footer {height: auto; text-align: center; padding-bottom: 10px;}
    footer p {line-height: 1.8em; margin-bottom: 20px;}
    footer .left {width: 100%; padding: 0px 10px; box-sizing: border-box; line-height: 2.2em;}
    footer .right {display: block; float: none; margin: 0 auto;}
    .sub-footer .container {width: 90%; margin: 0 auto;}
    .sub-footer {text-align: center; line-height: 1.5em; height: 20px;}
    .sub-footer a {float: right; text-align: center;}  
    div.wpcf7-response-output {margin-top: -50px;}

	.wp-block-media-text	{
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
	.wp-block-media-text .wp-block-media-text__media	{
		align-self: flex-start;
	}

	.wp-block-media-text .wp-block-media-text__content	{
		padding: 0 0;
	}
}

/*        DESKTOP SCREENS        */
@media (min-width: 1001px) and (max-width: 1250px) {

    .container {width: 95%;}
    .main-nav {width: 65%; text-align: center; float: right; padding: 0; margin-top: 40px;}
    .main-nav a {display: inline-block; Margin-bottom: 3px;}
    .call-banner {width: 100%; font-size: 1.6em;}
    .call-banner .container { box-sizing: border-box; padding: 0px 10px;}
    .services, .services img {width: 100%; height: auto;}
    .services .container {margin: 0 auto;}
    .purple-banner {width: 100%; height: auto; padding: 20px 0px;}
    .purple-banner p {line-height: 1.3em; font-size: 1.2em;}
    .content article, .content main {width: 100%; box-sizing: border-box; padding: 0px 20px;}
    .sidebar {width: 30%; float: right; box-sizing: border-box; padding: 0px 15px;}
    footer {box-sizing: border-box; padding: 30px 20px 80px 20px;}
    .sub-footer {box-sizing: border-box; padding: 5px 20px 15px 20px;}   
}