/* ==========================================================================
   CAKIES — cakieslb.com
   Palette: raspberry jam, cherry, strawberry milk, buttercream, gold glaze
   Type: Fraunces (soft display serif), Plus Jakarta Sans (text),
         El Messiri + Tajawal (Arabic)
   ========================================================================== */

:root {
  --jam: #5b1533;
  --jam-2: #7a1f45;
  --jam-ink: #3a0d21;
  /* Primary: pastel strawberry-milk pink. Fills use --cherry with jam text;
     pink text on light backgrounds uses the deeper --cherry-ink. */
  --cherry: #f2a3b9;
  --cherry-2: #ec8faa;
  --cherry-ink: #c24a70;
  --danger: #c81d43;
  --rose: #f9b9cb;
  --blush: #fde2ea;
  --milk: #fff0f4;
  --butter: #fff6f1;
  --icing: #ffffff;
  --gold: #c99a4a;
  --gold-soft: #e8c98e;
  --pistachio: #7cd4b0;
  --lemon: #ffd25e;
  --berry: #7c9cff;
  --muted: #8a5a6c;
  --line: rgba(91, 21, 51, 0.14);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "Tajawal", "Plus Jakarta Sans", sans-serif;
  --f-ar-display: "El Messiri", "Tajawal", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --intro: 2.55s; /* waits for the oven intro; .seen shortens it */
  --shadow-soft: 0 18px 40px -22px rgba(91, 21, 51, 0.45);
  --shadow-pop: 0 30px 60px -28px rgba(91, 21, 51, 0.6);
}
html.seen { --intro: 0.15s; }

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

html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--jam-ink);
  background: var(--butter);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cherry-ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--icing); color: var(--jam); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

[hidden] { display: none !important; }
[lang="ar"] { font-family: var(--f-ar); }
.ar { font-family: var(--f-ar-display); direction: rtl; unicode-bidi: isolate; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- headings ---------- */
.display {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "opsz" 96;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--jam);
}
.h2-ar { display: block; font-family: var(--f-ar-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--cherry-ink); margin-top: 0.35em; direction: rtl; unicode-bidi: isolate; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; margin: 1rem 0 0; }
.section-head { display: grid; gap: 0.2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--cherry);
  --fg: var(--jam);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  box-shadow: 0 10px 24px -10px rgba(236, 143, 170, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.35s var(--bounce), box-shadow 0.35s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 30px -12px rgba(236, 143, 170, 0.85), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--cream { --bg: var(--butter); --fg: var(--jam); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4), inset 0 -3px 0 rgba(91, 21, 51, 0.12); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(255, 255, 255, 0.08); }
