/*
 Theme Name:     Shafer-Haggart Ltd.
Theme URI:       https://creativepace.com/
Description:	 Pace Creative Child theme of GeneratePRess
Author:			 Pace Creative
Author URI:		 https://creativepace.com/
Template:		 generatepress
Version:		 1.0.0
Release Date:    13 May 2024
*/
:root {
	--sh-green: #4c6951;
	--sh-blue: #283e56;
	--sh-navy: #293743;
	--sh-lightgrey: #eeeeee;
	--sh-darkgrey: #333333;
	--sh-berry: #711d11;
	--sh-ice: #d8e3e8;
	--sh-spruce: #1e7828;
}

@font-face {
	font-family: 'Raleway-VariableFont_wght';
	src: url('assets/fonts/Raleway-VariableFont_wght.woff2') format('woff2');
}

html {
	background-color: var(--sh-blue);
}

body {
	font-family: 'Raleway-VariableFont_wght';
	color: var(--sh-navy);
}

.primary-btn a {
	display: block;
	text-transform: uppercase;
	text-align: center;
	color: white;
	letter-spacing: 0.3px;
	font-weight: 700;
	background-color: #5e7c63;
	padding: 0.75rem 1.5rem;
	width: 100%;
	border-radius: 4px;
	text-decoration: none;
}

.primary-btn a:hover {
	background-color: var(--sh-green);
	color: white;
}

.secondary-btn a {
	text-transform: uppercase;
	color: white;
	letter-spacing: 0.3px;
	font-weight: 700;
	background-color: #536578;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
}

.secondary-btn a:hover {
	background-color: var(--sh-blue);
	color: white;
}

.heading-1 {
	font-size: 40px;
	line-height: 52.5px;
}

.heading-2 {
	font-size: 30px;
	line-height: 38.5px;
}

.heading-3 {
	font-size: 24px;
	line-height: 38px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--sh-blue);
}

.heading-3::after {
	content: '';
	display: block;
	width: 141px;
	height: 6px;
	background-color: var(--sh-green);
	margin: 15px 0 45px;
}

.heading-4 {
	font-size: 20px;
	line-height: 32px;
	font-weight: 700;
}

.heading-5 {
	font-size: 22px;
	line-height: 36px;
	font-weight: 700;
}

.heading-6 {
	font-size: 15px;
	line-height: 21px;
	font-weight: 700;
}

p {
	font-size: 17px;
	line-height: 25.5px;
}

main a {
	color: var(--sh-darkgrey);
}

main a:hover {
	color: black;
}

@media screen and (min-width: 782px) {
	.primary-btn a {
		width: fit-content;
	}
}

@media screen and (min-width: 1025px) {
	.heading-1 {
		font-size: 50px;
		line-height: 62.5px;
	}

	.heading-2 {
		font-size: 34px;
		line-height: 42.5px;
	}

	.heading-3 {
		font-size: 28px;
		line-height: 42px;
	}

	.heading-4 {
		font-size: 24px;
		line-height: 36px;
	}

	.heading-5 {
		font-size: 22px;
		line-height: 36px;
	}

	.heading-6 {
		font-size: 15px;
		line-height: 21px;
	}
}

.inside-header {
	padding: 0;
	max-width: 1200px;
	margin: 0 auto;
}

.header-image {
	width: 170px;
	margin-left: 1rem;
}

.has-inline-mobile-toggle #site-navigation.toggled {
	background-color: white;
	margin: 0.5rem 0;
}

#primary-menu ul li a {
	text-transform: uppercase;
	color: var(--sh-darkgrey);
}

.sub-menu {
	background-color: white !important;
	border: none;
}

#primary-menu ul.sub-menu li a {
	text-transform: none;
}

#primary-menu ul li#menu-item-14 a {
	text-transform: none;
}

.main-navigation .main-nav ul li[class*='current-menu-'] > a::before {
	content: '';
	display: block;
	left: 5px;
	top: 5px;
	position: absolute;
	background-color: var(--sh-blue);
	height: 50px;
	width: 7.5px;
}

.main-navigation ul.sub-menu li[class*='current-menu-'] > a::before {
	display: none;
}

button.menu-toggle {
	background-color: white !important;
}

.menu-toggle .icon-menu-bars {
	color: var(--sh-blue);
	font-size: 1.5rem;
}

