/* Mobile Project Nav for Elementor */
.ph-m {
  --phm-g1: #240101;
  --phm-g2: rgba(227,5,26,0.6);
  --phm-g3: #240101;
  --phm-b1: #990000;
  --phm-b2: rgba(255,0,0,0.08);
  --phm-text: #ffffff;
  --phm-gold1: #C39556;
  --phm-gold2: #F1D4AE;
  --phm-p1: #1c0303;
  --phm-p2: #0e0e0f;
  --phm-pborder: rgba(225,30,37,0.55);
  --phm-item: #ffffff;
  --phm-heading: #F1D4AE;
  --phm-accent: #e11e25;
  --phm-side: 14px;

  display: block;
  position: relative;
  z-index: 999;
  width: 100%;
  padding: 0 var(--phm-side);
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}
.ph-m *, .ph-m *::before, .ph-m *::after { box-sizing: border-box; }

.ph-m.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--ph-m-top, 0px);
  padding-top: 8px;
  padding-bottom: 8px;
}
.ph-m-spacer { display: block; height: 0; }

/* ---- Bar ---- */
.ph-m .ph-m-bar {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  cursor: pointer;
  border-radius: 50px;
  border: 2px solid transparent;
  background-image:
    linear-gradient(90deg, var(--phm-g1) 0%, var(--phm-g2) 56.73%, var(--phm-g3) 100%),
    linear-gradient(to right, var(--phm-b1), var(--phm-b2), var(--phm-b1));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.35);
  -webkit-tap-highlight-color: transparent;
}
.ph-m .ph-m-bar:focus-visible { outline: 2px solid var(--phm-gold2); outline-offset: 3px; }

.ph-m-dot {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f2e9e9;
}
.ph-m-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ph-m-caption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--phm-gold1) 0%, var(--phm-gold2) 43%, var(--phm-gold1) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ph-m-current {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--phm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-m-chevron {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--phm-text);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.ph-m.is-open .ph-m-chevron { transform: rotate(180deg); }

/* ---- Dropdown panel ---- */
.ph-m-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 8px;
  transition: grid-template-rows .4s cubic-bezier(.22,.61,.36,1), opacity .25s ease;
  pointer-events: none;
}
.ph-m.is-open .ph-m-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}
.ph-m-panel-inner {
  overflow: hidden;
  min-height: 0;
  border-radius: 20px;
}
.ph-m .ph-m-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-radius: 20px;
  border: 1px solid var(--phm-pborder);
  background: linear-gradient(160deg, var(--phm-p1) 0%, var(--phm-p2) 70%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55), inset 0 0 30px rgba(227,5,26,0.08);
}
.ph-m .ph-m-list li { margin: 0; padding: 0; list-style: none; }

/* dividers between main rows (not between sub links) */
.ph-m .ph-m-list > li.ph-m-item + li,
.ph-m .ph-m-list > li.ph-m-sub-item + li.ph-m-item,
.ph-m .ph-m-list > li.ph-m-sub-item + li.ph-m-heading,
.ph-m .ph-m-list > li.ph-m-heading + li.ph-m-item,
.ph-m .ph-m-list > li.ph-m-heading + li.ph-m-heading {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.ph-m .ph-m-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  color: var(--phm-item) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}
.ph-m .ph-m-list a::after {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-top: 1.5px solid rgba(255,255,255,0.6);
  border-right: 1.5px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
}

.ph-m .ph-m-heading span {
  display: block;
  padding: 14px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--phm-heading);
}

.ph-m .ph-m-sub-item a {
  padding: 11px 20px 11px 34px;
  font-size: 12.5px;
}
.ph-m .ph-m-sub-item a::before {
  content: "";
  position: absolute;
  left: 20px; top: 50%;
  width: 6px; height: 1px;
  background: rgba(255,255,255,0.4);
}
/* Active / pressed */
.ph-m .ph-m-list a.is-active {
  background: linear-gradient(90deg, rgba(227,5,26,0.35), transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--phm-accent) 35%, transparent), transparent);
  box-shadow: inset 3px 0 0 var(--phm-accent);
}
.ph-m .ph-m-list a:active { background: rgba(227,5,26,0.18); }

/* Backdrop (moved to <body> by the script) */
.ph-m-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ph-m-backdrop.is-open { opacity: 1; pointer-events: auto; }