.btn--jam { --bg: var(--jam); --fg: var(--butter); box-shadow: 0 10px 24px -12px rgba(91, 21, 51, 0.8), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.btn--sm { padding: 0.7em 1.2em; font-size: 0.92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--cherry-ink); text-decoration: none; }
.link-arrow .ico { transition: transform 0.3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ==========================================================================
   Oven intro — a cake rises in the oven, gets iced, cherry drops on top
   ========================================================================== */
.oven-intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background: radial-gradient(120% 90% at 50% 40%, var(--jam-2), var(--jam) 55%, var(--jam-ink));
  animation: introOut 0.7s var(--ease) 2.25s forwards;
}
html.seen .oven-intro { display: none; }
.oven {
  width: 230px;
  height: 214px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, var(--butter));
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), inset 0 -6px 0 rgba(91, 21, 51, 0.12);
  animation: ovenShake 0.25s ease-in-out 0.2s 6 alternate;
}
.oven::before, .oven::after { /* feet */
  content: "";
  position: absolute;
  bottom: -9px;
  width: 26px;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: var(--jam-ink);
}
.oven::before { left: 24px; }
.oven::after { right: 24px; }
.oven__panel { position: absolute; inset: 14px 18px auto; height: 30px; display: flex; align-items: center; gap: 10px; }
.oven__knob { width: 18px; height: 18px; border-radius: 50%; background: var(--rose); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); position: relative; }
.oven__knob::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 7px; margin-left: -1px; background: var(--jam); border-radius: 2px; }
.oven__knob--turn { animation: knob 2.2s var(--ease) both; }
.oven__timer { margin-left: auto; font: 700 12px/1 var(--f-text); color: var(--cherry-ink); background: var(--milk); padding: 6px 8px; border-radius: 8px; letter-spacing: 0.04em; }
.oven__timer::after { content: "3:00"; animation: timer 2.2s steps(1) both; }
.oven__window {
  position: absolute;
  inset: 56px 20px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(90% 80% at 50% 100%, #ffb36b 0%, #e6574d 38%, #5a1426 78%, #2a0816 100%);
  box-shadow: inset 0 0 0 6px var(--jam-ink), inset 0 0 26px rgba(0, 0, 0, 0.55);
}
.oven__window::after { /* glass shine */
  content: "";
  position: absolute;
  inset: 8px auto auto 12px;
  width: 46%;
  height: 32%;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.oven__glow { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 95%, rgba(255, 210, 120, 0.85), transparent 70%); animation: glow 0.9s ease-in-out infinite alternate; }
.oven__rack { position: absolute; left: 10px; right: 10px; bottom: 22px; height: 3px; background: rgba(255, 255, 255, 0.35); border-radius: 2px; }
.bake { position: absolute; left: 50%; bottom: 25px; width: 104px; margin-left: -52px; }
.bake__tin { position: absolute; bottom: 0; left: -4px; right: -4px; height: 16px; border-radius: 3px 3px 6px 6px; background: linear-gradient(180deg, #8b8b95, #55555e); z-index: 3; }
.bake__sponge {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 70px;
  border-radius: 46% 46% 10px 10px / 42% 42% 10px 10px;
  background: linear-gradient(180deg, #e9a65a, #f6cf8b 35%, #f9dca6);
  transform-origin: 50% 100%;
  animation: rise 1.35s var(--ease) 0.25s both;
  z-index: 2;
}
.bake__icing {
  position: absolute;
  bottom: 50px;
  left: -2px;
  right: -2px;
  height: 34px;
  z-index: 4;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  background: var(--rose);
  clip-path: inset(0 0 100% 0);
  animation: ice 0.5s var(--ease) 1.5s forwards;
}
.bake__icing::after { /* drips */
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 100%;
  height: 16px;
  background:
    radial-gradient(circle at 10% 0, var(--rose) 6px, transparent 6.5px),
    radial-gradient(circle at 32% 0, var(--rose) 8px, transparent 8.5px),
    radial-gradient(circle at 55% 0, var(--rose) 5px, transparent 5.5px),
    radial-gradient(circle at 78% 0, var(--rose) 9px, transparent 9.5px),
    radial-gradient(circle at 95% 0, var(--rose) 5px, transparent 5.5px);
}
.bake__cherry {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: 26px;
  margin-left: -13px;
  z-index: 5;
  opacity: 0;
  animation: cherryDrop 0.55s var(--bounce) 1.85s forwards;
}
.oven__caption { font: italic 500 1.15rem/1.2 var(--f-display); color: var(--butter); letter-spacing: 0.01em; opacity: 0.9; }
.oven__caption span { display: inline-block; animation: dots 1s steps(4) infinite; width: 1.2em; overflow: hidden; vertical-align: bottom; }
.oven-intro .steam { position: absolute; top: -34px; left: 50%; width: 80px; margin-left: -40px; height: 34px; }

@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
@keyframes ovenShake { from { transform: translateX(-1px) rotate(-0.4deg); } to { transform: translateX(1px) rotate(0.4deg); } }
@keyframes knob { from { transform: rotate(-120deg); } to { transform: rotate(60deg); } }
@keyframes timer { 0% { content: "3:00"; } 30% { content: "2:00"; } 60% { content: "1:00"; } 90% { content: "Ding!"; } }
@keyframes glow { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes rise { from { transform: scaleY(0.12) scaleX(0.96); } 70% { transform: scaleY(1.06); } to { transform: scaleY(1); } }
@keyframes ice { to { clip-path: inset(0 0 -60% 0); } }
@keyframes cherryDrop { from { opacity: 1; transform: translateY(-120px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 18px 0;
  transition: padding 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.nav__bar { display: flex; align-items: center; gap: 24px; }
.nav__logo { display: block; width: 128px; flex: none; transition: width 0.35s var(--ease); }
.nav__logo img { width: 100%; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__link {
  color: var(--butter);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.55em 0.95em;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.nav__link:hover, .nav__link[aria-current="page"] { background: rgba(255, 255, 255, 0.14); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; }
/* Scrolled: a light raspberry glass tint, so the bar stays readable over
   both the dark hero and the light sections without hiding the page. */
.nav--scrolled,
.no-hero .nav {
  padding: 10px 0;
  background: rgba(91, 21, 51, 0.74);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px -22px rgba(58, 13, 33, 0.8);
}
.nav--scrolled .nav__logo, .no-hero .nav__logo { width: 108px; }

@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--butter);
    color: var(--jam);
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-soft);
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    display: block;
    width: 20px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    position: relative;
    transition: transform 0.35s var(--ease), background 0.2s;
  }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
  .nav__toggle span::before { top: -6.5px; }
  .nav__toggle span::after { top: 6.5px; }
  .nav--open .nav__toggle span { background: transparent; }
  .nav--open .nav__toggle span::before { transform: translateY(6.5px) rotate(45deg); }
  .nav--open .nav__toggle span::after { transform: translateY(-6.5px) rotate(-45deg); }
  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin: 0;
    background: radial-gradient(120% 80% at 80% 0%, var(--jam-2), var(--jam) 60%);
    clip-path: circle(0 at calc(100% - 44px) 40px);
    transition: clip-path 0.6s var(--ease);
    visibility: hidden;
  }
  .nav--open .nav__menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
  .nav__menu .nav__link { color: var(--butter); font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.45rem; font-weight: 600; padding: 0.4em 1em; }
  .nav__menu .nav__link--courses { font-family: var(--f-text); font-size: 1.05rem; margin-top: 6px; }
  .nav__cta { margin: 14px 0 0; }
  /* The scrolled bar's blur would trap the full-screen menu inside the bar
     (backdrop-filter makes fixed children size to the bar). Drop it while
     the menu is open so the menu covers the whole screen, fully opaque. */
  .nav.nav--open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .nav__menu { overflow-y: auto; padding: 90px 24px 40px; gap: 4px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  padding: 130px 0 150px;
  color: var(--butter);
  background:
    radial-gradient(55% 60% at 85% 30%, rgba(255, 134, 165, 0.35), transparent 70%),
    radial-gradient(45% 50% at 10% 85%, rgba(242, 163, 185, 0.38), transparent 70%),
    linear-gradient(160deg, var(--jam-2) 0%, var(--jam) 45%, var(--jam-ink) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* sugar sparkle grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(28px, 5vw, 72px); position: relative; z-index: 2; }
.hero__stage { position: relative; min-height: 380px; }
.slide-text { display: grid; }
.slide-text > * { grid-area: 1 / 1; }
.slide-copy { visibility: hidden; }
.slide-copy.is-active { visibility: visible; }
.slide-copy > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.slide-copy.is-active > * { opacity: 1; transform: none; }
.slide-copy.is-active > :nth-child(2) { transition-delay: 0.08s; }
.slide-copy.is-active > :nth-child(3) { transition-delay: 0.16s; }
.slide-copy.is-active > :nth-child(4) { transition-delay: 0.24s; }
.hero.is-intro .slide-copy.is-active > * { transition-delay: calc(var(--intro) + var(--i, 0) * 0.1s); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 1em 0.45em 0.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.92rem;
  justify-self: start;
}
.kicker i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--cherry); }
.kicker svg { width: 16px; height: 16px; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-top: 22px; color: var(--icing); text-wrap: balance; }
.hero__desc { margin: 20px 0 0; max-width: 46ch; font-size: clamp(1rem, 1.35vw, 1.15rem); color: rgba(255, 246, 241, 0.84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__controls { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  position: relative;
  transition: width 0.4s var(--ease);
}
.hero__dot[aria-current="true"] { width: 64px; }
.hero__dot[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--lemon));
  transform-origin: left;
  animation: progress var(--slide-ms, 7000ms) linear forwards;
}
.hero.is-paused .hero__dot[aria-current="true"]::after { animation-play-state: paused; }
.hero__arrows { display: flex; gap: 8px; margin-left: 6px; }
.hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--butter);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background 0.25s, transform 0.3s var(--bounce);
}
.hero__arrow:hover { background: var(--cherry); color: var(--jam); transform: scale(1.08); }
.hero__arrow--prev svg { transform: rotate(180deg); }
.hero__controls[hidden] { display: none; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- cake frame (image on the right) ---------- */
.cake-frame {
  --w: min(370px, 100%);
  position: relative;
  width: var(--w);
  margin-inline: auto;
}
.cake-frame__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  background: var(--jam-ink);
  box-shadow: 0 0 0 10px var(--butter), 0 0 0 12px var(--rose), var(--shadow-pop);
}
.cake-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0 round 0);
  transform: scale(1.12);
  transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease);
}
.cake-frame__img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.cake-frame__img.is-leaving { clip-path: inset(0 0 0 0); z-index: 0; }
.hero.is-intro .cake-frame__img.is-active { transition-delay: calc(var(--intro) + 0.15s); }
.cake-frame__pearls { position: absolute; inset: -22px -22px auto; width: calc(100% + 44px); aspect-ratio: 4 / 5; pointer-events: none; z-index: 2; overflow: visible; }
.cake-frame__pearls path { stroke: var(--gold-soft); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 17; fill: none; }
.cake-frame__cherry { position: absolute; top: -52px; left: 50%; width: 74px; margin-left: -37px; z-index: 3; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35)); animation: bob 4s ease-in-out infinite; }
.cake-frame__stand { position: relative; display: block; width: 124%; margin: -20px 0 0 -12%; z-index: 3; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.3)); pointer-events: none; }
.cake-frame__badge {
  position: absolute;
  left: -46px;
  bottom: 80px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--jam);
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.cake-frame__badge svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 18s linear infinite; }
.cake-frame__badge text { font: 700 10.4px var(--f-text); letter-spacing: 0.16em; fill: var(--jam); text-transform: uppercase; }
.cake-frame__badge b { font: 600 1.5rem/1 var(--f-display); font-variation-settings: "SOFT" 100; }
.steam { position: absolute; top: -10px; left: 50%; width: 120px; height: 70px; margin-left: -60px; z-index: 3; pointer-events: none; }
.steam path { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.steam.is-on path { animation: steam 2.2s ease-out forwards; }
.steam.is-on path:nth-child(2) { animation-delay: 0.25s; }
.steam.is-on path:nth-child(3) { animation-delay: 0.5s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(18px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* glossy glaze drip at the bottom of dark bands */
.drip { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 130px); z-index: 3; pointer-events: none; }
.drip path { fill: var(--butter); }
.drip--blush path { fill: var(--blush); }
.drip--down { top: -1px; bottom: auto; }

/* ---------- floating sweets ---------- */
.sweets { position: absolute; inset: 0; z-index: 1; pointer-events: none; --mx: 0; --my: 0; }
.sweet {
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform: translate(calc(var(--mx) * var(--d) * -70px), calc(var(--my) * var(--d) * -70px));
  transition: transform 0.9s var(--ease);
  opacity: calc(0.55 + var(--d) * 0.45);
  filter: blur(calc((1 - var(--d)) * 1.6px)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}
.sweet i { display: block; width: 100%; height: 100%; animation: float var(--dur) ease-in-out var(--delay) infinite alternate; transform: rotate(var(--rot)); }
.sweet svg { width: 100%; height: 100%; display: block; }
.sweet--sprinkle { filter: none; }
@keyframes float { from { transform: translateY(-10px) rotate(var(--rot)); } to { transform: translateY(14px) rotate(calc(var(--rot) + 22deg)); } }
html:not(.seen) .hero .sweets { animation: sweetsIn 1s var(--ease) calc(var(--intro) - 0.2s) both; }
@keyframes sweetsIn { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { padding: 110px 0 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { min-height: 0; order: 2; }
  .hero__visual { order: 1; }
  .cake-frame { --w: min(260px, 58vw); margin-top: 30px; }
  .cake-frame__badge { width: 96px; height: 96px; left: -22px; bottom: 60px; }
  .cake-frame__badge text { font-size: 9px; }
  .hero__title { margin-top: 16px; }
}

/* ==========================================================================
   Ribbon marquee
   ========================================================================== */
.ribbon {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  background: var(--cherry);
  color: var(--jam);
  transform: skewY(-1.6deg); /* skew, not rotate: stays inside the screen width */
  box-shadow: 0 14px 30px -18px rgba(236, 143, 170, 0.8);
  overflow: hidden;
  padding: 14px 0;
}
.ribbon__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ribbon__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 600 1.35rem/1 var(--f-display); font-variation-settings: "SOFT" 100; white-space: nowrap; }
.ribbon__group .ar { font-size: 1.2rem; }
.ribbon__star { width: 18px; height: 18px; color: var(--icing); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--blush { background: var(--blush); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); max-width: 1040px; margin-inline: auto; }
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--icing);
  border-radius: 200px 200px var(--r-md) var(--r-md);
  padding: 12px 12px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); }