@media screen and (min-width: 769px) {
	.inside-header {
		background-color: white;
	}

	.header-image {
		width: 230px;
	}

	.sub-menu {
		border-top: 7.5px solid #5e7c63;
	}
	.main-navigation:not(.toggled) ul li.sfHover > ul,
	.main-navigation:not(.toggled) ul li:hover > ul {
		top: 65px;
	}

	#primary-menu ul.sub-menu li a {
		color: var(--sh-darkgrey);
		padding: 1rem 0.75rem;
	}

	#primary-menu ul.sub-menu li a:hover {
		color: var(--sh-green);
	}

	.main-navigation .main-nav ul li[class*='current-menu-'] > a::before {
		content: '';
		display: block;
		top: -5px;
		right: 5px;
		position: absolute;
		background-color: var(--sh-blue);
		width: 90%;
		height: 7.5px;
	}

	.main-navigation ul.sub-menu li[class*='current-menu-'] > a::before {
		display: none;
	}
}

@media screen and (min-width: 1025px) {
	.header-image {
		width: 260px;
	}

	.main-navigation:not(.toggled) ul li.sfHover > ul,
	.main-navigation:not(.toggled) ul li:hover > ul {
		top: 100px;
	}

	.main-navigation .main-nav ul li[class*='current-menu-'] > a::before {
		top: 0;
	}

	#primary-menu ul li a {
		padding-top: 1rem;
		padding-bottom: 1.5rem;
	}
}

.site-footer,
.footer-widgets,
.site-info {
	background-color: var(--sh-blue);
	font-family: 'Open Sans', sans-serif;
	color: white;
	text-align: center;
}

.site-footer a {
	color: white;
	text-decoration: none;
}

.site-footer a:hover {
	color: #818891;
}

.footer-widget-3 aside p {
	line-height: 32px;
}

@media screen and (min-width: 769px) {
	.site-footer,
	.footer-widgets,
	.site-info {
		text-align: left;
	}

	.inside-site-info {
		display: block;
	}
}
@media screen and (min-width: 1025px) {
	.footer-widgets-container,
	.site-info {
		max-width: 1200px;
		margin: 0 auto;
	}
	.menu-footer-menu-container {
		padding-left: 80px;
	}
}

/* BREADCRUMB MENU */
.yoast-breadcrumbs,
.breadcrumbs {
	max-width: 1200px;
}

.page-template-template-products .yoast-breadcrumbs,
.breadcrumbs {
	max-width: 1200px;
	margin: 20px 0 0 20px;
	padding: 10px 0 50px;
}

.yoast-breadcrumbs a,
.breadcrumbs a {
	color: var(--sh-darkgrey);
	text-decoration: none;
}

.yoast-breadcrumbs .breadcrumb_last,
.breadcrumbs .breadcrumb_last {
	color: var(--sh-green);
}

@media screen and (min-width: 782px) {
	.breadcrumbs {
		margin: 0 auto;
		width: 100%;
		padding: 1rem 1rem;
		margin-bottom: 30px;
	}

	.page-template-template-products .breadcrumbs {
		width: 745px;
	}
}

@media screen and (min-width: 992px) {
	.page-template-template-products .breadcrumbs {
		width: 980px;
	}
}

@media screen and (min-width: 1200px) {
	.page-template-template-products .breadcrumbs {
		width: 1170px;
	}
}

/* HOME PAGE */

#hero {
	color: white;
}

#hero .heading-1 {
	font-weight: 700;
}

#hero .heading-2 {
	font-style: italic;
}

#hero .wp-block-getwid-section__background-holder,
#hero {
	height: 350px;
}

.home #hero .wp-block-getwid-section__background-holder,
.home #hero {
	height: 500px;
}

#ninety-years .wp-block-columns {
	margin: -10px 0 2rem;
}

#our-products {
	background-color: var(--sh-lightgrey);
	padding: 2rem 0;
}

#our-products .heading-3 {
	max-width: 1200px;
	margin: 0 auto;
}

#home-sustainability {
	padding: 2rem 0 3rem;
}

#home-sustainability p {
	max-width: 850px;
}

#home-sustainability .primary-btn {
	margin-top: 2.5rem;
}

