/* ============================================================
   AY Clinics — Dual-mode site (Adults Night / Kids Day)
   Single stylesheet. Theme swaps via [data-mode] on <html>.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Cairo', system-ui, sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
  transition: color 700ms cubic-bezier(.22,1,.36,1), background 700ms cubic-bezier(.22,1,.36,1);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; }

::selection { background: var(--brand-1); color: oklch(98% 0 0); }

/* ----------------------------------------------------------------
   THEME TOKENS
---------------------------------------------------------------- */

:root {
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 18px 60px -20px oklch(15% 0.05 250 / 0.45);
  --shadow-ring: 0 0 0 1px var(--ring);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: min(1200px, calc(100vw - clamp(32px, 8vw, 80px)));
  --page-pad: clamp(16px, 4vw, 40px);
  --bottom-ui: max(88px, calc(env(safe-area-inset-bottom, 0px) + 76px));
}

/* Adults — Night */
:root[data-mode="adults"] {
  --bg: oklch(13% 0.04 250);
  --bg-grad-1: oklch(20% 0.07 252);
  --bg-grad-2: oklch(8% 0.05 245);

  --surface: oklch(22% 0.05 250 / 0.55);
  --surface-strong: oklch(26% 0.06 252 / 0.78);
  --surface-edge: oklch(40% 0.06 250 / 0.18);

  --text: oklch(96% 0.012 245);
  --text-muted: oklch(72% 0.03 250);
  --text-faint: oklch(58% 0.04 250);

  --brand-1: oklch(78% 0.16 240);
  --brand-2: oklch(62% 0.20 250);
  --brand-glow: oklch(82% 0.16 235);
  --accent: oklch(85% 0.13 88);

  --ring: oklch(60% 0.04 250 / 0.22);
  --shadow-soft: 0 30px 80px -30px oklch(0% 0 0 / 0.65);

  color-scheme: dark;
}

/* Kids — Day */
:root[data-mode="kids"] {
  --bg: oklch(86% 0.10 226);
  --bg-grad-1: oklch(94% 0.06 220);
  --bg-grad-2: oklch(78% 0.14 232);

  --surface: oklch(99% 0.012 230 / 0.78);
  --surface-strong: oklch(99% 0.012 230 / 0.92);
  --surface-edge: oklch(50% 0.10 235 / 0.14);

  --text: oklch(24% 0.06 252);
  --text-muted: oklch(45% 0.06 250);
  --text-faint: oklch(58% 0.05 250);

  --brand-1: oklch(55% 0.20 250);
  --brand-2: oklch(45% 0.22 252);
  --brand-glow: oklch(58% 0.22 250);
  --accent: oklch(82% 0.17 92);
  --cheek: oklch(72% 0.18 22);

  --ring: oklch(40% 0.10 240 / 0.22);
  --shadow-soft: 0 30px 80px -30px oklch(40% 0.10 240 / 0.35);

  color-scheme: light;
}

/* ----------------------------------------------------------------
   SPLASH (intro on first paint)
---------------------------------------------------------------- */

html.splash-active body {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--bg-grad-1), transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 100%, var(--bg-grad-2), transparent 50%),
    var(--bg);
  color: var(--text);
  transition: opacity 520ms var(--ease-out), visibility 520ms var(--ease-out);
}

.splash__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.splash__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.28;
  will-change: transform, opacity;
}

.splash__orb--main {
  width: min(120vw, 680px);
  height: min(120vw, 680px);
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 68%);
  animation: splash-bg-main 3.6s ease-in-out infinite;
}

.splash__orb--accent {
  width: min(95vw, 520px);
  height: min(95vw, 520px);
  right: -12%;
  bottom: 8%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.18;
  animation: splash-bg-accent 4.2s ease-in-out infinite;
}

@keyframes splash-bg-main {
  0%, 100% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes splash-bg-accent {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.9) translate(0, 0);
  }
  50% {
    opacity: 0.22;
    transform: scale(1.08) translate(-4%, -3%);
  }
}

:root[data-mode="kids"] .splash__orb--main {
  opacity: 0.32;
}

:root[data-mode="kids"] .splash__orb--accent {
  opacity: 0.2;
}

.splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  animation: splash-in 1.1s var(--ease-spring) both;
}

.splash--out .splash__inner {
  animation: splash-out 560ms var(--ease-out) forwards;
}

@keyframes splash-in {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-12deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.1) rotate(4deg);
  }
  75% {
    transform: scale(0.96) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes splash-out {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.2) rotate(6deg) translateY(-16px);
  }
}

.splash__logos {
  --splash-drift: clamp(26px, 8vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 32px);
  width: min(98vw, 760px);
  overflow: visible;
}

.splash__logo-item {
  flex: 0 0 auto;
  --splash-logo-size: clamp(148px, 42vw, 240px);
  width: var(--splash-logo-size);
  height: var(--splash-logo-size);
  display: grid;
  place-items: center;
  margin: 0;
  transform-origin: center center;
  will-change: transform;
}

.splash__logo-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.splash__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 10px 28px oklch(0% 0 0 / 0.16));
}

.splash__logo-item--adults {
  animation: splash-drift-x-left 3.2s var(--ease-out) infinite;
  --splash-logo-scale: 2;
}

.splash__logo-item--kids {
  animation: splash-drift-x-right 3.2s var(--ease-out) infinite;
  --splash-logo-scale: 1.28;
}

.splash__logo-item--adults .splash__logo,
.splash__logo-item--kids .splash__logo {
  transform: scale(var(--splash-logo-scale));
  transform-origin: center center;
}

