/* DJ Phillips theme. CreateTheWeb | www.createtheweb.co.uk */

/* Fonts ------------------------------------------------------------------ */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* Tokens ----------------------------------------------------------------- */
:root {
	--green: #18ba60;
	--green-dark: #12964d;
	--button: #0f8443;
	--button-hover: #0b6e37;
	--ink: #2e363a;
	--ink-line: #394348;
	--text: #5f6366;
	--muted: #f7f7f7;
	--panel: #f4f4f4;
	--line: #e5e5e5;
	--white: #fff;
	--radius: 4px;
	--container: 1200px;
	--gutter: 20px;
	--header-height: 92px;
	--section-space: clamp(48px, 7vw, 90px);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 300 15px/1.7 "Poppins", system-ui, sans-serif;
	color: var(--text);
	background: var(--white);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-dark); }
strong, b { font-weight: 600; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(32px, 4.5vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap;
}
.skip-link:focus {
	clip-path: none; width: auto; height: auto; margin: 0; padding: 12px 18px;
	top: 8px; left: 8px; z-index: 1000; background: var(--white); color: var(--ink);
}

.button, button.button, input[type="submit"], .wp-element-button {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: 3px;
	background: var(--button);
	color: var(--white);
	font: 500 14px/1.4 "Poppins", system-ui, sans-serif;
	cursor: pointer;
	transition: background-color .2s ease, transform .1s ease;
}
.button:hover, button.button:hover, input[type="submit"]:hover { background: var(--button-hover); color: var(--white); }
.button:active, input[type="submit"]:active { transform: translateY(1px); }

.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose hr { width: 50%; margin: 2em auto; border: 0; border-top: 3px solid var(--line); }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--white);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--header-height);
}
.site-logo { margin-right: auto; display: block; }
.site-logo__image { width: auto; max-height: 44px; }
.site-logo__text { font-size: 28px; font-weight: 600; color: var(--ink); }

.site-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
	display: block;
	padding: 0 18px;
	line-height: var(--header-height);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ink);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a { color: var(--green); }
.site-nav__list .sub-menu { display: none; }

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.icon-button svg { width: 22px; height: 22px; flex-shrink: 0; }
.search-toggle svg {
	width: 34px; height: 34px; padding: 8px; border-radius: 50%;
	background: #bbb; color: var(--white); stroke-width: 2.5;
}
.search-toggle:hover svg { background: var(--green); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

.site-search { padding: 16px 0; border-top: 1px solid var(--line); background: var(--white); }

.product-search { display: flex; gap: 8px; max-width: 640px; }
.product-search__field {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid #d6d6d6;
	border-radius: 3px;
	font: inherit;
	color: var(--ink);
}

@media (max-width: 1023px) {
	:root { --header-height: 72px; }
	.nav-toggle { display: inline-flex; order: 3; }
	.search-toggle { order: 2; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		border-top: 1px solid var(--line);
		box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
	}
	.nav-open .site-nav { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-nav__list { flex-direction: column; padding: 8px 0; }
	.site-nav__list a { line-height: 1.4; padding: 14px var(--gutter); }
}

/* Sections --------------------------------------------------------------- */
.section { padding: var(--section-space) 0; }
.section--grey { background: var(--muted); }
.section--dark { background: var(--ink); color: var(--white); }
/* Two white sections in a row share one gap. */
.section:not(.section--grey):not(.section--dark) + .section:not(.section--grey):not(.section--dark) { padding-top: 0; }

.section-title { position: relative; margin-bottom: 1.4em; padding-bottom: .55em; font-size: clamp(22px, 2.6vw, 28px); }
.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 45px;
	height: 3px;
	background: var(--green);
}
.section-title--center { text-align: center; }
.section-title--center::after { left: 50%; transform: translateX(-50%); }
.section--dark .section-title { color: var(--white); }

/* Hero */
.hero, .banner {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}
.hero { min-height: clamp(420px, 50vw, 720px); }
.banner { min-height: clamp(260px, 28vw, 400px); }
.hero__image, .banner__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero::after, .banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .43);
}
.banner::after { background: rgba(0, 0, 0, .25); }
.hero__content, .banner__content { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 40px; }
.hero__heading, .banner__heading {
	margin: 0 0 .15em;
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--white);
}
.hero__subheading { margin: 0 0 .4em; font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.3; text-transform: uppercase; }
.hero__tagline, .banner__text { margin: 0 0 1.4em; font-size: 15px; font-weight: 400; }
.banner__text { margin-bottom: 0; }

/* Picture links */
.link-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.link-box { position: relative; display: block; overflow: hidden; color: var(--white); }
.link-box__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.link-box:hover .link-box__image { transform: scale(1.04); }
.link-box__label {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(46, 54, 58, .85);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--white);
}
.link-box__label svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 3; }
.link-box:hover .link-box__label { background: var(--green); color: var(--white); }

/* Text */
.text-block--beside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 30px; align-items: start; }
.text-block--beside .section-title { font-size: clamp(32px, 4vw, 50px); text-transform: uppercase; }

/* Feature list */
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.feature-list__title { margin-bottom: .6em; font-size: 16px; text-transform: uppercase; }
.feature-list .prose { font-size: 14px; }

