/*
Theme Name: enrichResponsiveAT
Theme URI: https://www.enrichdesign.co.uk/
Description: A simple responsive WordPress theme with WooCommerce support.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Author: Richard Nicholls - www.enrichdesign.co.uk
Author URI: https://www.enrichdesign.co.uk/
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enrichresponsive
Tags: custom-menu, featured-images, threaded-comments, translation-ready, e-commerce
*/

/* =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, em, font, ins, kbd, q, s, samp,
small, strike, menu, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units https://clagnut.com/blog/348/#c790 */
	overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
	-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
}
*, *::before, *::after {
	box-sizing: border-box;
}
img {
	max-width: 100%;
	height: auto;
}
button, input, select {
	background: #ffffff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
:focus-visible {
	outline: 2px solid #385d99;
	outline-offset: 2px;
}
a img {
	border: 0;
}


/* =Global
----------------------------------------------- */

body,
button,
input,
select,
textarea {
	font-family: 'Lato', Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.25em;
	-webkit-font-smoothing: antialiased;
}

body { background-color: #f4f4f4; } /* background image is added inline from functions.php */

/* Headings */
h1,h2,h3,h4,h5,h6 {
	clear: both;
}

h1 { font-size:1.5em; font-weight: 700; line-height:120%; color: #000; padding:0 0 10px 0;}
h2 { font-size:1.3em; font-weight: 700; line-height:120%; color: #000; padding:10px 0 10px 0;}
h3 { font-size:1.1em; font-weight: 700; line-height:120%; color: #000; }
h4 { font-size:1.0em; }
h5 { font-size:0.8em; }
h6 { font-size:0.8em; }

h3, h4, h5, h6 { padding:10px 0 10px 0; }

.tagline {
	font-size: 1.95em;
	font-weight: 300;
	padding: 20px 0;
	font-style: italic;
}

.post img:not(.emoji):not(.wp-smiley):not(.icon) {
	border: 5px solid #ffffff;
}

hr {
	background-color: #aa2bb5;
	border: 0;
	height: 2px;
	margin-bottom: 1.5em;
}

/* Text elements */
p {
	margin-bottom: 1.5em;
}
ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
dt {
	font-weight: bold;
}
dd {
	margin: 0 1.5em 1.5em;
}
b, strong {
	font-weight: 700;
	color: #000;
}
dfn, cite, em, i {
	font-style: italic;
}
blockquote {
	padding-left: 1.2em;
	border-left: 5px solid #5d9cff;
	font-style: italic;
	background: none repeat scroll 0 0 #f9f9f9;
	margin: 20px 0;
	line-height: 1.5em;
	overflow: auto;
	padding: 15px 15px 0 20px;	
}
address {
	margin: 0 0 1.5em;
}
pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 1.5rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	padding: 1.6em;
	max-width: 100%;
	white-space: pre;
	white-space: pre-wrap;
}
code, kbd, tt, var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
mark, ins {
	background: #fff9c0;
	text-decoration: none;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 120%;
	line-height: 120%;
}
figure {
	margin: 0;
}
table {
	margin: 0 0 1.5em;
	width: 100%;
}
th, td {
	border-bottom: 1px solid #dcdcdc;
	padding: 0.25em 0;
}
th {
	font-style: italic;
}
button,
input,
select,
textarea {
	font-size: 100%; /* Corrects font size not being inherited in all browsers */
	margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
	vertical-align: baseline; /* Improves appearance and consistency in all browsers */
}
button,
input {
	line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
	-webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
}
input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
	padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type="search"] {
	-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
	-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
	border: 0;
	padding: 0;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
	color: #111;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
	padding: 3px;
        max-width: 100%;
}
textarea {
	overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
	padding-left: 3px;
	vertical-align: top; /* Improves readability and alignment in all browsers */
	width: 98%;
}

/* Alignment */
.left, .alignleft {
	display: inline;
	float: left;
	margin: 0 1.5em 0.3em 0;
}
.right, .alignright {
	display: inline;
	float: right;
	margin: 0 0 0.3em 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/* Links */
a {     color: #385d99;
        font-weight: 700;
        text-decoration:none;
}
a:hover {
        text-decoration:underline;
}
a.more {
	background-color: #385d99;
	border-radius: 5px;
	color: #fff;
	font-size: 90%;
	margin-right: 10px;
	padding: 7px 10px;
	text-decoration: none;
}
#social a {
        opacity: 0.3;
}
#social a:hover,
#social a:focus {
        opacity: 1.0;
}
#social a {
	display: inline-block;
	margin-left: 0.25em;
}
#social .icon {
	width: 2em;
	height: 2em;
	vertical-align: middle;
}


