/* ================================================
   COACH ALI MURAD — VISUAL SYSTEM
   ================================================ */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --carbon: #1A1A1A;
  --carbon-warm: #242020;
  --ash: #2D2926;
  --cream: #F5F0EB;
  --sand: #E8DFD4;
  --stone: #D4C8BA;
  --vermilion: #E63B2E;
  --vermilion-deep: #C42F24;
  --ember: #B8442E;
  --champagne: #C9A96E;
  --champagne-muted: #A8926E;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6159;
  --text-inv: #F5F0EB;

  --ff-display: 'Clash Display', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-ar-display: 'Noto Kufi Arabic', sans-serif;
  --ff-ar-body: 'Tajawal', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[lang="ar"] body { font-family: var(--ff-ar-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

/* ---- LANGUAGE TOGGLE ---- */
[lang="en"] .ar { display: none !important; }
[lang="ar"] .en { display: none !important; }

/* ---- MONO UTILITY ---- */
.mono { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- GRAIN OVERLAY ---- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".75" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
  background-size: 180px;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
}
.nav::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.5s, backdrop-filter 0.5s;
  pointer-events: none;
}
.nav--scrolled::before {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav.nav--menu-open::before {
  opacity: 0;
}
.nav__logo {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--cream);
  z-index: 1001;
}
[lang="ar"] .nav__logo { font-family: var(--ff-ar-display); font-weight: 700; letter-spacing: 0; }
.nav__menu {
  display: flex; align-items: center; gap: 2rem;
}
.nav__link {
  font-size: 0.85rem; font-weight: 400; color: rgba(245, 240, 235, 0.7);
  transition: color 0.3s;
  letter-spacing: 0.03em;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--cream); }
.nav__lang {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--vermilion);
  border: 1px solid rgba(230, 59, 46, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}
[lang="ar"] .nav__lang { font-family: var(--ff-body); font-size: 0.8rem; letter-spacing: 0; }
.nav__lang:hover { background: rgba(230, 59, 46, 0.1); border-color: var(--vermilion); }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; z-index: 1001;
  width: 28px; padding: 4px 0;
}
.nav__toggle span {
  display: block; width: 100%; height: 2px; background: var(--cream);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO — CAMPAIGN OPENING
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--carbon);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Subtle arc behind composition */
.hero__arc {
  position: absolute;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.1);
  inset-inline-end: 5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 50%;
  padding-block: 6rem;
}

.hero__eyebrow {
  color: var(--vermilion);
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.hero__name {
  line-height: 1;
  margin-bottom: 1.5rem;
}
.hero__first {
  display: block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 18rem);
  line-height: 0.82;
  color: var(--cream);
  letter-spacing: -0.03em;
}
[lang="ar"] .hero__first {
  font-family: var(--ff-ar-display);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 16rem);
  line-height: 1;
  letter-spacing: 0;
}
.hero__last {
  display: block;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 5.5vw, 6rem);
  letter-spacing: 0.25em;
  color: rgba(245, 240, 235, 0.55);
  margin-top: 0.1em;
}
[lang="ar"] .hero__last {
  font-family: var(--ff-ar-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 5.5rem);
  letter-spacing: 0.12em;
}

.hero__tagline {
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: rgba(245, 240, 235, 0.6);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 30ch;
}
[lang="ar"] .hero__tagline { font-family: var(--ff-ar-body); font-size: clamp(1rem, 1.4vw, 1.2rem); }

