/* U Fit website: shared chrome (family bar, nav, footer, form popup).
 * Values from the U Fit Website Design System and the Studio page as it renders.
 * Every class is prefixed ufc- so a page's own .nav / .btn / .container rules cannot reach it,
 * and the chrome sets its own fonts, sizes and box model for the same reason. */

:root {
  --ufc-fb-h: 44px;          /* family bar */
  --ufc-nav-h: 72px;         /* nav at rest: 32px lockup + padding */
  --ufc-top: calc(var(--ufc-fb-h) + var(--ufc-nav-h));
}
@media (max-width: 768px) { :root { --ufc-nav-h: 60px; } }

.ufc, .ufc * { box-sizing: border-box; }
.ufc { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.4; }
.ufc a { text-decoration: none; }
.ufc ul { list-style: none; margin: 0; padding: 0; }
.ufc img { display: block; }
.ufc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Brand themes: only the semantic tokens the chrome uses. */
.ufc { --c-brand: #1D3D67; --c-brand-deep: #142B4A; --c-accent: #B8913A; --c-accent-deep: #9C7B30; --c-surface: #FFFFFF; --c-line: #E4E8EF; --c-cta-r: 12px; --c-cta-bg: var(--c-accent); --c-cta-bg-hover: var(--c-accent-deep); --c-cta-fg: #fff; }
.ufc[data-brand="fusion"] { --c-brand: #B8491E; --c-brand-deep: #983A16; --c-accent: #7C5A3D; --c-line: #E8E2DD; --c-cta-r: 4px; --c-cta-bg: var(--c-brand); --c-cta-bg-hover: var(--c-brand-deep); }
.ufc[data-brand="pilates"] { --c-brand: #3E5138; --c-brand-deep: #2F3E2A; --c-accent: #C9A27A; --c-surface: #F6F2E8; --c-line: rgba(62,81,56,.14); --c-cta-r: 4px; --c-cta-bg: var(--c-brand); --c-cta-bg-hover: var(--c-brand-deep); }
.ufc[data-brand="online"] { --c-brand: #2C2E33; --c-brand-deep: #15161A; --c-accent: #DCBB55; --c-cta-r: 4px; --c-cta-bg: var(--c-accent); --c-cta-bg-hover: #AE8400; --c-cta-fg: #15161A; }

/* ── Family bar (desktop, option D1) ───────────────────── */
.ufc-fb { position: fixed; top: 0; left: 0; right: 0; z-index: 1010; height: var(--ufc-fb-h); display: flex; align-items: center; justify-content: center; background: #0F1A2B; border-bottom: 1px solid rgba(255,255,255,.08); }
.ufc-fb__inner { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ufc-fb__label { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); padding-right: 20px; border-right: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.ufc-fb__links { display: flex; gap: 4px; }
.ufc-fb__link { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 4px; color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.ufc-fb__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.ufc-fb__link[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.ufc-fb__disc { width: 20px; height: 20px; border-radius: 50%; background-size: 139%; background-position: center; background-repeat: no-repeat; flex-shrink: 0; }
@media (max-width: 920px) { .ufc-fb__label { display: none; } }
/* Phones (option M4): no family bar; the brands are listed at the foot of the menu. */
@media (max-width: 768px) {
  .ufc-fb { display: none; }
  :root { --ufc-fb-h: 0px; }
}

/* ── Nav ──────────────────────────────────────────────── */
.ufc-nav { position: fixed; top: var(--ufc-fb-h); left: 0; right: 0; z-index: 1000; height: var(--ufc-nav-h); display: flex; align-items: center; background: transparent; transition: background .3s ease, box-shadow .3s ease, height .3s ease; }
.ufc-nav.is-scrolled, .ufc-nav.is-solid, .ufc-nav.is-open { background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--c-line); }
.ufc[data-brand="pilates"] .ufc-nav.is-scrolled, .ufc[data-brand="pilates"] .ufc-nav.is-solid, .ufc[data-brand="pilates"] .ufc-nav.is-open { background: rgba(246,242,232,.95); }
.ufc-nav > .ufc-wrap { width: 100%; }
.ufc-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ufc-nav__start { display: flex; align-items: center; gap: 12px; }
.ufc-nav__home { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--c-brand); border: 1px solid var(--c-line); transition: background .2s ease, border-color .2s ease; }
.ufc-nav__home:hover, .ufc-nav__home:focus-visible { background: rgba(15,26,43,.05); border-color: var(--c-brand); }
.ufc-nav__home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ufc-nav__logo img { height: 32px; width: auto; }
.ufc-nav__links { display: flex; gap: 2rem; }
.ufc-nav__links a { font-size: .73rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--c-brand); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.ufc-nav__links a:hover, .ufc-nav__links a:focus-visible, .ufc-nav__links a[aria-current="page"], .ufc-nav__links a[aria-current="location"] { text-decoration-color: currentColor; }
.ufc-nav__end { display: flex; align-items: center; gap: .5rem; }
.ufc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .7rem 1.4rem; border: 2px solid var(--c-cta-bg); border-radius: var(--c-cta-r); background: var(--c-cta-bg); color: var(--c-cta-fg); font-family: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.ufc-btn:hover { background: var(--c-cta-bg-hover); border-color: var(--c-cta-bg-hover); transform: translateY(-1px); }
.ufc-btn:focus-visible, .ufc-nav__toggle:focus-visible, .ufc a:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }
.ufc-nav__toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: 4px; cursor: pointer; color: var(--c-brand); }
.ufc-nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.ufc-nav.is-open .ufc-nav__toggle span { box-shadow: none; transform: rotate(45deg); }
.ufc-nav.is-open .ufc-nav__toggle span::after { content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; transform: rotate(-90deg); }
.ufc-nav__panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 8px 24px rgba(15,26,43,.08); padding: .5rem 24px 1rem; }
.ufc[data-brand="pilates"] .ufc-nav__panel { background: #F6F2E8; }
.ufc-nav.is-open .ufc-nav__panel { display: block; }
.ufc-nav__panel a { display: block; padding: 1rem 0; font-size: .85rem; font-weight: 600; color: var(--c-brand); border-bottom: 1px solid var(--c-line); }
.ufc-nav__panel a:last-child { border-bottom: 0; }
.ufc-nav__panel { max-height: calc(100dvh - var(--ufc-top)); overflow-y: auto; }
.ufc-nav__fam-h { margin: 18px 0 6px; font-size: .69rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #8A6B25; }
.ufc-nav__panel a.ufc-nav__fam { display: flex; align-items: center; gap: 12px; padding: 8px 6px; margin: 0 -6px; border-bottom: 0; border-radius: 6px; }
.ufc-nav__fam:hover { background: #F4F6F9; }
.ufc-nav__fam[aria-current="page"] { background: #F7F3EA; }
.ufc-nav__fam-disc { width: 32px; height: 32px; border-radius: 50%; background-size: 139%; background-position: center; background-repeat: no-repeat; flex-shrink: 0; }
.ufc-nav__fam-t { display: flex; flex-direction: column; min-width: 0; }
.ufc-nav__fam-t b { font-family: "EB Garamond", Georgia, serif; font-size: 1.12rem; font-weight: 500; line-height: 1.15; color: #1D3D67; }
.ufc-nav__fam-t span { font-size: .76rem; font-weight: 400; color: #6B7280; }
.ufc-nav__here { margin-left: auto; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9C7B30; white-space: nowrap; }
@media (max-width: 768px) {
  .ufc-wrap { padding: 0 16px; }
  .ufc-nav__links { display: none; }
  .ufc-nav__toggle { display: inline-flex; }
  .ufc-nav__logo img { height: 24px; }
  .ufc-nav__start { gap: 8px; }
  .ufc-nav__inner { gap: .5rem; }
  .ufc-nav__end { gap: .25rem; }
  .ufc-nav__home { width: 40px; height: 40px; }
  .ufc-btn { min-height: 40px; padding: .55rem .85rem; font-size: .62rem; letter-spacing: .04em; }
  .ufc-nav__panel { padding: .5rem 16px 1rem; }
}
@media (max-width: 380px) { .ufc-btn { padding: .5rem .65rem; font-size: .58rem; } }

/* Pages padded their body to clear their old fixed bars; the chrome now does that itself. */
body { padding-top: 0 !important; }
/* Several pages let watermarks and tickers spill sideways, giving a horizontal scrollbar. clip, unlike hidden, keeps position: sticky working. */
html { overflow-x: clip; }

/* Flow pages: reserve the fixed chrome's height. Overlay pages clear it in their own hero. */
.ufc-spacer { height: var(--ufc-top); }
.ufc-spacer--fb { height: var(--ufc-fb-h); }

/* ── Footer ───────────────────────────────────────────── */
.ufc-ft { background: #0F1A2B; color: rgba(255,255,255,.7); padding: 6rem 0 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.ufc-ft__master { text-align: center; margin-bottom: 4rem; }
.ufc-ft__lockup { height: 64px; width: auto; margin: 0 auto 1.4rem; opacity: .92; }
.ufc-ft__line { font-family: "EB Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.15rem; line-height: 1.5; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; }
.ufc-ft__line em { font-style: normal; color: rgba(255,255,255,.92); }
.ufc-ft__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.06); }
.ufc-ft__col h4 { margin: 0 0 1.4rem; font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.ufc-ft__col a, .ufc-ft__col p { display: block; margin: 0; font-size: .9rem; line-height: 1.9; color: rgba(255,255,255,.78); }
.ufc-ft__col a:hover { color: #fff; }
.ufc-ft__strong { color: #fff !important; font-weight: 500; }
.ufc-ft__dir { display: inline-flex !important; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .55rem .9rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #fff !important; font-size: .82rem !important; line-height: 1.4 !important; }
.ufc-ft__dir svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.ufc-ft__social { display: flex; gap: .75rem; margin-top: 1.4rem; flex-wrap: wrap; }
.ufc-ft__social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.ufc-ft__social a:hover { background: #B8913A; border-color: #B8913A; color: #1A1407; }
.ufc-ft__social svg { width: 16px; height: 16px; fill: currentColor; }
.ufc-ft__legal { margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; align-items: center; font-size: .7rem; color: rgba(255,255,255,.4); letter-spacing: .04em; }
.ufc-ft__legal nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.ufc-ft__legal a { color: rgba(255,255,255,.55); }
.ufc-ft__legal a:hover { color: #fff; }
.ufc-ft--legal { padding: 2.4rem 0 2rem; }
.ufc-ft__contact { margin: 0 0 1.4rem; font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.ufc-ft__contact a { color: #fff; }
.ufc-ft--legal .ufc-ft__legal { margin-top: 0; }
@media (max-width: 900px) { .ufc-ft__cols { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (max-width: 520px) {
  .ufc-ft { padding-top: 4rem; }
  .ufc-ft__cols { grid-template-columns: 1fr; }
  .ufc-ft__legal { flex-direction: column; align-items: flex-start; }
}

/* ── U Fit OS form popup ──────────────────────────────── */
/* Form drawer (Joe, 29 Nov): the U Fit OS form slides in from the right in a branded panel, as on the
   Injury Therapy site. Full screen on phones. The header carries the brand colour and the offer. */
.ufc-pop { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: flex-end; visibility: hidden; background: rgba(15,26,43,0); transition: background .3s ease, visibility 0s linear .35s; }
.ufc-pop.is-open { visibility: visible; background: rgba(15,26,43,.55); transition: background .3s ease; }
.ufc-pop__box { position: relative; display: flex; flex-direction: column; width: min(520px, 100vw); height: 100dvh; background: #fff; box-shadow: -24px 0 60px rgba(15,26,43,.28); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.ufc-pop.is-open .ufc-pop__box { transform: none; }
.ufc-pop__head { flex: none; padding: 26px 72px 22px 28px; background: var(--c-brand); color: #fff; }
.ufc-pop__eyebrow { margin: 0 0 .55rem; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); }
.ufc[data-brand="fusion"] .ufc-pop__eyebrow, .ufc[data-brand="pilates"] .ufc-pop__eyebrow { color: rgba(255,255,255,.7); }
.ufc-pop__title { margin: 0; font-family: "EB Garamond", Georgia, serif; font-size: clamp(1.6rem, 4.2vw, 2rem); font-weight: 500; line-height: 1.12; color: #fff; }
.ufc-pop__sub { margin: .55rem 0 0; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.ufc-pop__body { position: relative; flex: 1; min-height: 0; display: flex; }
.ufc-pop__box iframe { flex: 1; width: 100%; min-height: 0; border: 0; display: block; background: #fff; }
/* Shown only while a form opened before its preload finished is still loading. */
.ufc-pop__loading { position: absolute; inset: 0; display: none; flex-direction: column; gap: 14px; padding: 36px 28px; background: #fff; }
.ufc-pop.is-loading .ufc-pop__loading { display: flex; }
.ufc-pop__loading span { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, #EEF2F8 0%, #F7F8FA 50%, #EEF2F8 100%); background-size: 200% 100%; animation: ufcShimmer 1.2s linear infinite; }
.ufc-pop__loading span:nth-child(1) { width: 70%; height: 28px; }
.ufc-pop__loading span:nth-child(2) { width: 100%; height: 48px; margin-top: 10px; }
.ufc-pop__loading span:nth-child(3) { width: 30%; height: 44px; }
@keyframes ufcShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ufc-pop__close { position: absolute; top: 18px; right: 18px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s; }
.ufc-pop__close:hover { background: rgba(255,255,255,.26); }
@media (max-width: 520px) { .ufc-pop__box { box-shadow: none; } .ufc-pop__head { padding: 20px 64px 18px 20px; } .ufc-pop__close { top: 14px; right: 14px; } }

@media (prefers-reduced-motion: reduce) { .ufc *, .ufc-nav { transition: none !important; } }

/* "Ruby M. just started her 21-Day Kickstart" social-proof toasts from the export (#spToast on
   /studio, /success, /personal-trainers-leicester) are switched off site-wide (Joe, 29 Nov). Hidden
   rather than deleted: each page's own script drives it, and display:none keeps it out of the
   accessibility tree, so its live region is never announced. */
.sp-toast, #spToast { display: none !important; }

/* One floating WhatsApp button site-wide (Joe, 29 Nov): the export's round icon (.wa-float, Studio,
   Results, Blog, Coaches, Memberships) becomes the Drop 1 Size pill, "Nervous? WhatsApp us first".
   chrome.js adds the label; each page keeps its own number and opening message. */
a.wa-float { width: auto !important; height: auto !important; display: inline-flex !important; align-items: center !important; gap: 8px !important;
  padding: 9px 16px 9px 10px !important; border-radius: 999px !important; background: #25D366 !important; color: #fff !important;
  font: 700 .86rem/1.2 Inter, system-ui, sans-serif !important; text-decoration: none !important; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0,0,0,.22) !important; transform: none !important; }
a.wa-float:hover { background: #1fbe5b !important; transform: translateY(-1px) !important; }
a.wa-float svg { width: 24px !important; height: 24px !important; flex: none; }

/* Phones: a soft shadow under the nav so white does not run into white (Joe, 29 Nov). */
@media (max-width: 768px) { .ufc-nav { box-shadow: 0 6px 18px rgba(15,26,43,.08), 0 1px 0 rgba(15,26,43,.06); } }

/* Navigation dots under results carousels on phones (chrome.js adds them). */
.ufc-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 18px auto 0; }
.ufc-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.ufc-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #A3A3A3; transition: background .2s, transform .2s; }
.ufc-dots button[aria-current="true"]::before { background: #1A1A1A; transform: scale(1.12); }
.ufc-dots button:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 1px; border-radius: 50%; }
.ufc-has-dots { scrollbar-width: none; }
.ufc-has-dots::-webkit-scrollbar { display: none; }