/* WordPress core
----------------------------------------------- */
.wp-caption, .gallery-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}
.sticky, .bypostauthor {}


/* widgets
----------------------------------------------- */

.widget {
	margin: 0 0 1.5em;
}
.widget p {
    font-size: 90%;
	margin: 0 0 5px 0;
}
.widget ul, .widget ol {
	margin: 0;
}
.widget ul {
	list-style: none;
}
.widget img {
	width: 100%;
	height: auto;
}
/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}
.widget h3 {
    font-weight: 700;
}


/* plugin overrides
----------------------------------------------------------------------------------- */

/* shortcodes ultimate lists */
.su-posts-default-loop .su-post-meta, .su-posts-default-loop .su-post-comments-link {
    display: none;
}

.wpcf7-form p {
        font-size: 0.9em;
}
.wpcf7-submit {
	background-color: #385d99;
	border-radius: 5px;
	color: #fff !important;
	font-size: 90%;
	margin-right: 10px;
	padding: 7px 10px;
	text-decoration: none;
}
div.wpcf7-response-output {
	clear: both;
}

.post-grid, .post-grid .item {
    background: none !important;
}

/* structure
----------------------------------------------- */

#top {  width: auto;
	margin: 0 auto;
	max-width: 960px;
}
.contentwidth {
	width: 100%;
}
#header {
        margin: 0 20px;
}
#logo { width: 100%;
        max-width: 960px;
}
.logoimg { max-width: 350px;}

#main, #footer {
        padding: 0 20px;
}
#page-content {
        padding-bottom: 0px;
}
#copyright-info {
        font-size: 0.8em;
        color: #777;
}
#quiet {
        font-size: 0.6em;
        color: #767676;
}

/* menu
----------------------------------------------- */

.menu-item {
	font-size: 100%;
}	
#site-navigation {
	padding: 0;
        z-index: 99999;
}
#site-navigation a {
	display: block;
}
#site-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#site-navigation-wrapper2 {
    padding: 0;
	float: right;
    z-index: 99999;
}
#site-navigation-wrapper2 > div > ul > li {
	float: left;
	position: relative;
	margin-right:  1em;
	line-height: 1em;
	padding-bottom: 1em;
}
#site-navigation-wrapper2 > div > ul > li > a {
	position: relative;
	padding-bottom: 0.3em;
}
#site-navigation-wrapper2 > div > ul > li.menu-item-has-children > a:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	left: calc(50% - 6px);
	border-top: 6px solid #dcdcdc;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
}
.sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#site-navigation-wrapper2 > div > ul > li > .sub-menu {
	display: none;
}

/* mobile menu */
.menu-toggle {
	display: none;
	cursor: pointer;
	width: 100%;
	border: 0;
	text-align: left;
	font-family: inherit;
}