.request-a-quote {
	background-color: var(--sh-lightgrey);
	border-top: #536578 10px solid;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	max-height: 280px;
}

@media screen and (min-width: 782px) {
	#hero .wp-block-getwid-section__background-holder,
	#hero {
		height: 500px;
	}

	.request-a-quote .secondary-btn {
		margin: 0 auto;
	}
}

/* SUSTAINABILTY PAGE */
#links-to-sustainability-sections {
	margin: 0 0 4rem;
}

#links-to-sustainability-sections img {
	width: 188px;
	aspect-ratio: 1 / 1;
	padding: 40px;
}

#links-to-sustainability-sections figure {
	border: 4px solid var(--sh-navy);
	width: 188px;

	border-radius: 50%;
	margin: 20px auto;
	box-sizing: border-box;
	box-shadow: 2px 8px 30px 0px #acacac;
}

#links-to-sustainability-sections figure:hover {
	box-shadow: inset 0 0 0 2px var(--sh-navy), inset 0 0 0 3px var(--sh-navy),
		inset 0 0 0 4px var(--sh-navy), 2px 8px 30px 0px #acacac;
	transition: box-shadow 300ms ease-in-out;
}

#links-to-sustainability-sections p {
	max-width: 250px;
	margin: 0 auto;
}

.sustainability-badge img {
	padding-left: 1.5rem;
	width: 130px;
}

#human-rights {
	background-color: rgb(113, 29, 17, 0.1);
	padding: 3rem 0 1.25rem;
}

#human-rights .heading-3::after {
	background-color: var(--sh-berry);
}

#human-rights-policies .wp-block-getwid-section__wrapper,
#products-policies .wp-block-getwid-section__wrapper {
	padding-left: 0;
}

#human-rights-policies .wp-block-getwid-section__inner-content,
#products-policies .wp-block-getwid-section__inner-content {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

#sustainably-sourced {
	background-color: var(--sh-ice);
	padding: 3rem 0 1.25rem;
}

#sustainably-sourced .heading-3::after {
	background-color: var(--sh-blue);
}

#planet-climate-action {
	background-color: rgb(29, 120, 40, 0.15);
	padding: 3rem 0 1.25rem;
}

#planet-climate-action .heading-3::after {
	background-color: var(--sh-spruce);
}

#people-image,
#products-image,
#planet-image {
	display: none;
}

#products-commitment,
#human-rights-commitment,
#earth-commitment {
	padding: 2rem 0 0;
}

.main-sustainability-column {
	flex-direction: column-reverse;
}

.policy-item {
	text-align: center;
	display: flex;
	justify-content: center;
}

.policy-item .wp-block-getwid-button-group__wrapper {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.policy-item img {
	width: 85px;
}

.memberships {
	text-align: center;
}

@media screen and (min-width: 782px) {
	#links-to-sustainability-sections img,
	#links-to-sustainability-sections figure {
		width: 250px;
	}
	#human-rights-policies .wp-block-getwid-section__inner-content,
	#products-policies .wp-block-getwid-section__inner-content {
		gap: 1rem;
	}

	.policy-item,
	.memberships {
		text-align: left;
	}

	.policy-item .wp-block-getwid-button-group__wrapper {
		justify-content: flex-start;
		gap: unset;
	}

	.policy-item p {
		margin-bottom: 1rem;
	}

	.sustainability-badge img {
		border-left: 0.5px solid black;
	}

	.main-sustainability-column {
		flex-direction: row;
	}
}

@media screen and (min-width: 1025px) {
	#people-image,
	#products-image,
	#planet-image {
		display: block;
	}
}

.wp-block-button.primary-btn a.wp-block-button__link:not(.has-background) {
	background-color: #5e7c63;
}

.wp-block-button.primary-btn
	a.wp-block-button__link:not(.has-background):hover {
	background-color: var(--sh-green);
}

.memberships .wp-block-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
}

#earth-commitment .heading-3::after {
	background-color: var(--sh-spruce);
}

.earth-memberships .wp-block-getwid-section__wrapper {
	padding-left: 0;
}

.amfori,
.amfori a {
	color: #0155a3;
}

.amfori a:hover {
	color: #004482;
}

.amfori img {
	width: 260px;
	height: 79px;
}

.sedex img {
	width: 300px;
	height: 34px;
	margin: 20px 0;
}