.svc__media { position: relative; aspect-ratio: 1 / 1.05; border-radius: 200px 200px 14px 14px; overflow: hidden; background: var(--milk); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.07); }
.svc__cherry { position: absolute; top: -18px; left: 50%; width: 40px; margin-left: -20px; opacity: 0; transform: translateY(-14px) scale(0.6); transition: opacity 0.3s, transform 0.5s var(--bounce); z-index: 2; }
.svc:hover .svc__cherry, .svc:focus-visible .svc__cherry { opacity: 1; transform: none; }
.svc__body { padding: 18px 8px 0; display: grid; gap: 4px; flex: 1; }
.svc__title { font: 600 1.32rem/1.15 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 48; color: var(--jam); margin: 0; }
.svc__ar { font: 600 1rem/1.4 var(--f-ar-display); color: var(--cherry-ink); direction: rtl; text-align: left; unicode-bidi: plaintext; }
.svc__tag { margin: 6px 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.svc__more { margin-top: auto; padding-top: 14px; }
.services-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; justify-content: center; }
@media (max-width: 780px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc { flex-direction: row; align-items: center; gap: 14px; border-radius: var(--r-md); padding: 10px; }
  .svc__media { width: 108px; flex: none; border-radius: 60px 60px 12px 12px; aspect-ratio: 1 / 1.15; }
  .svc__body { padding: 4px 6px 4px 0; }
  .svc__title { font-size: 1.12rem; }
  .svc__tag { display: none; }
  .svc__more { padding-top: 6px; }
  .svc__cherry { display: none; }
}