@media (max-width: 720px) {
  .splash {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .splash__orb {
    filter: blur(52px);
  }

  .splash__orb--main {
    width: 100vw;
    height: 100vw;
    top: 46%;
  }

  .splash__orb--accent {
    width: 85vw;
    height: 85vw;
    right: -20%;
    bottom: 4%;
  }

  .splash__inner {
    width: 100%;
    max-width: 100%;
    animation-duration: 0.9s;
  }

  .splash__logos {
    --splash-drift: clamp(6px, 2vw, 12px);
    gap: clamp(4px, 1.5vw, 10px);
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    overflow: visible;
  }

  .splash__logo-item {
    --splash-logo-size: min(clamp(96px, 27vw, 141px), 33vh);
    min-width: 0;
  }

  .splash__logo-item--adults {
    --splash-logo-scale: 1.89;
  }

  .splash__logo-item--kids {
    --splash-logo-scale: 1.45;
  }

  .splash__logo {
    filter: drop-shadow(0 6px 18px oklch(0% 0 0 / 0.14));
  }
}

@media (max-width: 720px) and (max-height: 520px) {
  .splash__logos {
    gap: clamp(4px, 1.5vw, 8px);
  }

  .splash__logo-item {
    --splash-logo-size: min(clamp(81px, 22vw, 121px), 28vh);
  }

  .splash__logo-item--adults {
    --splash-logo-scale: 1.7;
  }

  .splash__logo-item--kids {
    --splash-logo-scale: 1.39;
  }
}

@keyframes splash-drift-x-right {
  0%, 100% {
    transform: translateX(calc(var(--splash-drift) * -1)) translateY(0);
  }
  50% {
    transform: translateX(var(--splash-drift)) translateY(-5px);
  }
}

@keyframes splash-drift-x-left {
  0%, 100% {
    transform: translateX(var(--splash-drift)) translateY(0);
  }
  50% {
    transform: translateX(calc(var(--splash-drift) * -1)) translateY(-5px);
  }
}

@media (max-width: 720px) {
  @keyframes splash-drift-x-right {
    0%, 100% {
      transform: translateX(calc(var(--splash-drift) * -1)) translateY(0);
    }
    50% {
      transform: translateX(var(--splash-drift)) translateY(-3px);
    }
  }

  @keyframes splash-drift-x-left {
    0%, 100% {
      transform: translateX(var(--splash-drift)) translateY(0);
    }
    50% {
      transform: translateX(calc(var(--splash-drift) * -1)) translateY(-3px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash__inner {
    animation: splash-in-reduced 400ms var(--ease-out) both;
  }

  .splash--out .splash__inner {
    animation: splash-out-reduced 320ms var(--ease-out) forwards;
  }

  .splash__logo-item,
  .splash__orb {
    animation: none !important;
  }

  .splash__orb--main { opacity: 0.24; }
  .splash__orb--accent { opacity: 0.14; }
}

@keyframes splash-in-reduced {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splash-out-reduced {
  to { opacity: 0; }
}

/* ----------------------------------------------------------------
   ATMOSPHERIC SKY (full-screen fixed backdrop)
---------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.sky__layer {
  position: absolute;
  inset: 0;
  transition: opacity 1000ms var(--ease-out), filter 1000ms var(--ease-out);
}

/* Night: visible in adults mode */
.sky__layer--night {
  background:
    radial-gradient(ellipse at 70% 18%, oklch(28% 0.08 252 / 0.6), transparent 55%),
    radial-gradient(ellipse at 18% 80%, oklch(22% 0.10 268 / 0.55), transparent 60%),
    linear-gradient(160deg, var(--bg-grad-1), var(--bg-grad-2));
  opacity: 0;
}
:root[data-mode="adults"] .sky__layer--night { opacity: 1; }

/* Day: visible in kids mode */
.sky__layer--day {
  background:
    radial-gradient(ellipse at 80% 14%, oklch(95% 0.08 92 / 0.55), transparent 55%),
    linear-gradient(170deg, oklch(94% 0.06 220), oklch(78% 0.14 232) 60%, oklch(72% 0.16 235));
  opacity: 0;
}
:root[data-mode="kids"] .sky__layer--day { opacity: 1; }

/* Stars — drift on transform (composited); avoid background-position + filter (janky on mobile) */
.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.stars--far {
  background-image:
    radial-gradient(1px 1px at 20% 30%, oklch(95% 0.02 240) 50%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, oklch(92% 0.02 240) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, oklch(94% 0.03 240) 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, oklch(96% 0.02 240) 50%, transparent 100%),
    radial-gradient(1px 1px at 10% 90%, oklch(90% 0.02 240) 50%, transparent 100%);
  background-size: 800px 800px;
  opacity: 0.6;
  animation: stars-drift-far 200s linear infinite;
}
.stars--mid {
  background-image:
    radial-gradient(1.4px 1.4px at 30% 20%, oklch(98% 0.03 240) 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 80% 70%, oklch(98% 0.03 240) 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 50% 40%, oklch(96% 0.04 240) 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 15% 65%, oklch(94% 0.03 240) 50%, transparent 100%);
  background-size: 600px 600px;
  opacity: 0.55;
  animation: stars-drift-mid 155s linear infinite reverse, stars-twinkle 5s ease-in-out infinite;
}
.stars--near {
  background-image:
    radial-gradient(2px 2px at 25% 55%, oklch(99% 0.02 240) 50%, transparent 100%),
    radial-gradient(2px 2px at 75% 25%, oklch(99% 0.02 240) 50%, transparent 100%),
    radial-gradient(2.4px 2.4px at 55% 75%, oklch(99% 0.04 240) 50%, transparent 100%);
  background-size: 500px 500px;
  opacity: 0.85;
  animation: stars-drift-near 105s linear infinite, stars-twinkle-near 7s ease-in-out infinite;
  filter: drop-shadow(0 0 4px oklch(95% 0.05 240 / 0.6));
}

@keyframes stars-drift-far {
  to { transform: translate3d(-520px, -260px, 0); }
}
@keyframes stars-drift-mid {
  to { transform: translate3d(-680px, -380px, 0); }
}
@keyframes stars-drift-near {
  to { transform: translate3d(-840px, -480px, 0); }
}
@keyframes stars-twinkle {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 0.72; }
}
@keyframes stars-twinkle-near {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.98; }
}

/* Phones: slightly faster drift + no drop-shadow on full-screen layer = smoother */
@media (max-width: 720px) {
  .stars {
    will-change: transform;
  }
  .stars--far { animation-duration: 150s; }
  .stars--mid { animation-duration: 115s, 5s; }
  .stars--near {
    animation-duration: 78s, 6s;
    filter: none;
  }
}

/* Moon */
.moon {
  position: absolute;
  top: 8%;
  inset-inline-end: 12%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, oklch(98% 0.02 250), oklch(82% 0.04 250) 65%, oklch(60% 0.05 250));
  box-shadow:
    0 0 60px oklch(85% 0.10 240 / 0.45),
    0 0 140px oklch(75% 0.12 240 / 0.25);
  animation: moon-float 14s ease-in-out infinite;
}
@keyframes moon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Aurora (subtle gradient ribbon) */
.aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 30% at 50% 110%, oklch(45% 0.18 260 / 0.35), transparent 70%);
  filter: blur(40px);
  mix-blend-mode: screen;
  animation: aurora-pulse 10s ease-in-out infinite;
}
@keyframes aurora-pulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-20px); }
}

/* Sun */
.sun {
  position: absolute;
  top: 8%;
  inset-inline-end: 10%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, oklch(98% 0.04 90), oklch(88% 0.16 88) 60%, oklch(78% 0.20 80));
  box-shadow:
    0 0 80px oklch(90% 0.18 88 / 0.55),
    0 0 180px oklch(85% 0.18 90 / 0.30);
  animation: sun-pulse 6s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Clouds */
.clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cloud { animation: cloud-drift 60s linear infinite; }
.cloud--1 { animation-duration: 90s; }
.cloud--2 { animation-duration: 70s; animation-direction: reverse; }
.cloud--3 { animation-duration: 110s; }
.cloud--4 { animation-duration: 80s; animation-direction: reverse; }
.cloud--5 { animation-duration: 100s; }

@keyframes cloud-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1700px); }
}

/* ----------------------------------------------------------------
   FLOATING TOOTH PARTICLES
---------------------------------------------------------------- */

.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.floater {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: calc(var(--s) * 1.2);
  border-radius: 45% 45% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, oklch(98% 0.01 240), oklch(85% 0.04 240));
  opacity: 0.18;
  animation: float 9s ease-in-out infinite;
  animation-delay: var(--d);
  filter: blur(0.4px);
}
:root[data-mode="adults"] .floater { box-shadow: 0 0 18px oklch(80% 0.16 240 / 0.5); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}

/* ----------------------------------------------------------------
   HEADER
---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px clamp(20px, 4vw, 40px);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: linear-gradient(to bottom, var(--surface-strong), oklch(from var(--surface) l c h / 0.0));
  border-bottom: 1px solid var(--surface-edge);
  transition: background 600ms var(--ease-out), border-color 600ms var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand--full-logo {
  gap: 0;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo-img {
  height: clamp(72px, 10vw, 110px);
  width: auto;
  max-width: min(320px, 56vw);
  display: block;
  object-fit: contain;
  object-position: center right;
  filter: drop-shadow(0 2px 6px oklch(12% 0.04 250 / 0.45))
    drop-shadow(0 0 22px oklch(from var(--brand-1) l c h / 0.42));
  transition: filter 600ms var(--ease-out), transform 480ms var(--ease-spring);
}
.brand:hover .brand__logo-img {
  transform: translateY(-1px) scale(1.02);
}
:root[data-mode="kids"] .brand__logo-img {
  filter: drop-shadow(0 1px 3px oklch(35% 0.08 240 / 0.25))
    drop-shadow(0 0 16px oklch(from var(--accent) l c h / 0.28));
}
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__ay {
  font-family: 'Fraunces', 'Cairo', serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--brand-glow), var(--brand-2));
  color: var(--brand-1);
}
.brand__ay--small { font-size: 22px; }
.brand__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.nav a {
  position: relative;
  color: var(--text-muted);
  transition: color 240ms var(--ease-out);
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-link--kids-only {
  display: none;
}
:root[data-mode="kids"] .nav-link--kids-only {
  display: inline-flex;
}

/* Mobile menu (toggle + backdrop — drawer styles at max-width:720px) */
.nav-toggle,
.nav-backdrop { display: none; }