@media screen and (min-width: 782px) {
	.earth-memberships .wp-block-getwid-section__wrapper {
		margin-bottom: 3rem;
	}
}
/* PRODUCTS PAGE */

.page-template-template-products .heading-3 {
	max-width: 1200px;
	width: 100%;
	margin: 1rem;
}

.products-page-wrapper .heading-3 {
	margin-top: 2rem;
}

.product-categories-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	max-width: 1200px;
	margin: 1rem auto 2rem;
	gap: 1rem;
	width: 95%;
}

.product-category-box {
	position: relative;
	max-width: 360px;
	width: calc(50% - 1rem);
	height: 40vw;
	overflow: hidden;
	box-sizing: border-box;
}

.product-category-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product-category-label {
	background-color: #5e7c63;
	padding: 0.25rem;
	text-align: center;
	margin-top: -0.5rem;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.product-category-label::before {
	display: block;
	content: '';
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #5e7c63;
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
}

a.product-category-box {
	color: white !important;
	font-weight: 600;
	text-decoration: none;
}

.product-category-box:hover img {
	transform: scale(1.05);
}

.product-category-description {
	display: none;
	color: white;
	text-align: center;
	padding: 0.5rem;
	background-color: rgba(40, 62, 86, 0.75);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	transition: background-color 0.3s ease;
}

.product-category-description p {
	display: flex;
	align-items: center;
	font-weight: 300;
	font-size: 18px;
	width: 80%;
	margin: 0 auto;
	height: 100%;
	margin-top: -2rem;
}

.product-category-description::after {
	display: none;
	content: '+';
	border: 2px solid white;
	border-radius: 50%;
	font-size: 2rem;
	font-weight: 300;
	line-height: 2rem;
	padding-bottom: 2rem;
	width: 36px;
	height: 30px;
	position: absolute;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
}

@media screen and (min-width: 782px) {
	.product-category-label {
		padding: 0.75rem;
	}

	a.product-category-box {
		font-size: 1.25rem;
	}

	.page-template-template-products .heading-3,
	#our-products .heading-3 {
		margin: 0 auto;
		width: 745px;
	}

	.product-categories-container {
		width: 745px;
		gap: 2rem;
		margin: 0.75rem auto 5.5rem;
	}
	.product-category-box {
		width: 220px;
		height: 230px;
	}
}

@media screen and (min-width: 992px) {
	.product-category-box:hover .product-category-description {
		display: block;
	}

	.product-category-description::after {
		display: block;
	}

	.product-categories-container {
		width: 980px;
	}

	.page-template-template-products .heading-3,
	#our-products .heading-3 {
		margin: 0 auto;
		width: 980px;
	}

	.product-category-box {
		width: 293px;
		height: 287px;
	}
}

@media screen and (min-width: 1200px) {
	.product-categories-container {
		width: 1170px;
	}

	.page-template-template-products .heading-3,
	#our-products .heading-3 {
		margin: 0 auto;
		width: 1170px;
	}

	.product-category-box {
		width: 360px;
		height: 338px;
	}
}

/* FAQS PAGE */
.wp-block-getwid-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.wp-block-getwid-accordion .wp-block-getwid-accordion__header {
	background-color: var(--sh-lightgrey);
	padding: 0;
}

.wp-block-getwid-accordion__content {
	margin-top: -1rem;
	padding: 1rem 1rem 0.75rem;
}

.wp-block-getwid-accordion__header a {
	color: var(--sh-navy);
	padding-left: 1rem;
}

.wp-block-getwid-accordion__icon {
	background-color: #5e7c63;
	padding: 5px;
}

.wp-block-getwid-accordion__icon i {
	padding: 0.15rem 0.2rem;
	margin: 0.35rem;
	color: white;
	font-size: 1rem;
	font-weight: 400;
	border: 1px solid white;
	border-radius: 50%;
	display: inline-block;
}

@media screen and (min-width: 782px) {
	.wp-block-getwid-accordion__icon {
		padding: 0;
	}
}

/* TAXONOMY TERM ARCHIVES: PRODUCT CATEGORY */
.tax-product-category,
.page-template-template-products {
	background-color: white;
}