/* ---------- rent the space ---------- */
.space { overflow: hidden; }
.space__wave { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 70px; }
.space__wave path { fill: var(--butter); }
.space__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.space__photos { position: relative; aspect-ratio: 1 / 1.02; }
.space__photo { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-pop); border: 8px solid var(--icing); }
.space__photo img { width: 100%; height: 100%; object-fit: cover; }
.space__photo--a { inset: 0 18% 26% 0; transform: rotate(-3deg); }
.space__photo--b { inset: 38% 0 0 26%; transform: rotate(3.5deg); border-radius: 160px 160px var(--r-lg) var(--r-lg); }
.space__sticker {
  position: absolute;
  right: 6%;
  top: 4%;
  z-index: 2;
  background: var(--jam);
  color: var(--butter);
  border-radius: 50%;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  text-align: center;
  font: 600 1rem/1.15 var(--f-display);
  font-variation-settings: "SOFT" 100;
  transform: rotate(10deg);
  box-shadow: var(--shadow-soft);
}
.benefits { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; }
.benefit__ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--icing); color: var(--cherry-ink); box-shadow: var(--shadow-soft); }
.benefit__ico .ico { width: 22px; height: 22px; }
.benefit__title { font-weight: 700; color: var(--jam); font-size: 1rem; margin: 0; line-height: 1.3; }
.benefit__text { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

.menu-board {
  margin-top: clamp(56px, 7vw, 90px);
  background: var(--jam);
  color: var(--butter);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.menu-board::before { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(232, 201, 142, 0.45); border-radius: calc(var(--r-lg) - 10px); pointer-events: none; }
.menu-board__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.menu-board__title { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--f-display); font-variation-settings: "SOFT" 100; margin: 0; color: var(--gold-soft); }
.menu-board__sub { margin: 4px 0 0; color: rgba(255, 246, 241, 0.75); }
.pkg-list { list-style: none; margin: 0; padding: 0; position: relative; }
.pkg-row a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 18px 6px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(255, 246, 241, 0.12);
  transition: background 0.3s, padding 0.35s var(--ease);
  border-radius: 12px;
}
.pkg-row:first-child a { border-top: 0; }
.pkg-row a:hover { background: rgba(255, 255, 255, 0.06); padding-inline: 16px; }
.pkg-row__name { margin: 0; font: 600 clamp(1.15rem, 2vw, 1.45rem)/1.2 var(--f-display); font-variation-settings: "SOFT" 100; }
.pkg-row__name small { display: block; font: 500 0.95rem/1.4 var(--f-ar-display); color: var(--rose); margin-top: 2px; }
.pkg-row__dots { border-bottom: 2px dotted rgba(232, 201, 142, 0.5); transform: translateY(-6px); min-width: 20px; }
.pkg-row__meta { display: flex; align-items: center; gap: 14px; color: rgba(255, 246, 241, 0.8); font-size: 0.95rem; white-space: nowrap; }
.pkg-row__go { display: inline-flex; align-items: center; gap: 6px; color: var(--lemon); font-weight: 700; }
.pkg-row__tag { grid-column: 1 / -1; margin: -4px 0 0; color: rgba(255, 246, 241, 0.7); font-size: 0.95rem; }
@media (max-width: 900px) {
  .space__grid { grid-template-columns: 1fr; }
  .space__photos { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .pkg-row a { grid-template-columns: 1fr auto; }
  .pkg-row__dots { display: none; }
  .pkg-row__meta span:not(.pkg-row__go) { display: none; }
  .space__sticker { width: 92px; height: 92px; font-size: 0.85rem; }
}

/* ---------- about + growing cake ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.grow-cake { position: relative; width: min(420px, 100%); margin-inline: auto; aspect-ratio: 1 / 1.1; }
.grow-cake svg { width: 100%; height: 100%; overflow: visible; }
.grow-cake .layer { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.grow-cake .drip-layer, .grow-cake .top-cherry, .grow-cake .candle { opacity: 0; }
.grow-cake.is-in .layer { animation: layerUp 0.9s var(--bounce) forwards; }
.grow-cake.is-in .layer--2 { animation-delay: 0.45s; }
.grow-cake.is-in .layer--3 { animation-delay: 0.9s; }
.grow-cake.is-in .drip-layer { animation: fadeDown 0.6s var(--ease) forwards; }
.grow-cake.is-in .drip-layer--1 { animation-delay: 0.5s; }
.grow-cake.is-in .drip-layer--2 { animation-delay: 0.95s; }
.grow-cake.is-in .drip-layer--3 { animation-delay: 1.4s; }
.grow-cake.is-in .top-cherry { animation: cherryDrop2 0.7s var(--bounce) 1.75s forwards; }
.grow-cake.is-in .candle { animation: fadeDown 0.5s var(--ease) 2.2s forwards; }
.grow-cake .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 0.6s ease-in-out infinite alternate; }
@keyframes layerUp { to { transform: scaleY(1); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes cherryDrop2 { from { opacity: 1; transform: translateY(-160px); } to { opacity: 1; transform: none; } }
@keyframes flicker { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(0.9, 1.12) rotate(3deg); } }
.about__text { font-size: 1.08rem; max-width: 60ch; margin: 1.2rem 0 0; }
.about__ar { font-family: var(--f-ar); font-size: 1.12rem; line-height: 1.9; direction: rtl; margin: 1rem 0 0; color: var(--muted); max-width: 60ch; }
.duo { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.duo__name { font: 600 1.25rem/1 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--jam); padding: 0.6em 1.1em; background: var(--icing); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.duo__plus { width: 34px; height: 34px; border-radius: 50%; background: var(--cherry); color: var(--jam); display: grid; place-items: center; font-weight: 800; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .grow-cake { width: min(300px, 80%); } }


/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq__item { background: var(--icing); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 700; color: var(--jam); font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--milk); color: var(--cherry-ink); font-size: 1.4rem; transition: transform 0.35s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 22px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--jam); color: var(--butter); overflow: hidden; isolation: isolate; }
.contact .h2 { color: var(--icing); }
.contact .h2-ar { color: var(--rose); }
.contact .lede { color: rgba(255, 246, 241, 0.78); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; position: relative; z-index: 2; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
.contact__item a, .contact__item > div {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.25s, transform 0.35s var(--bounce);
}
.contact__item a:hover { background: rgba(255, 255, 255, 0.13); transform: translateX(4px); }
.contact__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cherry); color: var(--jam); flex: none; }
.contact__ico--wa { background: #25d366; }
.contact__ico--ig { background: linear-gradient(45deg, #f9b233, #e0254f 50%, #8e3bd8); }
.contact__ico--pin { background: var(--gold); }
.contact__label { display: block; font-size: 0.82rem; color: rgba(255, 246, 241, 0.65); }
.contact__value { display: block; font-weight: 700; font-size: 1.08rem; direction: ltr; unicode-bidi: isolate; }
.map-col { display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.map-frame { position: relative; border-radius: var(--r-sm); overflow: hidden; min-height: 420px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), var(--shadow-pop); background: #e9e3dc; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-col__open { justify-self: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .map-frame { min-height: 340px; } }

/* ---------- footer ---------- */
.footer { background: var(--jam-ink); color: rgba(255, 246, 241, 0.75); padding: 56px 0 34px; font-size: 0.95rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: center; justify-content: space-between; }
.footer__logo { width: 120px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--rose); }
.footer__bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; }

/* floating WhatsApp */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--bounce);
}
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab .ico { width: 28px; height: 28px; }

/* ==========================================================================
   Inner pages (services / space)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 150px 0 140px;
  color: var(--butter);
  background:
    radial-gradient(50% 70% at 90% 20%, rgba(255, 134, 165, 0.35), transparent 70%),
    linear-gradient(160deg, var(--jam-2), var(--jam) 55%, var(--jam-ink));
  overflow: hidden;
  isolation: isolate;
}
.page-hero .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.9rem; color: rgba(255, 246, 241, 0.7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rose); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.page-hero__title { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--icing); max-width: 16ch; text-wrap: balance; }
.page-hero__ar { font: 600 clamp(1.2rem, 2.2vw, 1.6rem)/1.4 var(--f-ar-display); color: var(--rose); margin-top: 10px; direction: rtl; unicode-bidi: isolate; display: block; }
.page-hero__desc { max-width: 56ch; margin: 20px 0 0; color: rgba(255, 246, 241, 0.84); font-size: 1.12rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 0.5em 1em; border-radius: 999px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); color: var(--butter); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: background 0.25s; }
.chip:hover { background: var(--cherry); color: var(--jam); }

.detail-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: var(--icing);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  scroll-margin-top: 100px;
}
.detail:target { box-shadow: 0 0 0 3px var(--cherry), var(--shadow-pop); }
.detail:nth-child(even) { grid-template-columns: 1.2fr minmax(240px, 0.8fr); }
.detail:nth-child(even) .detail__media { order: 2; }
.detail__media { position: relative; border-radius: 200px 200px 20px 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--milk); position: sticky; top: 100px; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.08 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--jam); margin: 0; }
.detail__ar { font: 600 1.15rem/1.5 var(--f-ar-display); color: var(--cherry-ink); display: block; margin-top: 6px; direction: rtl; text-align: left; unicode-bidi: plaintext; }
.detail__tag { font-size: 1.12rem; color: var(--jam-ink); margin: 14px 0 0; font-weight: 600; }
.detail__desc { color: var(--muted); margin: 10px 0 0; }
.detail__h { font: 700 0.95rem/1.3 var(--f-text); color: var(--jam); margin: 26px 0 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.ticks .ico { color: var(--jam); background: var(--cherry); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 1px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.options li { padding: 0.55em 1em; border-radius: 999px; background: var(--milk); color: var(--jam); font-weight: 600; font-size: 0.95rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 0.55em 1em; border-radius: 14px; background: var(--butter); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 0.95rem; color: var(--jam); }
.fact .ico { color: var(--cherry-ink); }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; background: var(--jam); color: var(--butter); padding: 0.4em 1.1em 0.5em; border-radius: 999px; margin-top: 18px; }
.price-tag b { font: 700 1.7rem/1 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--lemon); }
.price-tag span { font-size: 0.92rem; opacity: 0.85; }
.note { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--milk); color: var(--jam); font-size: 0.96rem; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pricing { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 4px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.pricing th, .pricing td { padding: 12px 16px; text-align: start; font-size: 0.97rem; }
.pricing thead th { background: var(--jam); color: var(--butter); font-weight: 700; }
.pricing tbody tr:nth-child(even) td { background: var(--butter); }
.pricing td:last-child { font-weight: 800; color: var(--cherry-ink); text-align: end; }
.pricing thead th:last-child { text-align: end; }
.pricing .group td { background: var(--milk) !important; color: var(--jam); font-weight: 800; }
.pricing-wrap { overflow-x: auto; }
.loading-note { text-align: center; color: var(--muted); }
@media (max-width: 820px) {
  .detail, .detail:nth-child(even) { grid-template-columns: 1fr; }
  .detail:nth-child(even) .detail__media { order: 0; }
  .detail__media { position: relative; top: 0; aspect-ratio: 4 / 3.4; border-radius: 160px 160px 18px 18px; }
}

.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; background: linear-gradient(160deg, var(--jam-2), var(--jam)); color: var(--butter); }
.nf h1 { font-size: clamp(3rem, 10vw, 7rem); color: var(--icing); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .oven-intro { display: none; }
  .ribbon__track { animation: none; }
  .grow-cake .layer { transform: none; }
  .grow-cake .drip-layer, .grow-cake .top-cherry, .grow-cake .candle { opacity: 1; }
}

/* Arabic sub-lines follow the heading's alignment instead of hugging the right edge */
.section-head .h2-ar, .page-hero__ar { text-align: left; }
.section-head--center .h2-ar, .cta-band .h2-ar { text-align: center; }

/* ==========================================================================
   Price list
   ========================================================================== */
.prices { padding-bottom: clamp(56px, 7vw, 90px); }
.prices[hidden] { display: none; }
.packages { padding-top: clamp(56px, 7vw, 90px); }
.pl { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.pl__side { position: sticky; top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.pl__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--icing);
  color: var(--muted);
  box-shadow: 0 0 0 1.5px var(--line);
  transition: box-shadow 0.2s;
}
.pl__search:focus-within { box-shadow: 0 0 0 2px var(--cherry-ink), 0 0 0 6px rgba(194, 74, 112, 0.14); }
.pl__search input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 0.85em 0; color: var(--jam-ink); outline: none; }
.pl__search input::-webkit-search-cancel-button { cursor: pointer; }
.pl__cats { display: grid; gap: 6px; }
.pl-cat {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--jam);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  text-align: start;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.pl-cat:hover { background: var(--milk); }
.pl-cat__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--icing); color: var(--cherry-ink); box-shadow: 0 0 0 1px var(--line); transition: transform 0.4s var(--bounce), background 0.25s; }
.pl-cat__ico .ico { width: 22px; height: 22px; }
.pl-cat__count { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--milk); color: var(--jam); font-size: 0.8rem; text-align: center; }
.pl-cat[aria-selected="true"] { background: var(--jam); color: var(--butter); box-shadow: var(--shadow-soft); }
.pl-cat[aria-selected="true"] .pl-cat__ico { background: var(--cherry); color: var(--jam); box-shadow: none; transform: rotate(-8deg) scale(1.04); }
.pl-cat[aria-selected="true"] .pl-cat__count { background: rgba(255, 255, 255, 0.16); color: var(--butter); }
.pl.is-searching .pl-cat[aria-selected="true"] { background: transparent; color: var(--jam); box-shadow: none; }
.pl.is-searching .pl-cat[aria-selected="true"] .pl-cat__ico { background: var(--icing); color: var(--cherry-ink); transform: none; box-shadow: 0 0 0 1px var(--line); }
.pl.is-searching .pl-cat[aria-selected="true"] .pl-cat__count { background: var(--milk); color: var(--jam); }

.pl__panel {
  position: relative;
  min-height: 380px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--r-lg);
  background: var(--icing);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}
.pl__panel::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(194, 74, 112, 0.22); border-radius: calc(var(--r-lg) - 8px); pointer-events: none; }
.pl.is-enhanced:not(.is-searching) .pl-group:not(.is-active) { display: none; }
.pl-group[hidden] { display: none; }
.pl-group + .pl-group { margin-top: 34px; }
.pl.is-enhanced:not(.is-searching) .pl-group.is-active { animation: plIn 0.45s var(--ease); }
@keyframes plIn { from { opacity: 0; transform: translateY(10px); } }
.pl-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.pl-group__ico { width: 54px; height: 54px; border-radius: 18px; flex: none; display: grid; place-items: center; background: var(--milk); color: var(--cherry-ink); }
.pl-group__ico .ico { width: 26px; height: 26px; }
.pl-group__title { margin: 0; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--jam); }
.pl-group__ar { margin: 2px 0 0; font: 600 1rem/1.4 var(--f-ar-display); color: var(--cherry-ink); }
.pl-items { list-style: none; margin: 0; padding: 0; }
.pl-item { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.pl-item:last-child { border-bottom: 0; }
.pl-item[hidden] { display: none; }
.pl-item__row { display: flex; align-items: baseline; gap: 12px; }
.pl-item__name { margin: 0; font: 600 1.16rem/1.3 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 36; color: var(--jam-ink); }
.pl-item__dots { flex: 1; min-width: 24px; border-bottom: 2px dotted rgba(91, 21, 51, 0.25); transform: translateY(-5px); }
.pl-item__price { flex: none; max-width: 50%; text-align: end; font-weight: 800; font-size: 1.05rem; color: var(--cherry-ink); }
.pl-item__desc { margin: 4px 0 0; max-width: 60ch; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.pl-item mark { background: rgba(255, 210, 94, 0.7); color: inherit; border-radius: 4px; padding: 0 2px; }
.pl__results { margin: 0 0 14px; font-weight: 700; color: var(--muted); }
.pl__empty { padding: 50px 10px; text-align: center; color: var(--muted); }
.pl__empty p { margin: 0 0 16px; }
.pl__note { margin: 26px 0 0; font-size: 0.9rem; color: var(--muted); }
.pl__note a { color: var(--cherry-ink); font-weight: 700; }

@media (max-width: 860px) {
  .pl { grid-template-columns: minmax(0, 1fr); }
  .pl__side {
    top: 64px;
    z-index: 5;
    gap: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter) 12px;
    background: rgba(255, 246, 241, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 20px -20px rgba(91, 21, 51, 0.7);
  }
  .pl__cats { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .pl__cats::-webkit-scrollbar { display: none; }
  .pl-cat { flex: none; grid-template-columns: auto auto auto; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--icing); box-shadow: 0 0 0 1px var(--line); font-size: 0.9rem; white-space: nowrap; scroll-snap-align: start; }
  .pl-cat__ico { width: 32px; height: 32px; border-radius: 50%; }
  .pl-cat__ico .ico { width: 17px; height: 17px; }
  .pl__panel { min-height: 0; }
  .pl-item__name { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .pl-item__dots { display: none; }
  .pl-item__row { justify-content: space-between; }
}

/* Sections switched off, or left without visible items */
[data-empty] { display: none !important; }
/* Hero switched off: the page starts under the tinted navbar */
.no-hero main { padding-top: 70px; }
.no-hero .oven-intro { display: none; }

/* ==========================================================================
   Cakies Academy block (About)
   ========================================================================== */
.academy {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 620px;
  margin-top: 30px;
  padding: 22px 26px 22px 22px;
  border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, var(--jam-2), var(--jam) 60%);
  color: var(--butter);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  isolation: isolate;
}
.academy::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 134, 165, 0.18); z-index: -1; }
.academy__logo { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; background: var(--icing); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.academy__body { display: grid; gap: 6px; justify-items: start; }
.academy__title { margin: 0; font: 600 1.55rem/1.1 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--gold-soft); }
.academy__text { margin: 0; font-size: 0.98rem; color: rgba(255, 246, 241, 0.85); }
.academy__online { margin: 2px 0 0; font-weight: 700; color: var(--lemon); font-size: 0.98rem; }
.academy__btn { --bg: var(--lemon); --fg: var(--jam); margin-top: 8px; box-shadow: 0 10px 24px -10px rgba(255, 210, 94, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
@media (max-width: 480px) { .academy { grid-template-columns: 1fr; } .academy__logo { width: 76px; height: 76px; } }

.nav__link--courses { display: inline-flex; align-items: center; gap: 6px; color: var(--lemon); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 94, 0.55); }
.nav__link--courses:hover { background: rgba(255, 210, 94, 0.14); }
@media (max-width: 1180px) and (min-width: 901px) { .nav__menu { gap: 2px; } .nav__link { padding: 0.5em 0.7em; font-size: 0.92rem; } }

/* ==========================================================================
   Google review
   ========================================================================== */
.stars { display: inline-flex; gap: 2px; color: var(--lemon); }
.stars .ico { width: 16px; height: 16px; }
.hero__review {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 22px;
  padding: 10px 18px 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: var(--butter);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.35s var(--bounce);
}
.hero__review:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.hero__review-sub { font-weight: 500; color: rgba(255, 246, 241, 0.7); }
.hero.is-intro .hero__review { animation: fadeDown 0.6s var(--ease) calc(var(--intro) + 0.5s) both; }
.review-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 210, 94, 0.16), rgba(255, 134, 165, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 94, 0.35);
}
.review-card .stars .ico { width: 20px; height: 20px; }
.review-card__title { margin: 4px 0 0; font: 600 1.3rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--icing); }
.review-card__text { margin: 0 0 8px; color: rgba(255, 246, 241, 0.78); font-size: 0.96rem; }

