/*!
Theme Name: FDM Antifungal
Theme URI: http://underscores.me/
Version: 1.0.0
*/

/* Variables */
:root {
	--color-green: #b4bd00;
	--color-gray: #45464b;
	--color-gray--light: #f9f8f4;
	--color-accent: #01744a;
	--shadow-primary: 0 3px 3px 0 rgba(0, 0, 0, 0.25);
	--font-main: 'Montserrat', sans-serif;
	--font-alt:  'Amaranth', 'Montserrat', sans-serif;
}
:where(.desktop-only) {
	display: none;
}
.terrasilStyle {
	font-family: 'truenosemibold', 'Montserrat', sans-serif;
	font-weight: 500;
	letter-spacing: -0.0625rem;
	color: var(--color-gray);
	sub {
		font-size: 35%;
		vertical-align: baseline;
		bottom: 0;
	}
}
.af-green {
	color: var(--color-accent);
}
body {
	font-family: var(--font-main);
	accent-color: var(--color-accent);
	color: var(--color-gray);
}

.button {
	.wp-block-button__link {
		border: 1px solid var(--color-gray);
		box-shadow: var(--shadow-primary) !important;
	}
	&.--primary {
		.wp-block-button__link {
			background-color: var(--color-green);
		}
	}
	&.--secondary {
		.wp-block-button__link {
			background-color: var(--color-gray--light);
		}
	}
	&.--short {
		.wp-block-button__link {
			padding: 2px 42px !important;
		}
	}
	.wp-block-button__link > div {
		color: var(--color-gray);
		font-size: clamp(1.25rem, 0.776rem + 2.108vw, 2.125rem);
	}
}
.wp-block-button {
	transition: transform 200ms ease-in-out;
}
.wp-block-button:hover {
	transform: translateY(-2px);
}
a.button {
	color: var(--color-gray);
	display: block;
	border: 1px solid var(--color-gray);
	box-shadow: var(--shadow-primary);
	padding: 0;
	border-radius: 30px;
	font-weight: 700;
	width: 100%;
	transition: transform 200ms ease-in-out, filter 200ms ease-in-out;
	text-align: center;
	line-height: 1.35;
	&.--larger {
		font-size: clamp(1.75rem, 1.547rem + 0.904vw, 2.125rem);
		height: auto;
		margin: 1.25rem auto;
		width: fit-content;
		padding: 0 3rem;
		@media (min-width: 960px) {
			min-width: 400px;
		}
	}
	&.--primary {
		background-color: var(--color-green);
	}
	&.--secondary {
		background-color: var(--color-gray--light);
	}
	&:hover, &:focus {
		transform: translateY(-2px);
		filter: brightness(1.1);
	}
}

.flexed {
	display: flex;
	&.flex-wrapped {
		flex-wrap: wrap;
	}
	&.vertAlign {
		align-items: center;
	}
	&.middle-align {
		justify-content: center;
	}
	&.ended {
		justify-content: flex-end;
	}
	&.columned {
		flex-direction: column;
	}
	&.justify-space-between {
		justify-content: space-between;
	}
	&.justify-space-around {
		justify-content: space-around;
	}
	&.justify-centered {
		justify-content: center;
	}
}