.nav-toggle {
  position: relative;
  z-index: 62;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: oklch(from var(--brand-1) l c h / 0.12);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.22);
  color: var(--text);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.nav-toggle:focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 3px;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(-45deg);
}
.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: oklch(0% 0 0 / 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out);
}
.site-header.is-nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Mode switch — floating, fixed to viewport */
.mode-switch {
  position: fixed;
  z-index: 45;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: switch-rise 700ms var(--ease-out) both;
}
@keyframes switch-rise {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

.mode-switch__hint {
  display: none;
}

.mode-switch__track {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: oklch(from var(--bg) l c h / 0.6);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 2px 6px oklch(0% 0 0 / 0.25);
}

.mode-switch__btn {
  position: relative;
  z-index: 2;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 360ms var(--ease-out);
}
.mode-switch__btn picture {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: oklch(from var(--bg) l c h / 0.5);
}
.mode-switch__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(0.7) opacity(0.55);
  transition: filter 360ms var(--ease-out), transform 480ms var(--ease-spring);
}
.mode-switch__caption {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mode-switch__btn[aria-pressed="true"] {
  color: oklch(98% 0 0);
}
.mode-switch__btn[aria-pressed="true"] .mode-switch__logo {
  filter: grayscale(0) opacity(1) drop-shadow(0 2px 6px oklch(0% 0 0 / 0.45));
  transform: scale(1.06);
}
.mode-switch__btn:hover .mode-switch__logo {
  filter: grayscale(0.25) opacity(0.95);
}

.mode-switch__pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  inset-inline-start: 6px;
  width: calc(50% - 9px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 8px 22px -6px var(--brand-glow), inset 0 1px 0 oklch(99% 0 0 / 0.18);
  transition: transform 480ms var(--ease-spring);
  z-index: 1;
}
:root[data-mode="adults"] .mode-switch__pill { transform: translateX(0); }
:root[data-mode="kids"][dir="rtl"] .mode-switch__pill { transform: translateX(calc(-100% - 6px)); }
:root[data-mode="kids"]:not([dir="rtl"]) .mode-switch__pill { transform: translateX(calc(100% + 6px)); }

/* العائم: لوجوهين فقط — المختار يكبر وينور */
.mode-switch:not(.mode-switch--header) .mode-switch__pill,
.mode-switch:not(.mode-switch--header) .mode-switch__caption {
  display: none;
}

.mode-switch:not(.mode-switch--header) .mode-switch__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.8vw, 18px);
  padding: 8px clamp(14px, 3.5vw, 20px);
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--surface-edge);
  box-shadow:
    0 16px 40px -14px oklch(0% 0 0 / 0.5),
    inset 0 1px 0 oklch(99% 0 0 / 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 2px;
  border-radius: 14px;
  background: transparent;
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn picture {
  width: clamp(48px, 12vw, 56px);
  height: clamp(48px, 12vw, 56px);
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  transition: transform 420ms var(--ease-spring), box-shadow 420ms var(--ease-out);
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn .mode-switch__logo {
  filter: grayscale(0.4) opacity(0.48);
  transform: scale(0.88);
  transition: filter 400ms var(--ease-out), transform 420ms var(--ease-spring);
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn[aria-pressed="true"] {
  color: inherit;
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn[aria-pressed="true"] picture {
  transform: scale(1.14);
  box-shadow:
    0 0 0 2px oklch(from var(--brand-1) l c h / 0.5),
    0 0 22px oklch(from var(--brand-glow) l c h / 0.8),
    0 0 40px oklch(from var(--brand-glow) l c h / 0.4);
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn[aria-pressed="true"] .mode-switch__logo {
  filter: grayscale(0) opacity(1) drop-shadow(0 0 16px var(--brand-glow));
  transform: scale(1.06);
}

.mode-switch:not(.mode-switch--header) .mode-switch__btn:hover:not([aria-pressed="true"]) .mode-switch__logo {
  filter: grayscale(0.2) opacity(0.65);
  transform: scale(0.94);
}

:root[data-mode="kids"] .mode-switch:not(.mode-switch--header) .mode-switch__btn[aria-pressed="true"] picture {
  box-shadow:
    0 0 0 2px oklch(from var(--accent) l c h / 0.55),
    0 0 22px oklch(from var(--accent) l c h / 0.65),
    0 0 40px oklch(from var(--brand-1) l c h / 0.35);
}

@media (max-width: 720px) {
  :root {
    --bottom-ui: max(76px, calc(env(safe-area-inset-bottom, 0px) + 68px));
  }

  .mode-switch:not(.mode-switch--header) {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    width: auto;
    max-width: min(calc(100vw - 200px), 200px);
    transform: translateX(-50%);
  }

  .mode-switch:not(.mode-switch--header) .mode-switch__track {
    width: 100%;
    justify-content: space-evenly;
    gap: 8px;
    padding: 6px 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mode-switch:not(.mode-switch--header) .mode-switch__btn picture {
    width: 44px;
    height: 44px;
  }

  .mode-switch:not(.mode-switch--header) .mode-switch__btn[aria-pressed="true"] picture {
    transform: scale(1.1);
  }
}

@media (max-width: 540px) {
  .mode-switch:not(.mode-switch--header) {
    max-width: min(calc(100vw - 188px), 176px);
  }

  .mode-switch:not(.mode-switch--header) .mode-switch__track {
    padding: 5px 8px;
    gap: 6px;
  }

  .mode-switch:not(.mode-switch--header) .mode-switch__btn picture {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

@media (max-width: 380px) {
  .mode-switch:not(.mode-switch--header) {
    max-width: min(calc(100vw - 168px), 156px);
  }

  .mode-switch:not(.mode-switch--header) .mode-switch__btn picture {
    width: 36px;
    height: 36px;
  }
}

/* Header variant — لوجوهين فقط (زي العائم) */
.mode-switch--header {
  position: static;
  transform: none;
  flex-direction: row;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
  justify-self: end;
}
.mode-switch--header .mode-switch__hint,
.mode-switch--header .mode-switch__caption,
.mode-switch--header .mode-switch__pill {
  display: none;
}
.mode-switch--header .mode-switch__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--surface-edge);
  box-shadow: inset 0 1px 0 oklch(99% 0 0 / 0.06);
}
.mode-switch--header .mode-switch__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 3px;
  border-radius: 12px;
  background: transparent;
  grid-template-columns: unset;
}
.mode-switch--header .mode-switch__btn picture {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: transparent;
  overflow: visible;
  transition: transform 420ms var(--ease-spring), box-shadow 420ms var(--ease-out);
}
.mode-switch--header .mode-switch__btn .mode-switch__logo {
  filter: grayscale(0.4) opacity(0.48);
  transform: scale(0.9);
  transition: filter 400ms var(--ease-out), transform 420ms var(--ease-spring);
}
.mode-switch--header .mode-switch__btn[aria-pressed="true"] {
  color: inherit;
}
.mode-switch--header .mode-switch__btn[aria-pressed="true"] picture {
  transform: scale(1.14);
  box-shadow:
    0 0 0 2px oklch(from var(--brand-1) l c h / 0.48),
    0 0 20px oklch(from var(--brand-glow) l c h / 0.75);
}
.mode-switch--header .mode-switch__btn[aria-pressed="true"] .mode-switch__logo {
  filter: grayscale(0) opacity(1) drop-shadow(0 0 14px var(--brand-glow));
  transform: scale(1.06);
}
.mode-switch--header .mode-switch__btn:hover:not([aria-pressed="true"]) .mode-switch__logo {
  filter: grayscale(0.2) opacity(0.65);
  transform: scale(0.94);
}
:root[data-mode="kids"] .mode-switch--header .mode-switch__btn[aria-pressed="true"] picture {
  box-shadow:
    0 0 0 2px oklch(from var(--accent) l c h / 0.52),
    0 0 20px oklch(from var(--accent) l c h / 0.6);
}

/* ----------------------------------------------------------------
   CONTAINERS / TYPOGRAPHY
---------------------------------------------------------------- */

main { display: block; position: relative; z-index: 1; }

/* تليفونات وأرقام لاتينية داخل RTL — لا تنعكس */
.num-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
a[href^="tel:"] .num-ltr {
  display: inline-block;
}

section { padding: clamp(44px, 5.5vw, 80px) clamp(20px, 4vw, 40px); }

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(24px, 3.5vw, 40px);
  text-align: center;
}
.section-head__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: oklch(from var(--brand-1) l c h / 0.10);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.20);
}
.section-head__title {
  font-family: 'Fraunces', 'Cairo', serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.section-head__lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92dvh;
  display: grid;
  align-items: start;
  padding: clamp(60px, 8vw, 96px) clamp(20px, 4vw, 40px) clamp(60px, 8vw, 120px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: var(--container);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 56px);
    text-align: center;
  }
  .hero__copy { min-width: 0; }
  .hero__lede { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .hero__visual {
    width: 100%;
    max-width: min(440px, 100%);
    margin-inline: auto;
  }
  .hero {
    min-height: auto;
    padding-block: clamp(48px, 10vw, 72px) clamp(48px, 8vw, 88px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 12px var(--brand-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero__title {
  font-family: 'Fraunces', 'Cairo', serif;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
}
.hero__title-line { display: inline; }
.hero__title-with {
  font-weight: 400;
  font-size: 0.65em;
  color: var(--text-muted);
  margin: 0 0.2em;
}
.hero__title-ay {
  position: relative;
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.05em;
  letter-spacing: -0.04em;
}
.hero__title-ay-letters {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--brand-glow), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-mode="kids"] .hero__title-ay-letters {
  background: none;
  color: var(--brand-1);
  text-shadow: 3px 3px 0 var(--accent);
}
.hero__title-ay-glow {
  position: absolute;
  inset: -10% -8% -10% -8%;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 65%);
  filter: blur(28px);
  opacity: 0.7;
  z-index: 0;
}

.hero__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 56ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .hero__ctas { justify-content: center; }
}

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.hero__scene--adults { opacity: 0; transform: scale(0.96); }
.hero__scene--kids { opacity: 0; transform: scale(0.96); }
:root[data-mode="adults"] .hero__scene--adults { opacity: 1; transform: scale(1); }
:root[data-mode="kids"] .hero__scene--kids { opacity: 1; transform: scale(1); }

.hero__glow {
  position: absolute;
  inset: 12% 12%;
  z-index: 0;
  background: radial-gradient(circle at center, var(--brand-glow), transparent 65%);
  filter: blur(50px);
  opacity: 0.6;
  animation: hero-glow 5s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

/* Adults hero logo — centered, no doctor overlay */
.hero__scene--adults .hero__logo-wrap {
  position: relative;
  z-index: 2;
  display: block;
  width: min(82%, 520px);
}
.hero__scene--adults .hero__logo-img--adults {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 30px 60px oklch(8% 0.04 250 / 0.55))
    drop-shadow(0 0 70px oklch(from var(--brand-1) l c h / 0.5));
  animation: hero-bob 6s ease-in-out infinite;
}

/* Kids logo (separate scene) */
.hero__scene--kids .hero__logo-img {
  position: relative;
  z-index: 2;
  width: min(86%, 540px);
  height: auto;
  display: block;
  filter: drop-shadow(0 26px 48px oklch(40% 0.12 240 / 0.45));
  animation: hero-wiggle 5s ease-in-out infinite;
}
@keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes hero-wiggle {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

.hero__city {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* Balloons (kids) */
.balloon {
  position: absolute;
  width: 36px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(95% 0.08 25), oklch(72% 0.18 22));
  box-shadow: 0 4px 12px oklch(0% 0 0 / 0.15);
  animation: balloon-float 8s ease-in-out infinite;
}
.balloon::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  width: 1px; height: 30px;
  background: oklch(40% 0.06 250);
}
.balloon--1 { top: 8%; inset-inline-end: 12%; }
.balloon--2 {
  top: 18%; inset-inline-start: 8%;
  background: radial-gradient(circle at 35% 30%, oklch(95% 0.08 90), oklch(82% 0.17 92));
  animation-delay: -2s;
}
.balloon--3 {
  top: 70%; inset-inline-start: 14%;
  background: radial-gradient(circle at 35% 30%, oklch(95% 0.08 145), oklch(72% 0.18 145));
  animation-delay: -4s;
}
@keyframes balloon-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

/* أطفال — لمسات مميزة في الهيرو */
.kids-charm-row {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}
@media (min-width: 901px) {
  .kids-charm-row {
    justify-content: start;
  }
}
:root[data-mode="kids"] .kids-charm-row {
  display: flex;
}
.kids-charm {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid oklch(50% 0.10 250 / 0.22);
  background: oklch(99% 0.02 230 / 0.96);
  color: var(--brand-1);
  box-shadow: 0 4px 16px oklch(40% 0.12 250 / 0.14);
  animation: kids-charm-wiggle 7s ease-in-out infinite;
}
.kids-charm:nth-child(2) { animation-delay: -2.2s; }
.kids-charm:nth-child(3) { animation-delay: -4.4s; }
@keyframes kids-charm-wiggle {
  0%, 100% { transform: rotate(-0.8deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-3px); }
}

/* أبطال كرتون يطيرون — وضع الأطفال (عشوائي من JS) */
.kids-flyers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
:root[data-mode="kids"] .kids-flyers {
  display: block;
}

/* نقطة البداية يسار الحاوية — الحركة بـ translate تعبر كامل العرض */
.kids-flyer-wrap {
  position: absolute;
  top: var(--fly-y, 20%);
  left: 0;
  opacity: 1;
  animation: kids-fly-across var(--fly-dur, 26s) linear infinite;
  animation-delay: var(--fly-delay, 0s);
  will-change: transform;
}
.kids-flyer-wrap--batman {
  width: calc(clamp(118px, 28vw, 228px) * var(--fly-scale, 1));
}
.kids-flyer-wrap--superkid {
  width: calc(clamp(112px, 27vw, 210px) * var(--fly-scale, 1));
}
.kids-flyer-wrap--reverse {
  animation-name: kids-fly-across-rev;
}

.kids-flyer {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 2px 0 oklch(99% 0.02 230 / 0.9))
    drop-shadow(0 6px 14px oklch(28% 0.08 250 / 0.55))
    drop-shadow(0 14px 28px oklch(28% 0.08 250 / 0.35));
}
.kids-flyer--batman {
  animation: kids-fly-bob-batman 2.4s ease-in-out infinite;
}
.kids-flyer-wrap--reverse .kids-flyer--batman {
  animation-name: kids-fly-bob-batman-fwd;
}
.kids-flyer--superkid {
  animation: kids-fly-bob-super 2.2s ease-in-out infinite;
}
.kids-flyer-wrap--reverse .kids-flyer--superkid {
  animation-name: kids-fly-bob-super-fwd;
}

/* يعبر منتصف الشاشة (ليس على الأطراف فقط) */
@keyframes kids-fly-across {
  0% {
    transform: translate3d(108vw, 0, 0) rotate(var(--fly-tilt-a, -7deg));
  }
  45% {
    transform: translate3d(42vw, var(--fly-drift, -14px), 0) rotate(0deg);
  }
  55% {
    transform: translate3d(38vw, var(--fly-drift, -10px), 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-38vw, 0, 0) rotate(var(--fly-tilt-b, 9deg));
  }
}
@keyframes kids-fly-across-rev {
  0% {
    transform: translate3d(-38vw, 0, 0) rotate(var(--fly-tilt-a, 7deg));
  }
  45% {
    transform: translate3d(42vw, var(--fly-drift, 14px), 0) rotate(0deg);
  }
  55% {
    transform: translate3d(48vw, var(--fly-drift, 10px), 0) rotate(0deg);
  }
  100% {
    transform: translate3d(108vw, 0, 0) rotate(var(--fly-tilt-b, -9deg));
  }
}
@keyframes kids-fly-bob-batman {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0); }
  50% { transform: scaleX(-1) translate3d(0, -14px, 0); }
}
@keyframes kids-fly-bob-batman-fwd {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@keyframes kids-fly-bob-super {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0); }
  50% { transform: scaleX(-1) translate3d(0, -12px, 0); }
}
@keyframes kids-fly-bob-super-fwd {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

/* أبطال قرب الشعار في الهيرو */
.hero__flyer {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: none;
}
:root[data-mode="kids"] .hero__flyer {
  display: block;
}
.hero__flyer img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 2px 0 oklch(99% 0.02 230 / 0.85))
    drop-shadow(0 8px 18px oklch(28% 0.08 250 / 0.5));
}
.hero__flyer--batman {
  width: clamp(108px, 26vw, 188px);
  top: 4%;
  inset-inline-start: 0;
  animation: hero-flyer-orbit-a 9s ease-in-out infinite;
}
.hero__flyer--batman img {
  transform: scaleX(-1);
}
.hero__flyer--superkid {
  width: clamp(100px, 24vw, 168px);
  bottom: 18%;
  inset-inline-end: 0;
  animation: hero-flyer-orbit-b 7.5s ease-in-out infinite;
}
.hero__flyer--superkid img {
  transform: scaleX(-1);
}
@keyframes hero-flyer-orbit-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(10px, -18px, 0) rotate(5deg); }
}
@keyframes hero-flyer-orbit-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg); }
  50% { transform: translate3d(-14px, -12px, 0) rotate(-4deg); }
}

