/* Miserden Stores - static rebuild of the Joomla J51 "Ashley" template. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Lora'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/lora-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/lato-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/lato-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/lato-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'FontAwesome'; font-weight: 400; font-style: normal; font-display: block; src: url(../fonts/fontawesome-webfont.woff2) format('woff2'); }

/* Only the Font Awesome 4 glyphs the site uses */
.fa { display: inline-block; font: normal normal normal 1em/1 FontAwesome; -webkit-font-smoothing: antialiased; }
.fa-facebook::before { content: "\f09a"; }
.fa-instagram::before { content: "\f16d"; }
.fa-phone::before { content: "\f095"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-link::before { content: "\f0c1"; }
.fa-angle-left::before { content: "\f104"; }
.fa-angle-right::before { content: "\f105"; }

/* ---------- Tokens ---------- */
:root {
	--green: #22392d;
	--text: #767b77;
	--heading: 'Lora', serif;
	--body: 'Lato', sans-serif;
	--pad: 35px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 300 14px/25.2px var(--body);
	color: var(--text);
	background: #eef0eb;
}
/* Full-screen fixed background photo (the original used the Vegas jQuery plugin) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: #3a3d36 url(../images/main-bg.jpg) 50% 50% / cover no-repeat;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--green); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--text); }
p { margin: 0 0 16px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 400; }

.page {
	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

/* ---------- Header ---------- */
.site-header { background: #fff; padding: 30px var(--pad) 0; }
.header-row {
	display: grid;
	grid-template-columns: 1fr 200px 1fr;
	align-items: center;
	gap: 20px;
}
.header-row p { margin: 3px 0; font-size: 13px; }
.header-address { text-align: left; }
.header-contact { text-align: right; }
.highlight { color: var(--green); }
.logo img { display: block; width: 200px; height: 145px; }

.social {
	position: absolute;
	top: 0; left: 100%;
	width: 38px;
	margin: 0; padding: 0;
	list-style: none;
	background: rgba(255, 255, 255, .75);
}
.social a { display: block; width: 38px; height: 38px; font-size: 18px; line-height: 38px; text-align: center; color: var(--green); }
.social a:hover { color: var(--text); }

.main-nav { padding: 35px 0 35px; }
.main-nav ul {
	display: flex;
	margin: 0; padding: 0;
	list-style: none;
	border: 1px solid rgba(0, 0, 0, .2);
}
.main-nav li { flex: 1 1 0; }
.main-nav a {
	display: block;
	padding: 0 5px;
	font: 500 11.2px/46px var(--body);
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	color: #787878;
	transition: background .3s, color .3s;
}
.main-nav a:hover { color: var(--green); }
.main-nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* ---------- Slideshow ---------- */
.showcase { background: #fff; padding: 0 var(--pad); }
.slideshow {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1050 / 482;
	background: #ddd;
}
.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s linear, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide .info {
	position: absolute;
	right: 0; bottom: 0;
	padding: 30px 60px;
	opacity: .9;
}
.slide .info p {
	width: 360px;
	margin: 0;
	padding: 20px 30px;
	border: 4px solid rgba(0, 0, 0, .1);
	background: #fff;
	background-clip: padding-box;
	color: #525252;
}
.slide.is-active .info p { animation: fadeInDown 1s .5s both; }
.slide-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 45px; height: 45px;
	margin-top: -22.5px;
	padding: 0;
	border: 1px solid #f9f5df;
	background: rgba(34, 57, 45, .5);
	color: #f9f5df;
	font-size: 20px;
	line-height: 42px;
	cursor: pointer;
	transition: background .2s;
}
.slide-nav:hover { background: rgba(34, 57, 45, .85); }
.slide-prev { left: 0; }
.slide-next { right: 0; }

.map { background: #fff; padding: 0 var(--pad); }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

@keyframes fadeInDown {
	from { opacity: 0; transform: translate3d(0, -100%, 0); }
	to { opacity: 1; transform: none; }
}

/* ---------- Main content ---------- */
.main { background: #fff; padding: 50px var(--pad) 50px; }
.main-home { display: grid; grid-template-columns: 210px 1fr; gap: 70px; align-items: start; }
.main-home .welcome-img { display: block; width: 210px; }
.item-title {
	margin: 0 0 10px;
	font-size: 26.6px;
	line-height: 30px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #4a4a4a;
}
.intro {
	margin: 10px 0 5px;
	font: 400 16.8px/32px var(--heading);
	letter-spacing: 3px;
	text-align: center;
}
.intro b { font-weight: 700; }
.main h4 {
	margin: 20px 0;
	padding-top: 6px;
	font-size: 20px;
	line-height: 36px;
	letter-spacing: 4.4px;
	text-transform: uppercase;
	text-align: center;
	color: var(--green);
}
.contact-photo { display: block; width: 100%; margin-top: 30px; }

/* Privacy policy */
.policy h1 { margin: 0 0 20px; font-size: 26.6px; line-height: 30px; letter-spacing: 4px; text-transform: uppercase; color: #4a4a4a; }
.policy h3 { margin: 30px 0 12px; font-size: 20px; line-height: 28px; letter-spacing: 2px; color: var(--green); }
.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 4px; }

/* ---------- Services grid (home) ---------- */
.services { background: #f0f0f0; padding: 80px var(--pad) 80px; }
.services ul {
	display: grid;
	grid-template-columns: repeat(2, 350px);
	justify-content: center;
	gap: 110px 30px;
	margin: 0; padding: 0;
	list-style: none;
}
.services figure { margin: 0; text-align: center; }
.services img { display: block; width: 350px; height: auto; }
.services figcaption {
	position: relative;
	margin: -50px 17.5px 0;
	padding: 15px 20px 25px;
	border: 4px solid rgba(0, 0, 0, .1);
	background: #fff;
	background-clip: padding-box;
	color: #3b3b3b;
}
.services h3 { margin: 0 0 10px; font-size: 22.4px; line-height: 32px; letter-spacing: 3px; color: #3b3b3b; }
.services p { margin: 0; }

/* ---------- Footer ---------- */
.base {
	max-width: 1120px;
	margin: 20px auto 0;
	padding: 45px var(--pad) 30px;
	background: #242424;
	color: #fff;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.base h3 {
	margin: 0 0 18px;
	font-size: 22px;
	line-height: 26.4px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
}
.base table { border-collapse: collapse; }
.base td { padding: 1px 14px 1px 1px; }
.base a { color: rgba(255, 255, 255, .6); }
.base a:hover { color: #fff; }
.base .fa { width: 22px; color: rgba(255, 255, 255, .3); font-size: 13px; }
.base ul.tick { margin: 0; padding: 0; list-style: none; }
.base ul.tick li { padding: 1px 0 1px 22px; background: url(../images/tick.png) 0 50% no-repeat; }

.footer-bar {
	max-width: 1120px;
	margin: 0 auto;
	padding: 20px 0 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.footer-bar ul { display: flex; margin: 0; padding: 0; list-style: none; }
.footer-bar a { display: block; padding: 7px 30px 5px 0; color: rgba(255, 255, 255, .75); }
.footer-bar a:hover { color: #fff; }
.copyright { margin: 0; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

@media (prefers-reduced-motion: reduce) {
	.slide { transition: none; }
	.slide.is-active .info p { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.social { left: auto; right: 0; } /* keep the social tab inside the box */
}
@media (max-width: 980px) {
	.main-home { gap: 40px; }
	.services ul { grid-template-columns: repeat(2, minmax(0, 350px)); gap: 90px 24px; }
	.base { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	:root { --pad: 16px; }
	.site-header { padding-top: 20px; }
	.header-row { grid-template-columns: 1fr; gap: 6px; text-align: center; }
	.header-address, .header-contact { text-align: center; }
	.logo { order: -1; justify-self: center; }
	.social { top: 0; right: 0; }
	.main-nav { padding: 24px 0; }
	.slide .info { display: none; } /* as on the original theme */
	.main-home { grid-template-columns: 1fr; gap: 24px; }
	.main-home .welcome-img { margin: 0 auto; }
	.item-title { font-size: 22px; letter-spacing: 3px; }
	.intro { font-size: 15px; line-height: 26px; letter-spacing: 1.5px; }
	.main h4 { font-size: 18px; letter-spacing: 3px; }
	.services { padding: 50px var(--pad); }
	.services ul { grid-template-columns: minmax(0, 350px); gap: 50px; }
	.services img { width: 100%; }
	.map iframe { height: 300px; }
	.base { grid-template-columns: 1fr; margin-top: 0; text-align: center; }
	.base table { margin: 0 auto; text-align: left; }
	.base ul.tick { display: inline-block; text-align: left; }
	.footer-bar { flex-direction: column; padding: 20px 16px 30px; }
	.footer-bar a { padding: 7px 12px; }
}
