/* Shared header and mobile navigation on every page with a site header. */

/* Header booking CTA: the same gloss and relief as the template's green CTA,
   with all blue tones derived from the template palette. */
.site-shell .button.repair-book-link {
  --booking-blue-bottom: color-mix(in srgb, var(--color-blue-hover) 78%, black);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--button-green-gloss-strong) 0%, var(--button-green-gloss-soft) 42%, var(--button-green-gloss-clear) 43%, var(--button-green-gloss-clear) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-blue) 94%, var(--color-white)) 0%, var(--color-blue) 45%, var(--booking-blue-bottom) 100%);
  box-shadow: var(--button-green-face-shadow), 0 3px 0 var(--color-blue-hover), var(--shadow-blue);
  color: var(--color-white);
}
.site-shell .button.repair-book-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--button-green-gloss-strong) 0%, var(--button-green-gloss-soft) 42%, var(--button-green-gloss-clear) 43%, var(--button-green-gloss-clear) 100%),
    linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-hover) 45%, var(--booking-blue-bottom) 100%);
  box-shadow: var(--button-green-face-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.site-shell .button.repair-book-link:focus-visible::before { opacity: 1; }
.site-shell .button.repair-book-link:active {
  box-shadow: var(--button-green-face-shadow), 0 1px 0 var(--color-blue-hover), 0 3px 10px color-mix(in srgb, var(--color-blue) 18%, transparent);
}
.site-shell .header-inner > .repair-book-link { margin-left: 0; }
@media (hover: hover) and (pointer: fine) {
  .site-shell .button.repair-book-link:hover::before { opacity: 1; }
}


@media (max-width: 767px) {
  .site-shell { --mobile-header-height: 78px; padding-top: var(--mobile-header-height); }
  .site-shell .site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--mobile-header-height); z-index: 50; }
  .site-shell .header-inner { gap: 10px; }
  .site-header .brand__name { display: none; }
  .site-shell .header-inner > .nav-call { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; margin-left: 0; gap: 0; border-radius: 50%; }
  .site-shell .header-inner > .nav-call.button--green { margin-left: auto; }
  .site-shell .header-inner > .nav-call > span { display: none; }
  .site-shell .header-inner > .nav-call > .icon { display: block; width: 22px; height: 22px; }
  .site-shell .header-inner > .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin-left: 0; padding: 10px; align-items: center; justify-content: center; }
  .site-shell main [id] { scroll-margin-top: calc(var(--mobile-header-height) + 16px); }
}
/* Keep the hamburger and its open panel usable at every hamburger breakpoint. */
@media (max-width: 1199px) {
  .site-shell .menu-toggle {
    border: 1px solid var(--color-blue);
    border-radius: 9px;
    background: var(--color-white);
    color: var(--color-blue);
    box-shadow: var(--shadow-card);
    cursor: pointer;
  }
  .site-shell .menu-toggle .icon { width: 22px; height: 22px; stroke-width: 2; }
  .site-shell .menu-toggle[aria-expanded="true"] {
    border-color: var(--color-blue-hover);
    background: var(--color-blue);
    color: var(--color-white);
  }
  .site-shell .menu-toggle:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }
  .site-shell .mobile-nav {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    max-height: calc(100vh - var(--mobile-header-height, 84px));
    max-height: calc(100dvh - var(--mobile-header-height, 84px));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-line);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-shell .mobile-nav a, .site-shell .mobile-nav summary {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .site-shell .mobile-nav .mobile-services { min-width: 0; max-width: 100%; }
}

/* One native Services disclosure, with a visible indicator in both states. */
.site-shell .mobile-services > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 15px 10px;
  border-bottom: 1px solid var(--color-line);
  list-style: none;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 600;
}
.site-shell .mobile-services > summary::-webkit-details-marker { display: none; }
.site-shell .mobile-services > summary .icon { width: 18px; height: 18px; color: var(--color-blue); }
.site-shell .mobile-services[open] > summary .icon { transform: rotate(180deg); }
.site-shell .mobile-services > summary:focus-visible { outline: 2px solid var(--color-blue); outline-offset: -2px; }
