:root {
  --bg-canvas: #111111;
  --bg-surface: #191919;
  --bg-surface-alt: #222222;
  --bg-elevated: #161616;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.26);
  --ruby-red: #c90b30;
  --ruby-red-hover: #e0153c;
  --ruby-accent: #ff6680;
  --text-primary: #fafafa;
  --text-secondary: #b6b6b6;
  --text-body: #e0e0e0;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --container: 1536px;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: "Inter", "Manrope", "Cairo", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.container {
  width: min(100% - clamp(40px, 6.4vw, 116px), var(--container));
  margin-inline: auto;
}

/* Editorial Typography */
.font-display {
  font-family: "Barlow Condensed", "Oswald", "Cairo", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.96;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ruby-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.35rem, 4.25vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.047em;
  line-height: 1.01;
  color: var(--text-primary);
}

html[dir="rtl"] body {
  font-family: "Cairo", sans-serif;
}

html[dir="rtl"] .section-title {
  letter-spacing: normal;
  line-height: 1.2;
}

.section-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

/* Campaign header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-height);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: var(--bg-canvas);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.header-wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  direction: ltr;
}

.header-logo-full {
  display: block;
  width: auto;
  height: clamp(44px, 4.5vw, 58px);
  max-width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-seal-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: rgba(21, 21, 25, 0.92);
  border: 1px solid rgba(232, 32, 42, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, height 0.3s ease;
}

.brand-seal-wrap.brand-seal-lg {
  width: 64px;
  height: 64px;
}

.brand-seal {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark {
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #f5f5f5;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-top: 2px;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: clamp(24px, 4.7vw, 76px);
}

.nav-link {
  padding-block: 5px;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.nav-link:hover,
.nav-link.active {
  text-decoration-line: underline;
  text-decoration-color: var(--ruby-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.header-actions {
  justify-content: flex-end;
  gap: clamp(10px, 1.35vw, 22px);
}

.header-actions .header-language {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 6px 0;
  font-size: 0.875rem;
}

.header-actions .header-language:hover {
  text-decoration: underline;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(21, 21, 25, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-lang:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* Primary and secondary buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ruby-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ruby-red-hover);
}

.btn-primary-sm {
  min-height: 42px;
  padding: 10px 18px;
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: var(--bg-surface-alt);
}

.header-book.btn-primary,
.hero-actions .btn-primary {
  background: #fff;
  color: #111;
}

.header-book.btn-primary:hover,
.hero-actions .btn-primary:hover {
  background: #f4e2e6;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 auto;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  z-index: 69;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer.open {
  display: flex;
}

/* Ruby campaign hero */
.hero-section {
  --hero-tail-height: clamp(115px, 15svh, 164px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-block-start: var(--header-height);
  background: #121316;
  color: #fff;
  overflow: clip;
}

.hero-section::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 var(--hero-tail-height);
  background:
    linear-gradient(120deg, transparent 57%, rgb(92 5 30 / 0.2) 57% 63%, transparent 63%),
    linear-gradient(110deg, #ae092b, var(--ruby-red) 66%, #d00c34);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(14px, 3.4vw, 66px)), 0 100%);
  content: "";
}

html[dir="rtl"] .hero-section::before {
  transform: scaleX(-1);
}

.hero-athlete {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: min(50.8%, 1020px);
  height: auto;
  max-height: calc(100% - clamp(32px, 6svh, 82px));
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.hero-athlete.is-loaded {
  opacity: 1;
}

.hero-content {
  position: relative;
  align-self: center;
  padding-block: clamp(25px, 4svh, 56px);
}

.hero-content::before {
  display: block;
  width: clamp(34px, 5vw, 76px);
  height: 4px;
  margin-block-end: clamp(14px, 2.4svh, 27px);
  background: linear-gradient(90deg, #fff 68%, transparent 68% 80%, #fff 80%);
  transform: skewX(-22deg);
  content: "";
}

.hero-title {
  width: fit-content;
  margin-inline-start: -0.035em;
  font: italic 900 clamp(4.35rem, 10.45vw, 11.2rem)/0.83 "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  letter-spacing: -0.014em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

html[dir="rtl"] .hero-title {
  margin-inline-start: 0;
  font: 800 clamp(3.9rem, 8vw, 9rem)/1 "Cairo", sans-serif;
  letter-spacing: normal;
}

.hero-subtitle {
  max-width: 50%;
  margin-top: clamp(14px, 1.5vw, 26px);
  font-size: clamp(1.06rem, 1.72vw, 1.76rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(20px, 3.65vw, 62px);
  margin-top: clamp(22px, 2.6vw, 42px);
}

.hero-actions .btn-primary {
  min-height: 56px;
  padding-inline: clamp(18px, 2.25vw, 38px);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.hero-tail {
  min-height: var(--hero-tail-height);
  display: grid;
  align-items: center;
  padding-block: 14px max(14px, env(safe-area-inset-bottom));
}

.hero-regions {
  width: fit-content;
  max-width: 54%;
  padding-inline-start: clamp(12px, 1.3vw, 22px);
  border-inline-start: 3px solid #ff4967;
}

.hero-regions p {
  color: #d8d9df;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-region-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px clamp(12px, 2vw, 28px);
}

.hero-region-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.38rem);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: #94969e;
  text-underline-offset: 5px;
}

.hero-region-links a:hover {
  text-decoration-color: #ff4967;
}

/* 03. Ruby Fitness in Numbers */
.numbers-band {
  position: relative;
  z-index: 2;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.number-item {
  padding-left: 20px;
  border-left: 2px solid rgba(232, 32, 42, 0.65);
}

.number-val {
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: clamp(2.25rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: #f5f5f5;
  letter-spacing: 0.02em;
}

.number-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Editorial Section Layout */
.editorial-section {
  padding-block: clamp(64px, 7.4vw, 116px);
  scroll-margin-top: var(--header-height);
}

.editorial-section.surface-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 05. Training Programs — Campaign cut-corner cards */
.training-section {
  --training-red: #e01b2f;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(24px, 1.6vw, 30px) clamp(58px, 5vw, 84px);
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 180px),
    radial-gradient(ellipse 46% 42% at 78% 28%, rgba(201, 11, 48, 0.22), transparent 72%),
    linear-gradient(180deg, #0a0a0c 0%, #070708 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.training-section::before,
.training-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.training-section::before {
  inset: 0 0 auto auto;
  width: min(54%, 820px);
  height: min(62%, 520px);
  background: linear-gradient(225deg, rgba(224, 27, 47, 0.4) 0%, rgba(224, 27, 47, 0.07) 48%, transparent 70%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%);
}

.training-section::after {
  inset: auto 0 0 auto;
  width: min(38%, 580px);
  height: min(40%, 340px);
  background: linear-gradient(315deg, rgba(224, 27, 47, 0.34), transparent 64%);
  clip-path: polygon(100% 24%, 100% 100%, 18% 100%);
}

.training-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(36px, 4.2vw, 72px);
  width: min(100% - clamp(40px, 6.7vw, 116px), 1456px);
  margin-inline: auto;
  margin-bottom: clamp(28px, 2.4vw, 40px);
}

.training-eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
  margin-bottom: clamp(10px, 0.9vw, 14px);
  color: #ededed;
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.training-eyebrow-slash {
  flex: none;
  width: clamp(28px, 2.7vw, 46px);
  height: clamp(10px, 0.9vw, 15px);
  background: var(--training-red);
  transform: skewX(-24deg);
}

.training-title {
  max-width: none;
  color: #ffffff;
  font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(3.6rem, 6.4vw, 6.7rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 0.88;
  text-transform: none;
}

.training-title .accent {
  color: var(--training-red);
}

html[dir="rtl"] .training-title {
  max-width: none;
  font: 800 clamp(3rem, 5.4vw, 5rem)/1.12 "Cairo", sans-serif;
  letter-spacing: normal;
}

.training-intro {
  justify-self: start;
  width: min(100%, 560px);
  padding-inline-start: clamp(18px, 2vw, 30px);
  border-inline-start: 2px solid rgba(224, 27, 47, 0.95);
}

.training-lead {
  max-width: 42ch;
  color: #dedede;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  line-height: 1.55;
}

.training-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  margin-top: clamp(20px, 2vw, 30px);
  padding: 0;
  list-style: none;
}

.training-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f0f0f0;
  font-size: clamp(0.7rem, 0.78vw, 0.8rem);
  font-weight: 700;
  white-space: nowrap;
}

.training-features li + li {
  padding-inline-start: clamp(12px, 1.4vw, 22px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.17);
}

.training-feature-icon {
  display: inline-flex;
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--training-red);
}

.training-feature-icon svg {
  width: 100%;
  height: 100%;
}

.training-wide {
  width: min(100% - clamp(24px, 4.4vw, 76px), 1600px);
  margin-inline: auto;
}

.training-portraits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 18px);
}

.portrait-card {
  position: relative;
  aspect-ratio: 1.34;
  margin: 0;
  cursor: pointer;
}

.portrait-media {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 67%, 67% 100%, 0 100%);
  background: #101013;
}

.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-pos, center 30%);
  filter: saturate(0.92) contrast(1.06) brightness(0.9);
  transform: scale(1.001);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.portrait-card:hover .portrait-media img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.08) brightness(0.97);
}