@media (max-width: 720px) {
  .kids-flyer-wrap--batman {
    width: calc(clamp(58px, 16vw, 96px) * var(--fly-scale, 1));
  }
  .kids-flyer-wrap--superkid {
    width: calc(clamp(54px, 15vw, 90px) * var(--fly-scale, 1));
  }
  .kids-flyer {
    filter: drop-shadow(0 4px 8px oklch(28% 0.08 250 / 0.35));
  }
  .kids-flyer-wrap {
    animation-duration: calc(var(--fly-dur, 26s) * 1.12);
  }
}

@media (max-width: 380px) {
  .kids-flyer-wrap--batman {
    width: calc(clamp(50px, 14vw, 82px) * var(--fly-scale, 1));
  }
  .kids-flyer-wrap--superkid {
    width: calc(clamp(48px, 13vw, 78px) * var(--fly-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-mode="kids"] .kids-flyers,
  :root[data-mode="kids"] .hero__flyer {
    display: none;
  }
}

.kids-hero-wave {
  display: none;
  height: 10px;
  max-width: min(520px, 88vw);
  margin: 14px auto 0;
  border-radius: 999px;
  opacity: 0.85;
}
:root[data-mode="kids"] .kids-hero-wave {
  display: block;
  background: repeating-linear-gradient(
    -52deg,
    oklch(from var(--accent) l c h / 0.35),
    oklch(from var(--accent) l c h / 0.35) 10px,
    oklch(from var(--brand-1) l c h / 0.18) 10px,
    oklch(from var(--brand-1) l c h / 0.18) 20px
  );
  box-shadow: 0 2px 0 oklch(99% 0.02 230 / 0.5);
}

/* موسيقى مرحة اختيارية (وضع الأطفال فقط — يُتحكم بها من data-mode) */
.kids-ambient-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kids-audio-dock {
  position: fixed;
  z-index: 46;
  bottom: max(108px, calc(env(safe-area-inset-bottom, 0px) + 92px));
  inset-inline-end: max(14px, env(safe-area-inset-end, 0px));
  display: none;
  align-items: stretch;
  gap: 8px;
}
:root[data-mode="kids"] .kids-audio-dock {
  display: flex;
}
.kids-audio-dock__btn,
.kids-audio-dock__mute {
  font: inherit;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 200ms var(--ease-out), box-shadow 200ms, background 200ms;
}
.kids-audio-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  font-weight: 800;
  font-size: 13px;
  color: oklch(22% 0.07 252);
  background: linear-gradient(135deg, oklch(92% 0.12 92), oklch(88% 0.14 250));
  border: 1px solid oklch(50% 0.10 250 / 0.22);
  box-shadow: 0 10px 28px oklch(40% 0.12 250 / 0.2);
}
.kids-audio-dock__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px oklch(40% 0.14 250 / 0.28);
}
.kids-audio-dock__btn.is-playing {
  background: linear-gradient(135deg, oklch(78% 0.16 250), oklch(70% 0.18 252));
  color: oklch(99% 0 0);
  border-color: oklch(45% 0.14 252 / 0.35);
}
.kids-audio-dock__btn:focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 3px;
}
.kids-audio-dock__icon {
  font-size: 18px;
  line-height: 1;
}
.kids-audio-dock__btn.is-playing .kids-audio-dock__play {
  display: none;
}
.kids-audio-dock__btn:not(.is-playing) .kids-audio-dock__stop {
  display: none;
}
.kids-audio-dock__mute {
  width: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: oklch(99% 0.02 230 / 0.95);
  border: 1px solid oklch(50% 0.08 240 / 0.2);
  box-shadow: 0 8px 22px oklch(0% 0 0 / 0.12);
}
.kids-audio-dock__mute[aria-pressed="true"] {
  background: oklch(92% 0.04 250);
}
@media (max-width: 720px) {
  .kids-audio-dock {
    bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 56px);
    inset-inline-end: auto;
    inset-inline-start: max(12px, env(safe-area-inset-start, 0px));
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 540px) {
  .kids-audio-dock__btn {
    font-size: 12px;
    padding: 8px 12px 8px 10px;
  }
}

