/* Header services dropdown. Scope: existing Accent Wall and Built-Ins layouts.
   Feature branch only; do not deploy without owner approval. */
#nav-links .services-menu{position:relative;flex-shrink:0;min-width:0}
#nav-links .services-trigger{
  display:inline-flex;align-items:center;justify-content:space-between;gap:8px;
  background:transparent;border:0;color:inherit;font-family:inherit;
  font-size:13px;font-weight:inherit;line-height:1.5;letter-spacing:inherit;
  padding:8px 0;cursor:pointer;white-space:nowrap;
}
#nav-links .services-trigger:hover,
#nav-links .services-trigger[aria-expanded="true"]{color:var(--gold-light,#c3aa7b)}
#nav-links .services-trigger:focus-visible{outline:2px solid var(--gold-light,#c3aa7b);outline-offset:4px}
#nav-links .services-chevron{
  display:inline-block;width:7px;height:7px;margin-top:-4px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);transition:transform .18s ease;
}
#nav-links .services-trigger[aria-expanded="true"] .services-chevron{transform:translateY(4px) rotate(225deg)}
#nav-links .services-options{
  display:none;position:absolute;z-index:99;top:calc(100% + 10px);right:0;
  width:252px;max-width:calc(100vw - 34px);padding:9px;background:#252320;
  color:#f5f0e8;border:1px solid #c3aa7b77;border-radius:4px;
  box-shadow:0 18px 42px #0007;align-items:stretch;
}
#nav-links .services-menu.is-open .services-options{display:grid;gap:0}
#nav-links .services-options>a,
#nav-links .services-pending{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  min-height:43px;padding:10px 12px;border-radius:3px;
  font-size:12px;line-height:1.45;text-decoration:none;white-space:normal;
}
#nav-links .services-options>a{color:#f5f0e8}
#nav-links .services-options>a:hover,
#nav-links .services-options>a:focus-visible{background:#c3aa7b26;color:#fef6e4;text-decoration:none;outline-offset:-2px}
#nav-links .services-options>a[aria-current="page"]{background:#c3aa7b25;color:#f0d8a4}
#nav-links .services-pending{color:#bdb3a4;cursor:default}
#nav-links .services-pending small{font-size:9px;opacity:.78;text-align:right;white-space:nowrap}

/* Custom Built-Ins has a dark #262626 header but a white mobile nav panel.
   Match the text to each actual background, not the obsolete light-header theme. */
body[data-accent-page="custom-built-ins"] #nav-links .services-trigger{
  font-size:.79rem;font-weight:700;color:#eeeae2;
}
body[data-accent-page="custom-built-ins"] #nav-links .services-trigger:hover,
body[data-accent-page="custom-built-ins"] #nav-links .services-trigger[aria-expanded="true"]{color:#e3cfaa}
body[data-accent-page="custom-built-ins"] #nav-links .services-options{
  background:#fffdf8;border-color:#d0b07a;color:#262320;box-shadow:0 18px 38px #1b1b1b28;
}
body[data-accent-page="custom-built-ins"] #nav-links .services-options>a{color:#262320}
body[data-accent-page="custom-built-ins"] #nav-links .services-options>a:hover,
body[data-accent-page="custom-built-ins"] #nav-links .services-options>a:focus-visible,
body[data-accent-page="custom-built-ins"] #nav-links .services-options>a[aria-current="page"]{
  color:#7b5321;background:#f2e8d6;
}
body[data-accent-page="custom-built-ins"] #nav-links .services-pending{color:#746e65}
/* The Built-Ins dropdown uses a light surface even on desktop: use a dark
   keyboard focus indicator with >=3:1 contrast, instead of the generic gold
   focus ring inherited from the page. */
body[data-accent-page="custom-built-ins"] #nav-links .services-options>a:focus-visible{
  outline:3px solid #262626;outline-offset:2px;
}

@media(min-width:761px) and (max-width:1150px){
  #nav-links{gap:clamp(8px,1.1vw,16px)}
  #nav-links .services-trigger{font-size:12px}
}
@media(max-width:760px){
  #nav-links{max-height:calc(100dvh - 125px);overflow-y:auto;overscroll-behavior:contain}
  #nav-links .services-menu{width:100%}
  #nav-links .services-trigger{
    display:flex;width:100%;min-height:44px;padding:8px 0;
    font-size:13px;text-align:left;
  }
  #nav-links .services-options{
    position:static;width:100%;max-width:none;margin-top:2px;
    padding:5px 0 5px 12px;box-shadow:none;
    border:0;border-left:1px solid #c3aa7b70;border-radius:0;background:transparent;
  }
  #nav-links .services-options>a,
  #nav-links .services-pending{min-height:43px;padding:10px 11px}
  body[data-accent-page="custom-built-ins"] #nav-links{max-height:calc(100dvh - 86px)}
  /* The existing Custom Built-Ins mobile navigation panel is white. Ensure
     all ordinary nav links and the Services disclosure remain readable. */
  body[data-accent-page="custom-built-ins"] #nav-links.links>a:not(.button){color:#262626}
  body[data-accent-page="custom-built-ins"] #nav-links.links>a:not(.button):hover,
  body[data-accent-page="custom-built-ins"] #nav-links.links>a:not(.button):focus-visible{color:#80531b}
  body[data-accent-page="custom-built-ins"] #nav-links .services-trigger{color:#262626}
  body[data-accent-page="custom-built-ins"] #nav-links .services-trigger:hover,
  body[data-accent-page="custom-built-ins"] #nav-links .services-trigger[aria-expanded="true"]{color:#80531b}
  body[data-accent-page="custom-built-ins"] #nav-links .services-options{
    background:transparent;border:0;border-left:1px solid #d0b07a;box-shadow:none;
  }
  /* On the white mobile navigation panel, every focusable item needs a
     distinctly visible dark focus ring (including the estimate CTA). */
  body[data-accent-page="custom-built-ins"] #nav-links a:focus-visible,
  body[data-accent-page="custom-built-ins"] #nav-links .services-trigger:focus-visible{
    outline:3px solid #262626;outline-offset:3px;
  }
}
@media(prefers-reduced-motion:reduce){#nav-links .services-chevron{transition:none}}
