/* Green Mart footer — pairs with resources/views/sections/footers/*. */

.gm-footer,
.gm-footer__copyright {
	--gm-footer-bg: #0f2e24;
	--gm-footer-rule: rgba(255, 255, 255, .18);
}

.gm-footer {
	background: var(--gm-footer-bg);
	color: #fff;
}

.gm-footer a {
	color: inherit;
	text-decoration: none;
}

.gm-footer a:hover,
.gm-footer a:focus-visible {
	color: var(--bs-accent);
}

.gm-footer .site-footer {
	text-align: left;
}

.gm-footer__inner {
	padding-top: 4rem;
}

/* Brand + CTAs */
.gm-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--gm-footer-rule);
}

.gm-footer__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
}

.gm-footer .gm-footer__logo img {
	display: block;
	width: auto;
	max-width: 160px;
	height: auto;
}

.gm-footer__wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	font-family: var(--font-heading);
	font-size: 2.5rem;
	line-height: 1;
	text-transform: uppercase;
}

.gm-footer__wordmark span {
	font-size: .6em;
	letter-spacing: .08em;
}

.gm-footer__tagline {
	margin: 0 0 1.25rem;
	font-family: var(--font-heading);
	font-size: clamp(1.4rem, 1rem + 1.2vw, 1.75rem);
	line-height: 1.2;
}

.gm-footer__social .social-media-icons {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	margin: 0;
}

.gm-footer__social .social-icon-single a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	font-size: 1rem;
	transition: border-color .15s, color .15s;
}

.gm-footer__social .social-icon-single a:hover,
.gm-footer__social .social-icon-single a:focus-visible {
	border-color: var(--bs-accent);
}

.gm-footer__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.gm-footer .gm-footer__ctas .btn {
	padding: .75rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
}

.gm-footer .gm-footer__ctas .btn-accent:hover,
.gm-footer .gm-footer__ctas .btn-accent:focus-visible {
	color: var(--btn-accent-text, #053527);
}

.gm-footer .gm-footer__ctas .btn-outline-light {
	border: 2px solid #fff;
	color: #fff;
	background: transparent;
}

.gm-footer .gm-footer__ctas .btn-outline-light:hover,
.gm-footer .gm-footer__ctas .btn-outline-light:focus-visible {
	background: #fff;
	color: var(--gm-footer-bg);
}

/* Columns */
.gm-footer__columns {
	padding: 2.75rem 0 2rem;
	border-bottom: 1px solid var(--gm-footer-rule);
	font-size: .9375rem;
}

.gm-footer .footer-menu-title {
	display: inline-block;
	margin: 0 0 .75rem;
	padding-bottom: .3rem;
	border-bottom: 2px solid var(--bs-accent);
	font-family: var(--font-subheading);
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
}

.gm-footer ul li {
	padding-bottom: .35rem;
}

/* Phones (under 568px): the text columns (Visit, Hours) go full width; the
   menus stay two up. Column classes come from Theme Settings (col-6 col-md-4
   col-xl), so this is done here rather than there. */
@media (max-width: 567.98px) {
	.gm-footer .footer-column-content {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}
}

.gm-footer .footer-custom-content a {
	font-weight: inherit;
}

.gm-footer .footer-custom-content p {
	margin: 0;
	line-height: 1.6;
}

/* Compliance */
.gm-footer__legal {
	padding: 1.5rem 0 .75rem;
	font-size: .75rem;
	line-height: 1.6;
}

.gm-footer__legal p {
	margin: 0;
}

/* Copyright bar (also used under the landing-page footer) */
.gm-footer__copyright {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	padding-top: .75rem;
	padding-bottom: 2.5rem;
	font-size: .75rem;
	color: #fff;
}

.landing-page-footer + .gm-footer__copyright {
	max-width: none;
	background: var(--gm-footer-bg);
}

.gm-footer__copyright a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gm-footer__copyright a:hover,
.gm-footer__copyright a:focus-visible {
	color: var(--bs-accent);
}

.gm-footer__copyright-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .375rem;
}

@media (max-width: 767.98px) {
	.gm-footer__inner {
		padding-top: 3rem;
	}

	.gm-footer__top {
		align-items: flex-start;
	}

	.gm-footer__ctas,
	.gm-footer__ctas .btn {
		flex: 1 1 auto;
	}
}

/* Custom SVG social icons sitewide ([socialmedia]: footer, location hero,
   contact page). Weedmaps comes as an inline SVG at 1082x645 with its own
   teal/black fills; the theme sizes it 1.125em tall and nudges it up .35em,
   so it sat high and looked oversized. Centre it, size it to the font icons
   and use the link colour like they do. The doubled class outranks the
   theme rule, which loads after this file. */
.social-media-icons .social-icon-single.social-icon-single a:has(> svg) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	line-height: 1;
}

.social-media-icons .social-icon-single.social-icon-single a > svg {
	display: block;
	position: static;
	flex: 0 0 auto;
	width: auto;
	height: .8em;
}

.social-media-icons .social-icon-single.social-icon-single a > svg path {
	fill: currentColor;
}
