/* training.yasfco.com — shared base. Static looks only: all motion lives in assets/js/motion.js (GSAP).
   No @keyframes, no CSS transitions, no CSS transforms on anything GSAP moves. */

@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/cairo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --navy: #142439; --navy2: #0E1A2B; --ink: #08101C; --gold: #C3B280; --sand: #F3EDE4; --white: #FFFFFF;
  --ts: #4F5A69; --onm: #B9C0CA; --lsub: #E2D9CA; --blue: #2E4A7A; --deepb: #1E3A66; --pale: #EFE4C4;
  --wrap: 1200px; --gutter: clamp(20px, 6vw, 120px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Cairo", system-ui, sans-serif; color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grain { position: absolute; inset: 0; pointer-events: none; background: url("../img/grain.png") repeat; background-size: 128px 128px; z-index: 1; }

/* Square buttons with a real fill layer (same pattern as the main site's fillButton) */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; font-weight: 700; font-size: 15px; line-height: 1.2; overflow: hidden; border: 1px solid transparent; isolation: isolate; white-space: nowrap; }
.btn .yb-fill { position: absolute; inset: 0; z-index: -1; transform-origin: 50% 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Version switcher (prototype only) */
.vswitch { position: fixed; z-index: 100; inset-inline: 0; bottom: 18px; display: flex; justify-content: center; pointer-events: none; }
.vswitch nav { pointer-events: auto; display: flex; gap: 4px; padding: 5px; background: rgba(8, 16, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12); }
.vswitch a { font: 600 13px/1 "Cairo", sans-serif; color: rgba(243, 237, 228, .7); padding: 10px 14px; }
.vswitch a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.vswitch a span { font-family: "Manrope", sans-serif; opacity: .7; margin-inline-end: 6px; }

/* Reveal helpers: GSAP sets the start state, CSS only marks words for splitting */
.w { display: inline-block; }
.line-mask { display: block; overflow: hidden; padding-block: .06em; }

@media (max-width: 600px) { .vswitch a { padding: 9px 10px; font-size: 12px; } .vswitch a span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
