/*
Theme Name: Menziesprint
Theme URI: https://menziesprint.co.uk/
Description: Standalone modular WordPress theme for Menzies Design & Print, powered by Advanced Custom Fields Pro flexible content.
Version: 1.0.0
Author: Menzies Design & Print
Text Domain: menzies-modular
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--c-dark: #313131;
	--c-grey: #777;
	--c-light: #fff;
	--c-active: #00aeef;
	--c-blue: #1c4671;
	--c-yellow: #fcce0b;
	--c-magenta: #ee1e7b;
	--c-soft: #fafafa;
	--c-border: rgba(49, 49, 49, 0.1);
	--c-shadow: 0 10px 50px rgba(49, 49, 49, 0.07);
}

html {
	box-sizing: border-box;
	font-size: 15px;
	scroll-behavior: smooth;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: var(--c-light);
	color: var(--c-grey);
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
}

body.has-open-menu {
	overflow: hidden;
}

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

a {
	color: var(--c-dark);
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

a:hover,
a:focus {
	color: var(--c-active);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 20px;
	color: var(--c-dark);
	font-weight: 800;
	line-height: 1.2;
}

p {
	margin-top: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.menzies-site {
	min-height: 100vh;
	background: var(--c-light);
}

.menzies-site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--c-light);
	color: var(--c-dark);
	transition: box-shadow 0.3s ease;
}

body.has-scrolled-header .menzies-site-header {
	box-shadow: 0 10px 25px rgba(49, 49, 49, 0.06);
}

.admin-bar .menzies-site-header {
	top: 32px;
}

.menzies-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: min(1220px, calc(100% - 30px));
	min-height: 90px;
	margin: 0 auto;
	padding: 20px 0;
	transition: min-height 0.3s ease, padding 0.3s ease;
}

.menzies-site-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--c-dark);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.menzies-site-logo a {
	display: inline-flex;
	align-items: center;
	color: inherit;
}

.menzies-site-logo img {
	display: block;
	width: 245px;
	max-width: 45vw;
	height: auto;
	max-height: none;
}

.menzies-site-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
}

.menzies-site-nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menzies-site-nav li {
	position: relative;
}

.menzies-site-nav a {
	display: block;
	padding: 15px 0 9px;
	border-bottom: 3px solid transparent;
	color: var(--c-dark);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.menzies-site-nav .current-menu-ancestor > a,
.menzies-site-nav .current-menu-item > a,
.menzies-site-nav .current-menu-parent > a,
.menzies-site-nav a:hover,
.menzies-site-nav a:focus {
	border-color: var(--c-active);
	color: var(--c-dark);
}

.menzies-site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: grid;
	min-width: 250px;
	gap: 0;
	padding: 20px 0;
	background: var(--c-light);
	box-shadow: 0 3px 0 var(--c-active);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menzies-site-nav li:hover > .sub-menu,
.menzies-site-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.menzies-site-nav .sub-menu a {
	padding: 7px 30px;
	border: 0;
	white-space: nowrap;
}

.menzies-site-header__cta {
	flex: 0 0 auto;
}

.menzies-site-nav__cta {
	display: none;
}

.menzies-header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 18px 32px;
	border: 0;
	border-radius: 0;
	background: var(--c-magenta);
	box-shadow: 4px 4px 0 var(--c-blue);
	color: var(--c-light);
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
}

.menzies-header-button:hover,
.menzies-header-button:focus {
	background: var(--c-active);
	box-shadow: 4px 4px 0 var(--c-blue);
	color: var(--c-light);
	transform: none;
}

.menzies-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-dark);
	cursor: pointer;
}

.menzies-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 6px auto;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

body.has-open-menu .menzies-nav-toggle span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

body.has-open-menu .menzies-nav-toggle span:nth-child(2) {
	opacity: 0;
}

body.has-open-menu .menzies-nav-toggle span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.menzies-main {
	min-height: 55vh;
}

.menzies-archive,
.menzies-single,
.menzies-not-found,
.menzies-rich-text {
	padding: 180px 0 90px;
}

.menzies-content-container,
.menzies-rich-text .menzies-container {
	width: min(1220px, calc(100% - 30px));
	margin: 0 auto;
}

.menzies-entry {
	margin-bottom: 42px;
	padding-bottom: 42px;
	border-bottom: 1px solid var(--c-border);
}

.menzies-entry h1,
.menzies-rich-text h1 {
	font-size: 54px;
}

.menzies-entry h2,
.menzies-rich-text h2 {
	font-size: 34px;
}

.menzies-rich-text .menzies-copy {
	max-width: none;
	margin: 0 auto;
}

.menzies-site-footer {
	background: var(--c-blue);
	color: var(--c-light);
	text-align: center;
}

.menzies-site-footer__inner {
	display: grid;
	gap: 22px;
	justify-items: center;
	width: min(1220px, calc(100% - 30px));
	margin: 0 auto;
	padding: 82px 0 44px;
}

.menzies-site-footer a {
	color: var(--c-light);
}

.menzies-site-footer a:hover,
.menzies-site-footer a:focus {
	color: var(--c-active);
}

.menzies-site-footer__brand {
	font-weight: 800;
	color: var(--c-light);
}

.menzies-site-footer__logo {
	display: block;
	width: 126px;
	max-width: 126px;
	height: auto;
	max-height: none;
}

.menzies-site-footer__content {
	display: grid;
	gap: 14px;
	justify-items: center;
	width: 100%;
}

.menzies-site-footer__phone {
	display: inline-flex;
	color: var(--c-light);
	font-size: 38px;
	font-weight: 800;
	line-height: 1.2;
}

.menzies-site-footer__contact {
	display: grid;
	gap: 2px;
	justify-items: center;
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.7;
}

.menzies-footer-socials {
	justify-content: center;
	margin: 4px 0 10px;
}

.menzies-footer-socials a span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.menzies-site-footer__legal-wrap {
	width: 100%;
	background: #14385c;
}

.menzies-site-footer__legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(1220px, calc(100% - 30px));
	margin: 0 auto;
	padding: 24px 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	text-align: left;
}

.menzies-footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menzies-footer-menu li:not(:last-child)::after {
	margin: 0 7px;
	content: "|";
	color: rgba(255, 255, 255, 0.7);
}

.menzies-site-footer__legal > span {
	margin-left: auto;
	text-align: right;
}

@media (max-width: 1199px) {
	.admin-bar .menzies-site-header {
		top: 32px;
	}

	.menzies-site-header__inner {
		min-height: 72px;
		padding: 0;
	}

	.menzies-site-logo img {
		width: 190px;
		max-width: 58vw;
	}

	.menzies-nav-toggle {
		position: relative;
		z-index: 1002;
		display: block;
	}

	.menzies-site-header__cta {
		display: none;
	}

	.menzies-site-nav__cta {
		display: block;
		margin-top: 24px;
		padding-top: 22px;
		border-top: 1px solid rgba(49, 49, 49, 0.1);
	}

	.menzies-site-nav__cta .menzies-header-button {
		width: 100%;
		padding: 15px 24px;
		border-bottom: 0;
		color: var(--c-light);
	}

	.menzies-site-nav {
		position: fixed;
		z-index: 1001;
		top: 0;
		left: 0;
		display: block;
		width: 320px;
		max-width: calc(100vw - 48px);
		height: 100vh;
		padding: 66px 20px 30px;
		overflow-y: auto;
		background: var(--c-light);
		box-shadow: 10px 0 25px rgba(49, 49, 49, 0.08);
		transform: translateX(-100%);
		transition: transform 0.35s ease;
	}

	body.has-open-menu .menzies-site-nav {
		transform: translateX(0);
	}

	.menzies-site-nav::before {
		position: absolute;
		top: 0;
		left: 20px;
		display: flex;
		align-items: center;
		width: calc(100% - 40px);
		height: 66px;
		border-bottom: 1px solid rgba(49, 49, 49, 0.1);
		color: var(--c-dark);
		content: "Menu";
		font-weight: 500;
	}

	.menzies-site-nav ul {
		display: grid;
		justify-content: stretch;
		gap: 0;
	}

	.menzies-site-nav li {
		padding: 0;
	}

	.menzies-site-nav a {
		position: relative;
		display: inline-block;
		padding: 10px 20px;
		border: 0;
		font-size: 16px;
	}

	.menzies-site-nav a::before {
		position: absolute;
		bottom: 0;
		left: -60px;
		display: block;
		width: 380px;
		height: 1px;
		background: rgba(49, 49, 49, 0.1);
		content: "";
	}

	.menzies-site-nav .current-menu-ancestor > a,
	.menzies-site-nav .current-menu-item > a,
	.menzies-site-nav .current-menu-parent > a,
	.menzies-site-nav a:hover,
	.menzies-site-nav a:focus {
		color: var(--c-active);
	}

	.menzies-site-nav__cta .menzies-header-button::before {
		display: none;
	}

	.menzies-site-nav__cta .menzies-header-button {
		display: inline-flex;
		width: 100%;
		padding: 15px 24px;
		border-bottom: 0;
		color: var(--c-light);
	}

	.menzies-site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 18px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
	}

	.menzies-site-nav .sub-menu a {
		padding: 8px 0;
	}
}

@media (max-width: 782px) {
	.admin-bar .menzies-site-header {
		top: 46px;
	}
}

@media (max-width: 767px) {
	body {
		line-height: 1.7;
	}

	.menzies-archive,
	.menzies-single,
	.menzies-not-found,
	.menzies-rich-text {
		padding: 132px 0 64px;
	}

	.menzies-content-container,
	.menzies-rich-text .menzies-container {
		width: min(100% - 30px, 1220px);
	}

	.menzies-entry h1,
	.menzies-rich-text h1 {
		font-size: 36px;
	}

	.menzies-site-footer__inner {
		padding: 58px 0 38px;
	}

	.menzies-site-footer__phone {
		font-size: 28px;
	}

	.menzies-site-footer__legal {
		display: grid;
		justify-content: center;
		padding: 22px 0;
		text-align: center;
	}

	.menzies-site-footer__legal > span {
		margin-left: 0;
		text-align: center;
	}
}