.hero__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--vermilion);
  color: var(--cream);
  padding: 1rem 2.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
}
.hero__cta:hover { background: var(--vermilion-deep); transform: translateY(-2px); }
.hero__cta:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Hero portrait — organic shape, right side */
.hero__portrait {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  will-change: transform;
  border-radius: 0 0 0 12%;
}
.hero__portrait::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--carbon) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}
[dir="rtl"] .hero__portrait::before {
  background: linear-gradient(to left, var(--carbon) 0%, transparent 30%);
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Floating metadata */
.hero__phone {
  position: absolute;
  inset-inline-start: clamp(1rem, 3vw, 2.5rem);
  bottom: 15%;
  color: rgba(245, 240, 235, 0.3);
  writing-mode: vertical-lr;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  z-index: 3;
}
[dir="rtl"] .hero__phone { writing-mode: vertical-rl; }
.hero__ig {
  position: absolute;
  inset-inline-end: clamp(1rem, 3vw, 2.5rem);
  bottom: 12%;
  color: rgba(245, 240, 235, 0.25);
  writing-mode: vertical-lr;
  font-size: 0.65rem;
  z-index: 3;
}
[dir="rtl"] .hero__ig { writing-mode: vertical-rl; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 4;
}
.hero__scroll-text { color: rgba(245, 240, 235, 0.35); font-size: 0.6rem; }
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(245, 240, 235, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero wave transition */
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 100px;
  z-index: 5;
}
.hero__wave path { fill: var(--cream); }

/* ================================================
   ABOUT — THE PERSON
   ================================================ */
.about {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 10vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.about__photo {
  position: relative;
  margin-inline-start: -3%;
}
.about__photo img {
  width: 100%;
  border-radius: 4px 28% 4px 12%;
  box-shadow: 20px 20px 60px rgba(26, 26, 26, 0.1);
}

.about__heading {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2rem;
  color: var(--carbon);
}
[lang="ar"] .about__heading {
  font-family: var(--ff-ar-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.about__text {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.about__text p + p { margin-top: 1rem; }
[lang="ar"] .about__text { font-family: var(--ff-ar-body); line-height: 2; font-size: clamp(1rem, 1.3vw, 1.12rem); }

.about__creds {
  color: var(--stone);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
[lang="ar"] .about__creds { font-family: var(--ff-ar-body); font-size: 0.8rem; letter-spacing: 0; }

/* ================================================
   TRANSFORMATION — ALI'S OWN STORY
   ================================================ */
.transform {
  background: var(--carbon-warm);
  position: relative;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(8rem, 14vw, 12rem);
  overflow: hidden;
}

/* Curved top edge */
.transform__top-curve {
  position: absolute;
  top: -50px;
  left: -5%; right: -5%;
  height: 100px;
  background: var(--carbon-warm);
  border-radius: 50% 50% 0 0;
}

.transform__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.transform__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}
[lang="ar"] .transform__title {
  font-family: var(--ff-ar-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
}

/* Before/After slider */
.transform__slider {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 9/14;
  overflow: hidden;
  border-radius: 8px 20% 8px 6%;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.transform__before, .transform__after {
  position: absolute; inset: 0;
}
.transform__before img, .transform__after img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.transform__after {
  clip-path: inset(0 0 0 var(--split, 50%));
}
/* BUG 1 fix: In RTL, After is on the LEFT side. --split is always physical
   distance from left. Clip must reveal the left portion of the after image. */
[dir="rtl"] .transform__after {
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.transform__handle {
  position: absolute;
  top: 0; bottom: 0;
  /* BUG 1 fix: Use physical 'left' so handle always tracks the physical
     cursor position. --split is always physical from the left edge. */
  left: var(--split, 50%);
  transform: translateX(-50%);
  width: 4px;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
}

.transform__handle-line {
  position: absolute; inset: 0;
  background: var(--cream);
  opacity: 0.8;
  border-radius: 2px;
}
.transform__handle-grip {
  position: relative;
  width: 44px; height: 44px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--carbon);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  z-index: 1;
  transition: transform 0.2s;
}
.transform__slider:active .transform__handle-grip { transform: scale(1.15); }

.transform__label {
  position: absolute;
  bottom: 1.5rem;
  z-index: 4;
  color: var(--cream);
  font-size: 0.65rem;
  background: rgba(26, 26, 26, 0.6);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.transform__label--before { inset-inline-start: 1rem; }
.transform__label--after { inset-inline-end: 1rem; }

/* Wave into philosophy */
.transform__wave {
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 120px;
  z-index: 2;
}
.transform__wave path { fill: var(--vermilion); }

/* ================================================
   PHILOSOPHY — استعملا
   ================================================ */
.philosophy {
  background: var(--vermilion);
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 14vw, 12rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

.philosophy__ring {
  position: absolute;
  width: clamp(250px, 50vw, 600px);
  height: clamp(250px, 50vw, 600px);
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 235, 0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ringRotate 80s linear infinite;
}
@keyframes ringRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.philosophy__content { position: relative; z-index: 2; }

.philosophy__word {
  font-family: var(--ff-ar-display);
  font-weight: 900;
  font-size: clamp(5rem, 20vw, 22rem);
  color: var(--cream);
  line-height: 0.85;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  direction: rtl;
}

.philosophy__meaning {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: rgba(245, 240, 235, 0.8);
  line-height: 1.8;
  max-width: 30ch;
  margin: 0 auto;
}
[lang="ar"] .philosophy__meaning { font-family: var(--ff-ar-body); font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* Wave into method */
.philosophy__wave {
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 120px;
  z-index: 3;
}
.philosophy__wave path { fill: var(--cream); }

/* ================================================
   METHOD — HOW ALI COACHES
   ================================================ */
.method {
  background: var(--cream);
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1300px;
  margin: 0 auto;
}

.method__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}
[lang="ar"] .method__title { font-family: var(--ff-ar-display); font-weight: 800; }

.method__subtitle {
  text-align: center;
  font-family: var(--ff-ar-display);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: var(--vermilion);
  font-weight: 700;
  margin-bottom: clamp(4rem, 8vw, 6rem);
  opacity: 0.8;
}

.method__flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.method__pillar {
  position: relative;
  padding: 2rem 0;
  padding-inline-start: 1.5rem;
  border-inline-start: 2px solid var(--stone);
  transition: border-color 0.4s;
}
.method__pillar:hover { border-color: var(--vermilion); }
/* Organic stagger — each pillar sits at a different vertical offset */
.method__pillar--training { margin-top: 0; }
.method__pillar--nutrition { margin-top: 2rem; }
.method__pillar--followup { margin-top: 4rem; }
.method__pillar h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--carbon);
}
[lang="ar"] .method__pillar h3 { font-family: var(--ff-ar-display); font-weight: 700; }
.method__pillar p {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.8;
  color: var(--text-secondary);
}
[lang="ar"] .method__pillar p { font-family: var(--ff-ar-body); line-height: 1.95; }

/* Illustrations — organic positioning, not icon-like */
.method__illus {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}
.method__illus--shoe {
  width: clamp(100px, 14vw, 200px);
  top: -20%; inset-inline-end: -15%;
  transform: rotate(-15deg);
}
.method__illus--meal {
  width: clamp(120px, 16vw, 220px);
  bottom: -25%; inset-inline-start: -10%;
  transform: rotate(8deg);
}
.method__illus--tape {
  width: clamp(100px, 12vw, 180px);
  top: -15%; inset-inline-end: -20%;
  transform: rotate(-25deg);
}

/* ================================================
   GALLERY — CLIENT TRANSFORMATIONS
   ================================================ */
.gallery {
  background: var(--ash);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--cream);
}
[lang="ar"] .gallery__title { font-family: var(--ff-ar-display); font-weight: 800; }
.gallery__counter {
  color: rgba(245, 240, 235, 0.4);
  font-size: 0.8rem;
}
#galleryCounter { color: var(--vermilion); }

.gallery__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.gallery__track:active { cursor: grabbing; }
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__slide {
  flex: 0 0 clamp(260px, 42vw, 420px);
  scroll-snap-align: center;
  border-radius: 6px 16% 6px 4%;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}
.gallery__slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.gallery__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.gallery__hint {
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 0;
  color: rgba(245, 240, 235, 0.3);
  font-size: 0.7rem;
}

/* ================================================
   TESTIMONIALS — REAL CONVERSATIONS
   ================================================ */
.testimonials {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  position: relative;
  margin-top: -3rem;
  padding-top: clamp(7rem, 12vw, 10rem);
}
.testimonials::before {
  content: '';
  position: absolute;
  top: -1px; left: -5%; right: -5%;
  height: 4rem;
  background: var(--cream);
  border-radius: 50% 50% 0 0;
}

.testimonials__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
[lang="ar"] .testimonials__title { font-family: var(--ff-ar-display); font-weight: 800; }

.testimonials__grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials__phone {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 260px);
  background: #fff;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 8px 40px rgba(26, 26, 26, 0.08);
  transition: transform 0.5s var(--ease-out-expo);
}
.testimonials__phone img {
  width: 100%;
  border-radius: 12px;
}
/* Organic stagger — each phone slightly different */
.testimonials__phone--1 { transform: rotate(-2deg) translateY(0); }
.testimonials__phone--2 { transform: rotate(1.5deg) translateY(15px); }
.testimonials__phone--3 { transform: rotate(-1deg) translateY(-10px); }
.testimonials__phone--4 { transform: rotate(2deg) translateY(8px); }
.testimonials__phone:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); }

/* ================================================
   PROGRAMS — CHOOSE YOUR PATH
   ================================================ */
.programs {
  background: var(--sand);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}

.programs__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
[lang="ar"] .programs__title { font-family: var(--ff-ar-display); font-weight: 800; }

.programs__selector {
  display: flex;
  justify-content: center;
  gap: clamp(0.3rem, 1vw, 0.8rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  flex-wrap: wrap;
}

.programs__tab {
  padding: 0.7rem 1.3rem;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: color 0.3s, background 0.3s;
  position: relative;
  white-space: nowrap;
}
[lang="ar"] .programs__tab { font-family: var(--ff-ar-body); font-weight: 500; }
.programs__tab:hover { color: var(--carbon); }
.programs__tab--active {
  color: var(--cream);
  background: var(--carbon);
}

.programs__display {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  min-height: 350px;
}

.programs__name {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--carbon);
  line-height: 1;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
}
[lang="ar"] .programs__name { font-family: var(--ff-ar-display); font-weight: 800; }

.programs__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.programs__duration {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.programs__badge {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--vermilion);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--vermilion);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.programs__badge:empty { display: none; }

.programs__price {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--vermilion);
  line-height: 1;
  margin-bottom: 2rem;
}

.programs__features {
  text-align: start;
  max-width: 450px;
  margin: 0 auto 2.5rem;
}
.programs__features li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.6;
}
[lang="ar"] .programs__features li { font-family: var(--ff-ar-body); }
.programs__features li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 6px; height: 6px;
  background: var(--vermilion);
  border-radius: 50%;
}

