/* ═══════════════════════════════════════════════════════════════════
   KHALID SARHAN — AI × INTERIOR DESIGN
   One stylesheet, driven by the tokens in :root. The palette, type and
   mood come from the Khalid Sarhan brand identity: copper, dark brown
   and off-white over warm wood interiors.

   Runs under a CSP with style-src 'self' — no style="" attributes and no
   inline <style>. Anything dynamic is a class, or a custom property set
   from app.js with el.style.setProperty().

   Bilingual: every piece of copy exists as a lang="ar" and a lang="en"
   sibling; html[data-lang] decides which is shown. Layout uses logical
   properties (inline-start / inline-end) so it mirrors with dir="rtl".
   ═══════════════════════════════════════════════════════════════════ */

/* ═══ FONTS ═══
   Self-hosted, OFL. The brand faces (Acumin Pro, TS Qamus) are commercial,
   so they are named first and used when installed; Archivo and Readex Pro
   are the closest open matches. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Archivo";
  src: url("assets/fonts/archivo-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  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: "Readex Pro";
  src: url("assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  font-weight: 160 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

/* ═══ TOKENS ═══ */
:root {
  /* Brand */
  --copper:      #be7f4c;
  --copper-ink:  #8f5530;   /* copper dark enough for small text on light */
  --copper-soft: #e4c3a4;
  --brown:       #604027;
  --espresso:    #24180f;
  --espresso-2:  #33231a;

  /* Surfaces */
  --paper:  #f5f5f5;
  --white:  #ffffff;
  --sand:   #efe9e1;
  --linen:  #e6ddd1;
  --cream:  #f3eee4;

  /* Text */
  --ink:        #1e1813;
  --ink-soft:   #5d524a;
  --ink-mute:   #8a7e74;
  --cream-soft: rgba(243, 238, 228, .74);
  --cream-mute: rgba(243, 238, 228, .5);

  /* Lines & shadow */
  --line:       #e0d8ce;
  --line-dark:  rgba(243, 238, 228, .16);
  --shadow-md:  0 10px 30px rgba(36, 24, 15, .10);
  --shadow-lg:  0 28px 70px rgba(36, 24, 15, .22);

  /* Type */
  --font-en: "Acumin Pro", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "TS Qamus", "Readex Pro", "Archivo", "Segoe UI", Tahoma, sans-serif;

  --fs-hero:  clamp(1.9rem, min(3.7vw, 6.4vh), 3.7rem);
  --fs-title: clamp(1.6rem, min(2.7vw, 4.8vh), 2.8rem);
  --fs-lead:  clamp(1rem, min(1.2vw, 2.1vh), 1.3rem);
  --fs-body:  clamp(.9rem, min(.98vw, 1.75vh), 1.06rem);
  --fs-small: clamp(.76rem, min(.8vw, 1.45vh), .88rem);

  /* Shape & motion */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --transition: 200ms var(--ease);

  /* Frame */
  --bar-h: 68px;
  --pager-h: 56px;
  --gutter: clamp(18px, 5.5vw, 88px);
  --page-max: 1240px;
}

/* ═══ BASE ═══ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
html.doc-root { scroll-snap-type: none; }
html.is-locked { overflow: hidden; }

/* Which language shows. Everything bilingual is a pair of [lang] siblings. */
html[data-lang="ar"] [lang="en"],
html[data-lang="en"] [lang="ar"] { display: none !important; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] body { font-family: var(--font-en); }
:lang(ar) { font-family: var(--font-ar); }
:lang(en) { font-family: var(--font-en); }

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

.latin { font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
html[data-lang="en"] .btn { text-transform: uppercase; letter-spacing: .1em; word-spacing: .14em; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 8px 18px; }
.btn--full { width: 100%; }

.btn--copper { background: var(--copper); color: var(--white); }
.btn--copper:hover { background: #a96c3c; }

.btn--ghost-light { background: transparent; border-color: rgba(243, 238, 228, .45); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(243, 238, 228, .1); border-color: var(--cream); }

.btn__arrow { width: 16px; height: 16px; }

/* ═══ HEADER ═══ */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  background: rgba(245, 245, 245, .88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.bar.is-on-dark {
  background: linear-gradient(to bottom, rgba(20, 13, 8, .55), rgba(20, 13, 8, 0));
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--cream);
}

.bar__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bar__mono { width: 38px; height: 38px; }
.bar__word { height: 22px; width: auto; }
.bar__word--cream { display: none; }
.bar.is-on-dark .bar__word--ink { display: none; }
.bar.is-on-dark .bar__word--cream { display: block; }

.bar__nav { display: flex; gap: 4px; margin-inline: auto; }
.bar__link {
  position: relative;
  padding: 8px 14px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.bar.is-on-dark .bar__link { color: var(--cream-soft); }
.bar__link:hover { color: var(--ink); }
.bar.is-on-dark .bar__link:hover { color: var(--cream); }
.bar__link.is-current { color: var(--copper-ink); background: rgba(190, 127, 76, .1); }
.bar.is-on-dark .bar__link.is-current { color: var(--cream); background: rgba(243, 238, 228, .12); }

.bar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bar__lang {
  min-height: 38px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  transition: border-color var(--transition), background var(--transition);
}
.bar__lang:hover { border-color: var(--copper); }
.bar.is-on-dark .bar__lang { border-color: rgba(243, 238, 228, .35); }

.bar__progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  overflow: hidden;
}
.bar__progress span {
  display: block;
  height: 100%;
  background: var(--copper);
  transform-origin: left center;
  transform: scaleX(var(--progress, .25));
  transition: transform 400ms var(--ease);
}
[dir="rtl"] .bar__progress span { transform-origin: right center; }

/* ═══ PAGES ═══ */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--bar-h) + 3vh) var(--gutter) calc(var(--pager-h) + 3vh);
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}
.page__inner { position: relative; z-index: 1; width: 100%; max-width: var(--page-max); margin-inline: auto; }

.page--sand { background: var(--sand); }
.page--espresso { background: var(--espresso); color: var(--cream); }

/* A soft copper glow in a corner, like late sun on the wood. */
.page--sand::before,
.page--espresso::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  inset-inline-end: -28vmax;
  top: -34vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 127, 76, .16), rgba(190, 127, 76, 0));
}
.page--espresso::before { background: radial-gradient(closest-side, rgba(190, 127, 76, .22), rgba(190, 127, 76, 0)); }

/* Section furniture */
.head { margin-bottom: clamp(18px, 3.6vh, 40px); max-width: 860px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--copper-ink);
  font-size: var(--fs-small);
  font-weight: 600;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
html[data-lang="en"] .kicker { text-transform: uppercase; letter-spacing: .18em; }
.is-dark .kicker { color: var(--copper-soft); }

.title {
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.title:lang(en),
.title [lang="en"] {
  font-style: italic;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.01em;
  word-spacing: .08em;
  text-transform: uppercase;
}
.title em { font-style: inherit; color: var(--copper); }
.is-dark .title em { color: var(--copper-soft); }

/* ═══ REVEAL ═══
   Hidden only once app.js has swapped no-js for js, so a failed script
   never leaves a page blank. */
.js .page .rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .page.is-seen .rise { opacity: 1; transform: none; }

/* ═══ 1 · HERO ═══ */
.page--hero { background: var(--espresso); color: var(--cream); padding-bottom: calc(var(--pager-h) + 2vh); }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.page--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(24, 16, 10, .55) 0%, rgba(24, 16, 10, .08) 30%, rgba(24, 16, 10, .35) 58%, rgba(24, 16, 10, .9) 100%),
    linear-gradient(to left, rgba(24, 16, 10, .55), rgba(24, 16, 10, 0) 70%);
}
[dir="ltr"] .page--hero::after {
  background:
    linear-gradient(to bottom, rgba(24, 16, 10, .55) 0%, rgba(24, 16, 10, .08) 30%, rgba(24, 16, 10, .35) 58%, rgba(24, 16, 10, .9) 100%),
    linear-gradient(to right, rgba(24, 16, 10, .55), rgba(24, 16, 10, 0) 70%);
}

.hero {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: calc(100svh - var(--bar-h) - 3vh - var(--pager-h) - 2vh);
}
.hero__lockup {
  width: clamp(230px, 34vw, 540px);
  height: auto;
  margin-inline: auto;
  margin-top: 1vh;
}
.hero__body { margin-top: auto; padding-top: 4vh; max-width: 760px; }

/* Reach badge: the first thing on the home page. */
.hero__reach {
  display: flex; width: fit-content; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 6px 16px 6px 6px;
  background: rgba(190, 127, 76, .18); border: 1px solid var(--copper);
  border-radius: 999px; color: var(--cream); font-weight: 600; font-size: var(--fs-small);
}
[dir="rtl"] .hero__reach { padding: 6px 6px 6px 16px; }
.hero__reach b {
  padding: 4px 12px; background: var(--copper); color: var(--white);
  border-radius: 999px; font-size: 1.05em; font-weight: 800; direction: ltr;
}

.hero__tag {
  font-family: var(--font-en);
  direction: ltr;
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(228, 195, 164, .5);
  border-radius: 999px;
  color: var(--copper-soft);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .2em;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.25;
}
.hero__title [lang="en"] {
  display: block;
  font-style: italic;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.01em;
  word-spacing: .08em;
  text-transform: uppercase;
}
.hero__ask {
  margin-top: 10px;
  color: var(--copper-soft);
  font-size: calc(var(--fs-lead) * 1.2);
  font-weight: 500;
}
.hero__course {
  margin-top: clamp(12px, 2.4vh, 24px);
  font-size: var(--fs-lead);
  font-weight: 600;
}
.hero__lead {
  margin-top: 6px;
  max-width: 620px;
  color: var(--cream-soft);
  font-size: var(--fs-body);
  line-height: 1.75;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3vh, 30px); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(20px, 4vh, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--cream-soft);
}
html[data-lang="en"] .hero__facts { text-transform: uppercase; letter-spacing: .1em; }
.hero__facts li:nth-child(2) { text-align: center; }
.hero__facts--courses button {
  padding: 4px 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(243, 238, 228, .25);
  text-underline-offset: 5px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.hero__facts--courses button:hover { color: var(--cream); text-decoration-color: var(--copper); }
.hero__facts--courses b { font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--copper-soft); margin-inline-end: 6px; }
.hero__facts li:nth-child(3) { text-align: end; }

/* ═══ 2 · CURRICULUM ═══ */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  counter-reset: module;
}
.module {
  position: relative;
  padding: clamp(16px, 2.4vh, 26px) clamp(16px, 1.6vw, 24px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.module:hover { border-color: var(--copper-soft); box-shadow: var(--shadow-md); }
.module__num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.4rem, min(2vw, 3.6vh), 2.2rem);
  line-height: 1;
  color: var(--copper);
}
.module__title {
  margin-bottom: clamp(8px, 1.4vh, 14px);
  padding-bottom: clamp(8px, 1.4vh, 14px);
  border-bottom: 1px solid var(--line);
  font-size: calc(var(--fs-body) * 1.12);
  font-weight: 700;
  line-height: 1.35;
}
.module__list { display: grid; gap: clamp(3px, .7vh, 8px); font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.5; }
.module__list--two { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.module__list li { position: relative; padding-inline-start: 16px; }
.module__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--copper);
}

/* Columns, not a grid, so the list reads down: 01–06, then 07–11. */
.gains {
  columns: 2;
  column-gap: clamp(18px, 2.4vw, 34px);
  counter-reset: gain;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.gains li {
  position: relative;
  break-inside: avoid;
  margin-bottom: clamp(8px, 1.5vh, 16px);
  padding-inline-start: 34px;
  counter-increment: gain;
}
.gains li::before {
  content: counter(gain, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: -.05em;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  color: var(--copper);
}

/* ═══ SHARED LISTS (course sheets) ═══ */
.goal {
  margin-top: clamp(16px, 3.4vh, 34px);
  padding: clamp(12px, 2vh, 20px) clamp(16px, 1.8vw, 24px);
  border-inline-start: 3px solid var(--copper);
  background: rgba(255, 255, 255, .55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.6;
  color: var(--brown);
}
[dir="rtl"] .goal { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.goal [lang="en"] { font-style: italic; }

/* ═══ 2 · COURSES ═══ */
.head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 40px;
  max-width: none;
}
.head__lead { max-width: 420px; font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.7; }

.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.course__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: start;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.course__btn:hover, .course__btn:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--copper-soft); }
.course__media { position: relative; display: block; aspect-ratio: 16 / 10; max-height: 30vh; overflow: hidden; background: var(--linen); }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.course__btn:hover .course__media img { transform: scale(1.05); }
.course__num {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 14px;
  padding: 2px 12px;
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--copper);
}
.course__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: clamp(14px, 2.2vh, 22px) clamp(16px, 1.6vw, 22px); }
.course__title { font-size: calc(var(--fs-lead) * 1.08); font-weight: 700; line-height: 1.35; color: var(--ink); }
html[data-lang="en"] .course__title { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.1; }
.course__desc { font-size: var(--fs-small); line-height: 1.65; color: var(--ink-soft); }
.course__meta { font-size: var(--fs-small); font-weight: 600; color: var(--copper-ink); }
.course__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink);
}
html[data-lang="en"] .course__cta { text-transform: uppercase; letter-spacing: .12em; }
.course__cta::after { content: "←"; color: var(--copper); transition: transform var(--transition); }
html[dir="ltr"] .course__cta::after { content: "→"; }
.course__btn:hover .course__cta::after { transform: translateX(-4px); }
html[dir="ltr"] .course__btn:hover .course__cta::after { transform: translateX(4px); }

