/** Footer section */
.footer-section {
	padding: 75px 0 120px;
	background-color: #004258;
	color: white;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.footer-pattern {
	background-image: url('/wp-content/themes/castlehill/assets/gem-white-outline.svg');
	opacity: 0.5;
	background-repeat: repeat;
	background-size: auto 60%;
	height: 72px;
	position: absolute;
	width: 100%;
}
.footer-pattern.bot {
	left: 0;
	bottom: 0;
}
.footer-box {
	padding: 0;
	width: 1300px;
	margin: 0 auto;
	max-width: 100%;
	box-sizing: border-box;
}

.footer-box a {
	color: inherit;
	text-decoration: underline;
}
.footer-box a:hover {
	color: #f9c03c;
}

.footer-section p {
	font-size: 1rem;
	line-height: 1.7rem;
	text-align: left;
	margin: 0;
	padding: 0.3rem 0;
}

.footer-section h3 {
	padding: 0;
	margin: 0.25rem 0;
	text-align: left;
	font-weight: bold;
	font-size: 1.1rem;
	font-family: 'Scandia', sans-serif;
	text-wrap: nowrap;
}

ul.footer-list {
	list-style-type: none;
	font-size: 0.95rem;
	margin: 0 auto 1rem;
	padding: 0 !important;
	text-align: left;
	line-height: 2.4rem;
}
ul.footer-list li {
	padding: 0;
}

@media (max-width: 599px) {
	ul.footer-list {
		text-align: center;
		line-height: 2rem;
	}
}

.footer-logo {
	margin-right: -25px;
}

.footer-box .columns {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.footer-box .columns .col {
	flex: 1;
	padding: 0 1rem;
}

.footer-box .columns .col:nth-child(2) {
	border-left: 1px solid #87a8b3;
	border-right: 1px solid #87a8b3;
	padding-left: 5rem;
}

.footer-box .columns .col:first-child * {
	text-align: right;
}

.newsletter-modal-trigger {
	appearance: none;
	background: transparent !important;
	border: 2px solid white !important;
	color: white !important;
	cursor: pointer;
	font: inherit;
	font-size: 9.5pt;
	line-height: 1.4;
	max-width: 100%;
	padding: 0.75em 0.9em;
	text-decoration: none !important;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease;
	white-space: normal;
}

.footer-box button.newsletter-modal-trigger:hover {
	background: rgba(255, 255, 255, 0.16) !important;
	border-color: rgba(255, 255, 255, 0.9) !important;
	backdrop-filter: blur(4px);
	color: white !important;
}

.footer-box table.hours_table {
	margin: 0.5rem 0 2rem;
	width: 100%;
	font-size: smaller;
}

.footer-box table.hours_table td {
	padding: 0.4rem 0;
	text-align: left;
	vertical-align: top;
}

@media (max-width: 599px) {
	.footer-list li,
	.footer-section p {
		font-size: 0.95rem !important;
	}

	.footer-box .columns {
		display: block;
		width: 100%;
	}

	.footer-box i.fab {
		font-size: 1.2rem !important;
	}

	.footer-box a.social-link {
		margin: 1rem 0.3rem;
	}

	.footer-section {
		padding-top: 25px;
	}
	.footer-section p {
		line-height: 2rem;
	}

	.footer-logo {
		margin-right: 0;
		width: 240px;
	}

	.footer-box .columns .col {
		display: flex;
		flex-direction: column;
		padding: 2rem 1rem;
		align-items: center;
	}

	.footer-box .columns .col:not(:first-child) {
		border-top: 1px solid #ffffff66;
		padding: 3rem 1rem;
	}

	.footer-box .columns .col section {
		width: 100%;
	}

	.footer-box .columns *:not(td) {
		text-align: center !important;
	}

	.footer-box .columns .col {
		text-align: center;
		border-left: none !important;
		border-right: none !important;
	}

	.footer-box .columns .col.reverse {
		flex-direction: column;
	}

	.footer-box .columns .col.reverse > * {
		margin: 1rem 0;
	}

	.footer-box table.hours_table {
		margin: 0.5rem auto 2rem !important;
		max-width: 400px;
	}
	.footer-box table.hours_table td {
		text-align: center;
	}
}

@media (min-width: 600px) and (max-width: 900px) {
	.footer-box {
		padding: 0 1rem;
	}

	.footer-box .columns .col {
		padding: 0 0.5rem;
		min-width: 0;
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	.footer-box .columns .col:nth-child(2) {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.footer-box .columns .col:nth-child(3) {
		padding-left: 0rem;
	}

	.footer-section h3 {
		font-size: 1rem;
		text-wrap: balance;
	}

	.footer-list li,
	.footer-section p {
		font-size: 0.9rem;
	}

	.footer-logo {
		width: 160px;
		max-width: 100%;
		height: auto;
	}
}