.programs__cta {
  display: inline-flex;
  align-items: center;
  background: var(--vermilion);
  color: var(--cream);
  padding: 1rem 2.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
}
.programs__cta:hover { background: var(--vermilion-deep); transform: translateY(-2px); }
.programs__cta:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; }

.programs__pt {
  max-width: 600px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}
[lang="ar"] .programs__pt { font-family: var(--ff-ar-body); }

/* ================================================
   CONTACT — THE CLOSE
   ================================================ */
.contact {
  background: var(--carbon);
  position: relative;
  padding: clamp(10rem, 18vw, 16rem) clamp(1.5rem, 5vw, 4rem) clamp(5rem, 10vw, 8rem);
  text-align: center;
  overflow: hidden;
}

/* Curved top edge */
.contact__curve {
  position: absolute;
  top: -50px; left: -5%; right: -5%;
  height: 100px;
  background: var(--carbon);
  border-radius: 50% 50% 0 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.contact__heading {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
[lang="ar"] .contact__heading {
  font-family: var(--ff-ar-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 11vw, 9rem);
}

.contact__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(245, 240, 235, 0.55);
  margin-bottom: 3rem;
  line-height: 1.6;
}
[lang="ar"] .contact__sub { font-family: var(--ff-ar-body); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

.contact__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #fff;
  padding: 1.1rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.3s, transform 0.3s;
  margin-bottom: 1.5rem;
}
.contact__wa:hover { background: #1eb851; transform: translateY(-2px); }
.contact__wa:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.contact__wa-icon { flex-shrink: 0; }
.contact__wa-phone {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  opacity: 0.8;
  margin-inline-start: 0.5rem;
}

.contact__ig {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: rgba(245, 240, 235, 0.4);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}
.contact__ig:hover { color: var(--cream); }

/* ================================================
   SCROLL REVEAL
   ================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE — TABLET (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    inset: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }
  .nav__menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav__link { font-size: 1.2rem; color: var(--cream); }

  .hero__content { max-width: 60%; }
  .hero__portrait { width: 55%; }
  .hero__phone, .hero__ig { display: none; }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .about__photo { margin-inline-start: 0; max-width: 500px; margin: 0 auto; }
  .about__photo img { border-radius: 4px 20% 4px 10%; }

  .method__flow { grid-template-columns: 1fr; gap: 3rem; max-width: 550px; margin: 0 auto; }
  .method__illus { display: none; }
  .method__pillar--nutrition,
  .method__pillar--followup { margin-top: 0; }

  .testimonials__grid { gap: 1.5rem; }
  .testimonials__phone { width: clamp(180px, 40vw, 240px); }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ================================================ */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 8rem;
    min-height: 100svh;
  }
  .hero__portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero__portrait::before {
    background: linear-gradient(to top, var(--carbon) 25%, rgba(26,26,26,0.3) 60%, transparent 100%);
  }
  [dir="rtl"] .hero__portrait::before {
    background: linear-gradient(to top, var(--carbon) 25%, rgba(26,26,26,0.3) 60%, transparent 100%);
  }
  .hero__content {
    max-width: 100%;
    z-index: 4;
    padding: 0;
  }
  .hero__first { font-size: clamp(4rem, 22vw, 8rem); }
  [lang="ar"] .hero__first { font-size: clamp(3.5rem, 20vw, 7rem); }
  .hero__last { font-size: clamp(1.4rem, 7vw, 3rem); letter-spacing: 0.15em; }
  .hero__arc { width: 80vw; height: 80vw; inset-inline-end: -20%; }
  .hero__scroll { bottom: 1.5rem; }
  .hero__wave { height: 60px; }

  .transform__slider { max-width: 100%; }
  .transform__top-curve { height: 60px; top: -30px; }

  .philosophy__word { font-size: clamp(4rem, 25vw, 10rem); }
  .philosophy__ring { width: 70vw; height: 70vw; }

  .gallery__slide { flex: 0 0 80vw; }

  .testimonials__grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0 1rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .testimonials__grid::-webkit-scrollbar { display: none; }
  .testimonials__phone {
    flex: 0 0 min(75vw, 280px);
    scroll-snap-align: center;
    transform: none !important;
  }
  .testimonials__phone:hover { transform: translateY(-4px) scale(1.01) !important; }

  .programs__selector { gap: 0.25rem; }
  .programs__tab { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
  .programs__name { font-size: clamp(2rem, 10vw, 4rem); }
  .programs__price { font-size: clamp(2.5rem, 12vw, 5rem); }

  .contact__heading { font-size: clamp(3rem, 18vw, 7rem); }
  .contact__curve { height: 60px; top: -30px; }
  .contact__wa { padding: 1rem 1.5rem; font-size: 0.95rem; }
  .contact__wa-phone { display: none; }
}

/* ================================================
   RTL ADJUSTMENTS
   ================================================ */
[dir="rtl"] .hero__last { letter-spacing: 0.1em; }
[dir="rtl"] .mono { letter-spacing: 0; }
[dir="rtl"] .about__creds { letter-spacing: 0; font-family: var(--ff-ar-body); }
[dir="rtl"] .hero__portrait { border-radius: 0 0 12% 0; }
[dir="rtl"] .gallery__slide { border-radius: 16% 6px 4% 6px; }
[dir="rtl"] .about__photo img { border-radius: 28% 4px 12% 4px; }

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero__scroll-line { animation: none; opacity: 0.5; }
  .philosophy__ring { animation: none; }
}

/* ================================================
   FOCUS VISIBLE
   ================================================ */
:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }
