/*
 * MMT Internal Pages Styles
 * Preserves styling from the MMT theme for all internal (non-homepage) pages.
 */

/* ---------------------------------------------------------------
   Typography
--------------------------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1 {
	color: #006a72;
	font-size: 2em;
	margin: 0.67em 0;
	text-transform: uppercase;
}

h2 {
	color: #3ba098;
	text-transform: uppercase;
	font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
}

h3.underline:after {
	background-color: #8a1c1f;
	content: "";
	height: 3px;
	margin: 10px auto 0 auto;
	width: 200px;
	display: block;
}

h3.underline[style*="text-align:center"]:after {
	margin: 10px auto 0 auto;
}

@media only screen and (max-width: 700px) {
	h1, h2, h3, h4, h5, h6 {
		font-size: 6vw;
		line-height: initial;
	}
}

p {
	margin-bottom: 1.5em;
}

/* ---------------------------------------------------------------
   Links
--------------------------------------------------------------- */
a {
	color: #8a1c1f;
}

a:visited {
	color: #8a1c1f;
}

a:hover, a:focus, a:active {
	color: #8a1c1f;
}

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.button {
	background-color: #8a1c1f;
	color: #fff;
	display: inline-block;
	font-size: 12px;
	border-radius: 6px;
	padding: 10px 30px;
	text-decoration: none;
	text-transform: uppercase;
}

.button:hover {
	color: #fff;
	background-color: #9c2a2e;
}

.button:visited {
	color: #fff;
}

.wp-block-button__link {
	background-color: #8a1c1f;
	color: #fff !important;
	display: inline-block;
	font-size: 12px;
	border-radius: 6px;
	padding: 10px 30px;
	text-decoration: none;
	text-transform: uppercase;
}

.wp-block-button__link:hover {
	color: #fff;
	background-color: #9c2a2e;
}

.wp-block-file .wp-block-file__button {
	background-color: #8a1c1f;
	color: #fff !important;
	display: inline-block;
	text-decoration: none;
}

.wp-block-file .wp-block-file__button:hover {
	color: #fff;
	background-color: #9c2a2e;
}

.more-link {
	background-color: #8a1c1f;
	color: #fff !important;
	display: inline-block;
	font-size: 12px;
	border-radius: 6px;
	margin: 0 0 0 30px;
	padding: 10px 15px !important;
	text-decoration: none;
	text-transform: uppercase;
}

input[type="submit"] {
	background-color: #8a1c1f;
	border: none;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 12px;
	border-radius: 6px;
	padding: 14px 30px;
	text-decoration: none;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Forms — Request Quote
--------------------------------------------------------------- */
.requestQuote {
	padding: 0 30px 30px 30px;
}

.requestQuote label {
	display: block;
	margin: 15px 0 0 0;
}

.requestQuote input[type="text"],
.requestQuote select,
.requestQuote textarea {
	display: block;
}

.requestQuote input.inline,
.requestQuote label.inline {
	display: inline-block;
}

.requestQuote-success {
	background-color: #adeae6;
	padding: 30px;
}

.requestQuote-error {
	background-color: #f9c4c4;
	display: inline-block;
	width: 100%;
	vertical-align: top;
	margin: 0 0 20px 0;
	padding: 10px 30px;
}

.requestQuote-error h2 {
	color: #8a1c1f;
}

.requestQuote .error {
	color: red;
}

/* ---------------------------------------------------------------
   Body & Page Layout — scoped to internal pages only
--------------------------------------------------------------- */
body {
	background: #127267;
	background-image: url(https://mmtamerica.com/wp-content/uploads/2019/01/bg-site.jpg);
	background-repeat: no-repeat;
	background-size: 100%;
	background-attachment: fixed;
}

#page {
	padding: 0 20px;
}

@media only screen and (max-width: 600px) {
	#page {
		padding: 0;
	}
}

.container {
	background-color: #fff;
	margin: 0 auto;
	max-width: 1200px;
	padding: 0;
}

/* ---------------------------------------------------------------
   Site Header
--------------------------------------------------------------- */
.site-header {
	position: relative;
}

@media only screen and (max-width: 600px) {
	.site-header {
		box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
	}
}

.site-branding {
	display: inline-block;
	margin: 0 -5px 0 0;
	padding: 10px;
	vertical-align: middle;
	width: 50%;
}