@media only screen and (min-width : 641px) {
	#site-navigation-wrapper2 > div > ul > li > .sub-menu {
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		z-index: 99999;
		padding: 0.5em 0;
/*		-webkit-box-shadow: 0px 0px 15px 3px rgba(227,227,224,1);
		box-shadow: 0px 0px 15px 3px rgba(227,227,224,1);*/
	}
	#site-navigation-wrapper2 > div > ul > li > .sub-menu:before {
		content: "";
		position: absolute;
		top: -6px;
		left: 50%;
		left: calc(50% - 6px);
		border-left: 6px solid transparent;
		border-right: 6px solid transparent;
	}
	#site-navigation-wrapper2 > div > ul > li:hover .sub-menu,
	#site-navigation-wrapper2 > div > ul > li:focus-within .sub-menu {
		display: block;
                float: none;
	}
	.sub-menu {
		background: #f7f7f5;
	}
	.sub-menu:before {
		border-bottom: 6px solid #f7f7f5;
	}
	.sub-menu a {
		white-space: nowrap;
		color: #424242;
	}
	.sub-menu li {
		display: block;
		float: none;
		padding: 0 1em;
		font-size: inherit;
		text-align: left;
		line-height: 1.67em;
	}
	.sub-menu li li {
		padding: 0;
	}
}

@media only screen and (max-width : 640px) {            /* mobile menu */         
        #main, #footer {
	        padding: 0 20px;
	}
	#header {
		margin: 15px 0;
	}
	#site-navigation-wrapper2 {
		padding: 0;
        float: none;
        position: absolute;
        top: 0;
        width: 100%;
	}
    #logo {
         margin-top: 55px;
	}
	.logoimg {
		width: 90%;
		padding: 0 20px;
    }
	.menu-toggle {
		display: block;
		background: #424242;
		padding: 0 15px;
		color: #fff;
		font-style: italic;
		font-size: 16px;
		font-size: 1.6rem;
		line-height: 3em;
		text-shadow: none;
	}
	.menu-toggle .icon {
		float: right;
		width: 2.5rem;
		height: 2.5rem;
		margin-top: 12px;
	}
	#site-navigation-wrapper2 > div > ul {
		display: block;
		list-style: none;
		padding: 0;
		margin: 0;
		border-top: 1px solid #383837;
		text-shadow: none;
		-webkit-transition: max-height 400ms;
		overflow: hidden;
		max-height: 0;
	}
	#site-navigation-wrapper2 > div > ul > li {
		float: none;
		position: static;
		padding: 0;
		margin: 0;
		background: #424242;
	}
	#site-navigation-wrapper2 > div > ul > li a {
		display: block;
		padding: 0 0 0 20px;
		color: #fff;
		border-bottom: 1px solid #383837;
		font-style: italic;
		font-size: 16px;
		font-size: 1.6rem;
		line-height: 2.25em;
	}
	#site-navigation-wrapper2 > div > ul > li.menu-item-has-children > a:after {
		border-top: none;
	}
	#site-navigation-wrapper2 > div > ul .sub-menu li a {
		padding-left: 40px;
	}
	#site-navigation-wrapper2 > div > ul > li > .sub-menu {
		display: block;
	}
}

        
/* galleries
----------------------------------------------- */
     
.gallery {
	width: 100%;
}

.gallery img {
	width: 100%;
	height: auto;
	background: #f3f3f3 none repeat scroll 0 0;
	border: 1px solid #e1e1e1;
	padding: 3px;
}

.gallery .gallery-item {
	display: inline-block;
	vertical-align: top;
	margin-left: 2.127659574468%;
	font-size: 14px;
	font-size: 1.4rem;
	line-height: 18px;
	line-height: 1.8rem;
}

.gallery-columns-1 .gallery-item {
	width: 100%;
	margin-right: 0;
}

.gallery-columns-2 .gallery-item {
	width: 47.945205479%;
}

.gallery-columns-3 .gallery-item {
	width: 30.593607306%;
}

.gallery-columns-4 .gallery-item {
	width: 21.917808219%;
}

.gallery-columns-5 .gallery-item {
	width: 16.712328767%;
}

.gallery-columns-6 .gallery-item {
	width: 15.525114155%;
	margin-right: 1.369863014%;
}

.gallery-columns-7 .gallery-item {
	width: 13.111545988%;
	margin-right: 1.369863014%;
}

.gallery-columns-8 .gallery-item {
	width: 11.301369863%;
	margin-right: 1.369863014%;
}

.gallery-columns-9 .gallery-item {
	width: 9.893455099%;
	margin-right: 1.369863014%;
}

.gallery-columns-2 .gallery-item:nth-of-type(2n+1),
.gallery-columns-3 .gallery-item:nth-of-type(3n+1),
.gallery-columns-4 .gallery-item:nth-of-type(4n+1),
.gallery-columns-5 .gallery-item:nth-of-type(5n+1),
.gallery-columns-6 .gallery-item:nth-of-type(6n+1),
.gallery-columns-7 .gallery-item:nth-of-type(7n+1),
.gallery-columns-8 .gallery-item:nth-of-type(8n+1),
.gallery-columns-9 .gallery-item:nth-of-type(9n+1) {
	margin-left: 0;
}


/* responsive grid - see https://webdesignerwall.com/tutorials/responsive-column-layouts
--------------------------------------------------------------------------------------- */
.col-wrapper {
	overflow: hidden;
}
.col, .gallery-item {
	float: left;
	margin-left: 2.127659574468%;
	margin-bottom: 20px;
}
.fullwidth .col {
	width: 100%;
	float: none;
	margin-left: 0;
}
/* grid4 col */
.grid4 .col {
	width: 23.404255319149%;
}
/* grid3 col */
.grid3 .col {
	width: 31.914893617021%;;
}
/* grid2 col */
.grid2 .col {
	width: 48.936170212766%;
}
/* three quarters col: one quarter sidebar */
.grid3q .col {
	width: 72%;
	margin-left: 0;
	clear: left;
}
.grid1q .col {
	width: 25%;
	margin-left: 3%;
}

/* clear col */
.grid4 .col:nth-of-type(4n+1), .gallery-columns-4 .gallery-item:nth-of-type(4n+1),
.grid3 .col:nth-of-type(3n+1),
.grid2 .col:nth-of-type(2n+1), .gallery-columns-2 .gallery-item:nth-of-type(2n+1) {
	margin-left: 0;
	clear: left;
}


/* reset cols to 2-column */
@media screen and (max-width: 600px) {
	/* grid4 */
	.grid4 .col, .gallery-columns-4 .gallery-item {
		width: 48.936170212766%;
	}
	.grid4 .col:nth-of-type(2n+1), .gallery-columns-4 .gallery-item:nth-of-type(2n+1) {
		margin-left: 2.127659574468%;
		clear: none;
	}
	.grid4 .col:nth-of-type(2n+1), .gallery-columns-4 .gallery-item:nth-of-type(2n+1) {
		margin-left: 0;
		clear: left;
	}

}

/* reset cols to fullwidth */
@media screen and (max-width: 500px) {
	/* grid4 */
	.col, .gallery-item {
		width: 100% !important;
		margin-left: 0 !important;
		clear: none !important;
	}
}


/* clearfix
----------------------------------------------- */
.clearfix {
	clear: both;
}
.clear {
	clear: both;
	padding-bottom: 10px;
}

/* additions in 2.0
----------------------------------------------- */
.skip-link:focus {
	z-index: 100000;
}

.site-title {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 120%;
	color: #000;
	padding: 0 0 10px 0;
	margin: 0;
}
.site-title a { color: inherit; }
.site-description {
	margin: 0;
}

.center {
	text-align: center;
}

.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.aligncenter { margin-left: auto; margin-right: auto; }

/* post navigation */
.navigation .nav-links { overflow: hidden; margin: 1em 0; }
.navigation .nav-previous { float: left; }
.navigation .nav-next { float: right; text-align: right; }
.navigation .icon { width: 1em; height: 1em; vertical-align: -0.1em; }

.searchform .field { max-width: 70%; }
.searchform .submit { vertical-align: middle; }

.page-links { clear: both; }

@media print {
	body { background: none; }
	#site-navigation, #footer-top, #social, .searchform { display: none !important; }
}
