@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

body {
	margin: 0;
	padding-bottom: 120px;
	overflow-x: hidden;
}

.ayres-menu-toggle {
	position: absolute;
	left: -9999px;
}

.ayres-menu-toggle-label {
	position: fixed;
	left: 50%;
	bottom: 96px;
	width: 30px;
	height: 30px;
	display: block;
	cursor: pointer;
	z-index: 1002;
	opacity: 0;
	visibility: hidden;
	animation: ayresMenuReveal 0.45s ease 1.35s forwards;
	transform: translateX(-50%);
}

.ayres-menu-toggle-label::before,
.ayres-menu-toggle-label::after {
	content: "";
	position: absolute;
	display: block;
	background: #ececee;
	transition: all 0.25s ease;
}

.ayres-menu-toggle-label::before {
	width: 30px;
	height: 20px;
	top: 0;
	left: 0;
	background: transparent;
	border-top: 2px solid #ececee;
	border-bottom: 2px solid #ececee;
}

.ayres-menu-toggle-label::after {
	width: 22px;
	height: 2px;
	top: 10px;
	right: 4px;
}

.ayres-menu-toggle:checked + .ayres-menu-toggle-label::before {
	top: 10px;
	height: 2px;
	border: 0;
	background: #ececee;
	transform: rotate(45deg);
}

.ayres-menu-toggle:checked + .ayres-menu-toggle-label::after {
	width: 30px;
	right: 0;
	transform: rotate(-45deg);
}

.ayres-bottom-nav {
	position: fixed;
	left: 50%;
	bottom: 24px;
	width: min(92vw, 420px);
	height: 72px;
	background: #353746;
	border-radius: 999px;
	box-shadow: 0 8px 30px rgba(0,0,0,.3);
	z-index: 1001;
	overflow: hidden;
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	animation: ayresMenuReveal 0.45s ease 1.2s forwards;
}

.ayres-bottom-nav ul {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0 24px;
	list-style: none;
	transform: translate(-50%, -50%);
}

.ayres-bottom-nav li {
	margin: 0;
	padding: 0;
}

.ayres-bottom-nav a {
	color: #ececee;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 14px;
	font-weight: 700;
	position: relative;
	display: inline-block;
	transition: color .25s ease;
}

.ayres-bottom-nav a:hover {
	color: #ffeba7;
}

.ayres-bottom-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: #ffeba7;
	transition: width .25s ease;
}

.ayres-bottom-nav a:hover::after {
	width: 100%;
}

.ayres-menu-toggle:checked ~ .ayres-bottom-nav {
	bottom: 50%;
	width: 200vmax;
	height: 200vmax;
	border-radius: 50%;
	transform: translate(-50%, 50%);
	transition:
		bottom 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
		width 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
		height 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
		transform 250ms 700ms ease;
}

.ayres-menu-toggle:checked ~ .ayres-bottom-nav ul {
	flex-direction: column;
	gap: 18px;
}

.ayres-menu-toggle:checked ~ .ayres-bottom-nav a {
	font-size: clamp(28px, 6vw, 64px);
}

@keyframes ayresMenuReveal {
	from {
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 20px);
	}
	to {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
	}
}

@media (max-width: 991px) {
	.ayres-menu-toggle-label {
		bottom: 92px;
	}

	.ayres-bottom-nav {
		width: calc(100% - 24px);
		bottom: 12px;
		height: 68px;
	}

	.ayres-bottom-nav ul {
		gap: 16px;
		padding: 0 18px;
	}

	.ayres-bottom-nav a {
		font-size: 12px;
	}
}