.portrait-edge {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, #9c0e20 0%, #e01b2f 50%, #f0253a 100%);
  clip-path: polygon(100% 61.5%, 100% 100%, 61.5% 100%);
  pointer-events: none;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(20px, 2.9vw, 46px);
  padding-block-end: clamp(18px, 1.6vw, 24px);
  padding-inline-end: clamp(60px, 6vw, 100px);
  background: linear-gradient(180deg, rgba(7, 7, 9, 0) 36%, rgba(7, 7, 9, 0.52) 65%, rgba(7, 7, 9, 0.94) 100%);
}

.portrait-title {
  color: #ffffff;
  font-family: "Barlow Condensed", "Oswald", "Cairo", sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.portrait-sub {
  margin-top: 5px;
  color: #ececec;
  font-size: clamp(0.85rem, 1.02vw, 1.08rem);
  line-height: 1.35;
}

.portrait-link {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: clamp(34px, 2.4vw, 38px);
  margin-top: clamp(10px, 1vw, 15px);
  padding: 8px clamp(24px, 3vw, 42px);
  color: #ffffff;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: clamp(0.85rem, 1.05vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.portrait-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #c20b27 0%, #e01b2f 55%, #ef2a3e 100%);
  transform: skewX(-16deg);
  transition: background 0.25s ease;
}

.portrait-card:hover .portrait-link::before {
  background: linear-gradient(100deg, #e01b2f 0%, #ff3d51 100%);
}

.portrait-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.portrait-card:hover .portrait-link svg {
  transform: translateX(4px);
}

.portrait-outline {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: stroke 0.25s ease;
}

.portrait-card:hover .portrait-outline {
  stroke: rgba(255, 255, 255, 0.6);
}

.portrait-card:focus-visible {
  outline: none;
}

.portrait-card:focus-visible .portrait-outline {
  stroke: var(--training-red);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(224, 27, 47, 0.55));
}

.disciplines-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 18px);
  margin-top: clamp(24px, 2.5vw, 42px);
}