/* ═══ COURSE SHEETS ═══
   A large modal panel. The dialog itself scrolls; its title bar sticks. */
.sheet {
  width: min(1120px, 94vw);
  max-width: none;
  height: min(92vh, 1000px);
  height: min(92dvh, 1000px);
  max-height: none;
  margin: auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(20, 13, 8, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(16px, 2.6vw, 32px);
  background: rgba(245, 245, 245, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sheet__num { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 1.4rem; color: var(--copper); }
.sheet__title { flex: 1; min-width: 0; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.3; }
.sheet__title:lang(en) { font-style: italic; font-weight: 800; text-transform: uppercase; }
.sheet__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  transition: border-color var(--transition), color var(--transition);
}
.sheet__close:hover { border-color: var(--copper); color: var(--ink); }

.sheet__body { padding: clamp(18px, 3vw, 36px) clamp(16px, 2.6vw, 32px) clamp(24px, 4vw, 44px); }
.sheet__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  margin-bottom: clamp(22px, 3.4vw, 40px);
}
.sheet__cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.sheet__lead { font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li {
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brown);
}

.sheet__section { padding-top: clamp(18px, 2.6vw, 28px); margin-top: clamp(18px, 2.6vw, 28px); border-top: 1px solid var(--line); }
.sheet__h { margin-bottom: 16px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
html[data-lang="en"] .sheet__h { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }

.modules--sheet { gap: 12px; }
.modules--sheet .module { padding: 16px 18px; }
.modules--sheet .module__title { font-size: 1rem; }
.modules--sheet .module__list { font-size: .9rem; }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: skill; }
.skill {
  position: relative;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: skill;
}
.skill__title { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; font-size: 1rem; font-weight: 700; }
.skill__title::before { content: counter(skill); font-family: var(--font-en); font-style: italic; font-weight: 800; color: var(--copper); }
.skill__list { display: grid; gap: 5px; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.skill__list li { position: relative; padding-inline-start: 16px; }
.skill__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 1px; background: var(--copper); }

.gains--sheet { font-size: .95rem; }
.goal--sheet { font-size: 1.05rem; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.facts > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--copper-ink); font-weight: 600; }
html[data-lang="en"] .facts dt { text-transform: uppercase; letter-spacing: .14em; }
.facts dd { font-weight: 600; }
.facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper-soft); text-underline-offset: 4px; }

/* Bundle offer under the course cards. */
.bundle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-top: clamp(14px, 2.2vh, 22px); padding: clamp(14px, 2vh, 20px) clamp(16px, 2vw, 26px);
  background: var(--espresso); color: var(--cream); border-radius: var(--radius-lg);
}
.bundle__tag { font-size: .8rem; font-weight: 700; color: var(--copper-soft); }
html[data-lang="en"] .bundle__tag { text-transform: uppercase; letter-spacing: .14em; }
.bundle__title { font-size: calc(var(--fs-lead) * 1.08); font-weight: 700; }
.bundle__title b { color: var(--copper-soft); }
.bundle__sub { font-size: var(--fs-small); color: var(--cream-mute); }