/* عناوين أقسام الأطفال — طابع مرح */
.section-head--kids-spark .section-head__kicker {
  background: linear-gradient(120deg, oklch(88% 0.14 92), oklch(82% 0.16 250));
  color: oklch(22% 0.07 252);
  border: 1px solid oklch(50% 0.10 250 / 0.18);
  box-shadow: 0 8px 24px oklch(45% 0.14 250 / 0.12);
}
.section-head--kids-spark .section-head__title {
  text-shadow: 0 2px 0 oklch(99% 0.02 230 / 0.35);
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 320ms var(--ease-spring), box-shadow 320ms var(--ease-out), background 320ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: oklch(98% 0 0);
  box-shadow:
    0 14px 30px -10px var(--brand-glow),
    inset 0 1px 0 oklch(99% 0 0 / 0.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -12px var(--brand-glow), inset 0 1px 0 oklch(99% 0 0 / 0.25);
}
.btn--primary svg { transition: transform 320ms var(--ease-out); }
.btn--primary:hover svg { transform: translateX(-4px); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.btn--soft {
  background: oklch(from var(--brand-1) l c h / 0.10);
  color: var(--brand-1);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.18);
}
.btn--soft:hover { background: oklch(from var(--brand-1) l c h / 0.16); }

.btn--link {
  padding: 6px 0;
  color: var(--brand-1);
  font-weight: 700;
  border-radius: 0;
  position: relative;
}
.btn--link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}
.btn--link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ----------------------------------------------------------------
   WORLDS — two branches
---------------------------------------------------------------- */

.worlds {
  padding-top: clamp(12px, 2vw, 24px);
  margin-top: clamp(-48px, -7vw, -72px);
}
:root[data-mode="kids"] .worlds {
  margin-top: clamp(-56px, -8vw, -80px);
}

.worlds__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .worlds__grid { grid-template-columns: 1fr; }
}

.world-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: transform 540ms var(--ease-out), box-shadow 540ms var(--ease-out);
  isolation: isolate;
}
.world-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 80px -30px oklch(0% 0 0 / 0.55);
}

.world-card__media {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
}
.world-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 720ms var(--ease-out);
}
.world-card:hover .world-card__media img { transform: scale(1.04); }

.world-card__chip {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: oklch(8% 0.04 250 / 0.65);
  color: oklch(98% 0 0);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}
.world-card--kids .world-card__chip {
  background: oklch(98% 0.02 230 / 0.85);
  color: oklch(45% 0.20 250);
}

.world-card__body { padding: 28px clamp(24px, 3vw, 32px); }
.world-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.world-card__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.world-card__desc {
  color: var(--text-muted);
  margin: 0 0 22px;
}
.world-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ----------------------------------------------------------------
   SERVICES
---------------------------------------------------------------- */

.services__grid {
  position: relative;
  width: var(--container);
  margin: 0 auto;
}
.service-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
@media (max-width: 900px) {
  .service-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .service-set { grid-template-columns: minmax(0, 1fr); }
}

.service-set--adults { display: grid; }
.service-set--kids { display: none; }
:root[data-mode="kids"] .service-set--adults { display: none; }
:root[data-mode="kids"] .service-set--kids { display: grid; }

.service {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 360ms var(--ease-out), border-color 360ms var(--ease-out), background 360ms var(--ease-out);
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, oklch(from var(--brand-1) l c h / 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
  pointer-events: none;
}
.service:hover {
  transform: translateY(-4px);
  border-color: oklch(from var(--brand-1) l c h / 0.30);
}
.service:hover::before { opacity: 1; }

.service__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: oklch(98% 0 0);
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -8px var(--brand-glow);
}
.service__icon svg { width: 22px; height: 22px; }

.service h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text);
}
.service p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* Kids service variant: rounder, softer */
:root[data-mode="kids"] .service { border-radius: var(--radius-lg); }
:root[data-mode="kids"] .service__icon { border-radius: 18px; }

/* ----------------------------------------------------------------
   WHY
---------------------------------------------------------------- */

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .why__grid { grid-template-columns: minmax(0, 1fr); } }

.why-card {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 360ms var(--ease-out);
}
.why-card:hover { transform: translateY(-4px); }

.why-card__num {
  position: absolute;
  top: 14px;
  inset-inline-end: 18px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: oklch(from var(--brand-1) l c h / 0.18);
}

.why-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text);
}
.why-card p { color: var(--text-muted); margin: 0; font-size: 14.5px; }

/* ----------------------------------------------------------------
   TEAM
---------------------------------------------------------------- */

.team {
  position: relative;
}

/* Founder spotlight (formerly "doctor") */
.team-founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .team-founder { grid-template-columns: 1fr; text-align: center; }
}

.team-founder__media {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: clamp(360px, 44vw, 520px);
}

.team-founder__halo {
  position: absolute;
  inset: 6% 6% 14%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, oklch(from var(--brand-1) l c h / 0.55), transparent 62%),
    radial-gradient(circle at 50% 80%, oklch(from var(--brand-2) l c h / 0.35), transparent 70%);
  filter: blur(18px);
  animation: doctor-glow 7s ease-in-out infinite;
}
@keyframes doctor-glow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

.team-founder__ring {
  position: absolute;
  inset: 8% 8% 16%;
  z-index: 0;
  border-radius: 50%;
  border: 1px dashed oklch(from var(--brand-1) l c h / 0.45);
  animation: rotate 38s linear infinite;
}
.team-founder__ring::before,
.team-founder__ring::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-glow);
  box-shadow: 0 0 14px var(--brand-glow);
}
.team-founder__ring::before { top: -5px; left: 50%; }
.team-founder__ring::after { bottom: -5px; left: 50%; }
@keyframes rotate {
  to { transform: rotate(360deg); }
}

.team-founder__photo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(420px, 92%);
}
.team-founder__photo img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 4px 8px oklch(8% 0.04 250 / 0.55))
    drop-shadow(0 30px 60px oklch(8% 0.04 250 / 0.65))
    drop-shadow(0 0 50px oklch(from var(--brand-1) l c h / 0.30));
  animation: doctor-bob 8s ease-in-out infinite;
  transition: filter 600ms var(--ease-out);
}
:root[data-mode="kids"] .team-founder__photo img {
  filter:
    drop-shadow(0 4px 10px oklch(35% 0.10 240 / 0.30))
    drop-shadow(0 26px 50px oklch(35% 0.10 240 / 0.35))
    drop-shadow(0 0 50px oklch(from var(--accent) l c h / 0.30));
}
@keyframes doctor-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.team-founder__badge {
  position: absolute;
  bottom: 4%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.40);
  box-shadow: 0 12px 30px -10px oklch(8% 0.04 250 / 0.55), inset 0 1px 0 oklch(99% 0 0 / 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.team-founder__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 10px var(--brand-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.team-founder__title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
  color: var(--text);
}
.team-founder__sub {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-1);
  letter-spacing: 0.01em;
}
.team-founder__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.team-founder__list li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--text-muted);
}
.team-founder__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 14px; height: 2px;
  background: var(--brand-1);
}
.team-founder__cta {
  margin-top: 28px;
}
@media (max-width: 900px) {
  .team-founder__cta { display: flex; justify-content: center; }
}

/* Divider between founder and specialists */
.team__split {
  display: flex;
  align-items: center;
  gap: 18px;
  width: var(--container);
  margin: clamp(60px, 8vw, 96px) auto clamp(36px, 4vw, 56px);
}
.team__split-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-edge), transparent);
}
.team__split-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* Specialists grid */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
  width: var(--container);
  margin: 0 auto;
}
@media (max-width: 720px) {
  .team__grid { grid-template-columns: 1fr; }
}

