/* DSM v1.0.205 - Services disclosure within established primary navigation. */
.primary-nav > ul{
  display:flex;
  align-items:center;
  gap:14px;
  padding:0;
  margin:0;
  list-style:none;
}
.primary-nav > ul > li{
  margin:0;
  padding:0;
  list-style:none;
}
.primary-nav > ul > li > a{display:inline-flex;align-items:center;min-height:44px}
.primary-nav > .dsm-services-entry,
.primary-nav > ul > li.dsm-services-entry{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:0;
  white-space:nowrap;
}
.primary-nav .dsm-services-entry > a:first-child{
  display:inline-flex;
  align-items:center;
  min-height:44px;
}
.primary-nav .dsm-services-toggle{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  min-width:38px;
  height:44px;
  padding:0;
  margin:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#e1bd69;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.primary-nav .dsm-services-toggle:hover{background:#242018;color:#f0c677}
.primary-nav .dsm-services-toggle:focus-visible,
.primary-nav .dsm-services-panel a:focus-visible{
  outline:2px solid #e1bd69;
  outline-offset:3px;
}
.dsm-services-chevron{
  width:16px;
  height:16px;
  transform:rotate(0deg);
  transition:transform .18s ease;
}
.dsm-services-toggle[aria-expanded="true"] .dsm-services-chevron{
  transform:rotate(180deg);
}
.primary-nav .dsm-services-panel[hidden]{display:none!important}
.primary-nav .dsm-services-panel{
  position:absolute;
  z-index:120;
  top:100%;
  left:-22px;
  width:min(680px,calc(100vw - 36px));
  padding-top:12px;
  white-space:normal;
  text-align:left;
}
.primary-nav .dsm-services-panel-inner{
  display:grid;
  grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  column-gap:29px;
  padding:26px 27px 19px;
  background:#11110f;
  color:#eee9df;
  border:1px solid #494333;
  border-radius:12px;
  box-shadow:0 27px 60px rgba(0,0,0,.48);
}
.primary-nav .dsm-services-label{
  font-size:13px;
  line-height:1.36;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#e1bd69;
  margin:0 0 12px;
}
.primary-nav .dsm-services-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.primary-nav .dsm-services-links li{list-style:none;margin:0;padding:0}
.primary-nav .dsm-services-links a{
  display:flex;
  align-items:center;
  color:#ede9e2;
  min-height:41px;
  padding:9px 11px;
  margin:0;
  line-height:1.36;
  font-weight:600;
  font-size:13px;
  border-radius:6px;
  text-decoration:none;
  transition:background .18s ease,color .18s ease;
}
.primary-nav .dsm-services-links a:is(:hover,:focus-visible){
  background:#29261f;
  color:#f3ce83;
  text-decoration:none;
}
.primary-nav .dsm-services-panel-footer{
  grid-column:1/-1;
  margin-top:14px;
  padding:13px 0 0;
  border-top:1px solid #403a30;
}
.primary-nav .dsm-services-panel-footer a{
  display:inline-flex;
  min-height:44px;
  align-items:center;
  font-size:12px;
  font-weight:750;
  letter-spacing:.025em;
  color:#e1bd69;
  text-decoration:underline;
  text-underline-offset:4px;
}
.primary-nav .dsm-services-panel-footer a:is(:hover,:focus-visible){color:#fff}
/* v1.0.206: consistent desktop text baselines for all primary items. */
@media(min-width:1001px){
  .primary-nav{align-items:center}
  .primary-nav > a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
  .primary-nav > ul > li > a{align-items:center}
}
@media(min-width:1001px) and (max-width:1250px){
  .primary-nav .dsm-services-panel{left:-75px}
  .primary-nav > ul{gap:14px}
}
@media(max-width:1000px){
  .primary-nav.open{
    top:100%;
    justify-content:flex-start;
    align-items:center;
    max-height:calc(100dvh - 116px);
    overscroll-behavior:contain;
    padding:17px 20px 26px;
  }
  .primary-nav.open > *{flex-shrink:0}
  .primary-nav > ul{
    flex-direction:column;
    width:100%;
    gap:0;
    align-items:stretch;
  }
  .primary-nav > ul > li{width:100%}
  .primary-nav > .dsm-services-entry,
  .primary-nav > ul > li.dsm-services-entry{
    display:flex;
    flex-wrap:wrap;
    width:100%;
    max-width:630px;
    margin:auto;
    gap:0;
    justify-content:center;
  }
  /* Center Services independently, on the exact centreline of the other
     mobile navigation labels. The chevron is a separate accessible control. */
  .primary-nav .dsm-services-entry > a:first-child{
    flex:0 0 100%;
    width:100%;
    padding-inline:0;
    min-height:48px;
    justify-content:center;
    text-align:center;
  }
  .primary-nav .dsm-services-toggle{
    position:absolute;
    z-index:1;
    top:0;
    /* Keep the independent 44px disclosure target just beyond the centred
       Services text. Avoid the detached chevron seen on small screens. */
    /* v1.0.210: move the visible chevron closer to the word while
       preserving the invisible 44x48 CSS-pixel interaction region. */
    left:calc(50% + 36px);
    flex:none;
    width:44px;
    min-width:44px;
    height:48px;
    justify-content:flex-start;
    background:transparent;
    border-radius:0;
  }
  /* No oversized square background: the icon alone changes on hover.
     Keyboard focus remains clearly visible around the icon itself. */
  .primary-nav .dsm-services-toggle:hover{
    background:transparent;
    color:#f0c677;
  }
  .primary-nav .dsm-services-toggle:focus-visible{
    outline:none;
  }
  .primary-nav .dsm-services-toggle:focus-visible .dsm-services-chevron{
    outline:2px solid #e1bd69;
    outline-offset:5px;
    border-radius:2px;
  }
  .primary-nav .dsm-services-panel{
    position:static;
    flex:0 0 100%;
    width:100%;
    padding:6px 0 16px;
    background:none;
    text-align:left;
  }
  .primary-nav .dsm-services-panel-inner{
    padding:22px 20px 17px;
    grid-template-columns:1fr;
    gap:20px;
    box-shadow:none;
    border-radius:10px;
  }
  .primary-nav .dsm-services-panel-footer{margin-top:0}
  .primary-nav .dsm-services-panel,
  .primary-nav .dsm-services-panel-inner,
  .primary-nav .dsm-services-column,
  .primary-nav .dsm-services-label{
    text-align:center;
  }
  .primary-nav .dsm-services-column{
    width:100%;
  }
  .primary-nav.open .dsm-services-panel a{
    justify-content:center;
    min-height:44px;
    text-align:center;
  }
  /* Match mobile menu-link reading size without turning labels into links. */
  .primary-nav .dsm-services-label{font-size:14px;margin-bottom:9px}
  .primary-nav .dsm-services-links{gap:1px}
  .primary-nav .dsm-services-links a{font-size:14px;padding:10px 12px}
}
@media(max-width:650px){
  .primary-nav.open{max-height:calc(100dvh - 102px)}
  .primary-nav .dsm-services-panel-inner{padding:20px 14px 16px}
  .primary-nav .dsm-services-panel{padding-bottom:14px}
}
@media(prefers-reduced-motion:reduce){
  .dsm-services-chevron,.primary-nav .dsm-services-links a{transition:none}
}


/* v1.0.219: All service links use the same typography and colour; the
   nested URLs remain grouped beneath their parent service without visual de-emphasis.
   The final all-services route retains its distinct underline. */
.primary-nav .dsm-services-links > li > a.dsm-services-primary-link{
  text-decoration:none;
}
.primary-nav .dsm-services-sublinks{
  display:flex;
  flex-direction:column;
  gap:0;
  list-style:none;
  margin:0 0 5px;
  padding:0;
}
.primary-nav .dsm-services-sublinks li{
  list-style:none;
  margin:0;
  padding:0;
}
.primary-nav .dsm-services-sublinks li a{
  display:flex;
  align-items:center;
  min-height:41px;
  padding:9px 11px;
  color:#ede9e2;
  font-size:13px;
  line-height:1.36;
  font-weight:600;
  text-decoration:none;
  border-radius:6px;
}
.primary-nav .dsm-services-sublinks li a:is(:hover,:focus-visible){
  background:#29261f;
  color:#f3ce83;
  text-decoration:none;
}
@media(max-width:1000px){
  .primary-nav .dsm-services-sublinks{
    width:100%;
    margin:0 0 4px;
  }
  .primary-nav.open .dsm-services-panel .dsm-services-sublinks a{
    min-height:44px;
    justify-content:center;
    padding:10px 12px;
    font-size:14px;
    font-weight:600;
    text-align:center;
  }
}
.primary-nav .dsm-services-links > li > a.dsm-services-primary-link:is(:hover,:focus-visible){
  text-decoration:none;
}

/* v1.0.261: retain approved centred mobile disclosure and desktop navigation.
   All navigable links, including child services and View All Services & Pricing,
   use one readable size. Gold category labels remain distinct. */
@media(max-width:1000px){
  .primary-nav.open > a,
  .primary-nav.open > ul > li > a,
  .primary-nav.open > .dsm-services-entry > a:first-child,
  .primary-nav.open > ul > li.dsm-services-entry > a:first-child,
  .primary-nav.open .dsm-services-panel .dsm-services-links a,
  .primary-nav.open .dsm-services-panel .dsm-services-sublinks a,
  .primary-nav.open .dsm-services-panel .dsm-services-panel-footer a{
    font-size:18px!important;
    line-height:1.45!important;
    font-weight:600;
    letter-spacing:normal;
  }
  .primary-nav.open .dsm-services-entry > a:first-child{
    min-height:50px;
  }
  .primary-nav.open .dsm-services-toggle{
    height:50px;
    left:calc(50% + 43px);
  }
  .primary-nav.open .dsm-services-panel-footer a{
    min-height:48px;
    text-underline-offset:4px;
  }
}

/* v1.0.285: optical desktop navigation spacing. The visible Services
 * disclosure is 38px wide with a centred 16px chevron, giving 11px
 * of visual space on each side. Remove only the 38px flex gap after
 * Services, then keep a 38px 'invisible disclosure' between the
 * remaining labels. No pseudo-elements, extra DOM, or reduced hit area. */
@media (min-width:1001px) {
  body .primary-nav { column-gap:38px; }
  body .primary-nav > .dsm-services-entry { margin-right:-38px; }
}

/* v1.0.272: desktop primary links match the approved desktop paragraph scale.
   Only top-level navigation; do not change dropdowns, buttons, or mobile. */
@media (min-width:1001px) {
  body .primary-nav > a,
  body .primary-nav > ul > li > a,
  body .primary-nav > .dsm-services-entry > a:first-child {
    font-size:var(--dsm-type-body-desktop, 17px);
    font-weight:650;
    line-height:1.45;
    color:#f0eee8;
  }
  body .primary-nav > a:hover,
  body .primary-nav > a:focus-visible,
  body .primary-nav > ul > li > a:hover,
  body .primary-nav > ul > li > a:focus-visible,
  body .primary-nav > .dsm-services-entry > a:first-child:hover,
  body .primary-nav > .dsm-services-entry > a:first-child:focus-visible {
    color:var(--gold2);
  }
}


/* DSM v1.0.295: the word Services and chevron are one disclosure control.
   The final View All Services & Pricing link remains an ordinary page link.
   No new menu ARIA role: the panel is ordinary navigation with links. */
.primary-nav .dsm-services-entry > .dsm-services-toggle {
  display:inline-flex;
  gap:10px;
  width:auto;
  min-width:0;
  height:44px;
  padding:0;
  align-items:center;
  justify-content:flex-start;
  color:#f0eee8;
  font:inherit;
  font-weight:650;
  line-height:1.45;
  white-space:nowrap;
}
.primary-nav .dsm-services-entry > .dsm-services-toggle .dsm-services-chevron {
  flex:none;
  color:#e1bd69;
}
.primary-nav .dsm-services-entry > .dsm-services-toggle:hover {
  color:var(--gold2);
  background:transparent;
}
.primary-nav .dsm-services-entry > .dsm-services-toggle:focus-visible {
  outline:2px solid #e1bd69;
  outline-offset:4px;
}
@media (min-width:1001px) {
  .primary-nav .dsm-services-entry > .dsm-services-toggle {
    font-size:var(--dsm-type-body-desktop,17px);
  }
  body .primary-nav > .dsm-services-entry,
  body .primary-nav > ul > li.dsm-services-entry {
    margin-right:-18px;
  }
}
@media (max-width:1000px) {
  /* Preserve the original text centreline: position the chevron visually,
     but include the complete 50px row in the SAME clickable button. */
  .primary-nav .dsm-services-entry > .dsm-services-toggle {
    position:relative;
    top:auto;
    left:auto;
    z-index:auto;
    width:100%;
    max-width:100%;
    height:50px;
    min-height:50px;
    margin:0;
    padding:0 24px;
    justify-content:center;
    text-align:center;
    border-radius:8px;
    font-size:18px!important;
    font-weight:600;
    line-height:1.45;
  }
  .primary-nav .dsm-services-entry > .dsm-services-toggle .dsm-services-chevron {
    position:absolute;
    left:calc(50% + 43px);
  }
  .primary-nav .dsm-services-entry > .dsm-services-toggle:focus-visible {
    outline:2px solid #e1bd69;
    outline-offset:-2px;
  }
  .primary-nav .dsm-services-entry > .dsm-services-toggle:focus-visible .dsm-services-chevron {
    outline:0;
  }
}


/* DSM v1.0.301 | Desktop dropdown readability.
   Preserve the category colour/weight, links, hover/focus styling, layout,
   and the already approved 18px mobile/tablet menu sizes. */
@media (min-width:1001px) {
  .primary-nav .dsm-services-panel .dsm-services-label {
    font-size:17px;
  }
  .primary-nav .dsm-services-panel .dsm-services-links a,
  .primary-nav .dsm-services-panel .dsm-services-sublinks a {
    font-size:15px;
  }
  .primary-nav .dsm-services-panel .dsm-services-panel-footer a {
    font-size:14px;
  }
}

/* DSM v1.0.302 | Desktop Services dropdown heading scale and text alignment.
   Keep 15px service links, 14px footer link, desktop menu geometry, and all
   tablet/mobile menu settings. Preserve the 11px internal hit-area padding;
   extend anchors left by the same amount so their text aligns with labels. */
@media (min-width:1001px) {
  .primary-nav .dsm-services-panel .dsm-services-label {
    font-size:15px;
    font-weight:750;
  }
  .primary-nav .dsm-services-panel .dsm-services-links a,
  .primary-nav .dsm-services-panel .dsm-services-sublinks a {
    margin-inline-start:-11px;
    width:calc(100% + 11px);
  }
}

/* DSM v1.0.303 | Desktop dropdown aligned to the complete navigation group.
   Keep the primary link group itself, header CTA and branding unchanged.
   On desktop, the positioned nav is the containing block rather than the
   first Services control. No JS, menu content or mobile rules change. */
@media (min-width:1001px) {
  .primary-nav {
    position:relative;
  }
  .primary-nav > .dsm-services-entry,
  .primary-nav > ul > li.dsm-services-entry {
    position:static;
  }
  .primary-nav .dsm-services-panel {
    left:50%;
    transform:translateX(-50%);
  }
}
