/******/
/*** MENU ***/
/******/

.global-nav {
	width: 100%;
	top: 3rem;
}

.navigation {
	display: inline-block;
}

.nav-backdrop {
	position: absolute;
    inset: 0;
    height: 100%;
    backdrop-filter: blur(1rem);
    mask-image: linear-gradient(
      to bottom,
      black 0% 50%,
      transparent 50% 100%
    );
}

nav a.logo img, .navigation__logo.grid-15 {
	max-width: 10rem!important;
}

.faq-drawer input[type="checkbox"] {
	display: none;
}

.menu-item-has-children:hover:after {
	transform: rotate(180deg);
}

ul#menu-main-menu {
	margin-bottom: 0!important;
}

ul#menu-main-menu li a {
	font-family: "adrianna-extended", sans-serif;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.1875rem;
	text-transform: uppercase;
	font-size: 0.875rem;
}

@media screen and ( min-width: 48rem ) {
	
	/* NAV */
	
	ul#menu-cta-menu {
		margin-block-end: 0;
	}
	
	ul#menu-cta-menu li:last-child {
		padding-right: 0;
	}
	
	nav .background-black.grid-100 {
		padding-right: .375rem;
		padding-left: .875rem;
	}
	
	.menu-item-has-children .sub-menu {
		display: none;
		position: absolute;
		background-color: var(--white);
		box-shadow: 0rem .5rem 1rem 0rem rgba(0,0,0,0.2);
		padding: .75rem;
		z-index: 5;
	}
	
	.menu-item-has-children:hover .sub-menu {
		display: block;
	}
	
}

@media screen and ( max-width: 47.9375rem ) {
	
.mobile-child-links {
    max-height: 300px; /* adjust as needed */
    overflow-y: auto;
	overflow-x: hidden;
    margin: 0;
    padding: 0 1rem;
    list-style: none;
	background-color: var(--color-black);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-child-links li a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

	
	.global-nav {
		top: 0;
	}
	
	.navigation {
		position: relative;
		padding: .125rem 0 .125rem .125rem;
	}
	
	.navigation__logo {
		width: 8rem;
	}
	
	.navigation__wrapper {
		flex-grow: 1;
		padding-right: .25rem!important;
	}

	.navigation__links {
		position: fixed;
		width: calc(100% - 5rem);
		height: 100vh;
		padding-top: 1.5rem;
		left: -63rem;
		top: -.625rem;
		transition: left .2s ease-in;
		background: var(--color-white);
		color: var(--color-black);
		list-style: none;
		box-shadow: .0625rem .0625rem .625rem 0rem rgba(0,0,0,0.75);
		flex-direction: column;
		justify-content: flex-start;
	}
	
	.navigation__links li {
		padding: .5rem 1.5rem;
		text-align: right;
		width: 84%;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		flex-basis: 0;
	}
	
	.navigation__links a {
		color: var(--black);
		text-decoration: none;
		font-size: 1rem;
	}
	
	#hamburger {
		visibility: hidden;
		width: 0;
	}
	
	.navigation__button {
		position: relative;
		display: inline-block;
		width: 2.25rem;
		height: 2rem;
		background: transparent;
		cursor: pointer;
	}
	
	.navigation__button span {
		position: absolute;
		right: 0;
		display: inline-block;
		width: 1.5rem;
		height: .125rem;
		background-color: var(--color-white);
		transform-origin: center;
		transition: opacity 0.2s linear, all 0.3s linear;
	}
	
	.navigation__button span:nth-of-type(1) {
		top: .5625rem;
	}
	
	.navigation__button span:nth-of-type(2) {
		top: .9375rem;
	}
	
	.navigation__button span:nth-of-type(3) {
		top: 1.3125rem;
	}

/* Here comes the magic */
	#hamburger:checked ~ .navigation__links {
  /* Or it can be "input[type="checkbox"] ~ .navigation__links" */
		left: 0;
	}