/* Course fees: one card per price line; the early-bird card stands out. */
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fee { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.fee--deal { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper) inset; }
.fee__label { margin-bottom: 8px; font-size: .85rem; font-weight: 700; color: var(--copper-ink); }
.fee__amounts { display: grid; gap: 2px; font-weight: 600; }
.fee__amounts li:first-child { font-size: 1.15rem; color: var(--ink); }
.fee__amounts li + li { font-size: .88rem; color: var(--ink-soft); }
.fee__note { margin: -4px 0 8px; font-size: .85rem; font-weight: 700; color: var(--ink); }

/* Course video: our own poster and play button until pressed; then the
   YouTube player (created by app.js) fills the same 16:9 box. */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: var(--espresso); }
.video__play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__play img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: filter var(--transition); }
.video__play:hover img, .video__play:focus-visible img { filter: brightness(.75); }
.video__icon {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--copper); box-shadow: var(--shadow-lg);
}
[dir="rtl"] .video__icon { margin: -36px -36px 0 0; }
.video__icon::after {
  content: ""; position: absolute; inset-block-start: 50%; left: 50%;
  margin: -12px 0 0 -7px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--cream);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__note { margin-top: 8px; font-size: .82rem; color: var(--ink-soft); }
.video__note a { color: var(--copper-ink); text-decoration: underline; text-underline-offset: 3px; }


.sheet__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
}

/* ═══ 3 · ACCREDITATION ═══ */
.accred {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.accred__issuer { display: grid; gap: 2px; margin-bottom: clamp(12px, 2.2vh, 22px); }
.accred__issuer-ar { font-family: var(--font-ar); font-size: calc(var(--fs-lead) * 1.15); font-weight: 700; }
.accred__issuer-en { justify-self: start; font-size: var(--fs-small); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-soft); }

[dir="rtl"] .accred__issuer-en { text-align: right; }

.accred__perks { display: grid; gap: 8px; margin-bottom: clamp(14px, 2.6vh, 26px); }
.accred__perks li {
  position: relative;
  padding-inline-start: 30px;
  font-size: var(--fs-body);
  font-weight: 600;
}
/* A drawn tick, so no icon font or image is needed. */
.accred__perks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--copper);
}
.accred__perks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: calc(.3em + 4px);
  width: 5px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.accred__subtitle { margin-bottom: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--copper-soft); }