.team-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  align-items: stretch;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 540ms var(--ease-out), border-color 540ms var(--ease-out), box-shadow 540ms var(--ease-out);
  isolation: isolate;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: oklch(from var(--brand-1) l c h / 0.40);
  box-shadow: 0 30px 60px -22px oklch(0% 0 0 / 0.5);
}
@media (max-width: 540px) {
  .team-card { grid-template-columns: 1fr; }
}

.team-card__media {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 24px 12px 0;
  min-height: 220px;
  background:
    radial-gradient(ellipse at 50% 100%, oklch(from var(--brand-1) l c h / 0.18), transparent 65%),
    linear-gradient(180deg, oklch(from var(--bg) l c h / 0.0), oklch(from var(--brand-1) l c h / 0.10));
  border-inline-end: 1px solid var(--surface-edge);
}
@media (max-width: 540px) {
  .team-card__media {
    border-inline-end: none;
    border-bottom: 1px solid var(--surface-edge);
    min-height: 280px;
  }
}

.team-card__halo {
  position: absolute;
  inset: 20% 14% 10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(from var(--brand-1) l c h / 0.45), transparent 65%);
  filter: blur(22px);
  transition: opacity 540ms var(--ease-out);
}
.team-card:hover .team-card__halo {
  opacity: 1.2;
}

.team-card__media picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 220px;
}
/* Philip's photo: fills the full media square */
.team-card[data-spec="orthodontics"] .team-card__media {
  padding: 0;
  align-items: stretch;
  place-items: stretch;
  min-height: 320px;
}
.team-card[data-spec="orthodontics"] .team-card__media picture {
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
}
.team-card[data-spec="orthodontics"] .team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}
.team-card[data-spec="orthodontics"] .team-card__halo {
  inset: 30% 18% 18%;
  opacity: 0.5;
}
.team-card[data-spec="orthodontics"]:hover .team-card__media img {
  transform: scale(1.04);
}
.team-card__media img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 4px 8px oklch(8% 0.04 250 / 0.5))
    drop-shadow(0 20px 40px oklch(8% 0.04 250 / 0.55));
  transition: transform 540ms var(--ease-out);
}
.team-card:hover .team-card__media img {
  transform: translateY(-6px) scale(1.03);
}

.team-card__chip {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--surface-strong);
  color: var(--brand-1);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.team-card__body {
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card__name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--text);
}
.team-card__role {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.team-card__bio {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}
.team-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-card__tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: oklch(from var(--brand-1) l c h / 0.10);
  color: var(--brand-1);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.18);
}

/* ----------------------------------------------------------------
   CONTACT
---------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: var(--container);
  margin: 0 auto;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact-card {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  opacity: 0.15;
  filter: blur(30px);
  pointer-events: none;
}

.contact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.contact-card__head h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 0;
  letter-spacing: -0.02em;
}
.contact-card__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(from var(--brand-1) l c h / 0.10);
  color: var(--brand-1);
}
.contact-card__addr {
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: 15px;
}

.contact-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--surface-edge);
  border-bottom: 1px solid var(--surface-edge);
}
.contact-card__meta div { display: flex; flex-direction: column; }
.contact-card__meta dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.contact-card__meta dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--surface-edge);
  padding: 36px clamp(20px, 4vw, 40px);
  margin-top: 60px;
  background: oklch(from var(--bg) l c h / 0.6);
}
.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.site-footer__copy {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0;
}
.site-footer__social {
  display: inline-flex; gap: 10px;
}
.site-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  color: var(--text-muted);
  transition: transform 320ms var(--ease-spring), color 320ms var(--ease-out);
}
.site-footer__social a:hover {
  transform: translateY(-3px);
  color: var(--brand-1);
}

/* ----------------------------------------------------------------
   FAB (mobile booking)
---------------------------------------------------------------- */

.fab {
  position: fixed;
  bottom: 24px;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  color: oklch(98% 0 0);
  font-weight: 800;
  transition:
    transform 320ms var(--ease-spring),
    opacity 280ms var(--ease-out),
    visibility 280ms;
}
.fab:hover { transform: translateY(-3px) scale(1.02); }
.fab:focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 4px;
}
.fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
}

.fab--book {
  inset-inline-end: 24px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 18px 40px -10px var(--brand-glow);
}
.fab__icon {
  font-size: 20px;
  line-height: 1;
}
.fab--play {
  inset-inline-start: 24px;
  background: linear-gradient(135deg, oklch(72% 0.18 350), var(--accent), var(--brand-1));
  background-size: 200% 100%;
  box-shadow:
    0 18px 40px -10px oklch(from var(--accent) l c h / 0.55),
    0 0 0 1px oklch(99% 0 0 / 0.12);
  animation: fab-play-glow 4s ease-in-out infinite;
}
@keyframes fab-play-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (max-width: 720px) {
  .fab { padding: 12px 16px; font-size: 14px; }
  .fab--book,
  .fab--play {
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    z-index: 44;
  }
  .fab--book {
    inset-inline-end: max(12px, env(safe-area-inset-end, 0px));
  }
  .fab--play {
    inset-inline-start: max(12px, env(safe-area-inset-start, 0px));
  }
  :root[data-mode="kids"] .fab--play {
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
}

/* ----------------------------------------------------------------
   I18N — hide the inactive language span
---------------------------------------------------------------- */

[data-i18n] { display: none; }
:root[data-mode="adults"] [data-i18n="adults"] { display: inline; }
:root[data-mode="kids"] [data-i18n="kids"] { display: inline; }

/* ----------------------------------------------------------------
   REVEAL ON SCROLL
---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  backface-visibility: hidden;
}
/* أنيميشن بدل transition — المتصفحات المحمولة أحيانًا تتخطى الـtransition عند إضافة class دفعة واحدة */
.reveal.is-in {
  animation: reveal-enter 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes reveal-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.reveal:nth-child(2).is-in { animation-delay: 0.08s; }
.reveal:nth-child(3).is-in { animation-delay: 0.16s; }
.reveal:nth-child(4).is-in { animation-delay: 0.24s; }
.reveal:nth-child(5).is-in { animation-delay: 0.32s; }
.reveal:nth-child(6).is-in { animation-delay: 0.4s; }

/* موبايل: transition أوضح من animation على WebKit */
@media (max-width: 720px) {
  .reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: none;
  }
}

/* ----------------------------------------------------------------
   BRUSH GAME (kids only)
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   KIDS HEROES — معرض صور (وضع الأطفال فقط)
---------------------------------------------------------------- */

.kids-heroes {
  position: relative;
  overflow: hidden;
}
:root[data-mode="kids"] .kids-heroes {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(98% 0.08 92 / 0.45), transparent),
    linear-gradient(180deg, oklch(from var(--bg) l c h / 0.35), transparent);
}

.kids-heroes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  width: var(--container);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .kids-heroes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .kids-heroes__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.kids-heroes__card {
  margin: 0;
  text-align: center;
}
.kids-heroes__polaroid {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 12px 28px;
  border: 1px solid oklch(50% 0.08 240 / 0.12);
  border-radius: 20px;
  background: oklch(99% 0.01 230);
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 18px 40px -18px oklch(35% 0.10 250 / 0.35),
    inset 0 1px 0 oklch(99% 0 0 / 0.9);
  transform: rotate(-1.2deg);
  transition: transform 420ms var(--ease-spring), box-shadow 420ms var(--ease-out);
}
.kids-heroes__polaroid:focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 4px;
}
.kids-heroes__card:nth-child(even) .kids-heroes__polaroid {
  transform: rotate(1.4deg);
}
.kids-heroes__card:hover .kids-heroes__polaroid {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 50px -20px oklch(35% 0.12 250 / 0.45);
}
.kids-heroes__polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: oklch(96% 0.04 230);
}
.kids-heroes__badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 50%;
  background: oklch(99% 0.02 230 / 0.92);
  border: 1px solid oklch(50% 0.08 240 / 0.15);
  box-shadow: 0 4px 12px oklch(0% 0 0 / 0.12);
}
.kids-heroes__caption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0 4px;
}

.kids-heroes__footer {
  width: var(--container);
  max-width: 720px;
  margin: clamp(36px, 5vw, 52px) auto 0;
  text-align: center;
}
.kids-heroes__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Lightbox — تكبير صور أبطالنا */
html.kids-heroes-lightbox-open {
  overflow: hidden;
}
.kids-heroes-lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}
.kids-heroes-lightbox.kids-heroes-lightbox--open {
  display: block !important;
  pointer-events: auto;
  visibility: visible;
}
.kids-heroes-lightbox__scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: oklch(0% 0 0 / 0.62);
  cursor: pointer;
}
.kids-heroes-lightbox__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: auto;
  max-width: min(94vw, 820px);
  max-height: min(88dvh, 920px);
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: kids-lb-pop 320ms var(--ease-out) both;
}
@keyframes kids-lb-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.kids-heroes-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(82dvh, 880px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow:
    0 28px 70px -20px oklch(0% 0 0 / 0.55),
    0 0 0 1px oklch(99% 0 0 / 0.12);
  background: oklch(99% 0.02 230);
}
.kids-heroes-lightbox__close {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: oklch(99% 0.01 230 / 0.95);
  color: var(--text);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.25);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms;
}
.kids-heroes-lightbox__close:hover {
  transform: scale(1.06);
  background: oklch(99% 0 0);
}

