:root {
  --ink: #1b1633;
  --muted: #5c5670;
  --indigo: #2f289a;
  --indigo-deep: #221c74;
  --red: #e31e24;
  --red-deep: #c3181e;
  --yellow: #f5c84c;
  --lime: #c8d94a;
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --line: #eadfce;
  --wa: #128c7e;
  --radius: 28px;
  --max: 1140px;
  --header: 88px;
  --dock: 0px;
  --ease: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.85;
  min-height: 100vh;
  padding-bottom: var(--dock);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--cream);
  background-image: url("../assets/pattern.svg");
  background-size: 180px 180px;
  pointer-events: none;
}

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

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

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

button {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

#top {
  position: absolute;
  top: 0;
}

.hero,
.section,
#register,
#contact {
  scroll-margin-top: calc(var(--header) + 10px);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  background: var(--indigo);
  color: #fff;
  padding: 8px 14px;
  z-index: 80;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn,
.menu-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 10px 20px;
  font-size: 0.94rem;
}

.btn-whatsapp {
  background: var(--indigo);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--indigo-deep);
  box-shadow: 0 10px 24px rgba(47, 40, 154, 0.28);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-deep);
  box-shadow: 0 10px 24px rgba(227, 30, 36, 0.22);
}

.btn-ghost {
  background: var(--paper);
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
}

.kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.kicker.light {
  color: var(--yellow);
}

.hero {
  position: relative;
  padding: 28px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--indigo-deep);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.16rem;
  line-height: 1.85;
  max-width: 36rem;
}

.support {
  margin-top: 12px;
  color: #4a4560;
  max-width: 34rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.fact {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.fact-red {
  background: #fde8e8;
  color: var(--red);
}

.fact-indigo {
  background: #eceafb;
  color: var(--indigo);
}

.fact-yellow {
  background: #fff4d2;
  color: #8a6a12;
}

.hero-collage {
  position: relative;
  min-height: 460px;
}

.shot {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(34, 28, 116, 0.14);
}

.shot-main {
  width: 72%;
  height: 300px;
  inset-inline-start: 0;
  top: 24px;
  border-radius: 36px 12px 36px 12px;
}

.shot-play {
  width: 48%;
  height: 210px;
  inset-inline-end: 0;
  top: 0;
  border-radius: 50% 18px 40px 18px;
  border: 6px solid var(--cream);
}

.shot-chef {
  width: 42%;
  height: 180px;
  inset-inline-end: 8%;
  bottom: 18px;
  border-radius: 24px 48px 16px 48px;
  border: 5px solid #fff;
}

.logo-badge {
  position: absolute;
  width: 92px;
  height: 92px;
  inset-inline-start: 8%;
  bottom: 28px;
  object-fit: contain;
  animation: bob 4.5s ease-in-out infinite;
}

.float-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.s1 {
  width: 28px;
  height: 28px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  top: 40px;
  inset-inline-end: 8%;
  animation: drift 7s ease-in-out infinite;
}

.s2 {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  border-radius: 4px;
  top: 70%;
  inset-inline-start: 6%;
  animation: drift 8s ease-in-out infinite reverse;
}

.s3 {
  width: 18px;
  height: 18px;
  background: var(--indigo);
  border-radius: 50%;
  top: 18%;
  inset-inline-start: 46%;
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(6px, -10px) rotate(8deg);
  }
}

.section {
  padding: 78px 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 32px;
}

.section-head .muted {
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--indigo-deep);
  margin-bottom: 10px;
}

.muted {
  color: #4a4560;
}

.prose {
  max-width: 38rem;
}

.prose p + p {
  margin-top: 14px;
}

.section-cta {
  margin-top: 28px;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.about-grid .btn {
  margin-top: 22px;
}

.about-grid p {
  max-width: 36rem;
  line-height: 1.85;
}

.about-grid p + p {
  margin-top: 14px;
}

.media-frame {
  border-radius: 32px 12px 40px 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(34, 28, 116, 0.12);
  background: #000;
}

.media-frame video {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.vision-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--indigo);
  color: #fff;
  min-height: 340px;
}

.vision-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.vision-card > div {
  padding: 40px 36px;
}

.vision-card h2,
.vision-card p {
  color: #fff;
}

.vision-card p {
  font-size: 1.18rem;
  line-height: 1.85;
  margin: 14px 0 26px;
  max-width: 34rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 24px;
  text-align: start;
  transition: transform var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  object-fit: contain;
}

.value-card h3 {
  color: var(--red);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-card p {
  color: #4a4560;
  line-height: 1.8;
}

.spaces-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
}

