/*
 * MBM Theme - Main Styles
*/

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */

:root {
	/* Colors */
	--teal: #07323d;
    --gold: #fbb716;
    --gold-dark: #d89a0b;
    --teal-light: #0785a3;
    --gray: #dbdbdb;
    --teal-transparency: rgba(7, 50, 61, 0.65);
    --dark-gray: #808080;
    --gray-gradient: linear-gradient(180deg, rgba(45, 45, 45, 1) 29%, rgba(56, 56, 56, 1) 100%);
    --gray-gradient-reverse: linear-gradient(0deg, rgba(45, 45, 45, 1) 29%, rgba(56, 56, 56, 1) 100%);
    --blue-dark: #1b6b9f;
    --blue: #4191c5;
    --yellow: #fbb716;
    --green: #9bc33e;
    --black: #2b2b2b;
    --dark-gray-start: #2d2d2d;
    --dark-gray-end: #383838;
    --white: #ffffff;
    --medium-gray: #dbdbdb;
    --light-gray: #dbdbdb;
    --black: #000;

	--color-text: #111111;
	--color-bg: #ffffff;
	--color-link: #4392C7;
	--color-link-hover: #3377a5;
	--color-primary: #4392C7;
	--color-menu-bg: #232323;
	--color-black: #000000;
	--color-dark: #2C2C2C;
	--color-white: #ffffff;
	--color-header-text: var(--color-text);
	--header-desktop-height: 82px;
	--header-container-padding-x: 50px;
	--section-padding-y: clamp(3.5rem, 7vw, 5.5rem);

	/* Typography */
	--font-family: "avenir", sans-serif;
	--font-family-heading: "dm-serif-display", serif;
	--font-size-base: 16px;
	--font-weight-normal: 400;
	--font-weight-semibold: 600;
	--line-height-base: 1.5;

	/* Breakpoints (for reference; use in media queries) */
	--bp-mobile: 767px;
	--bp-tablet: 991px;
	--bp-desktop: 992px;

	/* Transitions */
	--transition-color: color 0.4s;
	--transition-link-underline: all 0.3s;
}

/* ==========================================================================
   2. Fonts
   ========================================================================== */

/* Avenir LT Std */
@font-face {
	font-family: "avenir";
	src: url("../fonts/avenir/avenirltstd-book-webfont.woff2") format("woff2"),
		url("../fonts/avenir/avenirltstd-book-webfont.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "avenir";
	src: url("../fonts/avenir/avenirltstd-roman-webfont.woff2") format("woff2"),
		url("../fonts/avenir/avenirltstd-roman-webfont.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "avenir";
	src: url("../fonts/avenir/avenirltstd-black-webfont.woff2") format("woff2"),
		url("../fonts/avenir/avenirltstd-black-webfont.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "avenir";
	src: url("../fonts/avenir/avenirltstd-black-webfont.woff2") format("woff2"),
		url("../fonts/avenir/avenirltstd-black-webfont.woff") format("woff");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* DM Serif Display */
@font-face {
	font-family: "dm-serif-display";
	src: url("../fonts/dm-serif-display/DMSerifDisplay-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "dm-serif-display";
	src: url("../fonts/dm-serif-display/DMSerifDisplay-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

html {
	width: 100%;
}

body {
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	color: var(--color-text);
	background-color: var(--color-bg);
	width: 100%;
}

#main {
	overflow-x: clip;
}

/* Admin bar: hidden when theme option is on and user has no override (body.mbm-hide-admin-bar) */
body.mbm-hide-admin-bar #wpadminbar {
	display: none !important;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1,
h2 {
	font-family: var(--font-family-heading);
	font-weight: 400;
}

strong {
	font-weight: var(--font-weight-semibold);
}

ul,
ol {
	padding-left: 1rem;
}

ul li {
	line-height: var(--line-height-base);
}

ul li.menu-item {
	line-height: 1em;
	display: flex;
}

/* ==========================================================================
   5. Links
   ========================================================================== */

a,
a:link,
a:visited,
a:active {
	text-decoration: none;
	color: var(--color-link);
	transition: var(--transition-color);
}

a:hover {
	color: var(--color-link-hover);
}

/* ==========================================================================
   6. Utilities
   ========================================================================== */

/* [hide_on_mobile] shortcode */
@media (max-width: 767px) {
	.hide-on-mobile {
		display: none !important;
	}
}

.mbm-section-container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
	padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.container.mbm-section-container--default {
	max-width: 1320px;
}

.mbm-section-container--large {
	max-width: 1500px;
}

.mbm-section-container--full {
	max-width: none;
}

@media (max-width: 767px) {
	.container,
	.container-fluid,
	.container-lg,
	.container-md,
	.container-sm,
	.container-xl,
	.container-xxl,
	.mbm-section-container {
		padding-right: calc(var(--bs-gutter-x, 1.5rem) * 1);
		padding-left: calc(var(--bs-gutter-x, 1.5rem) * 1);
	}
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   7. Header
   ========================================================================== */

header#main-header.site-header {
	position: relative;
	z-index: 100;
	width: 100%;
	overflow: visible;
	background: var(--gray-gradient);
	color: var(--white);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.site-header__container {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding-left: var(--header-container-padding-x);
	padding-right: var(--header-container-padding-x);
}

.site-header__contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
}

.site-header__cta,
.site-header__cta:link,
.site-header__cta:visited,
.site-header__cta:active {
	min-width: 8.5rem;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	background-color: var(--blue);
	color: var(--white);
}

.site-header__phone,
.site-header__phone:link,
.site-header__phone:visited,
.site-header__phone:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: var(--white);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
	color: var(--gold);
}

.site-header__phone-icon {
	display: block;
	width: auto;
	height: 18px;
	flex: 0 0 auto;
	filter: brightness(0) invert(1);
}

body.has-sticky-header {
	padding-top: var(--site-header-height, var(--header-desktop-height));
}

body.has-sticky-header header#main-header.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

body.has-sticky-header header#main-header.site-header.site-header--scrolled {
	box-shadow: 0 0 20px -10px #000;
}

body.has-smart-header header#main-header.site-header.site-header--hidden {
	transform: translateY(-100%);
}

body.admin-bar.has-sticky-header:not(.mbm-hide-admin-bar) header#main-header.site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.has-sticky-header:not(.mbm-hide-admin-bar) header#main-header.site-header {
		top: 46px;
	}

	.site-header__container {
		padding-left: 10px;
		padding-right: 10px;
	}
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	min-height: var(--header-desktop-height);
	gap: 32px;
}

@media (min-width: 767px) {
	.site-header__inner {
		padding: 20px 0;
	}
}

.site-header__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	width: 220px;
	color: inherit;
}