.site-cta {
	display: inline-block;
	padding: 10px 20px 10px 0;
	vertical-align: middle;
	text-align: right;
	width: 50%;
}

.site-cta p {
	margin: 0;
}

.site-cta .phone {
	display: inline-block;
	font-size: 27px;
	text-decoration: none;
}

@media only screen and (max-width: 600px) {
	.site-cta {
		text-align: center;
		padding: 0 10px 10px 10px;
		width: 100%;
	}

	.site-cta p {
		display: none;
	}

	.site-cta br {
		display: none;
	}

	.site-cta a {
		display: inline-block;
		vertical-align: middle;
	}

	.site-cta .phone {
		font-size: 16px;
		margin: 0 10px 0 0;
	}

	.site-cta .button {
		padding: 10px 15px;
		font-size: 12px;
	}
}

/* ---------------------------------------------------------------
   Navigation
--------------------------------------------------------------- */
.main-navigation {
	background-color: #58595b;
	clear: both;
	display: block;
	float: left;
	width: 100%;
	text-align: center;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	background-color: #58595b;
	text-align: left;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	display: inline-block;
	position: relative;
}

.main-navigation #primary-menu > li:first-child {
	display: none;
}

.main-navigation .menu-item-has-children.focus .sub-menu {
	display: block !important;
}

@media only screen and (max-width: 600px) {
	.main-navigation #primary-menu > li:first-child {
		display: block;
	}

	.main-navigation li {
		width: 100%;
	}
}

.main-navigation a {
	color: #fff;
	display: block;
	font-size: 14px;
	padding: 10px 15px;
	text-decoration: none;
	text-transform: uppercase;
}

.main-navigation a:hover {
	background-color: #666;
}

.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

.menu-toggle {
	background: none;
	border: none;
	float: right;
	cursor: pointer;
	height: 26px;
	top: 15px;
	right: 20px;
	position: absolute;
	transform: rotate(0deg);
	transition: 0.5s ease-in-out;
	vertical-align: top;
	width: 30px;
}

.menu-toggle span {
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	background: #8a1c1f;
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
	transition: 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) { top: 10px; }
.menu-toggle span:nth-child(4) { top: 20px; }

.menu-toggle.active span:nth-child(1) { top: 10px; width: 0%; left: 50%; }
.menu-toggle.active span:nth-child(2) { transform: rotate(45deg); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }
.menu-toggle.active span:nth-child(4) { top: 10px; width: 0%; left: 50%; }

@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: block;
	}
}

/* ---------------------------------------------------------------
   Content Areas
--------------------------------------------------------------- */
.page-header {
	padding: 0 30px;
}

.entry-content > *:not(.no-gutter),
.page-content > *:not(.no-gutter) {
	padding: 0 30px;
}

.entry-footer {
	font-size: 12px;
	padding: 30px;
}

.entry-footer .cat-links {
	margin: 0 20px 0 0;
}

