/* Reboot Vitality GATE 1.5 r2: SHARED BASE (R2-M, 2026-10-13). Extracted 1:1 from V1 "Two Rings" src/v1.css.
   Load order on every page: /kit/fonts/fonts.css, /kit/tokens.css, /shared/base.css, then the variant module css.
   Owns: the .w-v1 world additions, resets, base type (h2, h3, em), focus, skip link, the chrome (nav island, footer, sticky
   Call + Book bar; classes rv-*), and opt-in rv-* components a variant MAY reuse (wrap, button-in-button, Google chip, rings).
   Variant css never restyles anything in here except inside its own [data-variant="X"] scope. No @keyframes (design lint M11). */

/* ---------- V1 world tokens (kit tokens.css .w-v1 + V1's additions) ---------- */
.w-v1 {
  --surface-2: #E6E5E3;
  --ink-2: #212120;
  --ink-3: #2A2A28;
  --ghost: #D2D0CA;          /* watermark rings on stone */
  --ghost-ink: #242423;      /* watermark rings on ink */
  --nav-h: 64px;
  --h2-size: clamp(40px, 5.4vw, 80px);
  --shadow-soft: 0 30px 60px -30px rgba(70, 64, 52, .28), 0 10px 24px -14px rgba(70, 64, 52, .18);
}

/* ---------- resets ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: clip;
  font-family: var(--font-body); font-size: var(--body-size); line-height: var(--body-lead); font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
em { font-style: italic; }
address { font-style: normal; }
.rv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.rv-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; }

:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-off); border-radius: 6px; }
.rv-skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; }
.rv-skip:focus { top: 16px; }
.rv-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- base type (a variant restyles headings only inside its scope) ---------- */
h2 { font-family: var(--font-display); font-size: var(--h2-size); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
h2 em, h3 em { font-style: italic; }
h3 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- chrome: nav (floating island) ---------- */
.rv-nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.rv-nav-island {
  pointer-events: auto; max-width: var(--container); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 24px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 12px 30px -18px rgba(70, 64, 52, .35);
}
.rv-logo { display: block; color: var(--ink); flex: none; }
.rv-wordmark { width: 168px; height: auto; }
.rv-nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; }
.rv-nav-links a { text-decoration: none; color: var(--fg-muted); transition: color .3s var(--ease-out-quart); }
.rv-nav-links a:hover { color: var(--fg); }
.rv-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.rv-nav-tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: var(--r-pill); }
.rv-nav-tel-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.rv-nav-tel-icon svg { width: 16px; }
.rv-nav-cta { text-decoration: none; background: var(--cta-bg); color: var(--cta-fg); font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: var(--r-pill); transition: transform .4s var(--ease-out-expo); }
.rv-nav-cta:active { transform: scale(var(--press-scale)); }

/* ---------- chrome: footer (stone) ---------- */
.rv-footer { background: var(--bg-2); padding: 96px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.rv-footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; }
.rv-footer-logo { width: 200px; height: auto; }
.rv-footer-loc { margin-top: 22px; color: var(--fg-muted); max-width: 28ch; }
.rv-footer-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.rv-footer-nap, .rv-footer-p { color: var(--fg-muted); line-height: 1.8; }
.rv-footer-nap a { color: var(--fg); }
.rv-footer-links { list-style: none; display: grid; gap: 8px; }
.rv-footer-links a { text-decoration: none; color: var(--fg-muted); }
.rv-footer-links a:hover { color: var(--fg); }
.rv-footer-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); color: var(--fg-muted); font-size: 13px; }
.rv-concept-note { font-weight: 600; color: var(--fg); }
/* Z1 2026-10-23 (owner): Privacy + Terms close the base row, in the base row's own 13 px muted utility style; 24 px+ tap height */
.rv-footer-legal { display: flex; gap: 24px; margin-block: -4px; }
.rv-footer-legal a { display: inline-block; padding: 4px 0; color: var(--fg-muted); text-decoration: none; }
.rv-footer-legal a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chrome: sticky Call + Book (shown below 768 px) ---------- */
.rv-sticky { display: none; }