.site-header__logo picture {
	display: contents;
}

.site-header__logo-img {
	display: block;
	width: 100%;
	height: auto;
}

.site-header__nav {
	display: flex;
	justify-content: flex-end;
	min-width: 0;
	overflow: visible;
}

.menu-column,
.primary-menu-container {
	width: 100%;
}

#top-menu.nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(18px, 2vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

#top-menu.nav li {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

#top-menu.nav li a {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--white);
	font-family: var(--font-family);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

#top-menu.nav > li > a::after,
#top-menu.nav > li > .menu-item__bar > a::after {
	position: absolute;
	left: 0;
	bottom: -0.45em;
	width: 100%;
	height: 2px;
	content: "";
	background: var(--blue);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

#top-menu.nav li a:hover,
#top-menu.nav li a:focus-visible {
	color: var(--blue);
}

#top-menu.nav > li > a:hover::after,
#top-menu.nav > li > a:focus-visible::after,
#top-menu.nav > li:hover > a::after,
#top-menu.nav > li:focus-within > a::after,
#top-menu.nav > li > .menu-item__bar > a:hover::after,
#top-menu.nav > li > .menu-item__bar > a:focus-visible::after,
#top-menu.nav > li:hover > .menu-item__bar > a::after,
#top-menu.nav > li:focus-within > .menu-item__bar > a::after {
	transform: scaleX(1);
}

.menu-item__bar {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.menu-item__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--white);
	cursor: pointer;
}

.menu-item__chevron {
	display: block;
	width: 0.4rem;
	height: 0.4rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.2s ease;
}

#top-menu.nav .menu-item-has-children:hover > .sub-menu,
#top-menu.nav .menu-item-has-children:focus-within > .sub-menu,
#top-menu.nav .menu-item-has-children.is-top-menu-active > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.menu-item-has-children:hover > .menu-item__bar .menu-item__chevron,
.menu-item-has-children:focus-within > .menu-item__bar .menu-item__chevron,
.menu-item-has-children.is-top-menu-active > .menu-item__bar .menu-item__chevron {
	transform: rotate(225deg) translateY(-1px);
}

#top-menu.nav .sub-menu {
	position: absolute;
	top: calc(100% + 22px);
	left: 0;
	z-index: 200;
	min-width: 220px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#top-menu.nav > .menu-item-has-children > .sub-menu::before {
	content: "";
	position: absolute;
	top: -22px;
	left: 0;
	width: 100%;
	height: 22px;
}