html[data-lang="en"] .accred__subtitle { text-transform: uppercase; letter-spacing: .16em; }
.accred__list { display: grid; counter-reset: body; border-top: 1px solid var(--line-dark); }
.accred__list li {
  position: relative;
  padding: clamp(7px, 1.25vh, 12px) 0;
  padding-inline-start: 38px;
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  color: var(--cream-soft);
  counter-increment: body;
}
.accred__list li::before {
  content: counter(body, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  color: var(--copper);
}

.accred__sheet { display: grid; gap: 12px; justify-items: center; }
.accred__zoom {
  display: block;
  width: min(100%, 520px);
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(243, 238, 228, .12);
  cursor: zoom-in;
  transition: transform 300ms var(--ease);
}
.accred__zoom:hover, .accred__zoom:focus-visible { transform: scale(1.015); }
.accred__zoom img { width: 100%; height: auto; max-height: 58vh; object-fit: contain; background: #f1ece4; }
.accred__sheet figcaption { font-size: var(--fs-small); color: var(--cream-mute); }

/* ═══ 4 · THE TRAINER ═══ */
.coach__top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: clamp(16px, 3vh, 30px);
}
.profile {
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: flex-start;
  padding: clamp(14px, 2.2vh, 22px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.profile__photo {
  flex-shrink: 0;
  width: clamp(72px, 11vh, 108px);
  height: clamp(72px, 11vh, 108px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--copper);
}
.profile__roles { font-size: var(--fs-small); font-weight: 600; color: var(--copper-ink); }
.profile__bio { margin-top: 8px; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-soft); }

.insta {
  display: flex;
  gap: clamp(12px, 1.4vw, 18px);
  align-items: center;
  padding: clamp(12px, 2vh, 18px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.insta:hover { border-color: var(--copper-soft); box-shadow: var(--shadow-md); }
.insta__qr { flex-shrink: 0; width: clamp(86px, 14vh, 128px); height: auto; border-radius: var(--radius-sm); }
.insta__text { display: grid; gap: 4px; min-width: 0; }
.insta__label { font-size: var(--fs-small); font-weight: 600; color: var(--copper-ink); }
html[data-lang="en"] .insta__label { text-transform: uppercase; letter-spacing: .14em; }
.insta__handle { font-size: var(--fs-body); font-weight: 700; overflow-wrap: anywhere; }
.insta__hint { font-size: var(--fs-small); color: var(--ink-mute); }


/* ═══ 5 · REVIEWS ═══ */
.reviews { display: grid; gap: clamp(16px, 3vh, 30px); }
.slider { display: grid; gap: 14px; }
/* One review sits large in the middle; its neighbours wait smaller and
   faded on either side. The side padding lets the first and last centre. */
.slider__track {
  --slide-w: min(300px, calc(58vh * 9 / 16), 68vw);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide-w);
  gap: clamp(4px, 1vw, 14px);
  padding: 8px calc(50% - var(--slide-w) / 2) 30px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: center;
  transform: scale(.84); opacity: .5;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease);
}
.slide.is-active { transform: none; opacity: 1; }
.slide__video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  object-fit: cover; background: var(--espresso);
  border-radius: var(--radius-lg); box-shadow: 0 10px 24px rgba(36, 24, 15, .16);
}
.slider__controls { display: flex; align-items: center; gap: 14px; justify-content: center; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); transition: width var(--transition), background var(--transition); }
.slider__dot.is-active { width: 22px; background: var(--copper); }
.slider__btn {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 50%;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.slider__btn:hover, .slider__btn:focus-visible { background: var(--copper); color: var(--white); border-color: var(--copper); }
.slider__btn svg { width: 22px; height: 22px; }
[dir="ltr"] .slider__btn svg { transform: scaleX(-1); }

/* ═══ 6 · BOOKING ═══ */
.schedule { display: grid; border-top: 1px solid var(--line-dark); }
.schedule__row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  padding-block: clamp(10px, 1.8vh, 16px);
  border-bottom: 1px solid var(--line-dark);
}
.schedule__num { font-family: var(--font-en); font-style: italic; font-weight: 800; font-size: 1.15rem; color: var(--copper); }
.schedule__main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.schedule__name { font-weight: 700; }
.schedule__when { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--cream-soft); }
.schedule__note { font-size: var(--fs-small); color: var(--cream-mute); }
.schedule__more {
  flex-shrink: 0;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(243, 238, 228, .3);
  border-radius: 999px;
  color: var(--cream);
  font-size: var(--fs-small);
  transition: border-color var(--transition), background var(--transition);
}
.schedule__more:hover { border-color: var(--copper); background: rgba(190, 127, 76, .14); }
.schedule__actions { display: flex; flex-shrink: 0; gap: 8px; }
.schedule__book { background: var(--copper); border-color: var(--copper); color: var(--white); font-weight: 700; }
.schedule__book:hover { background: var(--copper-ink); border-color: var(--copper-ink); }

.book-form { scroll-margin-top: calc(var(--bar-h) + 12px); }

/* After a "Book" press: the course and date fields glow once, to show
   they were filled in for you. */
@keyframes filled { from { box-shadow: 0 0 0 4px rgba(190, 127, 76, .55); } to { box-shadow: 0 0 0 0 rgba(190, 127, 76, 0); } }
.field__input.is-filled { animation: filled 1.6s var(--ease) 1; border-color: var(--copper); }

/* A start date; greyed and struck through once it has passed. */
.intake {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(190, 127, 76, .2);
  border: 1px solid rgba(228, 195, 164, .4);
  border-radius: 999px;
  font-weight: 600;
  color: var(--cream);
}
.facts .intake { background: var(--white); border-color: var(--copper-soft); color: var(--ink); }
.intake.is-past { opacity: .45; text-decoration: line-through; }
.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: clamp(22px, 4vw, 64px);
  row-gap: clamp(14px, 2.6vh, 28px);
  align-items: start;
}

.reach {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: clamp(12px, 2.4vh, 22px);
  font-size: var(--fs-small);
  color: var(--cream-soft);
}
.reach__label { color: var(--copper-soft); }
.reach a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(243, 238, 228, .35); text-underline-offset: 3px; }
.reach a:hover { text-decoration-color: var(--copper); }