.space {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
}

.space:first-child {
  grid-row: span 2;
  border-radius: 40px 18px 40px 18px;
}

.space img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.space:hover img {
  transform: scale(1.06);
}

.space-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
  background: linear-gradient(transparent 28%, rgba(20, 16, 42, 0.86));
}

.space h3 {
  font-size: 1.28rem;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.space p {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #f3eef8;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 228px;
  padding: 22px 22px 20px;
  border: 0;
  overflow: hidden;
  transition: transform var(--ease);
}

.program:hover {
  transform: translateY(-5px);
}

.program-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.program-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
}

.program img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.program h3 {
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--indigo-deep);
}

.program p {
  color: #3f3a52;
  font-size: 1rem;
  line-height: 1.75;
}

.program:nth-child(3n + 1) {
  background: #fde8e8;
}

.program:nth-child(3n + 1) .program-num {
  color: var(--red);
}

.program:nth-child(3n + 2) {
  background: #eceafb;
}

.program:nth-child(3n + 2) .program-num {
  color: var(--indigo);
}

.program:nth-child(3n) {
  background: #fff6d6;
}

.program:nth-child(3n) .program-num {
  color: #8a6a12;
}

.program:nth-child(1) {
  border-radius: 32px 14px 28px 16px;
}

.program:nth-child(2) {
  border-radius: 18px 34px 16px 28px;
}

.program:nth-child(3) {
  border-radius: 28px 20px 34px 14px;
}

.program:nth-child(4) {
  border-radius: 16px 30px 18px 32px;
}

.program:nth-child(5) {
  border-radius: 34px 16px 22px 20px;
}

.program:nth-child(6) {
  border-radius: 20px 28px 32px 14px;
}

.program:nth-child(7) {
  border-radius: 28px 14px 30px 18px;
}

.program:nth-child(8) {
  border-radius: 16px 32px 16px 28px;
}

.program:nth-child(9) {
  border-radius: 30px 18px 26px 16px;
}

.philosophy {
  padding: 0 0 78px;
}

.philosophy-banner {
  position: relative;
  min-height: 400px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.philosophy-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(20, 16, 42, 0.88) 0%, rgba(20, 16, 42, 0.62) 48%, rgba(20, 16, 42, 0.28) 100%);
}

html[dir="ltr"] .philosophy-banner::after {
  background: linear-gradient(90deg, rgba(20, 16, 42, 0.88) 0%, rgba(20, 16, 42, 0.62) 48%, rgba(20, 16, 42, 0.28) 100%);
}

.philosophy-banner .wrap {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 72px 0;
}

.philosophy-banner h2,
.philosophy-banner p {
  color: #fff;
  max-width: 38rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.philosophy-banner p {
  margin: 16px 0 26px;
  font-size: 1.14rem;
  line-height: 1.85;
}

.register-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 36px;
}

.register-card p {
  max-width: 36rem;
  line-height: 1.85;
}

.register-card .hint {
  color: #4a4560;
  margin: 12px 0 0;
}

.contact-panel {
  display: grid;
  gap: 10px;
}

.contact-panel h3 {
  color: var(--indigo-deep);
  margin-bottom: 4px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--cream);
}

.contact-item strong[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0.02em;
}

.contact-item small {
  color: #4a4560;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.dock {
  display: none;
}

.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 35;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.35);
  animation: bob 3.4s ease-in-out infinite;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.drawer {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s var(--ease) forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  :root {
    --dock: 78px;
  }

  .nav,
  .header-actions .btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .vision-card,
  .values-grid,
  .programs-grid,
  .register-card {
    grid-template-columns: 1fr;
  }

  .spaces-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .space,
  .space:first-child {
    min-height: 220px;
    grid-row: auto;
  }

  .program {
    min-height: 0;
  }

  .hero-collage {
    min-height: 340px;
    order: -1;
  }

  .shot-main {
    height: 220px;
  }

  .shot-play,
  .shot-chef {
    height: 140px;
  }

  .section {
    padding: 52px 0;
  }

  .register-card {
    padding: 22px;
  }

  .wa-float {
    bottom: calc(var(--dock) + 12px);
  }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    gap: 10px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(27, 22, 51, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease);
    z-index: 50;
  }

  .drawer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .drawer nav {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(320px, 86vw);
    background: var(--paper);
    padding: 28px 22px;
    display: grid;
    align-content: start;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--ease);
  }

  html[dir="rtl"] .drawer nav {
    transform: translateX(-100%);
  }

  .drawer.is-open nav,
  html[dir="rtl"] .drawer.is-open nav {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