/* ---------- opt-in shared components (V1's look, rv- names; A keeps its own v1- copies) ---------- */
/* button-in-button: <a class="rv-btn" href="#home-booking-rail"><span class="rv-btn-label">Start your Reset</span><span class="rv-btn-icon">ARROW SVG</span></a> */
.rv-btn {
  display: inline-flex; align-items: center; gap: 16px; min-height: 58px; padding: 7px 7px 7px 26px; border-radius: var(--r-pill);
  background: var(--cta-bg); color: var(--cta-fg); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .01em;
  transition: transform .45s var(--ease-out-expo), background-color .45s var(--ease-out-expo);
}
.rv-btn-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); flex: none; transition: transform .6s var(--ease-out-expo); }
.rv-btn-icon svg { width: 20px; height: 20px; }
.rv-btn:hover .rv-btn-icon { transform: translateX(3px) rotate(-45deg); }
.rv-btn:active { transform: scale(var(--press-scale)); }
.rv-btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 22%, transparent); }
.rv-btn--ghost .rv-btn-icon { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }
.rv-btn--ghost:hover .rv-btn-icon { transform: rotate(-12deg) scale(1.06); }
.rv-btn--on-ink { background: var(--paper); color: var(--ink); }
.rv-btn--ghost-ink { background: transparent; color: var(--fg-on-ink); box-shadow: inset 0 0 0 1px rgba(237, 236, 236, .28); }
.rv-btn--ghost-ink .rv-btn-icon { background: rgba(237, 236, 236, .1); color: var(--fg-on-ink); }
.rv-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
/* Google chip: <a class="rv-rating" href="GBP cid link" rel="noopener" target="_blank"><span class="rv-stars" aria-hidden="true">5 x STAR SVG</span><span class="rv-rating-text"><strong>5.0</strong> from 6 Google reviews</span></a> */
.rv-stars { display: inline-flex; gap: 2px; }
.rv-stars svg { width: 16px; height: 16px; fill: var(--google-gold); }
.rv-rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; text-decoration: none; font-size: 15px; color: var(--fg-muted); }
.rv-rating strong { color: var(--fg); font-weight: 600; }
.rv-rating:hover .rv-rating-text { text-decoration: underline; text-underline-offset: 4px; }
/* the interlocked rings (geometry = the sprite in chrome.html: #rv-ring-l-shape, #rv-ring-r-shape, #rv-rings-lower-crossing).
   Defaults come from .w-v1 (--rings-ink #191919, --rings-gap #EDECEC); set both (gap = the ground colour behind the mark) on
   your section or the svg, inside your own scope. */
.rv-rings { width: 100%; height: auto; overflow: visible; }
.rv-glyph { width: 26px; height: auto; flex: none; }
.rv-rings .ring-body, .rv-glyph .ring-body { fill: var(--rings-ink); stroke: var(--rings-gap); stroke-width: 16; paint-order: stroke fill; stroke-linejoin: round; }
.rv-rings .ring-line { fill: none; stroke: var(--rings-ink); stroke-width: 3; opacity: 0; }
.rv-linkpoint-dot { fill: var(--accent); stroke: var(--rings-gap); stroke-width: 4; }
.rv-linkpoint-halo { fill: none; stroke: var(--accent); stroke-width: 3; }
/* booking host (Poptin-playbook sizing: min-height is load-bearing, the live embed drops in here) */
.rv-booking-host { position: relative; min-height: var(--booking-min-h); }
/* Q1 (2026-10-23): the Unbounce booking form (owner ruling), embedded the way the live site embeds its Unbounce form (a plain
   full-width iframe, no border, a fixed height per breakpoint; the live site sets 600 / 528). Unbounce does NOT scale the form to the
   box (unlike Poptin): it serves a fixed 320 x 528 layout when the frame is 600 px wide or less and a 429 x 596 layout above that
   (measured with Playwright, 2026-10-23: document height 528 at frame widths 320 to 600, 596 at 601 and up; window.ub.page.dimensions
   agrees). So the frame height is the measured page height + 12 px of air (540 / 608) and the frame must be at least 320 px wide
   (narrower = a sideways scrollbar inside the form): the host drops its side padding below 768 px. A container query on the host
   switches the height at the form's own 600 px breakpoint. Selector weight 0,4,0 so it wins over A.css and the system library. */
.v1-book-host.rv-ub-host[data-booking-host][data-booking-provider] { display: block; min-height: calc(540px + 48px); padding: 24px 32px; container-type: inline-size; color: var(--fg); }
.rv-ub-host .rv-ub-frame { display: block; width: 100%; height: 540px; min-height: 0; border: 0; background: transparent; }
@container (min-width: 601px) { .rv-ub-host .rv-ub-frame { height: 608px; } }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  .rv-nav-links { gap: 20px; }
  .rv-nav-tel-num { display: none; }
}
@media (max-width: 1023.98px) {
  .rv-nav-links { display: none; }
  .rv-nav-actions { margin-left: auto; }
  .rv-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .w-v1 { --nav-h: 56px; --h2-size: clamp(38px, 10.6vw, 46px); --band-pad: 96px; }
  body { font-size: 17px; padding-bottom: calc(var(--sticky-bar-h) + 20px + env(safe-area-inset-bottom)); }
  .rv-nav { top: 10px; }
  .rv-nav-island { padding: 0 8px 0 18px; gap: 12px; }
  .rv-wordmark { width: 138px; }
  .rv-nav-cta { display: none; }
  .rv-nav-tel { padding: 6px; }
  .rv-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rv-cta-row { margin-top: 26px; gap: 10px; }
  .rv-cta-row .rv-btn { width: 100%; justify-content: space-between; }
  .rv-rating { margin-top: 20px; font-size: 14px; }

  .rv-sticky {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px; position: fixed; z-index: 55;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 14px 34px -14px rgba(40, 36, 30, .45);
  }
  .rv-sticky a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 16px; }
  .rv-sticky-call { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent); }
  .rv-sticky-book { background: var(--ink); color: var(--paper); justify-content: space-between !important; padding: 0 6px 0 20px; }
  .rv-sticky-ic { display: grid; place-items: center; width: 30px; height: 30px; }
  .rv-sticky-ic svg { width: 18px; }
  .rv-sticky-ic--acc { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); }
}
@media (max-width: 767.98px) {
  .v1-book-host.rv-ub-host[data-booking-host][data-booking-provider] { padding: 16px 0; min-height: calc(540px + 32px); }
}