/* Styles for our "close" button */
	#hamburger:checked ~ .navigation__button span:nth-of-type(1) {
		transform: rotate(45deg);
		top: 1rem;
	}
	
	#hamburger:checked ~ .navigation__button span:nth-of-type(2) {
		opacity: 0;
	}
	
	#hamburger:checked ~ .navigation__button span:nth-of-type(3) {
		transform: rotate(-45deg);
		top: 1rem;
	}
	
	/* ACCORDION */
	.faq-drawer__content-wrapper {
		line-height: 1.35;
		max-height: 0rem;
		overflow: hidden;
		transition: 0.25s ease-in-out;
	}
	
	.faq-drawer__title {
		display: block;
		padding: 0;
		position: relative;
		margin-bottom: 0;
		transition: all 0.2s ease-out;
	}
	
	.faq-drawer__title::after {
		border-style: solid;
		border-width: .0625rem .0625rem 0 0;
		content: " ";
		display: inline-block;
		float: right;
		height: .625rem;
		left: -.125rem;
		position: relative;
		right: 1.5em;
		top: .125rem;
		transform: rotate(135deg);
		transition: 0.3s ease-in-out;
		vertical-align: top;
		width: .625rem;
	}
	
	.faq-drawer__trigger:checked + .faq-drawer__title + .faq-drawer__content-wrapper {
		max-height: 100vh;
	}
	
	.faq-drawer__trigger:checked + .faq-drawer__title::after {
		transform: rotate(-45deg);
		transition: 0.2s ease-in-out;
	}
	
	/* SUB-NAV */
	
	.navigation__links li a {
		font-weight: 600;
	}
	
	.navigation__links .sub-menu li a {
		font-weight: 400;
	}
	
	.navigation__links .menu-item-has-children .sub-menu {
		width: 100%;
		display: -webkit-box;
  		display: -webkit-flex;
  		display: -ms-flexbox;
  		display: flex;
  		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-end;
	}
	
	.navigation__links .menu-item-has-children {
		border-bottom: solid .125rem var(--light-gray);
	}
	
	.navigation__links .menu-item-has-children ul li {
		padding-right: 0;
	}
	
	.navigation__links .menu-item-has-children li:after {
		content: '›';
		margin-left: .5rem;
	}
	
	/* Mobile mega menu subcategories hidden by default */
	.navigation__links .mega-categories,
	.navigation__links .mega-links-group {
		display: none;
		padding-left: 1rem;
	}

	.navigation__links .mega-category-item.active > .mega-links-group {
		display: block;
	}

	/* Optional visual cue for expandable items */
	.navigation__links .mega-category-item > a::after {
		content: '▸';
		float: right;
		transition: transform 0.3s ease;
	}

	.navigation__links .mega-category-item.active > a::after {
		transform: rotate(90deg);
	}
	
}

.sub-menu-mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%; 
    background: #fff;
    min-height: 500px;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden; /* Clips children to the radius */
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
}

/* Show Logic */
.menu-item-has-mega:hover .sub-menu-mega {
    visibility: visible;
    opacity: 1;
}

.mega-categories {
	margin-block-start: 0rem;
}

/* Left Column - Categories */
.mega-left-col {
    width: 30%;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 2rem;
}

.mega-category-item {
    margin-bottom: 0.5rem;
    cursor: pointer;
	width: 100%;
}

.mega-category-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem; 
    font-weight: 600;
    color: var(--color-black);
    text-decoration: none;
    opacity: 0.2; /* Base opacity */
    transition: opacity 0.3s ease;
    padding-bottom: 0.5rem;
	width: 100%;
	text-transform: none;
    border-bottom: 0.125rem solid var(--color-black); 
}

.mega-category-item.active a,
.mega-category-item:hover a {
    opacity: 1;
}

.mega-num {
    font-size: 1.25rem; 
    font-weight: 400;
}

/* Right Column - Links & Image */
.mega-right-col {
    width: 70%;
    display: flex;
    padding: 3rem;
    gap: 2rem;
}

.mega-links-container {
    width: 50%;
}

.mega-link-item {
    padding: 0.5rem 0;
}

.mega-link-item a {
    font-size: 1.5rem; 
    text-decoration: none;
    color: var(--color-black);
    transition: color 0.2s;
	opacity: .2;
	text-transform: none;
}

.mega-link-item a:hover {
    opacity: 1;
}

.mega-image-container {
    width: 50%;
}

.mega-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    animation: fadeIn 0.4s ease forwards;
}

.mega-links-group { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}