/* The form sits on paper, like the brand's light business card. */
.book-form {
  display: grid;
  gap: clamp(10px, 1.7vh, 16px);
  padding: clamp(20px, 3.4vh, 34px) clamp(20px, 2.2vw, 32px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.book-form__title { font-size: calc(var(--fs-lead) * 1.1); font-weight: 700; }
html[data-lang="en"] .book-form__title { font-style: italic; font-weight: 800; text-transform: uppercase; }

.field { display: grid; gap: 5px; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); }
.field__opt { font-weight: 400; color: var(--ink-mute); }
.field__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field__input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(190, 127, 76, .18); }
.field__input[aria-invalid="true"] { border-color: #b4483c; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 14px); }
.field-row--stack { grid-template-columns: minmax(0, 1fr); }

/* The bot trap: off-screen, not display:none, so naive bots still fill it. */
.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: .12em 0 0;
  accent-color: var(--copper);
  cursor: pointer;
}
.consent a, .book-form__status a { color: var(--copper-ink); text-decoration: underline; text-underline-offset: 3px; }
select.field__input { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  padding-inline-end: 38px;
}
[dir="rtl"] select.field__input { background-position: 15px 50%, 20px 50%; }

.book-form__status { min-height: 1.4em; font-size: var(--fs-small); color: var(--ink-mute); text-align: center; line-height: 1.5; }
.book-form__status.is-error { color: #a33c31; }
.book-form__status.is-ok { color: #3f6b45; }

.foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: clamp(10px, 1.8vh, 18px);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  color: var(--cream-mute);
}
.foot img { width: 24px; height: 24px; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-inline-start: auto; }
.foot__links a { transition: color var(--transition); }
.foot__links a:hover { color: var(--cream); }
.foot__badge { padding: 3px 10px; border: 1px solid var(--line-dark); border-radius: 999px; }

/* ═══ DOCUMENTS (privacy, terms) ═══ */
.doc-page { background: var(--paper); }
.doc { padding: calc(var(--bar-h) + clamp(32px, 7vh, 72px)) var(--gutter) clamp(48px, 8vh, 88px); }
.doc__body { max-width: 760px; margin-inline: auto; }
.doc__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.25; }
.doc__title:lang(en) { font-style: italic; font-weight: 800; text-transform: uppercase; line-height: 1.05; letter-spacing: -.01em; }
.doc__updated { margin-top: 10px; font-size: .9rem; color: var(--ink-mute); }

.doc__summary {
  margin-block: clamp(24px, 4vh, 36px);
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--copper);
  border-radius: var(--radius-md);
}
.doc__summary-title { margin-bottom: 8px; font-size: 1rem; font-weight: 700; color: var(--brown); }
html[data-lang="en"] .doc__summary-title { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }

.doc__body { counter-reset: section; }
.doc__section { padding-block: 18px; border-bottom: 1px solid var(--line); }
.doc__section:last-child { border-bottom: 0; }
.doc__section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  counter-increment: section;
}
.doc__section h2::before {
  content: counter(section, decimal-leading-zero);
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: .95rem;
  color: var(--copper);
}
.doc p, .doc li { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); }
.doc p + p { margin-top: 10px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc ul { display: grid; gap: 6px; }
.doc li { position: relative; padding-inline-start: 18px; }
.doc li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .9em;
  width: 8px;
  height: 1px;
  background: var(--copper);
}
.doc a { color: var(--copper-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: 1px 6px; background: var(--linen); border-radius: 4px; direction: ltr; unicode-bidi: isolate; }
.doc__contact { color: var(--ink); }

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 22px var(--gutter);
  background: var(--espresso);
  color: var(--cream-mute);
  font-size: var(--fs-small);
}
.doc-foot img { width: 24px; height: 24px; }
.doc-foot .foot__links a[aria-current="page"] { color: var(--cream); }

