/* =====================================================================
   STADIA GLOBAL — brand background colors (shared by every page)
   Each product owns one signature color. Home is white with grey.
   ===================================================================== */
:root {
  --stadia-grey: #6e6e73;        /* mid grey — home hero photo stage */
  --stadia-grey-light: #e8e8ed;  /* light grey — contact band */
  --stadia-grey-dark: #1d1d1f;   /* graphite — dark utility bands */
  --stadia-black: #000000;

  --stadia-green: #00d959;       /* Asher's Harvest — vivid */
  --stadia-green-deep: #00361b;  /* Asher's Harvest — deep canvas */
  --stadia-green-ink: #062a14;   /* text on vivid green */

  --stadia-orange: #ff6a13;      /* Space Boot & Apparel — neon orange */
  --stadia-orange-ink: #311400;  /* text on neon orange (Ember Black) */

  --stadia-blue: #0071e3;        /* Fitness Combine — vivid */
  --stadia-blue-deep: #001a3d;   /* Fitness Combine — deep canvas */
}

/* =====================================================================
   PP Neue Machina — home page display face (header, nav, titles, figures).
   Registered under the family name the stylesheets already ask for first.
   ===================================================================== */
@font-face {
  font-family: 'pp-neue-machina-plain';
  src: url('../fonts/neue-machina-regular.woff') format('woff'),
       url('../fonts/neue-machina-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Neue Haas Grotesk (home page body text) — add your licensed web font files here, e.g.:
@font-face { font-family: 'neue-haas-grot-text'; src: url('../fonts/NHaasGroteskTXPro-55Rg.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'neue-haas-grot-text'; src: url('../fonts/NHaasGroteskTXPro-65Md.woff2') format('woff2'); font-weight: 500; font-display: swap; }
   Until then the system UI font is used. */

/* =====================================================================
   STADIA wordmark — Nasalization Regular (Typodermic Fonts)
   Every visible "STADIA" in the brand name is wrapped in
   <span class="wm-stadia">STADIA</span>. "GLOBAL" and everything else
   keep the surrounding header font, so the lockup stays uniform.
   ===================================================================== */
@font-face {
  font-family: 'Nasalization';
  src: url('../fonts/nasalization-rg.woff') format('woff'),
       url('../fonts/Nasalization-Rg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.wm-stadia {
  font-family: 'Nasalization', var(--font-display, var(--u-display, sans-serif));
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Nasalization runs wide: trim it inside the big hero title so STADIA and GLOBAL line up */
.display .wm-stadia, .h-hero__title .wm-stadia { font-size: 0.86em; letter-spacing: 0; }
/* Home hero: GLOBAL at half the size of the display line */
.h-hero__title .h-hero__global { font-size: 0.5em; margin-top: 0.08em; }

/* Spam-trap fields: off-screen for people and screen readers, still present for bots */
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Visually hidden, still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Language picker (built by js/i18n.js inside any [data-lang-switch]) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: inherit; flex: none; }
.lang-switch__label { display: inline-flex; align-items: center; color: inherit; opacity: .8; cursor: pointer; }
.lang-switch__select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: inherit; font-size: 12px; letter-spacing: 0.02em; line-height: 1;
  color: inherit; background: transparent;
  border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px;
  opacity: .85; transition: opacity .2s ease;
}
.lang-switch__select:hover, .lang-switch__select:focus-visible { opacity: 1; }
.lang-switch__select option { color: #111; background: #fff; }
@media (max-width: 767px) {
  .lang-switch__label { display: none; }
  .lang-switch__select { padding: 6px 10px; font-size: 11px; }
}
/* Keep the home logo on one line next to the language picker on phones */
.brand-mark { white-space: nowrap; }
@media (max-width: 767px) { .site-header { gap: 12px; } .site-header .lang-switch { margin-left: auto; } }

/* =====================================================================
   Other scripts and right-to-left (set by js/i18n.js on <html>)
   ===================================================================== */
/* Arabic and Hindi letters join or stack: letter-spacing would break them apart */
html[lang="ar"] *, html[lang="hi"] *, html[lang="fa"] *, html[lang="pa"] *, html[lang="te"] * { letter-spacing: 0 !important; }
html[lang="ar"] body, html[lang="hi"] body, html[lang="fa"] body, html[lang="pa"] body, html[lang="te"] body { line-height: 1.6; }
/* Numbers that animate digit by digit always read left to right */
.tumble, .u-table .u-num, .u-metric { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .u-table th, html[dir="rtl"] .u-table td { text-align: right; }
html[dir="rtl"] .u-table .u-num { text-align: left; }
/* Sideways gallery: in right-to-left the extra cards sit to the left, so slide the other way */
html.motion-ok[dir="rtl"] .h-track { transform: translateX(calc(var(--t, 0) * max(0px, 100% - 100vw))); }
/* Popup arrows swap sides and direction */
html[dir="rtl"] .u-lightbox__prev { left: auto; right: clamp(12px, 3vw, 40px); transform: scaleX(-1); }
html[dir="rtl"] .u-lightbox__next { right: auto; left: clamp(12px, 3vw, 40px); transform: scaleX(-1); }
html[dir="rtl"] .u-lightbox__close { right: auto; left: clamp(12px, 3vw, 40px); }

/* Enhanced language picker (two-column desktop menu, grid on mobile) */
.lang-picker { position: relative; }
.lang-picker .lang-switch__label { display: none; }
.lang-picker__native { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.lang-picker__trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: inherit; background: transparent; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; cursor: pointer; }
.lang-picker__trigger:hover { border-color: currentColor; }
.lang-picker__trigger:focus-visible, .lang-picker__opt:focus-visible { outline: 2px solid #f5a524; outline-offset: 2px; }
.lang-picker__caret { transition: transform .15s; }
.lang-picker__trigger[aria-expanded="true"] .lang-picker__caret { transform: rotate(180deg); }
.lang-picker__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 1000; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 380px; max-width: calc(100vw - 24px); max-height: min(70vh, 460px); overflow-y: auto; padding: 8px; color: #14181f; background: #fbfaf7; border: 1px solid rgba(20,24,31,.15); border-radius: 12px; box-shadow: 0 12px 32px rgba(10,14,20,.28); text-shadow: none; }
.lang-picker__menu[hidden] { display: none; }
.lang-picker__opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 15px; text-align: start; color: inherit; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.lang-picker__opt:hover { background: rgba(20,24,31,.07); }
.lang-picker__abbr { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .55; }
.lang-picker__name { min-width: 0; overflow-wrap: anywhere; letter-spacing: normal; text-transform: none; }
.lang-picker__code, .lang-picker__abbr { direction: ltr; unicode-bidi: isolate; }
.lang-picker__opt[aria-pressed="true"] { background: #14181f; color: #fbfaf7; }
.lang-picker__opt[aria-pressed="true"] .lang-picker__abbr { opacity: .8; }
@media (max-width: 639px) {
  .lang-picker { position: static; }
  .lang-picker__menu { position: fixed; top: 64px; inset-inline: 12px; width: auto; max-height: calc(100dvh - 80px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lang-picker__opt { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 4px; text-align: center; font-size: 14px; }
}