/* ==========================================================================
   Price list item photos + zoom
   ========================================================================== */
.pl-item--img { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-item__body { min-width: 0; }
.pl-item__thumb { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--milk); box-shadow: 0 0 0 1px var(--line), 0 8px 16px -10px rgba(91, 21, 51, 0.5); transition: transform 0.35s var(--bounce); }
.pl-item__thumb:hover { transform: scale(1.06) rotate(-2deg); }
.pl-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .pl-item--img { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; } .pl-item__thumb { width: 58px; height: 58px; border-radius: 14px; } }
.zoom { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.zoom::backdrop { background: rgba(58, 13, 33, 0.75); backdrop-filter: blur(4px); }
.zoom[open] { animation: popIn 0.4s var(--bounce); }
.zoom__fig { margin: 0; display: grid; gap: 10px; justify-items: center; }
.zoom__fig img { max-width: min(92vw, 900px); max-height: 80vh; border-radius: 22px; box-shadow: var(--shadow-pop); background: var(--icing); }
.zoom__fig figcaption { color: var(--butter); font: 600 1.15rem/1.3 var(--f-display); font-variation-settings: "SOFT" 100; }
.zoom__close { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--icing); color: var(--jam); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft); }

/* ==========================================================================
   Announcement popup (also rendered inside the admin preview)
   ========================================================================== */