.entry-header {
	padding: 0 30px;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.posts-navigation {
	padding: 0 30px;
}

.post-navigation {
	display: none;
}

.edit-link a {
	background-color: blue;
	border-radius: 6px;
	color: #fff;
	display: inline-block;
	font-size: 12px;
	padding: 10px 30px;
	text-decoration: none;
	text-transform: uppercase;
}

article.post footer.entry-footer {
	margin-top: 40px;
}

/* ---------------------------------------------------------------
   Pre-footer & Site Footer
--------------------------------------------------------------- */
.pre-footer {
	background-image: url(https://mmtamerica.com/wp-content/uploads/2019/01/bg-pre-footer.jpg);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	padding: 40px 30px;
}

.pre-footer h3 {
	border-bottom: 1px solid #555;
	display: inline-block;
	margin: 0 30px 0 0;
	padding: 0 0 10px 0;
	vertical-align: top;
	font-weight: 100;
	width: 300px;
}

.pre-footer-states {
	display: flex;
	float: right;
	vertical-align: top;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	width: calc(100% - 330px);
}

.pre-footer ul {
	margin: 0;
	padding: 0;
	flex-basis: 25%;
}

.pre-footer li {
	list-style: none;
	font-size: 14px;
}

@media only screen and (max-width: 980px) {
	.pre-footer h3 {
		display: inline-block;
		margin: 0 0 30px 0;
	}

	.pre-footer-states {
		width: 100%;
	}
}

@media only screen and (max-width: 650px) {
	.pre-footer h3 {
		width: auto;
	}

	.pre-footer-states ul {
		flex-basis: 50%;
	}
}

.site-footer {
	font-size: 14px;
	padding: 20px 30px;
	color: #666;
}

.site-footer p {
	margin: 0;
}

.site-info {
	display: inline-block;
	margin: 0 -5px 0 0;
	vertical-align: top;
	width: 50%;
}

.site-info-right {
	text-align: right;
}

.site-info .facebook {
	background-image: url(https://mmtamerica.com/wp-content/uploads/2019/01/ico-facebook.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	display: inline-block;
	vertical-align: top;
	height: 38px;
	width: 38px;
	text-indent: 9999px;
	overflow: hidden;
}

@media only screen and (max-width: 800px) {
	.site-info {
		padding: 10px 0;
		text-align: center;
		width: 100%;
	}
}

/* ---------------------------------------------------------------
   Banner Block
--------------------------------------------------------------- */
.banner {
	display: inline-block;
	grid-template-columns: initial;
	margin: 0 0 60px 0;
	width: 100%;
	vertical-align: top;
}

.banner h2 {
	color: #404040;
	font-weight: 700;
}

.banner figure {
	display: inline-block;
	vertical-align: middle;
	grid-area: initial;
	width: 430px;
}

.banner .wp-block-media-text__content {
	padding: 0 40px;
	width: calc(100% - 430px);
	display: inline-block;
	vertical-align: middle;
}

@media only screen and (max-width: 1100px) {
	.banner figure {
		width: 100%;
	}

	.banner .wp-block-media-text__content {
		width: 100%;
	}
}

/* ---------------------------------------------------------------
   FAQ Styles
--------------------------------------------------------------- */
.category-faq .entry-meta,
body.category-faq .entry-content {
	display: none;
}

.category-faq h1,
.category-faq h2 {
	text-transform: none;
}

.category-faq .entry-footer {
	padding: 0 30px;
}

.faq-questions h3.wp-block-post-title a {
	color: #404040;
	text-decoration: none;
	font-size: 16px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
}

.faq-questions li:first-child {
	margin-top: -10px;
}

.faq-questions li {
	margin: 0;
}

.faq-questions h3.wp-block-post-title {
	margin-top: 0;
	margin-bottom: 10px;
}

.faq-questions h3.wp-block-post-title a:hover {
	color: #8a1c1f;
}

.faq-questions h3.wp-block-post-title a:after {
	content: "\f061";
	font: var(--fa-font-light);
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	margin-left: 10px;
	transition-property: all;
	transition-timing-function: ease-in-out;
	transition-duration: 0.2s;
	opacity: 0;
}

.faq-questions h3.wp-block-post-title a:hover:after {
	margin-left: 20px;
	opacity: 1;
}

/* ---------------------------------------------------------------
   Info Message
--------------------------------------------------------------- */
.info-message {
	color: #404040;
	border: 1px solid transparent;
	background-color: #fffccc;
	border-color: #777777;
	padding: 0.75rem 1.25rem;
	border-radius: 0.25rem;
	margin: 0 30px;
}

.info-message h2 {
	color: #404040;
	text-transform: none;
}

/* ---------------------------------------------------------------
   Icon Row
--------------------------------------------------------------- */
.icon-row {
	align-items: flex-start !important;
	display: none !important;
	margin-top: 50px;
}

.icon-row i {
	color: #8a1c1f;
}

.icon-row .wp-block-group {
	flex: 1;
	min-width: 180px;
	text-align: center;
	margin-bottom: 20px;
}

@media (min-width: 782px) {
	.icon-row {
		display: flex !important;
	}
}

/* ---------------------------------------------------------------
   Columns (3-column blocks)
--------------------------------------------------------------- */
.has-3-columns > .wp-block-column:last-child {
	margin-right: 0;
}

@media only screen and (max-width: 782px) {
	.has-3-columns > .wp-block-column {
		margin: 0 !important;
	}

	.has-3-columns > .wp-block-column:nth-child(1),
	.has-3-columns > .wp-block-column:nth-child(3) {
		padding: 0 20px 0 0;
	}

	.has-3-columns > .wp-block-column:nth-child(2) {
		padding: 0 0 0 20px;
	}
}

@media only screen and (max-width: 600px) {
	.has-3-columns > .wp-block-column {
		margin: 0 !important;
	}

	.has-3-columns > .wp-block-column:nth-child(1),
	.has-3-columns > .wp-block-column:nth-child(2),
	.has-3-columns > .wp-block-column:nth-child(3) {
		padding: 0;
	}
}

/* ---------------------------------------------------------------
   WP Block Images
--------------------------------------------------------------- */
@media only screen and (max-width: 700px) {
	.wp-block-image .alignright {
		margin: 10px 0;
		width: 100%;
	}
}

/* ---------------------------------------------------------------
   CTA Banner
--------------------------------------------------------------- */
.ctaBanner {
	background-color: #58595b1d;
	margin: 40px 0;
	padding: 30px !important;
	gap: 30px;
}

/* ---------------------------------------------------------------
   Grid Cards
--------------------------------------------------------------- */
.gridCards {
	margin-bottom: 60px;
	gap: 40px 20px;
}

.gridCards-card {
	align-items: center !important;
	text-align: center;
}

.gridCards-card i {
	font-size: 40px;
	color: #8a1c1f;
}

.gridCards-card h2,
.gridCards-card h3,
.gridCards-card h4 {
	margin-bottom: 15px;
}

/* ---------------------------------------------------------------
   List Special
--------------------------------------------------------------- */
.listSpecial {
	padding: 0;
	margin-left: 0;
	display: flex;
	flex-direction: row;
	gap: 10px 30px;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.listSpecial li {
	list-style: none;
	margin: 0 0 20px 0;
}

.listSpecial li::before {
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font: var(--fa-font-solid);
	font-size: 27px;
	content: "\f14a";
	color: #58595b;
	margin: 0 10px 0 0;
	transform: translateY(3px);
}

@media (min-width: 768px) {
	.listSpecial {
		display: flex;
		flex-direction: row;
		gap: 10px 30px;
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* ---------------------------------------------------------------
   List Quote
--------------------------------------------------------------- */
.listQuote {
	padding: 0;
	margin-left: 0;
}

.listQuote li {
	list-style: none;
	margin: 0 0 20px 0;
}

.listQuote li::before {
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font: var(--fa-font-solid);
	content: "\f10d";
	color: var(--color-primary);
	margin: 5px 10px 0 0;
}

/* ---------------------------------------------------------------
   Divider & Cover
--------------------------------------------------------------- */
hr.divider-line {
	border-top: none;
}

.coverRounded {
	border-radius: 6px;
	overflow: hidden;
}

/* ---------------------------------------------------------------
   Numbered List Spacing (FAQ answers)
--------------------------------------------------------------- */
ol.numbered-list-spacing li {
	margin-bottom: 20px;
}

ol.numbered-list-spacing li em {
	margin-top: 10px;
}

/* ---------------------------------------------------------------
   Masonry Gallery
--------------------------------------------------------------- */
.is-style-masonry.columns-default {
	-webkit-columns: 3;
	-moz-columns: 3;
	columns: 3;
}

.is-style-masonry {
	display: block !important;
}

.is-style-masonry .wp-block-image {
	width: 100% !important;
	margin-bottom: var(--wp--style--unstable-gallery-gap) !important;
}

.is-style-masonry.columns-1 { -webkit-columns: 1; -moz-columns: 1; columns: 1; }
.is-style-masonry.columns-2 { -webkit-columns: 2; -moz-columns: 2; columns: 2; }
.is-style-masonry.columns-3 { -webkit-columns: 3; -moz-columns: 3; columns: 3; }
.is-style-masonry.columns-4 { -webkit-columns: 4; -moz-columns: 4; columns: 4; }
.is-style-masonry.columns-5 { -webkit-columns: 5; -moz-columns: 5; columns: 5; }
.is-style-masonry.columns-6 { -webkit-columns: 6; -moz-columns: 6; columns: 6; }
.is-style-masonry.columns-7 { -webkit-columns: 7; -moz-columns: 7; columns: 7; }
.is-style-masonry.columns-8 { -webkit-columns: 8; -moz-columns: 8; columns: 8; }

/* ---------------------------------------------------------------
   Utility
--------------------------------------------------------------- */
.hidden {
	display: none;
}

section.no-results {
	padding: 0 0 30px 0;
}

/* IE 10/11 fix */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	.wp-block-column {
		flex-basis: 29.5%;
	}
}
