/* Site chrome: the segmented language pill (site/lang-pill.js), the rounded nav reserve button, the
   header logo size, yellow review stars, the mobile WhatsApp shortcut, the events WhatsApp hover and the
   invisible owner hook. Colours come only from shared/tokens.css, except the review stars (#F5B301). */

/* ---------- language pill ---------- */
/* The template toggle stays clickable (the pill and the checks drive it) but takes no space and is not shown. */
#siteShell .lang-pill__native {
  position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; opacity: 0; border: 0; font-size: 1px;
}
#siteShell .lang-pill {
  display: inline-flex; gap: 2px; padding: 3px; min-height: 38px; align-items: center;
  border-radius: 999px; color: var(--surface);
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 34%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
#siteShell .lang-pill button {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 800 .76rem/1 var(--font-body), system-ui, sans-serif; letter-spacing: .06em;
  padding: 8px 11px; border-radius: 999px; transition: background .2s ease, color .2s ease;
}
#siteShell .lang-pill button:hover { background: color-mix(in srgb, var(--surface) 20%, transparent); }
#siteShell .lang-pill button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
#siteShell .lang-pill button:focus-visible { outline: 3px solid var(--surface); outline-offset: 2px; }
@media (max-width: 640px) {
  #siteShell .site-nav.open .lang-pill { justify-self: start; }
}

/* ---------- nav reserve button ---------- */
#siteShell .site-nav .button--nav { border-radius: 999px; min-height: 42px; padding: 10px 22px; letter-spacing: .06em; }
/* On the solid header and the open mobile sheet (both brand-coloured) a brand button would vanish into its ground: invert it. */
#siteShell .site-header.is-solid .button--nav,
#siteShell .site-header.nav-open .button--nav { background: var(--brand-ink); color: var(--brand); }
#siteShell .site-header.is-solid .button--nav:hover,
#siteShell .site-header.nav-open .button--nav:hover { background: color-mix(in srgb, var(--brand-ink) 85%, var(--brand) 15%); }

/* ---------- header logo: twice the size over the hero, compact once the header is solid ----------
   Height and max-width halve together, so a wide logo held by max-width shrinks by exactly half too. */
#siteShell .site-header { padding-top: 12px; padding-bottom: 12px; }
#siteShell .site-header.is-solid { padding-top: 6px; padding-bottom: 6px; }
#siteShell .brand img {
  width: auto; height: 96px; max-width: 220px; max-height: none; object-fit: contain;
  transition: height .3s ease, max-width .3s ease;
}
#siteShell .site-header.is-solid .brand img { height: 48px; max-width: 110px; }
@media (max-width: 780px) {
  #siteShell .site-header { min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
  #siteShell .brand img { height: 76px; max-width: 160px; }
  #siteShell .site-header.is-solid .brand img,
  #siteShell .site-header.nav-open .brand img { height: 38px; max-width: 80px; }
}

/* ---------- review stars ---------- */
#siteShell .review-list blockquote::before,
#siteShell .reviews-aggregate .review-star { color: #F5B301; }

/* ---------- events WhatsApp button: the template hover darkens the ground under brand-coloured text ---------- */
#siteShell .events .button--light:hover,
#siteShell .events .button--light:focus-visible {
  background: color-mix(in srgb, var(--surface) 84%, var(--brand) 16%); color: var(--ink);
}

/* ---------- mobile WhatsApp shortcut (phones only) ---------- */
#siteShell .site-wa { display: none; }
@media (max-width: 780px) {
  #siteShell .site-wa {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
    box-shadow: 0 0 0 2px var(--surface), 0 8px 22px color-mix(in srgb, var(--ink) 35%, transparent); transition: transform .2s ease;
  }
  #siteShell .site-wa svg { width: 28px; height: 28px; fill: currentColor; }
  #siteShell .site-wa:active { transform: scale(.94); }
  #siteShell .site-wa:focus-visible { outline: 3px solid var(--surface); outline-offset: 4px; }
}

/* ---------- owner hook ----------
   No visible owner button: a transparent 1px element in the top-left corner, kept only because the
   dashboard gate and the check suite open it by data-test="owner-open". */
#siteShell .owner-login--hidden {
  position: fixed; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden;
  opacity: 0; z-index: 2147483000; font-size: 1px; color: transparent;
}
