/* /assets/css/mobile-accordion.css */
/* Drawer shell (JS animates height/opacity on the container) */
/* Prevent background scroll + iOS jump */
#site-mobile-menu {
  display: block;
  will-change: height, opacity;
  /* PUSH-DOWN MODE: keep it in normal flow */
  position: static;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  z-index: auto;
  height: 0;
  opacity: 0;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: var(--Primary-Director-Black, #252525);
}
#site-mobile-menu #mobile-menu {
  padding: 1.5rem;
  margin: 0;
}
#site-mobile-menu a {
  font-size: var(--fs-90);
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  transition: color .125s ease-in-out;
  line-height: 1rem;
  color: var(--Primary-Open-Frame, #ffffff);
  padding: .25rem;
}
#site-mobile-menu > ul > li {
  margin-bottom: calc(1.5rem - 0.25rem);
}
/* Submenu accordion base (must be measurable for scrollHeight) */
#site-mobile-menu .menu-item-has-children > .sub-menu, #site-mobile-menu .menu-item-has-children > .nf-mega {
  display: block !important;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    height .32s cubic-bezier(.2, .7, .2, 1), opacity .32s cubic-bezier(.2, .7, .2, 1);
  margin: 0;
  padding: 0;
  list-style: none;
}
#site-mobile-menu .menu-item-has-children > .nf-mega, #site-mobile-menu .menu-item-has-children > .sub-menu {
  margin-left: calc(1.5rem - 0.25rem);
}
#site-mobile-menu .menu-item-has-children.is-open > .sub-menu, #site-mobile-menu .menu-item-has-children.is-open > .nf-mega {
  opacity: 1; /* height driven by JS */
}
#site-mobile-menu .sub-menu li {
  list-style: none;
  margin: calc(.75rem - .025rem) 0;
}
#site-mobile-menu .sub-menu a {
  display: block;
  padding: .6rem .9rem;
  text-decoration: none;
}
#site-mobile-menu .menu-item-has-children > .nf-mega {
  margin-left: calc(2.5rem - 0.25rem) !important;
}
#site-mobile-menu .nf-mega__col--right {
  overflow-x: hidden;
}
#site-mobile-menu .nf-mega__col--left .sub-menu {
  margin-left: 0;
}
#site-mobile-menu .sub-menu a {
  display: flex;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: var(--fs-75);
  white-space: nowrap;
  padding: 0.25rem;
  text-transform: none;
  color: var(--Primary-Open-Frame, #ffffff);
  align-items: center;
}
#site-mobile-menu .nf-mega__col--left .sub-menu li:last-child {
  margin-bottom: 1.4375rem;
}
#site-mobile-menu .menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
#site-mobile-menu ul#mobile-menu > li.menu-item > a > .menu-item-icon {
  transform: rotate(-90deg);
  top: 2px;
}
#site-mobile-menu ul#mobile-menu > li.menu-item.is-open > a > .menu-item-icon {
  transform: rotate(90deg);
}
/* the UL under headings should animate like other panels */
.nf-mega__col--right::before {
  content: "";
  position: absolute;
  top: 0;
  pointer-events: none;
  height: 2px;
  background: url("/wp-content/uploads/2025/12/Line-510h.png") no-repeat center / 100% 100%;
  left: .25rem;
  width: min(400px, calc(100% - 1.25rem));
}
#site-mobile-menu .sub-menu li.nf-mega {
	margin-bottom: 0;
}
#site-mobile-menu .sub-menu--extra li {
  margin-top: 0;
	padding-left: .75rem;
}
#site-mobile-menu .nf-mega__heading.is-open + ul {
  opacity: 1; /* height driven by JS */
}
#site-mobile-menu .nf-mega__col--right {
  padding-left: .25rem;
}
#site-mobile-menu .nf-mega__block {
  padding-bottom: 1rem;
}
#site-mobile-menu .nf-mega__block.nf-mega__block--two {
  margin-bottom: 0;
  padding-bottom: 0;
}
/* Heading icons for Our Work etc) */
#site-mobile-menu .nf-mega__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  line-height: 1.3125rem;
  font-family: "Londrina Solid", sans-serif;
  font-weight: 900;
  font-style: normal;
  letter-spacing: .09375rem;
  text-transform: uppercase;
  font-size: var(--fs-75);
  color: var(--Primary-Golden-Hour, #d1ba79);
  margin-bottom: 1rem;
}
#site-mobile-menu .nf-mega__heading::after {
  content: "";
  width: 9px;
  height: 15px;
  flex: 0 0 auto;
  display: inline-block;
  /* SAME SHAPE as your SVG path */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 15'%3E%3Cpath d='M0.000130581 7.49023L0.000130496 1.00197C0.000130496 0.111068 1.07727 -0.335098 1.70724 0.294867L8.1955 6.78313C8.58602 7.17365 8.58602 7.80682 8.1955 8.19734L1.70724 14.6856C1.07727 15.3156 0.000130749 14.8694 0.000130749 13.9785L0.000130581 7.49023Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 15'%3E%3Cpath d='M0.000130581 7.49023L0.000130496 1.00197C0.000130496 0.111068 1.07727 -0.335098 1.70724 0.294867L8.1955 6.78313C8.58602 7.17365 8.58602 7.80682 8.1955 8.19734L1.70724 14.6856C1.07727 15.3156 0.000130749 14.8694 0.000130749 13.9785L0.000130581 7.49023Z'/%3E%3C/svg%3E") no-repeat center / contain;
  /* color matches your SVG fill var */
  background: var(--Primary-Open-Frame, #FFF);
  transition: transform .2s ease;
  transform: rotate(-90deg);
  margin-right: 1.25rem;
}
/* Mega heading panels (UL immediately after .nf-mega__heading) */
#site-mobile-menu .nf-mega__heading + ul {
  display: block !important;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    height .32s cubic-bezier(.2, .7, .2, 1), opacity .32s cubic-bezier(.2, .7, .2, 1);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Open state (JS drives height; this makes opacity animate too) */
#site-mobile-menu .nf-mega__heading.is-open + ul {
  opacity: 1;
}
/* rotate when open */
#site-mobile-menu .nf-mega__heading.is-open::after {
  transform: rotate(90deg);
}
.nf-mega__col--right {
  padding-top: 18px; /* space for the divider */
  position: relative;
}
.nf-mega__col--right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  height: 2px; /* your PNG height */
  width: clamp(200px, 70vw, 400px); /* responsive 200–400 */
  background: url("/wp-content/uploads/2025/12/Line-510h.png") no-repeat center / 100% 100%;
}