.page-template-template-contact .site-content,
.page-template-template-contact #content,
.tax-product-category .site-content,
.tax-product-category #content,
.page-template-template-products .site-content,
.page-template-template-products #content {
	width: 100%;
	display: flex;
	flex-direction: column;
	background-color: white;
}

.tax-product-category .site.grid-container.container.hfeed,
.page-template-template-products .site.grid-container.container.hfeed {
	max-width: unset;
	width: 100% !important;
	margin: unset;
}

.tax-product-category .product-category-hero,
.page-template-template-products {
	max-width: unset;
	height: 300px;
	object-fit: cover;
}

.product-category-container {
	max-width: 1200px;
	margin: 0 20px;
}

.products-container {
	display: flex;
	flex-wrap: wrap;
	max-width: 1200px;
	width: 100%;
	height: 100%;
	gap: 0.25rem;
}

.product-box {
	border: 2px solid var(--sh-lightgrey);
	margin-bottom: 30px;
	width: 48%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.product-box img {
	max-width: 300px;
	width: 100%;
	height: auto;
}

.product-box__title {
	border-top: 2px solid #eee;
	font-weight: 600;
	text-align: center;
	width: 100%;
	margin: 0;
	padding: 0.5rem;
}

@media screen and (min-width: 782px) {
	.tax-product-category .product-category-hero,
	.page-template-template-products {
		height: 500px;
	}

	.product-category-container {
		margin: 0 auto;
		padding: 1rem;
	}

	.products-container {
		margin: 1rem auto 5.5rem;
		gap: 0;
	}
	.product-box {
		width: 33%;
	}
}

@media screen and (min-width: 1100px) {
	.products-container {
		gap: 1rem;
	}

	.term-dressings-and-condiments .products-container {
		gap: 0;
		min-width: 1000px;
	}
}

@media screen and (min-width: 1200px) {
	.term-dressings-and-condiments .products-container {
		gap: 1rem;
		min-width: 1200px;
	}
}

/* PRE-FOOTER CTA SECTION */
.prefooter-cta {
	background-color: var(--sh-lightgrey);
	padding: 2rem;
}

.prefooter-cta .cta-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.prefooter-cta .heading-4 {
	margin-bottom: 0.5rem;
}

.prefooter-cta .primary-btn a {
	font-weight: 600;
}

.prefooter-cta .primary-btn {
	width: 100%;
}

@media screen and (min-width: 782px) {
	.prefooter-cta .primary-btn {
		width: fit-content;
	}
}

/* CONTACT PAGE */
#contact-us {
	max-width: 1200px;
	margin: 0 1rem;
}

#contact-us .wp-block-getwid-section__wrapper {
	padding: 0;
}

#contact-us h3 {
	margin-bottom: 0;
	font-weight: 500;
}

.page-template-template-contact #breadcrumbs-menu {
	margin-top: -25px;
	margin-bottom: 40px;
}

.contact-sidebar {
	font-weight: 300;
}

.contact-sidebar strong {
	font-weight: 400;
}

.contact-sidebar a {
	color: var(--sh-darkgrey);
}

.frm_forms {
	max-width: 655px !important;
}

.frm_button_submit {
	text-transform: uppercase;
	padding: 0.5em 7.5em !important;
	background-color: #5e7c63;
}

.frm_button_submit:hover {
	color: white !important;
	background-color: var(--sh-green) !important;
}

@media screen and (min-width: 782px) {
	#contact-us {
		margin: 0 auto;
	}
}

/* TRAINING PAGE */

#trainings {
	padding: 30px 0;
}

#trainings .heading-2 {
	color: #5e7c63;
	font-weight: 700;
	margin: 1rem 0 0.5rem;
}


.post-password-form {
	padding: 4rem 1rem 2rem;
	min-height: 40vh;
	max-width: 1200px;
	margin: 0 auto;
}

.post-password-form input[type=submit] {
	display: block;
	text-transform: uppercase;
	text-align: center;
	color: white;
	letter-spacing: 0.3px;
	font-weight: 700;
	background-color: #5e7c63;
	padding: 0.5rem 1.5rem;
	width: fit-content;
	border-radius: 4px;
	text-decoration: none;
}

.post-password-form input[type=submit]:hover {
	background-color: var(--sh-green);
	color: white;
} 

.post-password-form p:nth-child(2) {
	display: flex;
	gap: .5rem;
}
