/* ============================================================
   SV-PANEL — Service Pages Internal Navigation
   Isolated: only loaded on service detail + services pages.
   Zero overlap with .hamburger / .hamburger-navigation / .menu-cancel-button
   ============================================================ */

/* ---- Trigger button ---- */
.sv-panel-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sv-panel-trigger:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.sv-panel-trigger svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.sv-panel-trigger .sv-pt-line {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* X state when panel open */
.sv-panel-trigger.is-open .sv-pt-line--1 {
  transform: translateY(5px) rotate(45deg);
}
.sv-panel-trigger.is-open .sv-pt-line--2 {
  opacity: 0;
  transform: scaleX(0);
}
.sv-panel-trigger.is-open .sv-pt-line--3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---- Backdrop ---- */
.sv-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  cursor: pointer;
}
.sv-panel-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

/* ---- Panel ---- */
.sv-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(340px, 88vw);
  height: 100svh;
  z-index: 1201;
  background: #111;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition:
    transform 0.45s cubic-bezier(0.76,0,0.24,1),
    visibility 0s linear 0.45s;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.sv-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.45s cubic-bezier(0.76,0,0.24,1),
    visibility 0s linear 0s;
}

/* ---- Panel header ---- */
.sv-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sv-panel__head-label {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.sv-panel__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.sv-panel__close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.sv-panel__close svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ---- Nav list ---- */
.sv-panel__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0 24px;
  -webkit-overflow-scrolling: touch;
}

/* ---- Category item (top-level) ---- */
.sv-panel__cat {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sv-panel__cat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}
.sv-panel__cat-toggle:hover {
  background: rgba(255,255,255,0.04);
}
.sv-panel__cat-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sv-panel__cat-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.01em;
  min-width: 22px;
}
.sv-panel__cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sv-panel__cat-toggle.is-active .sv-panel__cat-name {
  color: #fff;
}

/* Arrow */
.sv-panel__cat-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), color 0.2s ease;
}
.sv-panel__cat-toggle.is-active .sv-panel__cat-arrow {
  transform: rotate(180deg);
  color: rgba(255,255,255,0.6);
}
.sv-panel__cat-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* ---- Sub-items (accordion body) ---- */
.sv-panel__sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1);
}
.sv-panel__sub.is-open {
  max-height: 400px;
}
.sv-panel__sub-list {
  list-style: none;
  padding: 0 0 10px;
  margin: 0;
}
.sv-panel__sub-item {
  display: block;
}
.sv-panel__sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 12px 60px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.sv-panel__sub-link::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.2s ease;
}
.sv-panel__sub-link:hover,
.sv-panel__sub-link:hover::before {
  color: rgba(255,255,255,0.9);
}
.sv-panel__sub-link:hover::before {
  background: #c9a84c;
}
.sv-panel__sub-link.is-current {
  color: #c9a84c;
}
.sv-panel__sub-link.is-current::before {
  background: #c9a84c;
}

/* ---- Footer ---- */
.sv-panel__foot {
  flex-shrink: 0;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sv-panel__foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sv-panel__foot-link:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
.sv-panel__foot-link svg { width: 12px; height: 12px; display: block; }

/* ---- Header placement: trigger sits between logo and .hamburger ---- */
.header .sv-panel-trigger {
  /* positioned by the header flex/grid — no absolute needed */
  margin-left: 0;
}

/* Remove the old services-subnav from service inner pages */
.servicedetail-refresh ~ header .services-subnav,
header .services-subnav {
  display: none;
}

/* Blur page content while panel is open */
body.sv-panel-active .servicedetail-refresh,
body.sv-panel-active .services-refresh {
  filter: blur(4px) brightness(0.85);
  transition: filter 0.35s ease;
}
.servicedetail-refresh,
.services-refresh {
  filter: none;
  transition: filter 0.35s ease;
}


/* ============================================================
   SV-DETAIL-JUMP — Service-to-service inline navigation
   Rendered at bottom of each service detail page.
   ============================================================ */

.sv-detail-jump {
  background: #F2F1EE;
  border-top: 1px solid #EAEAEA;
  padding: 72px 24px;
  margin-top: 0;
}

.sv-detail-jump__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.sv-detail-jump__label {
  font-family: 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #787774;
  text-align: center;
  margin: 0 0 40px;
}

.sv-detail-jump__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sv-detail-jump__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 8px;
  border: 1px solid #E0DFDB;
  background: #FFFFFF;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

a.sv-detail-jump__item:hover {
  border-color: #111111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

a.sv-detail-jump__item:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.sv-detail-jump__item--current {
  background: #111111;
  border-color: #111111;
  cursor: default;
}

.sv-detail-jump__num {
  font-family: 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #B0AFAB;
  flex-shrink: 0;
  line-height: 1;
  min-width: 20px;
}

.sv-detail-jump__item--current .sv-detail-jump__num {
  color: rgba(255,255,255,0.4);
}

.sv-detail-jump__name {
  font-family: 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #2F3437;
  white-space: nowrap;
  line-height: 1;
}

.sv-detail-jump__item--current .sv-detail-jump__name {
  color: #FFFFFF;
}

@media (max-width: 899px) {
  .sv-detail-jump { padding: 56px 20px; }
  .sv-detail-jump__label { margin-bottom: 32px; }
  .sv-detail-jump__nav { gap: 6px; }
  .sv-detail-jump__item { padding: 14px 18px; }
}

@media (max-width: 599px) {
  .sv-detail-jump { padding: 48px 16px; }
  .sv-detail-jump__label { margin-bottom: 24px; }
  .sv-detail-jump__nav { gap: 6px; }
  .sv-detail-jump__item {
    padding: 12px 16px;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    justify-content: center;
  }
  .sv-detail-jump__name { font-size: 12px; }
}