.discipline-btn {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 20px);
  min-height: clamp(90px, 7.4vw, 122px);
  padding: clamp(16px, 1.7vw, 24px) clamp(30px, 3.2vw, 48px) clamp(16px, 1.7vw, 24px) clamp(26px, 3.1vw, 46px);
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: start;
  cursor: pointer;
}

.discipline-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(7, 7, 9, 0.95) 0%, rgba(7, 7, 9, 0.78) 48%, rgba(7, 7, 9, 0.45) 100%),
    var(--discipline-img, linear-gradient(135deg, #191922, #0c0c10));
  background-position: var(--discipline-pos, center);
  background-size: cover;
  clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
  filter: saturate(0.55) brightness(0.5) contrast(1.1);
  transition: filter 0.3s ease;
}

.discipline-btn:hover .discipline-bg {
  filter: saturate(0.75) brightness(0.65) contrast(1.1);
}

.discipline-outline {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: stroke 0.25s ease;
}

.discipline-btn:hover .discipline-outline {
  stroke: rgba(255, 255, 255, 0.55);
}

.discipline-accent {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--training-red);
  clip-path: polygon(0 100%, 4.4% 60%, 13% 100%);
  pointer-events: none;
}

.discipline-icon {
  position: relative;
  z-index: 3;
  display: flex;
  flex: none;
  align-items: center;
  height: clamp(28px, 2.4vw, 38px);
  padding-inline-end: clamp(12px, 1.4vw, 20px);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.discipline-icon svg {
  width: clamp(26px, 2.25vw, 36px);
  height: 100%;
}

.discipline-btn strong {
  position: relative;
  z-index: 3;
  color: #ffffff;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: clamp(1.15rem, 1.75vw, 1.75rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.discipline-desc {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Mirror the campaign cuts for Arabic RTL reading order. */
html[dir="rtl"] .portrait-media {
  clip-path: polygon(100% 0, 0 0, 0 67%, 33% 100%, 100% 100%);
}

html[dir="rtl"] .portrait-outline {
  transform: scaleX(-1);
}

html[dir="rtl"] .portrait-edge {
  background: linear-gradient(225deg, #9c0e20 0%, #e01b2f 50%, #f0253a 100%);
  clip-path: polygon(0 61.5%, 38.5% 100%, 0 100%);
}

html[dir="rtl"] .portrait-title {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

html[dir="rtl"] .portrait-link {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  letter-spacing: 0;
}

html[dir="rtl"] .portrait-link svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .portrait-card:hover .portrait-link svg {
  transform: translateX(4px) scaleX(-1);
}

html[dir="rtl"] .discipline-bg {
  clip-path: polygon(89% 0, 0 0, 11% 100%, 100% 100%);
}

html[dir="rtl"] .discipline-outline {
  transform: scaleX(-1);
}

html[dir="rtl"] .discipline-accent {
  transform: scaleX(-1);
}

/* 06. Why Ruby Fitness? (The Ruby Difference) */
.ruby-diff-section {
  position: relative;
  overflow: hidden;
  background: #0a0a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ruby-diff-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 45%),
    rgba(224, 27, 47, 0.11),
    transparent 65%
  );
  opacity: var(--spot-opacity, 0);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ruby-diff-sweep {
  position: absolute;
  inset: -35% -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 46% 38% at 28% 35%, rgba(224, 27, 47, 0.12), transparent 70%),
    radial-gradient(ellipse 42% 34% at 72% 68%, rgba(156, 14, 32, 0.1), transparent 72%),
    linear-gradient(115deg, transparent 30%, rgba(224, 27, 47, 0.07) 48%, transparent 66%);
  pointer-events: none;
  animation: rubyLightSweep 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes rubyLightSweep {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(3%, 2%, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.01);
    opacity: 0.8;
  }
}

.ruby-diff-container {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.ruby-diff-section .reveal {
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

.ruby-diff-section .reveal.is-visible {
  transition-delay: calc(var(--stagger, 0) * 70ms);
}

.ruby-diff-head {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
}

.ruby-diff-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ruby-red);
  margin-bottom: 12px;
}

.ruby-diff-title {
  font-family: "Barlow Condensed", "Oswald", "Cairo", sans-serif;
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #ffffff;
}

.ruby-diff-title .accent {
  color: var(--ruby-red);
}

.ruby-diff-lead {
  margin-top: 16px;
  color: var(--text-body);
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

.ruby-diff-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  max-width: 780px;
  margin: clamp(32px, 4vw, 52px) auto 0;
  text-align: center;
}

.ruby-diff-stat {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.ruby-diff-stat:hover {
  transform: translateY(-2px);
}

.ruby-diff-stat-val {
  display: block;
  font-family: "Barlow Condensed", "Oswald", "Cairo", sans-serif;
  font-size: clamp(2.25rem, 3.6vw, 3.1rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  transition: text-shadow 0.3s ease;
}

.ruby-diff-stat:hover .ruby-diff-stat-val {
  text-shadow: 0 0 22px rgba(224, 27, 47, 0.42);
}

.ruby-diff-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ruby-red);
}

.ruby-diff-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 15%, rgba(255, 255, 255, 0.16) 85%, transparent);
  margin: clamp(28px, 3.6vw, 46px) 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--stagger, 4) * 70ms), opacity 0.65s ease calc(var(--stagger, 4) * 70ms);
}