/* Cards */
.cards { display: grid; gap: 40px 30px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card__image { width: 100%; object-fit: cover; margin-bottom: 22px; }
.cards--2 .card__image { aspect-ratio: 7 / 5; }
.cards--3 .card__image { aspect-ratio: 1; }
.card__title { font-size: 20px; text-transform: uppercase; }
.cards--2 .card__title { font-size: clamp(20px, 2.2vw, 26px); }
.cards--3 .prose { font-size: 14px; }

/* Picture and text */
.image-text { display: grid; gap: 30px; align-items: center; }
.image-text--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-text--quarter { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.image-text--right.image-text--quarter { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.image-text--right .image-text__media { order: 2; }
.image-text__image { width: 100%; }
.image-text--quarter .image-text__image { aspect-ratio: 1; object-fit: cover; }
.image-text--quarter .section-title { text-transform: uppercase; }
.image-text__subheading { margin-top: -1em; color: var(--ink); font-weight: 400; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.review { margin: 0; text-align: center; color: var(--white); font-weight: 400; }
.review p::before { content: "\201C"; }
.review p::after { content: "\201D"; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 30px; align-items: center; }
.logos__item { display: flex; justify-content: center; }
.logos__image { max-height: 90px; width: auto; object-fit: contain; }

/* Gallery: 12-column grid so a short last row stretches to fill the width. */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gallery__image { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery--4 > * { grid-column: span 3; }
.gallery--3 > * { grid-column: span 4; }
@media (min-width: 768px) {
	.gallery--4 > :nth-child(4n+1):nth-last-child(3), .gallery--4 > :nth-child(4n+1):nth-last-child(3) ~ * { grid-column: span 4; aspect-ratio: 4 / 3; }
	.gallery--4 > :nth-child(4n+1):nth-last-child(2), .gallery--4 > :nth-child(4n+1):nth-last-child(2) ~ * { grid-column: span 6; aspect-ratio: 4 / 3; }
	.gallery--3 > :nth-child(3n+1):nth-last-child(2), .gallery--3 > :nth-child(3n+1):nth-last-child(2) ~ * { grid-column: span 6; aspect-ratio: 4 / 3; }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.contact__details h3 { margin-bottom: .4em; font-size: 18px; }
.contact__details p { margin-bottom: 1.4em; }
.contact__details a { color: var(--text); }
.contact__details a:hover { color: var(--green); }
.contact__map { margin-top: var(--section-space); }
.contact__map iframe { display: block; width: 100%; height: 450px; border: 0; }

.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--muted);
	font: inherit;
	color: var(--ink);
}
.wpcf7-form textarea { min-height: 180px; resize: vertical; }
.wpcf7-form input[type="submit"] { width: 100%; padding: 14px 24px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; }
.wpcf7-form ::placeholder { color: #6f7477; }
/* The enquiry form's own markup (Contact Form 7, form 328) splits fields and message into two halves. */
.wpcf7 .flat-wrap-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wpcf7 .flat-one-half p { margin: 0; height: 100%; }
.wpcf7 .flat-one-half br { display: none; }
.wpcf7 .flat-wrap-field .wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.wpcf7 .flat-one-half:last-child .wpcf7-form-control-wrap, .wpcf7 .flat-one-half:last-child textarea { height: 100%; margin: 0; }

/* Generic pages ----------------------------------------------------------- */
.page-content { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.page-title { margin-bottom: .8em; }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-list__item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list__title { font-size: 20px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #e5e5e5; font-size: 14px; }
.site-footer a { color: #e5e5e5; }
.site-footer a:hover { color: var(--green); }
.site-footer__tagline { margin: 0; padding: 36px 0; text-align: center; border-bottom: 1px solid var(--ink-line); }
.site-footer__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 64px; }
.site-footer__heading { margin-bottom: .8em; font-size: clamp(24px, 2.4vw, 30px); color: var(--white); }
.site-footer__list, .opening-hours { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: 14px; }
.opening-hours strong { color: var(--white); }
.site-footer__bottom { padding: 18px 0; border-top: 1px solid var(--ink-line); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--green); }
.site-footer__bottom a:hover { color: var(--white); }

/* Shop category list (also on the /shop/ page) ------------------------------- */
.category-tree { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.category-tree--grid { display: block; columns: 2; column-gap: 20px; }
.category-tree--grid .category-tree__group { break-inside: avoid; margin-bottom: 20px; }
.category-tree__group { padding: 30px; border-radius: 6px; background: var(--panel); }
.category-tree__title { margin-bottom: .9em; font-size: 20px; }
.category-tree__title a { color: var(--ink); }
.category-tree__title a:hover { color: var(--green); }
.category-tree__children { margin: 0; padding: 0; list-style: none; }
.category-tree__children li { margin-bottom: 10px; }
.category-tree__children a { color: var(--text); font-size: 14px; }
.category-tree__children a:hover, .category-tree__children .is-current > a { color: var(--green); }
.category-tree--sidebar .category-tree__group { padding: 24px; }
.category-tree--sidebar .category-tree__title { font-size: 17px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1023px) {
	.feature-list, .cards--3, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.link-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.link-box__label { left: 10px; right: 10px; bottom: 10px; font-size: 12px; }
}

@media (max-width: 767px) {
	body { font-size: 15px; }
	.link-boxes, .feature-list, .cards--2, .cards--3, .reviews,
	.image-text--half, .image-text--quarter, .image-text--right.image-text--quarter,
	.text-block--beside, .contact, .site-footer__columns {
		grid-template-columns: minmax(0, 1fr);
	}
	.image-text--right .image-text__media { order: 0; }
	.wpcf7 .flat-wrap-field { grid-template-columns: minmax(0, 1fr); }
	.wpcf7 .flat-one-half:first-child { order: 2; }
	.image-text--quarter .image-text__media { max-width: 320px; }
	.link-box__label { font-size: 14px; }
	.logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
	.logos__image { max-height: 70px; }
	.gallery { gap: 10px; }
	.gallery > * { grid-column: span 6; }
	.gallery > :last-child:nth-child(odd) { grid-column: span 12; aspect-ratio: 16 / 9; }
	.category-tree--grid { columns: 1; }
	.site-footer__columns { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