#masthead {
	background-color: var(--color-green);
	width: 100%;
	height: clamp(4.375rem, 3.02rem + 6.024vw, 6.875rem);
	section {
		display: grid;
		grid-template-columns: 1fr 4fr 1fr;
		align-items: center;
		height: 70px;
		padding: 1rem 8px 0;
		max-width: 1280px;
		margin: 0 auto;
		@media (min-width: 640px) {
			padding: 1rem 12px 0;
			grid-template-columns: 150px 4fr 150px;
		}
	}
}
.site-nav-wrap {
	width: fit-content;
}
.mob-wrapper {
  cursor: pointer;
  margin: 0;
  width: 28px;
  height: 20px;
	display: block;
	margin: 0 0 10px 0;
	.mob-deco {
		background: var(--color-gray);
		width: 28px;
		height: 3px;
		border-radius: 4px;
		position: relative;
		transition: background 10ms 300ms ease;
		transform: translateY(-50%);
		top: 50%;
		@media (min-width: 768px) {
			display: none;
		}
		&::before, &::after {
			transition: top 300ms 350ms ease, transform 300ms 50ms ease;
			position: absolute;
			background: var(--color-gray);
			width: 28px;
			height: 3px;
			border-radius: 4px;
			content: "";
		}
		&::before {
			top: -6px;
		}
		&::after {
			top: 6px;
		}
	}
}
.menu-trigger:checked ~ .mob-wrapper .mob-deco {
  background: transparent;
}
.menu-trigger:checked ~ .mob-wrapper .mob-deco:after,
.menu-trigger:checked ~ .mob-wrapper .mob-deco:before {
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  top: 0;
}
.menu-trigger:checked ~ .mob-wrapper .mob-deco:before {
  transform: rotate(45deg);
}
.menu-trigger:checked ~ .mob-wrapper .mob-deco:after {
  transform: rotate(-45deg);
}
#site-navigation {
	display: block;
	position: absolute;
	width: 100%;
	height: calc(100dvh - clamp(4.375rem, 3.02rem + 6.024vw, 6.875rem));
	min-height: 100svh;
	content-visibility: auto;
	overscroll-behavior: contain;
	top: clamp(4.375rem, 3.02rem + 6.024vw, 6.875rem);
	left: 0;
	background-color: var(--color-gray--light);
	padding: 18px 4px 8px;
	z-index: 100;
	transform: translateX(-100vw);
	transition: transform 500ms ease-in-out;
}
.menu-trigger:checked ~ #site-navigation {
	transform: translateX(0);
}
#innerNavigation {
	margin: 0 auto;
	max-width: 1280px;
	padding: 3rem 1rem 1rem;
	list-style-type: none;
	li {
		padding-bottom: 2.5rem;
		a {
			color: var(--color-gray);
			font-weight: 500;
			font-size: 2rem;
			&:hover {
				color: var(--color-green);
			}
		}
	}
}
.site-branding {
	width: fit-content;
	margin: 0 auto;
	img {
		position: relative;
		width: clamp(10.938rem, 6.194rem + 21.084vw, 19.688rem);
		height: auto;
		aspect-ratio: 646 / 250;
		margin: auto;
		z-index: 101;
	}
}
.nav-cta {
	display: none;
	justify-content: flex-end;
	transform: translateY(-5px);
	@media (min-width: 640px) {
		display: grid;
	}
	.button {
		max-width: 160px;
		border: 1px solid rgba(255,255,255,0.4);
		border-radius: 7.5px;
		text-align: center;
		display: block;
		align-content: center;
		color: #fff;
		height: 30px;
		width: max-content;
		font-weight: 600;
		font-size: 0.94rem;
		padding: 0 0.5rem;
		line-height: 1;
		transition: all 0.12s ease-in-out;
		&::after {
			content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' stroke='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
			margin-left: 0.25rem;
			display: inline-block;
			position: relative;
			top: 1.5px;
		}
		&:hover, &:focus {
			box-shadow: none;
			border-style: inset;
			transform: translateY(1px);
			filter: blur(0.4px);
		}
	}
}
.entry-content {
	max-width: 1280px;
	margin: 0 auto;
}
#footerNav {
	background-color: var(--color-accent);
	padding: 1.25rem 0;
	width: 100%;
	nav {
		max-width: 1280px;
		margin: 0 auto;
	}
	ul {
		list-style-type: none;
		max-width: 550px;
		gap: 1.25rem;
		padding: 0 2rem;
		li {
			text-align: center;
		}
		a {
			color: #fff;
			&:hover, &:focus {
				color: var(--color-gray--light);
				text-decoration: underline;
				text-underline-offset: 4px;
				text-decoration-style: dotted;
			}
		}
		img {
			width: 14px;
			height: auto;
			display: inline-block;
			margin-left: 0.125rem;
		}
	}
}
.site-footer {
	border-top: 1px solid var(--color-gray--light);
	padding: 1.25rem 2rem;
	font-size: 0.94rem;
	strong {
		color: var(--color-accent);
	}
}
.split-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-gray);
	border-radius: 15px;
	box-shadow: var(--shadow-primary);
	img {
		max-height: 32px;
		margin: 6px auto;
	}
	&:first-child {
		img {
			max-height: 56px;
			margin: 0 auto;
		}
		> div:first-child {
			max-height: 68px;
		}
	}
	> div {
		font-size: 1.125rem;
	}
	> div:first-child {
		border-bottom: 1px solid var(--color-gray);
		box-shadow: var(--shadow-primary);
		width: 100%;
		padding: 0.25rem 0;
		max-height: 50px;
		background-color: var(--color-gray--light);
		border-radius: 15px 15px 0 0;
	}
	> div:last-child {
		padding: 0.5rem 0;
	}
}
.inset-block {
	margin: 0 auto;
	width: 300px;
	padding: 40px 30px;
	background-color: #fff;
	box-shadow: -1px 2px 6px 0 rgba(0, 0, 0, 0.25) inset;
	border-radius: 15px;
	position: relative;
	z-index: 100;
	> .flexed {
		text-align: center;
		p {
			display: inline-block;
			margin: 0 auto 1rem;
			padding: 0;
			font-weight: 500;
		}
		> div img {
			width: 85%;
			height: auto;
			margin: 0 auto;
			max-width: 225px;
			@media (min-width: 550px) {
				margin-bottom: 0;
			}
			&[alt="Walgreens"] {
				width: 70%;
				@media (min-width: 550px) {
					width: 68%;
					max-width: 180px;
					padding-bottom: 12px;
				}
				@media (min-width: 960px) {
					width: 56%;
					max-width: 192px;
				}
			}
		}
		a {
			font-size: 1.125rem;
			padding: 0.125rem 0;
			max-width: 90%;
			margin: 0 auto;
		}
		.divider {
			width: 100%;
			height: 1px;
			background-color: #87888A;
			margin: 2rem auto;
		}
	}
	&.page-end .flexed div img[alt="Walgreens"] {
		width: 76%;
		padding-bottom: 8px;
	}
}

@media (min-width: 768px) {
	.desktop-only {
		display: block;
	}
	.mobile-only {
		display: none !important;
	}
	#site-navigation {
		position: static;
		width: fit-content;
		height: auto;
		min-height: unset;
		content-visibility: unset;
		background-color: transparent;
		padding: 0;
		transform: translateY(-1.25rem);
		transition: none;
		width: max-content;
	}
	#innerNavigation {
		margin: 0;
		padding: 0;
		display: flex;
		column-gap: 1rem;
		align-items: center;
		li {
			padding: 0;
			&:first-child {
				display: none;
			}
			a {
				font-size: clamp(0.875rem, 0.446rem + 0.893vw, 1.25rem);
				font-weight: 600;
				color: #fff;
				&:hover, &:focus {
					color: var(--color-gray);
				}
			}
		}
	}
	.nav-cta .button {
		font-size: clamp(0.94rem, 0.586rem + 0.738vw, 1.25rem);
		&::after {
			top: -0.5px;
		}
	}
}