#top-menu.nav .sub-menu li a {
	display: block;
	padding: 0.65rem 1.15rem;
	color: var(--dark-gray-start);
	font-size: 0.9375rem;
}

#top-menu.nav .sub-menu li a:hover,
#top-menu.nav .sub-menu li a:focus-visible {
	color: var(--blue);
}

#top-menu.nav .sub-menu li + li {
	margin-top: 12px;
}

.site-header__actions,
.site-header__drawer-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.site-header__actions .mbm-button__text {
	font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding-top: 2px;
}

.site-header__drawer-actions {
	display: none;
}

.site-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.site-header__menu-toggle-box {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}

.site-header__menu-toggle-line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--white);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__menu-toggle-line:nth-child(1) {
	top: 0;
}

.site-header__menu-toggle-line:nth-child(2) {
	top: 6px;
}

.site-header__menu-toggle-line:nth-child(3) {
	top: 12px;
}

.site-header__menu-toggle.is-active .site-header__menu-toggle-line:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.site-header__menu-toggle.is-active .site-header__menu-toggle-line:nth-child(2) {
	opacity: 0;
}

.site-header__menu-toggle.is-active .site-header__menu-toggle-line:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

@media (max-width: 1399px) {
	.site-header__inner {
		gap: 20px;
	}

	.site-header__logo {
		width: 190px;
	}

	#top-menu.nav {
		gap: 22px;
	}
}

@media (max-width: 1139px) {
	body.mobile-menu-open {
		position: fixed;
		left: 0;
		right: 0;
		width: 100%;
		overflow: hidden;
	}

	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.site-header__brand {
		grid-column: 1;
		grid-row: 1;
	}

	.site-header__nav {
		grid-column: 1 / -1;
		grid-row: 1;
		justify-content: flex-start;
		width: 0;
		height: 0;
		min-height: 0;
		overflow: visible;
	}

	.site-header__actions {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	.site-header__actions > .site-header__contact {
		display: none;
	}

	.site-header__menu-toggle {
		display: inline-flex;
	}

	.menu-column {
		position: fixed;
		top: var(--site-header-height, var(--header-desktop-height));
		left: 0;
		width: 100%;
		height: calc(100dvh - var(--site-header-height, var(--header-desktop-height)));
		padding: 40px 32px;
		background: var(--dark-gray-start);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateX(100%);
		transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
	}

	.menu-column.show {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}

	#top-menu.nav {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	#top-menu.nav > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	#top-menu.nav > li > a::after,
	#top-menu.nav > li > .menu-item__bar > a::after {
		content: none;
	}

	#top-menu.nav li a {
		width: 100%;
		padding: 18px 0;
		font-size: 1.25rem;
	}

	#top-menu.nav > .menu-item-has-children.is-submenu-open > .menu-item__bar > a,
	#top-menu.nav > .menu-item-has-children.is-submenu-open > .menu-item__bar .menu-item__toggle {
		color: var(--gold);
	}

	.menu-item__bar {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.menu-item__toggle {
		width: 44px;
		height: 58px;
	}

	#top-menu.nav .menu-item-has-children:hover > .sub-menu,
	#top-menu.nav .menu-item-has-children:focus-within > .sub-menu,
	#top-menu.nav .menu-item-has-children.is-top-menu-active > .sub-menu {
		opacity: 0;
		visibility: hidden;
		transform: none;
	}

	#top-menu.nav .menu-item-has-children.is-submenu-open > .sub-menu {
		display: block;
		opacity: 1;
		visibility: visible;
	}

	.menu-item-has-children.is-submenu-open > .menu-item__bar .menu-item__chevron {
		transform: rotate(225deg) translateY(-1px);
	}

	#top-menu.nav > .menu-item-has-children > .sub-menu::before {
		content: none;
	}

	#top-menu.nav .sub-menu {
		position: static;
		top: auto;
		display: none;
		min-width: 0;
		margin: 0 0 14px;
		padding: 2px 0 6px 14px;
		background: transparent;
		border-left: 2px solid rgba(251, 183, 22, 0.55);
		border-radius: 0;
		box-shadow: none;
		transform: none;
		transition: none;
	}

	#top-menu.nav .sub-menu li + li {
		margin-top: 0;
	}

	#top-menu.nav .sub-menu li a {
		width: auto;
		padding: 11px 12px;
		border-radius: 8px;
		color: rgba(255, 255, 255, 0.78);
		font-size: 1rem;
		line-height: 1.3;
	}

	#top-menu.nav .sub-menu li a:hover,
	#top-menu.nav .sub-menu li a:focus-visible {
		color: var(--white);
		background: rgba(255, 255, 255, 0.08);
	}

	.site-header__drawer-actions {
		display: flex;
		justify-content: flex-start;
		margin-top: 32px;
	}

	.site-header__drawer-actions .site-header__contact {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 1rem;
	}
}