/* ═══ 404 ═══ */
.lost-page { background: var(--espresso); color: var(--cream); }
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 40px var(--gutter);
  text-align: center;
}
.lost__mono { width: 64px; height: 64px; }
.lost__code {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  color: var(--copper);
}
.lost__title { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; }
.lost__text { max-width: 480px; color: var(--cream-soft); }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ═══ LIGHTBOX ═══ */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(16, 10, 6, .92); }
.lightbox__figure {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 56px clamp(56px, 7vw, 110px);
  pointer-events: none;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.lightbox__caption { font-size: var(--fs-small); color: var(--cream-soft); text-align: center; }
.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(243, 238, 228, .1);
  border: 1px solid rgba(243, 238, 228, .25);
  border-radius: 50%;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  transition: background var(--transition);
}
.lightbox__btn:hover { background: rgba(243, 238, 228, .2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-start: 16px; }
.lightbox__next { inset-inline-end: 16px; }
[dir="rtl"] .lightbox__btn svg { transform: scaleX(-1); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }

/* ═══ PAGER ═══ */
.pager {
  position: fixed;
  inset-block-end: 14px;
  inset-inline-end: var(--gutter);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pager.is-on-dark { background: rgba(36, 24, 15, .7); border-color: var(--line-dark); color: var(--cream); }
.pager__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: background var(--transition), opacity var(--transition);
}
.pager__btn svg { width: 20px; height: 20px; }
.pager__btn:hover { background: rgba(190, 127, 76, .14); }
.pager__btn:disabled { opacity: .3; cursor: default; background: transparent; }
.pager__count {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-en);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .bar__nav { display: none; }
  .bar__actions { margin-inline-start: auto; }
  .modules { grid-template-columns: repeat(2, 1fr); }
}

/* Small or short screens: pages grow with their content and scroll
   freely instead of snapping. */
@media (max-width: 860px), (max-height: 620px) {
  html { scroll-snap-type: none; }
  .page { min-height: auto; padding-block: calc(var(--bar-h) + 36px) 72px; }
  .page--hero { min-height: 100svh; }
  .booking, .accred, .coach__top, .sheet__intro { grid-template-columns: minmax(0, 1fr); }
  .course__media { max-height: none; }
  .skills, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --bar-h: 60px; }
  .bar { gap: 12px; }
  .bar__word { display: none !important; }
  .bar__actions .btn { display: none; }
  .modules, .facts { grid-template-columns: 1fr; }
  .gains { columns: 1; }
  .module__list--two { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .skills, .facts { grid-template-columns: 1fr; }
  .fees { grid-template-columns: 1fr; }
  .sheet { width: 100vw; height: 100dvh; border-radius: 0; }
  .sheet__book { display: none; }
  .schedule__row { flex-wrap: wrap; }
  .schedule__actions { width: 100%; }
  .schedule__actions .schedule__more { flex: 1; }
  .insta { align-items: flex-start; }
  .profile { flex-direction: column; }
  .foot__links { margin-inline-start: 0; width: 100%; }
  .hero__facts { grid-template-columns: 1fr; gap: 10px; }
  .hero__facts li:nth-child(n) { text-align: start; }
  .hero__actions .btn { width: 100%; }
}

/* Phones: the three courses stay side by side as compact cards. The full
   description is one tap away in each course's sheet. */
@media (max-width: 640px) {
  .courses { gap: 8px; }
  .course__btn { border-radius: var(--radius-md); }
  .course__btn:hover, .course__btn:focus-visible { transform: none; }
  .course__media { aspect-ratio: 1 / 1; }
  .course__num { inset-block-end: 6px; inset-inline-start: 6px; padding: 0 7px; font-size: .75rem; }
  .course__body { gap: 6px; padding: 9px 8px 10px; }
  .course__title { font-size: .8rem; line-height: 1.35; }
  html[data-lang="en"] .course__title { font-size: .72rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .course__desc { display: none; }
  .course__meta { font-size: .66rem; line-height: 1.45; }
  .course__cta { padding-top: 7px; font-size: .68rem; white-space: nowrap; }
  .course__cta::after { display: none; }
  html[data-lang="en"] .course__cta { font-size: .62rem; letter-spacing: .02em; }
}
@media (max-width: 360px) {
  .courses { gap: 6px; }
  .course__body { padding-inline: 6px; }
  .course__cta { font-size: .62rem; }
  html[data-lang="en"] .course__cta { font-size: .58rem; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .page .rise { opacity: 1; transform: none; }
}

/* ═══ PRINT ═══ */
@media print {
  @page { size: landscape; margin: 0; }
  html { scroll-snap-type: none; }
  .bar, .pager { display: none !important; }
  .page { min-height: 100vh; break-after: page; padding-block: 5vh; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .js .page .rise { opacity: 1 !important; transform: none !important; }
}
