/*
 * Lineages site styles: header, footer and menus.
 * Values come from the pre-hack site's compiled Beaver Builder styles
 * (header layout 7473, footer layout 7480) and the site's Additional CSS.
 * Breakpoints match the old site: 1024px (medium) and 768px (small).
 */

:root {
	--lin-blue: #1caaf2;
	--lin-green: #cbd872;
	--lin-dark: #17252a;
	--lin-wrap: 1250px;
}

.screen-reader-text:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	white-space: nowrap;
}

.lin-wrap {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: var(--lin-wrap);
	padding: 0 20px;
	width: 100%;
}

/* ---------- Header ---------- */

.lin-header {
	position: relative;
	z-index: 100;
	width: 100%;
}

.lin-topbar {
	background: #000;
	color: #fff;
}

.lin-topbar-inner {
	align-items: center;
	display: flex;
	min-height: 59px;
}

.lin-tb-col { box-sizing: border-box; }
.lin-tb-contact { width: 18%; display: flex; align-items: center; gap: 20px; }
.lin-tb-social { width: 54%; display: flex; justify-content: flex-end; }
.lin-tb-cart { width: 8%; display: flex; justify-content: center; }

.lin-topbar a,
.lin-topbar a:visited { color: #fff; text-decoration: none; }
.lin-topbar a:hover,
.lin-topbar a:focus { color: var(--lin-green); }

.lin-tb-icon {
	background: #fff;
	border-radius: 5px;
	color: #000;
	display: inline-block;
	flex: 0 0 25px;
	font-size: 15px;
	height: 25px;
	line-height: 25px;
	text-align: center;
	width: 25px;
}

.lin-topbar .lin-social-link {
	align-items: center;
	display: inline-flex;
	font-size: 20px;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.lin-tb-cart,
.lin-tb-cart a,
.lin-tb-cart * { color: #fff; }
.lin-tb-cart a:hover { color: var(--lin-green); }

.lin-mainbar { background: transparent; }

.lin-mainbar-inner {
	align-items: center;
	display: flex;
}

.lin-mb-logo { flex: 0 0 auto; width: auto; }
.lin-logo { display: inline-block; line-height: 0; }
.lin-logo-img { display: block; max-width: 100%; }

.lin-nav {
	flex: 1 1 auto;
	margin-right: 20px;
	text-align: right;
}

.lin-menu,
.lin-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lin-menu > li {
	display: inline-block;
	margin: 5px 12px;
	position: relative;
}

.lin-menu { white-space: nowrap; }
.lin-menu .sub-menu { white-space: normal; }

/* Keep the main menu on one line: tighter spacing, then smaller text, before the ☰ menu. */
@media (max-width: 1199px) and (min-width: 1025px) {
	.lin-menu > li { margin: 5px 8px; }
	.lin-menu > li > a { font-size: 14px; }
}
@media (max-width: 1099px) and (min-width: 1025px) {
	.lin-menu > li { margin: 5px 6px; }
	.lin-menu > li > a { font-size: 13px; }
}

.lin-menu > li > a {
	border-bottom: 2px solid transparent;
	color: #101010;
	display: inline-block;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	padding: 2px 0;
	text-decoration: none;
	text-shadow: 0 0 1px rgba(0, 0, 0, 0);
	text-transform: uppercase;
}

.lin-menu > li > a:hover,
.lin-menu > li > a:focus,
.lin-menu > li.current-menu-item > a,
.lin-menu > li.current-menu-ancestor > a {
	border-bottom-color: var(--lin-blue);
	color: var(--lin-blue);
}

.lin-menu > li.current-menu-item > a { text-shadow: 0 0 1px #000; }

/* Dropdowns */
.lin-menu .sub-menu {
	background: #edecec;
	border: 1px solid #000;
	box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.3);
	left: 0;
	min-width: 220px;
	opacity: 0;
	position: absolute;
	text-align: left;
	top: 100%;
	transition: all 300ms ease-in;
	visibility: hidden;
	z-index: 16;
}

.lin-menu .sub-menu .sub-menu { left: 100%; top: 0; }

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

.lin-menu .sub-menu > li { border-bottom: 1px solid #e3e2e3; }
.lin-menu .sub-menu > li:last-child { border-bottom: none; }

.lin-menu .sub-menu a {
	background: #edecec;
	color: #333;
	display: block;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	padding: 15px;
	text-decoration: none;
	text-transform: uppercase;
}

.lin-menu .sub-menu a:hover,
.lin-menu .sub-menu a:focus,
.lin-menu .sub-menu .current-menu-item > a { background: #f5f5f5; }

.lin-menu-toggle,
.lin-menu-close { display: none; }

/* Homepage: header sits over the hero image with a white menu. */
@media (min-width: 1025px) {
	.lin-header-overlay .lin-header {
		left: 0;
		position: absolute;
		top: 0;
	}
	.lin-header-overlay .lin-menu > li > a { color: #fff; }
	.lin-header-overlay .lin-menu > li > a:hover,
	.lin-header-overlay .lin-menu > li > a:focus { color: var(--lin-blue); }
	.lin-header-overlay .lin-menu > li.current-menu-item > a { color: #fff; }

	/* Sticky header once the page scrolls (class set by lineages.js). */
	.lin-header.is-sticky {
		animation: lin-slide-down 0.3s ease;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
		left: 0;
		position: fixed;
		top: 0;
	}
	.admin-bar .lin-header.is-sticky { top: 32px; }
	.lin-header.is-sticky .lin-mainbar { background: #fff; }
	.lin-header-overlay .lin-header.is-sticky .lin-mainbar { background: #000; }
}

@keyframes lin-slide-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* ---------- Header: small screens ---------- */
/* Top bar stacks on phones only (old 768px breakpoint). */
@media (max-width: 768px) {
	.lin-topbar-inner {
		flex-wrap: wrap;
		padding-bottom: 11px;
	}
	.lin-tb-contact {
		justify-content: center;
		margin: 20px 0 0;
		width: 100%;
	}
	.lin-tb-social { justify-content: center; width: 75%; }
	.lin-tb-cart { width: 25%; }
}

/* Main menu becomes the ☰ off-canvas menu at tablet width and below. */
@media (max-width: 1024px) {
	.lin-mb-logo { flex: 0 0 auto; width: auto; }

	.lin-menu-toggle {
		background: none;
		border: 0;
		box-shadow: none;
		cursor: pointer;
		display: block;
		fill: #101010;
		margin-left: auto;
		padding: 0;
	}

	.lin-nav {
		background: #fff;
		bottom: 0;
		box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.5);
		box-sizing: border-box;
		left: -320px;
		margin: 0;
		max-width: 85vw;
		overflow-y: auto;
		padding: 10px;
		position: fixed;
		text-align: center;
		top: 0;
		transition: left 0.5s;
		width: 300px;
		z-index: 1000;
	}

	.lin-nav.is-open { left: 0; }

	.lin-menu-close {
		background: none;
		border: 0;
		box-shadow: none;
		color: #101010;
		cursor: pointer;
		display: block;
		font-size: 30px;
		line-height: 1;
		margin-left: auto;
		padding: 0 5px;
	}

	.lin-menu { margin-top: 60px; }

	.lin-menu > li {
		display: block;
		margin: 10px 0;
	}

	.lin-menu > li > a { color: #101010 !important; }

	.lin-menu .sub-menu {
		background: transparent;
		border: 0;
		box-shadow: none;
		display: none;
		margin: 10px auto;
		opacity: 1;
		position: static;
		visibility: visible;
		width: 87%;
	}

	.lin-menu li.is-open > .sub-menu { display: block; }
	.lin-menu .sub-menu a { background: transparent; text-align: center; }

	/* Below the header (z-index 100), whose stacking context holds the menu panel. */
	.lin-nav-overlay {
		background: rgba(0, 0, 0, 0.3);
		inset: 0;
		position: fixed;
		z-index: 99;
	}
	.lin-header .lin-menu-toggle,
	.lin-header .lin-menu-close {
		background: none !important;
		border: 0 !important;
		box-shadow: none !important;
	}
	.lin-header .lin-menu-close { color: #101010 !important; }
}

/* ---------- Footer ---------- */

.lin-footer a { text-decoration: none; }

.lin-contact-strip {
	background: var(--lin-dark);
	color: #fff;
	display: flex;
}

.lin-cs-col {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
	text-align: center;
	width: 25%;
}

.lin-cs-col p { margin: 0; }
.lin-cs-col a,
.lin-cs-col a:visited { color: #fff; }
.lin-cs-col a:hover { color: var(--lin-green); }

.lin-cs-bordered {
	border-left: 1px solid rgba(255, 255, 255, 0.39);
	border-right: 1px solid rgba(255, 255, 255, 0.39);
}

.lin-cs-icon {
	color: #fff;
	display: block;
	font-size: 50px;
	height: 50px;
	line-height: 50px;
	margin-bottom: 15px;
	width: 50px;
}

.lin-cs-hours {
	background: var(--lin-green);
	color: #000;
}

.lin-cs-hours .lin-cs-icon { color: #000; }
.lin-cs-hours p { font-size: 18px; }
.lin-cs-hours strong { font-weight: 700; }

.lin-footer-main {
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.27);
	padding: 0 0 3px;
}

.lin-fm-inner {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	padding-bottom: 20px;
	padding-top: 20px;
}

.lin-fm-col { box-sizing: border-box; padding: 0 20px; }
.lin-fm-brand { text-align: left; width: 22%; }
.lin-fm-links { width: 31%; }
.lin-fm-quick { width: 21%; }
.lin-fm-subscribe { width: 26%; }

.lin-fm-social {
	display: flex;
	margin-left: 30px;
}

.lin-fm-social .lin-social-link {
	align-items: center;
	color: #000;
	display: inline-flex;
	font-size: 20px;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.lin-fm-social .lin-social-link:hover { color: var(--lin-blue); }

.lin-fm-heading {
	color: #17252a;
	font-family: "Open Sans", sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.2;
	margin: 10px 0;
}

.lin-fmenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lin-fmenu li { border-top: 1px solid transparent; }
.lin-fmenu li:first-child { border-top: none; }

.lin-fmenu a {
	color: #000;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	padding: 5px 10px 5px 0;
	text-shadow: 0 0 1px rgba(0, 0, 0, 0);
	text-transform: uppercase;
}

.lin-fmenu a:hover { color: var(--lin-blue); text-shadow: 0 0 1px #000; }
.lin-fmenu .current-menu-item > a { color: var(--lin-blue); }
.lin-fmenu .sub-menu { display: none; }

/* Mailing-list form (Contact Form 7) in the footer */
.lin-fm-subscribe .wpcf7 { padding: 15px 0; }
.lin-fm-subscribe input[type="email"] {
	background: transparent;
	border: 1px solid #000;
	border-radius: 30px;
	box-sizing: border-box;
	color: #000;
	font-size: 18px;
	margin-bottom: 1%;
	padding: 10px;
	width: 100%;
}
.lin-fm-subscribe input[type="submit"] {
	background: var(--lin-green);
	border: 1px solid #bfcc66;
	border-radius: 30px;
	color: #000;
	cursor: pointer;
	display: block;
	font-size: 16px;
	font-weight: 600;
	height: 50px;
	width: 100%;
}
.lin-fm-subscribe input[type="submit"]:hover,
.lin-fm-subscribe input[type="submit"]:focus {
	background: var(--lin-blue);
	border-color: #109ee6;
}
.lin-fm-subscribe .wpcf7-spinner { position: absolute; }

.lin-copyright { background: #f5f5f5; }

.lin-cr-inner {
	align-items: center;
	display: flex;
	padding-bottom: 10px;
	padding-top: 10px;
}

.lin-cr-text {
	font-size: 15px;
	margin: 0;
	width: 50%;
}

.lin-cr-badge {
	font-size: 13px;
	margin-right: 10px;
	text-align: right;
	width: 50%;
}

.lin-cr-badge img { display: inline-block; vertical-align: middle; }

@media (max-width: 1024px) {
	.lin-fm-brand { text-align: center; width: 100%; }
	.lin-fm-brand .lin-logo { display: inline-block; }
	.lin-fm-social { justify-content: center; margin-left: 0; }
}

@media (max-width: 768px) {
	.lin-contact-strip { flex-direction: column; }
	.lin-cs-col { width: 100%; }
	.lin-cs-bordered { border: 0; }
	.lin-fm-col { padding: 0 20px; text-align: center; width: 100%; }
	.lin-fm-heading { margin-top: 20px; text-align: center; }
	.lin-fmenu li,
	.lin-fmenu a { display: inline-block; }
	.lin-fmenu a { line-height: 1.2; padding: 5px 10px; }
	.lin-cr-inner { flex-direction: column; padding-bottom: 15px; padding-top: 0; }
	.lin-cr-text,
	.lin-cr-badge { margin: 15px 0 0; text-align: center; width: 100%; }
}