@media (max-width: 767px) {
	:root {
		--header-desktop-height: 72px;
	}

	.site-header__inner {
		min-height: var(--header-desktop-height);
		padding: 10px 0;
	}

	.site-header__logo {
		width: min(100%, 160px);
	}

	.menu-column {
		padding: 32px 20px;
	}

	.site-header__brand {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: auto;
	}
}

/* ==========================================================================
   10. WordPress required (alignments, captions, sticky)
   ========================================================================== */

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
	border-radius: 3px;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption-dd {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}

.sticky {
	background: #f7f7f7;
	padding: 0 10px 10px;
}

.sticky h2 {
	padding-top: 10px;
}

.site-footer {
	background: #4a4a4a;
	color: var(--white);
	padding: var(--section-padding-y) 0 1.75rem;
}

.site-footer .site-header__container {
	max-width: 1320px;
}

@media (min-width: 992px) {
	.site-footer .site-header__container {
		padding-left: 0;
		padding-right: 0;
	}
}

.site-footer__main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(4rem, 5vw, 4.5rem);
}

.site-footer__logo {
	display: inline-flex;
	width: 180px;
	margin-bottom: 1rem;
}

.site-footer__logo picture,
.site-footer__logo-img {
	display: block;
	width: 100%;
	height: auto;
}

.site-footer__about {
	max-width: 22rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	line-height: 1.55;
}

.site-footer__menus {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 1.5rem clamp(2rem, 4vw, 4.5rem);
	margin-left: auto;
}

.site-footer__column-title {
	margin: 0 0 1rem;
	color: var(--gold);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.site-footer__menu,
.site-footer__legal-menu {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu a,
.site-footer__legal-menu a {
	position: relative;
	display: inline-flex;
	width: fit-content;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.95rem;
	line-height: 1.4;
}

.site-footer__menu a::after,
.site-footer__legal-menu a::after {
	position: absolute;
	left: 0;
	bottom: -0.2em;
	width: 100%;
	height: 2px;
	content: "";
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible,
.site-footer__legal-menu a:hover,
.site-footer__legal-menu a:focus-visible {
	color: var(--gold);
}

.site-footer__menu a:hover::after,
.site-footer__menu a:focus-visible::after,
.site-footer__legal-menu a:hover::after,
.site-footer__legal-menu a:focus-visible::after {
	transform: scaleX(1);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 1.25rem;
}

.site-footer__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.3);
	font-size: 0.875rem;
}

.site-footer__legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.site-footer__legal-menu a {
	color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 991px) {
	.site-footer__main {
		flex-direction: column;
	}

	.site-footer__menus {
		grid-template-columns: 1fr;
		margin-left: 0;
	}
}

@media (max-width: 767px) {
	.site-footer__main,
	.site-footer__bottom {
		align-items: center;
		text-align: center;
	}

	.site-footer__bottom {
		flex-direction: column;
	}

	.site-footer__brand,
	.site-footer__column,
	.site-footer__menu,
	.site-footer__legal-menu,
	.site-footer__menu a,
	.site-footer__legal-menu a {
		text-align: center;
	}

	.site-footer__menu,
	.site-footer__legal-menu {
		justify-items: center;
		padding-left: 0;
	}

	.site-footer__menu .menu-item {
		justify-content: center;
		width: 100%;
	}

	.site-footer__legal-menu .menu-item {
		width: auto;
	}

	.site-footer__logo,
	.site-footer__about {
		margin-left: auto;
		margin-right: auto;
	}

	.site-footer__logo {
		width: 220px;
	}

	.site-footer__about {
		font-size: 16px;
	}

	.site-footer__column-title,
	.site-footer__menu a {
		font-size: 1rem;
	}

	.site-footer__legal {
		order: 1;
	}

	.site-footer__copyright {
		order: 2;
	}

	.site-footer__menus {
		width: 100%;
	}

	.site-footer__legal {
		width: 100%;
	}

	.site-footer__legal-menu {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
		gap: 1.25rem;
	}
}