.kids-only { display: none; }
:root[data-mode="kids"] .kids-only { display: block; }
:root[data-mode="kids"] a.fab.kids-only {
  display: inline-flex;
}

.brush-game {
  position: relative;
  isolation: isolate;
}
.brush-game::before {
  content: '';
  position: absolute;
  inset: 8% 0 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, oklch(from var(--brand-1) l c h / 0.14), transparent 68%),
    radial-gradient(ellipse 55% 40% at 12% 88%, oklch(from var(--accent) l c h / 0.10), transparent 70%),
    radial-gradient(ellipse 50% 38% at 92% 72%, oklch(from var(--brand-2) l c h / 0.08), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.brush-game > * { position: relative; z-index: 1; }

/* عمود واحد: اللعبة فوق، الدليل تحت */
.brush-game__layout {
  width: min(var(--container), 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(36px, 6vw, 52px);
}

/* ------------ Stage (بدون صندوق) ------------ */
.brush-game__stage {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 22px);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Progress bar */
.brush-game__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.brush-game__progress-icon {
  flex-shrink: 0;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1;
  filter: drop-shadow(0 2px 6px oklch(from var(--brand-1) l c h / 0.25));
}
.brush-game__progress-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: oklch(from var(--brand-1) l c h / 0.12);
  overflow: hidden;
  border: none;
  position: relative;
  box-shadow: inset 0 1px 3px oklch(0% 0 0 / 0.06);
}
.brush-game__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--brand-1), var(--accent), var(--brand-2));
  background-size: 200% 100%;
  box-shadow: 0 0 18px oklch(from var(--brand-1) l c h / 0.55);
  transition: width 320ms var(--ease-out);
  animation: progress-shimmer 2.5s linear infinite;
}
@keyframes progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.brush-game__progress-text {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-1);
  min-width: 56px;
  text-align: end;
  font-feature-settings: "tnum";
}

/* Arena */
.brush-game__arena {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, oklch(99% 0.02 95 / 0.95) 0%, oklch(from var(--brand-1) l c h / 0.12) 72%, transparent 100%);
  border: none;
  box-shadow:
    0 0 0 1px oklch(from var(--brand-1) l c h / 0.12),
    0 28px 56px oklch(from var(--brand-1) l c h / 0.18),
    0 8px 24px oklch(0% 0 0 / 0.06);
  overflow: hidden;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
  contain: layout paint;
}
.brush-game__arena:focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 4px;
}

/* Soft glow behind tooth */
.brush-game__glow {
  position: absolute;
  inset: 12% 12% 18% 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle, oklch(from var(--brand-1) l c h / 0.30), transparent 70%);
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
  z-index: 0;
}
.brush-game__arena[data-state="clean"] .brush-game__glow {
  opacity: 1;
  background:
    radial-gradient(circle, oklch(95% 0.12 88 / 0.55), transparent 70%);
}

/* Tooth SVG (bigger now) */
.brush-game__tooth {
  position: absolute;
  inset: 4% 4% 2% 4%;
  width: 92%;
  height: 94%;
  filter: drop-shadow(0 16px 32px oklch(8% 0.04 250 / 0.30));
  pointer-events: none;
  z-index: 1;
}

/* Eyes blink + mouth transition */
.brush-game__eye {
  transform-origin: center;
  animation: blink 4.5s ease-in-out infinite;
  transform-box: fill-box;
}
@keyframes blink {
  0%, 92%, 96%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}
.brush-game__mouth {
  transition: d 700ms var(--ease-out);
}
.brush-game__arena[data-state="clean"] .brush-game__mouth {
  d: path("M168 248 Q200 290 232 248");
}

/* Cavities (SVG) */
.brush-game__cavity {
  transition: opacity 280ms var(--ease-out);
  filter: drop-shadow(0 1px 2px oklch(0% 0 0 / 0.6));
}
.brush-game__arena[data-state="clean"] .brush-game__cavity {
  opacity: 0 !important;
}

/* Sparkles when clean */
.brush-game__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  z-index: 2;
}
.brush-game__arena[data-state="clean"] .brush-game__sparkles { opacity: 1; }
.brush-game__sparkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ffffff 0%, oklch(95% 0.10 88) 60%, transparent 75%);
  border-radius: 50%;
  filter: blur(0.3px);
  animation: sparkle-pop 1.6s ease-in-out infinite var(--d);
}
.brush-game__sparkle::before,
.brush-game__sparkle::after {
  content: '';
  position: absolute;
  inset: 50% 0;
  border-top: 2px solid #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 8px #fff;
}
.brush-game__sparkle::after {
  inset: 0 50%;
  border-top: 0;
  border-left: 2px solid #fff;
  transform: translateX(-50%);
}
@keyframes sparkle-pop {
  0%, 100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* فرشة تتبع المؤشر (translate من script.js) */
.brush-game__brush {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(86px, 21vw, 120px);
  z-index: 3;
  pointer-events: none;
  transform-origin: 25% 50%;
  will-change: transform;
  filter: drop-shadow(0 12px 18px oklch(12% 0.05 260 / 0.38));
  backface-visibility: hidden;
}
.brush-game__brush svg {
  display: block;
  width: 100%;
  height: auto;
}

.brush-game__hint {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: oklch(99% 0.01 95 / 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px oklch(from var(--brand-1) l c h / 0.22);
  border: none;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  animation: hint-bob 2.4s ease-in-out infinite;
  z-index: 4;
}
.brush-game__arena[data-touched="true"] .brush-game__hint {
  opacity: 0;
  transform: translateY(8px);
}
.brush-game__hint-arrow { font-size: 18px; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Action row under arena */
.brush-game__action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.brush-game__action-tip {
  font-size: 12.5px;
  color: var(--text-faint);
}
.brush-game__reset--inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--surface-edge);
  transition: color 200ms, border-color 200ms, background 200ms;
}
.brush-game__reset--inline:hover {
  color: var(--brand-1);
  border-color: oklch(from var(--brand-1) l c h / 0.4);
  background: oklch(from var(--brand-1) l c h / 0.08);
}

/* ------------ دليل اللعب (بدون صندوق) ------------ */
.brush-game__info,
.brush-game__guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 32px);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.brush-game__steps--path {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 640px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brush-game__steps--path::before {
  content: '';
  position: absolute;
  inset-inline-end: 21px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    oklch(from var(--brand-1) l c h / 0.45),
    oklch(from var(--accent) l c h / 0.35),
    oklch(from var(--brand-2) l c h / 0.40)
  );
  opacity: 0.55;
  z-index: 0;
}

@media (min-width: 720px) {
  .brush-game__steps--path {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(8px, 2vw, 16px);
    padding-top: 8px;
  }
  .brush-game__steps--path::before {
    inset-inline: 14%;
    inset-block: auto;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(
      90deg,
      oklch(from var(--brand-1) l c h / 0.45),
      oklch(from var(--accent) l c h / 0.35),
      oklch(from var(--brand-2) l c h / 0.40)
    );
  }
}

.brush-game__step {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(14px, 3vw, 20px);
  align-items: start;
  padding: clamp(14px, 2.5vw, 18px) clamp(48px, 8vw, 56px) clamp(14px, 2.5vw, 18px) 0;
  background: transparent;
  border: none;
  text-align: start;
  position: relative;
  z-index: 1;
  transition: opacity 280ms var(--ease-out);
}
.brush-game__step:hover {
  opacity: 0.88;
  transform: none;
  background: transparent;
}

@media (min-width: 720px) {
  .brush-game__step {
    flex: 1;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0 clamp(6px, 1.5vw, 12px);
    text-align: center;
  }
  .brush-game__step > div {
    text-align: center;
  }
}

.brush-game__step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-1), var(--accent));
  color: #ffffff;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 20px;
  box-shadow:
    0 0 0 4px oklch(from var(--bg) l c h / 0.95),
    0 6px 16px oklch(from var(--brand-1) l c h / 0.35);
  flex-shrink: 0;
}
.brush-game__step h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 4px;
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
}
.brush-game__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 28ch;
}
@media (min-width: 720px) {
  .brush-game__step p {
    max-width: none;
    margin-inline: auto;
  }
}

.brush-game__perks--chips,
.brush-game__perks {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}
.brush-game__perks-title {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.brush-game__perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.brush-game__perks--chips .brush-game__perks-list li,
.brush-game__perks-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: oklch(from var(--brand-1) l c h / 0.10);
  box-shadow: 0 2px 8px oklch(from var(--brand-1) l c h / 0.08);
  padding-inline-start: 14px;
  position: static;
}
.brush-game__perks--chips .brush-game__perks-list li::before,
.brush-game__perks-list li::before {
  content: '✓';
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-1);
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  background-image: none;
  box-shadow: none;
}