.promo-layer {
  container-type: inline-size;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: auto;
}
.promo-layer:not([open]) { display: none; }
.promo-layer::backdrop { background: rgba(58, 13, 33, 0.62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.promo-layer[open] .promo { animation: popIn 0.55s var(--bounce) both; }
.promo-layer.is-closing .promo { animation: popOut 0.26s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(0.92); } }
@keyframes popOut { to { opacity: 0; transform: translateY(14px) scale(0.96); } }

.promo {
  --pw: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--pw), 100cqw - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 30px;
  background: var(--icing);
  color: var(--jam-ink);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(91, 21, 51, 0.08);
  font-family: var(--f-text);
}
.promo--small { --pw: 360px; }
.promo--large { --pw: 780px; }
.promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--jam);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--bounce);
}
.promo__close:hover { transform: rotate(90deg) scale(1.06); }
.promo__close .ico { width: 18px; height: 18px; }
.promo__media { position: relative; flex: none; height: 260px; overflow: hidden; background: var(--blush); }
.promo--small .promo__media { height: 180px; }
.promo__bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) saturate(1.2); opacity: 0.55; }
.promo__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.promo__media--logo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 30%, rgba(224, 37, 79, 0.22) 0 14px, transparent 15px),
    radial-gradient(circle at 84% 70%, rgba(255, 210, 94, 0.5) 0 9px, transparent 10px),
    radial-gradient(circle at 78% 22%, rgba(124, 212, 176, 0.45) 0 6px, transparent 7px),
    radial-gradient(120% 120% at 50% 0%, var(--milk), var(--blush) 70%, var(--rose));
}
.promo__logo { width: min(62%, 240px); height: auto; filter: drop-shadow(0 12px 18px rgba(91, 21, 51, 0.25)); }
.promo__media::after { /* scalloped icing edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background: radial-gradient(circle at 12px 14px, var(--icing) 11px, transparent 12px) 0 0 / 24px 14px repeat-x;
}
.promo__body { display: grid; gap: 10px; justify-items: center; padding: 22px 28px 30px; text-align: center; overflow: auto; }
.promo__title { margin: 0; font: 600 1.75rem/1.12 var(--f-display); font-variation-settings: "SOFT" 100, "opsz" 72; color: var(--jam); text-wrap: balance; }
.promo--small .promo__title { font-size: 1.4rem; }
.promo--large .promo__title { font-size: 2.3rem; }
.promo__desc { margin: 0; color: var(--muted); white-space: pre-line; max-width: 46ch; }
.promo__btn { margin-top: 8px; }
.promo--small .promo__body { padding: 18px 22px 24px; }

/* Large: side by side when there is room (container query, so the admin
   preview matches the real thing on both desktop and phone). */
@container (min-width: 760px) {
  .promo--large { flex-direction: row; min-height: 420px; }
  .promo--large .promo__media { flex: 1 1 50%; height: auto; }
  .promo--large .promo__media::after { left: auto; top: 0; right: -1px; bottom: 0; width: 14px; height: auto; background: radial-gradient(circle at 14px 12px, var(--icing) 11px, transparent 12px) 0 0 / 14px 24px repeat-y; }
  .promo--large .promo__body { flex: 1 1 50%; align-content: center; justify-items: start; text-align: start; padding-block: 44px; padding-inline: 36px 44px; }
}
@media (max-width: 480px) { .hero__review-sub { display: none; } }

/* Standalone price list page */
.page-prices .prices--page { padding-top: clamp(40px, 6vw, 70px); }
.prices__page-link { margin-top: 10px; }
.page-prices .prices__page-link { display: none; }
.prices-off { padding-top: clamp(60px, 8vw, 110px); }

/* ==========================================================================
   Arabic content entered in the admin (dir="rtl" lang="ar" is added
   automatically when a text is mostly Arabic — see textDir() in helpers.js)
   ========================================================================== */
:is(.display, .svc__title, .detail__title, .pl-group__title, .pl-item__name, .pkg-row__name > span, .promo__title, .benefit__title, .academy__title, .review-card__title, [data-about-title]):lang(ar) {
  font-family: var(--f-ar-display);
  font-variation-settings: normal;
  letter-spacing: 0;
}
.display:lang(ar), .hero__title:lang(ar) { line-height: 1.3; }
:is(.svc__title, .detail__title, .pl-group__title, .promo__title, [data-about-title]):lang(ar) { line-height: 1.4; }
:is(.hero__desc, .svc__tag, .detail__desc, .detail__tag, .pl-item__desc, .promo__desc, .benefit__text, .about__text, .note, .ticks li, .options li):lang(ar) { font-family: var(--f-ar); line-height: 1.8; }
/* Arabic subtitles follow their card's direction */
[dir="rtl"] :is(.svc__ar, .detail__ar) { text-align: right; }
/* Arrows point the reading direction */
:is(.btn, .link-arrow, .pkg-row__go):dir(rtl) > .ico:last-child { transform: scaleX(-1); }
.pkg-row__name > span:lang(ar) { unicode-bidi: isolate; }

/* Rent the space: booking strip (own phone / WhatsApp from the admin) */
.space-book { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; padding: 14px 16px; border-radius: 18px; background: var(--icing); box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.space-book__label { margin: 0; font: 600 1.15rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--jam); }
.space-book__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.space-book .btn .ico { width: 18px; height: 18px; }
.space-book [data-text] { direction: ltr; unicode-bidi: isolate; }
.contact__ico--space { background: var(--lemon); color: var(--jam); }

/* ==========================================================================
   Courses (home section + courses.html)
   ========================================================================== */
.courses .section-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.courses__intro-ar { margin-top: 0.4rem; font-family: var(--f-ar); color: var(--cherry-ink); }
.courses__intro-ar--page { text-align: center; margin: 0 auto 2rem; }
.courses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.course {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--icing);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); }
.course__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--milk); }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.course:hover .course__media img { transform: scale(1.06); }
/* Placeholder when a course has no photo: icing pattern + graduation cap */
.course__art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.7) 0 10px, transparent 11px),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.55) 0 14px, transparent 15px),
    radial-gradient(circle at 70% 22%, var(--lemon) 0 5px, transparent 6px),
    radial-gradient(circle at 30% 78%, var(--cherry) 0 7px, transparent 8px),
    linear-gradient(150deg, var(--blush), var(--rose));
}
.course__art-ico { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--icing); color: var(--jam); box-shadow: var(--shadow-soft); transform: rotate(-6deg); }
.course__art-ico .ico { width: 44px; height: 44px; }
/* Calendar ticket with the course days */
.course__date {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  min-width: 62px;
  padding: 8px 10px 7px;
  border-radius: 14px;
  background: var(--jam);
  color: var(--butter);
  text-align: center;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}
.course__date b { display: block; font: 600 1.35rem/1 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--icing); }
.course__date small { display: block; margin-top: 3px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lemon); }
.course__body { display: grid; gap: 6px; padding: 18px 20px 20px; flex: 1; align-content: start; }
.course__title { margin: 0; font: 600 1.3rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--jam); }
.course__ar { font: 600 0.98rem/1.4 var(--f-ar-display); color: var(--cherry-ink); }
[dir="rtl"] .course__ar, .course__body:not([dir="rtl"]) .course__ar { text-align: start; }
.course__facts { display: grid; gap: 6px; margin-top: 8px; }
.course__fact { display: inline-flex; align-items: center; gap: 8px; font-size: 0.93rem; font-weight: 600; color: var(--jam-ink); }
.course__fact .ico { width: 18px; height: 18px; color: var(--cherry-ink); flex: none; }
.course__more { margin-top: 12px; }
.course__title:lang(ar) { font-family: var(--f-ar-display); font-variation-settings: normal; line-height: 1.4; }
.academy--courses { margin: clamp(28px, 4vw, 44px) auto 0; }
.courses .services-foot { margin-top: 22px; }
.detail--course .course__media--detail { aspect-ratio: 4 / 5; position: sticky; top: 100px; }
@media (max-width: 820px) { .detail--course .course__media--detail { position: relative; top: 0; aspect-ratio: 4 / 3.4; } }
/* The arch shape would cut the ticket's corner: sit it at the bottom instead */
.detail--course .course__date { top: auto; bottom: 16px; inset-inline-start: 16px; }
.detail--course .course__art-ico { width: 110px; height: 110px; }
.detail--course .course__art-ico .ico { width: 56px; height: 56px; }
@media (max-width: 1000px) { .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .courses-grid { grid-template-columns: minmax(0, 1fr); } }