.ruby-diff-divider.is-visible {
  transform: scaleX(1);
}

.ruby-diff-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(20px, 3.2vw, 44px);
}

.ruby-diff-focus-box {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 12px;
  border: 1px solid rgba(224, 27, 47, 0.55);
  background: linear-gradient(155deg, rgba(224, 27, 47, 0.1) 0%, rgba(255, 255, 255, 0.02) 65%, rgba(224, 27, 47, 0.04) 100%);
  box-shadow: 0 0 28px rgba(224, 27, 47, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  will-change: transform, width, height;
}

.ruby-diff-focus-box.is-ready {
  opacity: 1;
}

.ruby-diff-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ruby-diff-item.is-active {
  transform: translateY(-2px);
}

.ruby-diff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ruby-red);
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.ruby-diff-icon svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.ruby-diff-item-title {
  font-family: "Inter", "Cairo", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 6px;
}

.ruby-diff-item-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Subtle icon animations on active / hover */
.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--dumbbell {
  transform: translateY(-2px) rotate(-6deg);
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--trainers {
  transform: scale(1.08);
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--comfort {
  transform: translateY(-3px);
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--heart .heart-outline {
  transform-origin: 12px 12px;
  animation: rubyHeartBeat 0.9s ease-in-out infinite;
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--heart .heart-pulse {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: rubyEcgDraw 0.9s ease-out forwards;
}

@keyframes rubyHeartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  45% { transform: scale(0.98); }
  65% { transform: scale(1.07); }
}

@keyframes rubyEcgDraw {
  to { stroke-dashoffset: 0; }
}

.ruby-diff-icon--clock .clock-minute,
.ruby-diff-icon--clock .clock-hour {
  transform-origin: 12px 12px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--clock .clock-minute {
  transform: rotate(360deg);
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--clock .clock-hour {
  transform: rotate(30deg);
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--waves .wave-line {
  animation: rubyWaveDrift 1.1s ease-in-out infinite alternate;
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--waves .wave-2 {
  animation-delay: 0.14s;
}

.ruby-diff-item:is(:hover, .is-active) .ruby-diff-icon--waves .wave-3 {
  animation-delay: 0.28s;
}

@keyframes rubyWaveDrift {
  0% { transform: translateX(-1.5px); opacity: 0.72; }
  100% { transform: translateX(1.5px); opacity: 1; }
}

.ruby-diff-cta {
  margin-top: clamp(34px, 4.4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.ruby-diff-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 28px;
}

.ruby-diff-btn svg {
  transition: transform 0.25s ease;
}

.ruby-diff-btn:hover svg {
  transform: translateX(4px);
}

.ruby-diff-locations {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

html[dir="rtl"] .ruby-diff-title {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  line-height: 1.15;
  text-transform: none;
}

html[dir="rtl"] .ruby-diff-btn svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .ruby-diff-btn:hover svg {
  transform: translateX(-4px) scaleX(-1);
}

/* Club finder */
.clubs-section {
  --club-ink: #0c141c;
  --club-line: #bac9d6;
  --club-red: #b30628;
  display: grid;
  grid-template-columns: minmax(0, 39.5fr) minmax(0, 60.5fr);
  min-height: clamp(620px, 55vw, 940px);
  scroll-margin-top: var(--header-height);
  background: #edf3f8;
  color: var(--club-ink);
}

.club-directory {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  min-width: 0;
  padding: clamp(48px, 6.7vw, 115px) clamp(24px, 2.4vw, 48px) clamp(36px, 4.6vw, 78px);
  background: linear-gradient(155deg, #edf3f8, #f6f9fc);
}

.clubs-section h2 {
  color: #080b0e;
  font: italic 900 clamp(2.7rem, 17.65cqi, 6.75rem)/0.9 "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  letter-spacing: -0.018em;
}

html[dir="rtl"] .clubs-section h2 {
  font: 800 clamp(2.15rem, 11cqi, 4.4rem)/1.15 "Cairo", sans-serif;
  letter-spacing: normal;
}

.club-emirates {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(20px, 9cqi, 64px);
  margin-block-start: clamp(22px, 3.5vw, 58px);
  border-block-end: 1px solid var(--club-line);
}

.club-emirate-btn {
  position: relative;
  min-height: 48px;
  padding-block: 8px clamp(11px, 1.25vw, 20px);
  color: var(--club-ink);
  font-size: clamp(1.02rem, 5.6cqi, 2rem);
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.25;
  text-align: start;
}

.club-emirate-btn:is(:hover, [aria-pressed="true"]) {
  color: var(--club-red);
}

.club-emirate-btn[aria-pressed="true"]::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: currentColor;
  content: "";
}

.clubs-index-list {
  margin-block-start: clamp(12px, 2vw, 32px);
}

.club-row {
  width: 100%;
  min-height: clamp(54px, 5.3vw, 86px);
  padding-block: 10px;
  border-block-end: 1px solid var(--club-line);
  color: var(--club-ink);
  font-size: clamp(1.15rem, 5.6cqi, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: start;
}

.club-row span {
  display: inline-block;
  padding-block: 5px;
  border-block-end: 3px solid transparent;
}

.club-row[aria-pressed="true"] span {
  border-block-end-color: var(--club-red);
}

.club-row:hover {
  color: var(--club-red);
}

.club-directory-footer {
  display: grid;
  gap: clamp(14px, 1.65vw, 25px);
  margin-block-start: auto;
  padding-block-start: clamp(20px, 2.8vw, 48px);
}

.club-info {
  color: #3a5364;
  font-size: 0.875rem;
}

.club-info summary {
  width: fit-content;
  min-height: 32px;
  cursor: pointer;
  font-weight: 700;
}

.club-info-content {
  display: grid;
  gap: 6px;
  max-width: 42ch;
  margin-block-end: 5px;
  line-height: 1.5;
}

.club-info-content a {
  width: fit-content;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.club-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(18px, 6cqi, 38px);
}

.club-map-actions .btn-primary {
  min-height: clamp(50px, 5vw, 68px);
  padding-inline: clamp(16px, 4cqi, 32px);
  background: var(--club-red);
  font-size: clamp(0.98rem, 4.6cqi, 1.5rem);
}

.club-map-actions .btn-primary:hover {
  background: #90001e;
}

.club-map-actions .btn-primary:focus-visible {
  outline-color: var(--club-red);
}

.club-directions {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: clamp(0.98rem, 4.5cqi, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.club-directions:hover {
  color: var(--club-red);
}

.club-availability {
  color: #880523;
  font-size: 0.9rem;
  line-height: 1.45;
}

.club-map-actions [hidden] {
  display: none;
}

.club-map {
  position: relative;
  isolation: isolate;
  min-width: 0;
  background: #a6d5e7;
}

.club-map-scene,
.club-map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.club-map-art {
  object-fit: fill;
}

.club-map-fallback-art {
  background: #f8f9f7;
}

.club-city-map-image {
  height: 88.6234%;
}

.club-map-art.club-street-map {
  position: absolute;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.club-street-map .maplibregl-canvas {
  position: absolute;
  inset: 0 auto auto 0;
}

.has-street-map .club-street-map {
  visibility: visible;
}

.has-street-map .club-map-fallback-art {
  visibility: hidden;
}

.club-map-label {
  position: absolute;
  z-index: 1;
  top: clamp(18px, 3vw, 45px);
  inset-inline-start: clamp(18px, 3vw, 45px);
  color: #101c27;
  font-size: clamp(1.22rem, 2.7vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.has-street-map .club-map-label {
  padding: 6px 11px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.93);
  box-shadow: 0 1px 8px rgb(32 57 74 / 0.12);
}

.club-map-landmark {
  position: absolute;
  top: var(--landmark-y);
  left: var(--landmark-x);
  transform: translate(-50%, -50%);
  color: #314a5d;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  font-weight: 700;
  text-shadow: 0 0 3px #fff, 0 0 4px #fff;
  white-space: nowrap;
  pointer-events: none;
}

.club-map-marker {
  position: absolute;
  z-index: 2;
  top: var(--pin-y);
  left: var(--pin-x);
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.club-map-marker.is-open {
  z-index: 5;
}

.club-map-pin {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
}

.club-pin-dot {
  width: clamp(15px, 1.3vw, 21px);
  aspect-ratio: 1;
  border: 2px solid #f8fbff;
  border-radius: 50%;
  background: var(--club-red);
  box-shadow: 0 1px 4px rgb(32 57 74 / 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.club-pin-label {
  position: absolute;
  top: calc(50% + 13px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff;
  color: var(--club-ink);
  box-shadow: 0 1px 4px rgb(32 57 74 / 0.2);
  font-size: clamp(0.6875rem, 1vw, 0.875rem);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

/* Offset the Khalifa Street label so it stays legible near neighboring pins. */
.club-map-pin[data-branch="khalifa-st"] .club-pin-label {
  left: calc(50% + 9px);
  transform: none;
}

@media (max-width: 420px) {
  .club-map-pin[data-branch="khalifa-city"] .club-pin-label {
    left: calc(50% - 10px);
  }
}

.club-map-pin[data-selected="true"] .club-pin-dot {
  box-shadow: 0 0 0 4px rgb(179 6 40 / 0.25);
}

.club-map-pin[data-selected="true"] .club-pin-label {
  color: var(--club-red);
  box-shadow: 0 2px 12px rgb(32 57 74 / 0.19);
}

.club-map-pin[aria-expanded="true"] .club-pin-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgb(179 6 40 / 0.24);
}

.club-pin-card {
  position: absolute;
  bottom: calc(100% - 2px);
  left: var(--club-card-left, 0px);
  width: var(--club-card-width, 268px);
  padding: 14px 15px;
  border-block-start: 3px solid var(--club-red);
  background: #f9fcff;
  color: var(--club-ink);
  box-shadow: 0 9px 28px rgb(33 54 70 / 0.2);
  font-size: 0.875rem;
  line-height: 1.35;
}

.club-pin-card.is-below {
  top: calc(100% + 15px);
  bottom: auto;
}

.club-map-pin[aria-expanded="true"]:has(+ .club-pin-card.is-below)::after {
  position: absolute;
  inset: 100% 0 auto;
  height: 15px;
  content: "";
}

.club-pin-name {
  display: block;
  padding-inline-end: 32px;
  margin-block-end: 4px;
  font-size: 1.075rem;
  font-weight: 800;
}

.club-pin-address,
.club-pin-perks,
.club-pin-status {
  margin-block-start: 6px;
}

.club-pin-perks {
  color: #395167;
}

.club-pin-status {
  color: #880523;
  font-weight: 700;
}

.club-pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-block-start: 5px;
}

.club-pin-actions a:not([hidden]) {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--club-red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.club-pin-close {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 5px;
  width: 36px;
  height: 36px;
  color: #263c4e;
  font-size: 1.4rem;
  line-height: 1;
}

.club-map-credit {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 auto;
  padding: 4px 9px;
  background: rgb(246 250 253 / 0.9);
  color: #3a5364;
  font-size: 0.75rem;
  line-height: 1.4;
}

.club-map-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .club-emirates {
    column-gap: clamp(12px, 5cqi, 30px);
  }
}

@media (max-width: 700px) {
  .clubs-section {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .club-directory {
    padding: 36px 20px 26px;
  }

  .club-directory-footer {
    padding-block-start: 20px;
  }

  .club-map {
    width: 100%;
    aspect-ratio: 1;
    min-height: min(330px, 100vw);
  }
}

/* 10. Gallery & Community */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: clamp(240px, 34.5vw, 545px) clamp(240px, 32vw, 495px);
  gap: 14px;
}

.gal-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  cursor: pointer;
}

.gal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gal-1 img { object-position: 50% 42%; }
.gal-2 img { object-position: 50% 56%; }
.gal-3 img { object-position: 50% 56%; }
.gal-4 img { object-position: 50% 44%; }
.gal-5 img { object-position: 50% 64%; }

.gal-tile:hover img {
  transform: scale(1.06);
}

.gal-tile::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(9, 9, 11, 0.9));
  font-size: 0.84rem;
  font-weight: 600;
  color: #f5f5f5;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gal-tile:hover::after {
  opacity: 1;
}

.gal-1 { grid-column: span 2; }
.gal-2,
.gal-3,
.gal-4,
.gal-5 { grid-column: span 1; }

/* 11. Membership Enquiry */
.enquiry-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.enquiry-direct {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--text-body);
}

.enquiry-form-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  background: radial-gradient(ellipse at top, #28161b, transparent 70%), #171518;
  border: 1px solid #42282f;
  box-shadow: 0 16px 40px rgb(0 0 0 / 25%);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-size: 0.94rem;
  color: #f5f5f5;
}

.field:focus {
  outline: none;
  border-color: var(--ruby-red);
}

.enquiry-field {
  display: grid;
  min-width: 0;
  padding: 8px 12px 3px;
  border: 1px solid #44383d;
  border-radius: 10px;
  background: #121013;
  color: #d5c6cb;
  font-size: 0.78rem;
  font-weight: 600;
  color-scheme: dark;
}

.enquiry-field:focus-within {
  border-color: #f0526f;
  box-shadow: 0 0 0 2px rgb(240 82 111 / 23%);
}

.enquiry-field .field {
  min-width: 0;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
}

.enquiry-field .field::placeholder {
  color: #a69ba0;
}

.enquiry-field textarea {
  resize: vertical;
}

.form-actions-row {
  margin-top: 4px;
}

.form-actions-row button {
  min-height: 48px;
  padding-inline: 12px;
  border-radius: 10px;
}

#sendWhatsAppBtn {
  border-color: #35604b;
  background: #16251e;
  color: #a1edc1;
}

#sendWhatsAppBtn:hover {
  background: #20392b;
}

.whatsapp-form-note,
.whatsapp-form-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.whatsapp-form-link {
  justify-self: start;
  font-weight: 600;
  text-decoration: underline;
}

/* 12. Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
  background: #060608;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.55fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-branches {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
}

.footer-branch-row {
  display: contents;
}

.footer-branch-row a:first-child {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 4px;
}

.footer-branch-row a:first-child:hover {
  color: var(--text-primary);
  text-decoration-color: var(--ruby-accent);
}

.footer-branch-row a:last-child {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
  justify-self: left;
}

html[dir="rtl"] .footer-branch-row a:last-child {
  justify-self: right;
}

.footer-intro {
  max-width: 340px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col strong,
.footer-disclosure summary {
  color: #f5f5f5;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-disclosure summary {
  cursor: pointer;
  margin-bottom: 14px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Floating WhatsApp & Mobile Sticky CTA */
.floating-wa {
  visibility: hidden;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-header.scrolled ~ .floating-wa {
  visibility: visible;
}

.floating-wa:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 68;
  padding: 10px 16px;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
}

/* Modals & Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 7, 0.86);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(100%, 500px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.modal-close:hover {
  color: #ffffff;
}

.lightbox-card {
  width: min(100%, 920px);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.lightbox-card img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #0b0b0d;
}

.lightbox-bar {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-join {
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-join:hover {
  color: var(--text-primary);
}

/* Branch & SEO Content Enhancements */
.club-page-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(0.92rem, 4cqi, 1.08rem);
  font-weight: 700;
  color: var(--club-ink);
  text-decoration: underline;
  text-decoration-color: rgba(16, 20, 26, 0.35);
  text-underline-offset: 5px;
}

.club-page-link:hover {
  color: var(--club-red);
  text-decoration-color: var(--club-red);
}

.club-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1px solid var(--club-line);
  font-size: 0.82rem;
  color: #3a5364;
}

.club-directory-links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.club-directory-links a:hover {
  color: var(--club-red);
}

/* FAQ Accordion */
.faq-section {
  padding-block: clamp(64px, 8vw, 108px);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(201, 11, 48, 0.55);
  background: #1d1d21;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ruby-accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Dedicated Branch Pages */
.branch-hero {
  padding-top: calc(var(--header-height) + clamp(40px, 6vw, 84px));
  padding-bottom: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 11, 48, 0.16), transparent 48%),
    linear-gradient(180deg, #141418 0%, var(--bg-canvas) 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.branch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.branch-hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-top: 8px;
}

html[dir="rtl"] .branch-hero-title {
  letter-spacing: normal;
  line-height: 1.22;
}

.branch-hero-lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.branch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.branch-facts-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
}

.branch-fact-row {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.branch-fact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.branch-fact-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ruby-accent);
}

.branch-fact-val {
  color: var(--text-primary);
  font-size: 0.96rem;
  line-height: 1.55;
}

.branch-fact-val a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.branch-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.branch-amenity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.branch-amenity-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.branch-amenity-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.branch-sibling-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.branch-sibling-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.branch-sibling-card:hover {
  border-color: var(--ruby-red);
  transform: translateY(-2px);
}

.branch-sibling-card strong {
  color: var(--text-primary);
  font-size: 0.98rem;
}

.branch-sibling-card span {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

/* Responsive */
@media (max-width: 1060px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .training-head { grid-template-columns: 1fr; gap: 30px; }
  .training-intro { justify-self: start; max-width: 640px; }
  .disciplines-strip { grid-template-columns: repeat(2, 1fr); }
  .enquiry-split,
  .faq-grid,
  .branch-hero-grid { grid-template-columns: 1fr; }
  .branch-amenities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-sibling-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruby-diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1060px) {
  .training-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .training-portraits .portrait-card:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2.7;
  }

  .training-portraits .portrait-card:last-child .portrait-title {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
  }

  .training-portraits .portrait-card:last-child .portrait-media img {
    object-position: 50% 38%;
  }
}

@media (max-width: 768px) {
  :root { --header-height: 62px; }
  .container { width: min(100% - 32px, var(--container)); }
  .header-inner { gap: 12px; }
  .header-logo-full { height: clamp(38px, 10.5vw, 46px); }
  .header-actions .header-language,
  .header-actions .header-book { display: none; }
  .mobile-drawer .btn-lang { align-self: start; }
}

@media (max-width: 800px) {
  .hero-section {
    --hero-tail-height: clamp(108px, 14svh, 145px);
    grid-template-rows: auto minmax(clamp(142px, 24svh, 245px), 1fr) auto;
    padding-block-start: calc(var(--header-height) + clamp(16px, 3svh, 29px));
  }

  .hero-athlete {
    grid-column: 1;
    grid-row: 2 / 4;
    inset-block: 0;
    inset-inline-end: -8%;
    width: min(98%, 660px);
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
  }

  html[dir="rtl"] .hero-athlete {
    object-position: left bottom;
  }

  .hero-content {
    grid-row: 1;
    padding-block: 0 clamp(10px, 2svh, 24px);
  }

  .hero-content::before {
    margin-block-end: 12px;
  }

  .hero-title {
    font-size: clamp(3.05rem, 16.55vw, 7rem);
  }

  html[dir="rtl"] .hero-title {
    font-size: clamp(2.85rem, 12vw, 5.7rem);
  }

  .hero-subtitle {
    max-width: 35ch;
    margin-top: 13px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-actions .btn-primary {
    min-height: 46px;
  }

  .hero-tail {
    position: relative;
    isolation: isolate;
    grid-row: 3;
  }

  .hero-tail::before {
    position: absolute;
    z-index: -1;
    inset: -26px 0 0;
    background: linear-gradient(90deg, #121316, rgb(18 19 22 / 0.85) 36%, transparent 77%);
    mask-image: linear-gradient(transparent, #000 52px);
    pointer-events: none;
    content: "";
  }

  html[dir="rtl"] .hero-tail::before {
    transform: scaleX(-1);
  }

  .hero-regions {
    max-width: min(82%, 340px);
  }

  .hero-region-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .training-portraits { grid-template-columns: 1fr; }
  .disciplines-strip { display: none; }

  .form-row-2, .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-block: 24px 20px; }
  .footer-grid { gap: 0; padding-bottom: 16px; }
  .footer-intro { display: none; }
  .footer-disclosure { border-top: 1px solid var(--border-subtle); }
  .footer-disclosure + .footer-col { border-top: 1px solid var(--border-subtle); padding-top: 12px; }
  .footer-disclosure summary { min-height: 44px; padding-block: 12px; margin: 0; }
  .footer-disclosure .footer-col { padding-bottom: 14px; }
  .footer-col { gap: 6px; }
  .footer-bottom { padding-top: 14px; gap: 4px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 10px; }
  .gal-1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .gal-2, .gal-3, .gal-4, .gal-5 { grid-column: span 1; aspect-ratio: 3 / 4; }
  .enquiry-form-card { padding: 16px; }
  #contact { padding-block: 28px; }
  .enquiry-split { gap: 16px; }
  .enquiry-split .section-lead,
  .enquiry-direct { display: none; }
  .enquiry-split .section-title br { display: none; }
  .modal-card { padding: 24px; }
  .enquiry-form-card .form-grid, .enquiry-form-card .form-row-2 { gap: 10px; }
  .floating-wa { display: none; }

  .site-header.scrolled ~ .mobile-sticky-bar {
    display: flex;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  body { padding-bottom: 66px; }
}

@media (max-width: 560px) {
  .training-title { font-size: clamp(3rem, 14.5vw, 4.4rem); }
  .training-features { gap: 10px 20px; }
  .training-features li { font-size: 0.72rem; }
  .training-features li + li { padding-inline-start: 0; border-inline-start: 0; }
  .portrait-card { aspect-ratio: 1.35; }
  .portrait-title { font-size: 1.5rem; }
  .portrait-link { font-size: 0.9rem; }
  .portrait-overlay { padding: 20px; padding-inline-end: 64px; }
  .ruby-diff-stats { gap: 12px; }
  .ruby-diff-grid { gap: 16px 12px; }
  .ruby-diff-item { padding: 14px 12px; }
  .branch-amenities-grid,
  .branch-sibling-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-athlete { opacity: 1; }
}