/* ------------ مكافأة — تذكرة تحت اللعبة ------------ */
.brush-game__stage .brush-game__reward {
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.brush-game__reward {
  position: relative;
  margin-top: 4px;
  padding: clamp(24px, 4vw, 32px) clamp(16px, 3vw, 24px);
  text-align: center;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    oklch(from var(--brand-1) l c h / 0.06),
    oklch(from var(--accent) l c h / 0.10)
  );
  border: none;
  border-top: 2px dashed oklch(from var(--brand-1) l c h / 0.35);
  border-bottom: 2px dashed oklch(from var(--brand-1) l c h / 0.35);
  overflow: hidden;
  animation: reward-rise 800ms var(--ease-spring) both;
}
.brush-game__reward::before,
.brush-game__reward::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px oklch(from var(--brand-1) l c h / 0.15);
}
.brush-game__reward::before { inset-inline-start: -7px; }
.brush-game__reward::after { inset-inline-end: -7px; }
.brush-game__reward[hidden] { display: none; }
@keyframes reward-rise {
  0%   { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.brush-game__reward-burst {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 50% 0%, oklch(from var(--accent) l c h / 0.40), transparent 50%),
    repeating-conic-gradient(from 0deg, oklch(from var(--brand-1) l c h / 0) 0deg 8deg, oklch(from var(--brand-1) l c h / 0.10) 8deg 16deg);
  filter: blur(8px);
  z-index: 0;
  animation: burst-rotate 30s linear infinite;
}
@keyframes burst-rotate { to { transform: rotate(360deg); } }
.brush-game__reward > *:not(.brush-game__reward-burst) { position: relative; z-index: 1; }

.brush-game__reward-emoji {
  display: inline-block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  animation: emoji-pop 1.2s var(--ease-spring) infinite alternate;
}
@keyframes emoji-pop {
  0%   { transform: scale(1) rotate(-8deg); }
  100% { transform: scale(1.15) rotate(8deg); }
}
.brush-game__reward-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 6px;
  color: var(--text);
}
.brush-game__reward-msg {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.brush-game__code {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px dashed oklch(from var(--brand-1) l c h / 0.45);
  margin-bottom: 12px;
}
.brush-game__code-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.brush-game__code-value {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brush-game__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: oklch(from var(--brand-1) l c h / 0.12);
  color: var(--brand-1);
  border: 1px solid oklch(from var(--brand-1) l c h / 0.18);
  transition: background 240ms, transform 240ms var(--ease-spring);
}
.brush-game__copy:hover {
  background: oklch(from var(--brand-1) l c h / 0.20);
  transform: translateY(-1px);
}
.brush-game__copy[data-copied="true"] {
  background: oklch(70% 0.18 145 / 0.18);
  color: oklch(48% 0.18 145);
  border-color: oklch(70% 0.18 145 / 0.30);
}
.brush-game__reward-note {
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--text-faint);
}
.brush-game__reward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 540px) {
  .brush-game__hint { font-size: 12px; padding: 8px 12px; }
  .brush-game__code { flex-direction: column; gap: 8px; align-items: stretch; padding: 14px 16px; }
  .brush-game__step {
    padding: 12px clamp(44px, 10vw, 52px) 12px 0;
  }
  .brush-game__step-num { width: 38px; height: 38px; font-size: 18px; }
}

/* لعبة الفرشة — أخف على اللمس (أداء الموبايل) */
/* لمس: تخفيف GPU فقط — بدون إخفاء عناصر اللعبة */
@media (pointer: coarse) {
  .brush-game__progress-bar {
    animation: none;
  }
  .brush-game__arena--touch {
    contain: strict;
  }
  .brush-game__arena--touch .brush-game__glow {
    filter: none;
    opacity: 0.6;
  }
  .brush-game__arena--touch .brush-game__tooth,
  .brush-game__arena--touch .brush-game__brush {
    filter: none;
    transform: translateZ(0);
  }
  .brush-game__arena--touch .brush-game__mouth,
  .brush-game__arena--touch .brush-game__cavity {
    transition: none;
  }
  .brush-game__arena--touch .brush-game__cavity {
    filter: none;
  }
  .brush-game__arena--touch .brush-game__brush {
    will-change: transform;
  }
  .brush-game__arena--touch .brush-game__sparkle {
    animation: none;
    opacity: 0;
  }
  .brush-game__arena--touch[data-state="clean"] .brush-game__sparkle {
    opacity: 1;
  }
  .brush-game__arena--touch .brush-game__sparkles {
    transition: none;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE TWEAKS + MOBILE NAV (blur off glass only — motion unchanged)
---------------------------------------------------------------- */

html.nav-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  /* ---- Header grid: logo + menu button ---- */
  .site-header {
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-inline: clamp(14px, 4vw, 20px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface-strong);
  }
  .brand__sub { display: none; }
  .brand__logo-img {
    filter: drop-shadow(0 2px 8px oklch(0% 0 0 / 0.35));
    max-width: min(280px, 58vw);
    height: clamp(56px, 14vw, 88px);
  }

  .nav-toggle {
    display: inline-flex;
  }
  .nav-backdrop {
    display: block;
  }

  /* Hide header mode switch on small screens (floating one remains) */
  .mode-switch--header {
    display: none;
  }

  /* ---- Slide-in nav (RTL: panel from the right) ---- */
  .nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(88vw, 300px);
    max-width: 100%;
    padding: max(18px, env(safe-area-inset-top)) 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    background: var(--surface-strong);
    border-inline-start: 1px solid var(--surface-edge);
    box-shadow: -16px 0 48px oklch(0% 0 0 / 0.35);
    z-index: 60;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 280ms var(--ease-out), visibility 280ms;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  html[dir="ltr"] .nav {
    right: auto;
    left: 0;
    border-inline-start: none;
    border-inline-end: 1px solid var(--surface-edge);
    box-shadow: 16px 0 48px oklch(0% 0 0 / 0.35);
    transform: translate3d(-100%, 0, 0);
  }
  .site-header.is-nav-open .nav {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 16px 14px;
    border-radius: 12px;
    color: var(--text);
    border-bottom: 1px solid var(--surface-edge);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a:active {
    background: oklch(from var(--brand-1) l c h / 0.12);
  }

  /* ---- Perf without killing motion: no backdrop blur on glass (GPU-heavy on phones) ---- */
  .mode-switch {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .world-card,
  .service,
  .why-card,
  .team-card,
  .contact-card,
  .brush-game__stage,
  .brush-game__info {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* مساحة للأزرار العائمة (تبديل الفرع + احجز) */
  body {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  main {
    padding-bottom: var(--bottom-ui);
  }

  .fab {
    padding: 12px 16px;
    font-size: 14px;
  }

  .site-footer {
    margin-top: 40px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }
}

/* هواتف صغيرة */
@media (max-width: 540px) {
  section {
    padding-inline: var(--page-pad);
  }

  .section-head__kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 5px 12px;
  }

  .section-head__lede {
    font-size: 15px;
  }

  .world-card__body {
    padding: 22px 18px;
  }
  .world-card__row {
    flex-direction: column;
    align-items: stretch;
  }
  .world-card__row .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-card__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-card__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .team__split {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .team__split-text {
    white-space: normal;
    line-height: 1.4;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .brush-game__action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .brush-game__action-tip {
    text-align: center;
  }
  .brush-game__reset--inline {
    justify-content: center;
    width: 100%;
  }

  .kids-heroes__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .kids-heroes__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* شاشات ضيقة جدًا (مثلاً 320px) */
@media (max-width: 380px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .hero__title {
    font-size: clamp(36px, 11vw, 44px);
  }

  .brand__logo-img {
    max-width: min(240px, 72vw);
    height: clamp(52px, 16vw, 72px);
  }

  .team-founder__badge {
    font-size: 11px;
    padding: 8px 12px;
    max-width: calc(100% - 24px);
    text-align: center;
    justify-content: center;
  }
}

/* تابلت عمودي */
@media (min-width: 721px) and (max-width: 1024px) {
  .site-header {
    gap: 16px;
    padding-inline: clamp(16px, 3vw, 28px);
  }
  .nav {
    gap: 18px;
    font-size: 14px;
  }
  .hero__inner {
    gap: 48px;
  }
}

/* هاتف أفقي */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 32px 40px;
  }
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    text-align: start;
  }
  .hero__lede { margin-inline: 0; }
  .eyebrow { justify-content: flex-start; }
  .hero__ctas { justify-content: flex-start; }
  .hero__visual { max-width: min(320px, 42vw); }
  .nav {
    padding-block: max(12px, env(safe-area-inset-top));
  }
}

/* شاشات عريضة */
@media (min-width: 1400px) {
  :root {
    --container: 1240px;
  }
}

/* أثناء لعب الفرشة فقط: إيقاف مؤقت للخلفية (ما بيشيلها من الموبايل) */
:root.game-active .sky *,
:root.game-active .kids-flyers,
:root.game-active .balloon,
:root.game-active .kids-charm-row span {
  animation-play-state: paused !important;
}

/* ----------------------------------------------------------------
   REDUCED MOTION
---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *:not(.reveal),
  *:not(.reveal)::before,
  *:not(.reveal)::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
