/* Broom Magic Mayhem — theme styles */

:root {
	--bmm-text: #555555;
	--bmm-heading: #444444;
	--bmm-border: #444444;
	--bmm-dark: #333333;
	--bmm-dark-text: #cccccc;
	--bmm-max-width: 1100px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--bmm-text);
	background: #ffffff;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.bmm-container {
	max-width: var(--bmm-max-width);
	margin: 0 auto;
	padding: 0 30px;
}

.bmm-heading {
	font-family: 'Roboto', sans-serif;
	font-weight: 600;
	color: var(--bmm-heading);
	font-size: 40px;
	line-height: 1.3;
	max-width: 700px;
	margin: 0 auto 25px;
	text-align: center;
}

.bmm-heading--sm {
	font-size: 28px;
	max-width: 900px;
}

.bmm-lead {
	font-size: 20px;
	line-height: 1.8;
	max-width: 800px;
	margin: 0 auto 25px;
	text-align: center;
}

.bmm-cta {
	text-align: center;
	margin: 0 0 20px;
}

.bmm-button {
	display: inline-block;
	padding: 14px 28px;
	border: 2px solid var(--bmm-border);
	border-radius: 20px;
	color: #333333;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background 0.25s ease, color 0.25s ease;
}

.bmm-button:hover {
	background: var(--bmm-border);
	color: #ffffff;
}

/* Header */

.bmm-header {
	background: #ffffff;
	border-bottom: 1px solid #ececec;
	position: relative;
	z-index: 100;
}

.bmm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 18px;
	padding-bottom: 18px;
}

.bmm-logo img {
	height: 60px;
	width: auto;
}

.bmm-nav__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 34px;
}

.bmm-nav__list a {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--bmm-heading);
}

.bmm-nav__list a:hover {
	color: #999999;
}

.bmm-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}

.bmm-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--bmm-heading);
}

/* Hero */

.bmm-hero {
	height: 740px;
	background-size: cover;
	background-position: center;
	background-color: #111111;
}

/* Sections */

.bmm-section {
	padding: 90px 0;
	text-align: center;
}

.bmm-section--about {
	padding-bottom: 60px;
}

.bmm-section--gallery {
	padding: 0 0 70px;
}

.bmm-section--highlight,
.bmm-section--contact {
	padding: 70px 0;
}

/* Gallery grid */

.bmm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}

.bmm-gallery-item {
	display: block;
	overflow: hidden;
	position: relative;
	aspect-ratio: 16 / 9;
}

.bmm-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.bmm-gallery-item:hover img {
	transform: scale(1.05);
	opacity: 0.9;
}

/* Lightbox */

.bmm-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	z-index: 1000;
}

.bmm-lightbox[hidden] {
	display: none;
}

.bmm-lightbox__image {
	max-width: 100%;
	max-height: 100%;
}

.bmm-lightbox__close {
	position: absolute;
	top: 20px;
	right: 30px;
	background: none;
	border: 0;
	color: #ffffff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

/* Footer */

.bmm-footer {
	background: var(--bmm-dark);
	color: var(--bmm-dark-text);
	padding: 24px 0;
}

.bmm-footer__inner {
	text-align: center;
	font-size: 13px;
}

.bmm-footer a {
	color: #ffffff;
	text-decoration: underline;
}

/* Generic page content (non-home pages) */

.bmm-page-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: left;
}

/* Responsive */

@media (max-width: 900px) {
	.bmm-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bmm-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-bottom: 1px solid #ececec;
	}

	.bmm-nav.is-open {
		display: block;
	}

	.bmm-nav__list {
		flex-direction: column;
		gap: 0;
		padding: 10px 30px 20px;
	}

	.bmm-nav__list a {
		display: block;
		padding: 10px 0;
	}

	.bmm-menu-toggle {
		display: flex;
	}

	.bmm-hero {
		height: 300px;
	}

	.bmm-heading {
		font-size: 28px;
	}

	.bmm-lead {
		font-size: 17px;
	}
}

@media (max-width: 560px) {
	.bmm-gallery-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
