/* =========================================================
   MO Trading | MOREUP site (EN default, AR/RTL via assets/i18n)
   Palette taken from the MOREUP packaging
   ========================================================= */
:root {
  --cream: #fbf3e4;
  --cream-2: #f6e7c8;
  --lotus: #efcf8e;
  --lotus-deep: #d9a54a;
  --orange: #e0742b;
  --mint: #d3ecea;
  --sky: #bcd7e8;
  --pink: #ee9dbd;
  --choco: #3b2416;
  --choco-2: #5b3a26;
  --ink: #141414;
  --muted: #7a6656;

  --b-red: #d33a2c;
  --b-purple: #6b4bc4;
  --b-yellow: #f2d23a;
  --b-green: #8cb83a;
  --b-teal: #2ba39a;

  --radius: 28px;
  --shadow-lg: 0 30px 60px -20px rgba(59, 36, 22, 0.35);
  --shadow-md: 0 14px 30px -12px rgba(59, 36, 22, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-ar: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-brand: "Bowlby One", "Arial Black", Impact, sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.75;
  color: var(--choco);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  height: auto;
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 10px;
}


.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
}
.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}
.section__head--start {
  text-align: start;
  margin-inline: 0;
}
.section__title {
  letter-spacing: -0.02em;
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.2;
  color: var(--choco);
}
.section__sub {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
  background: rgba(224, 116, 43, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow--light {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
}
.eyebrow__spark {
  width: 14px;
  height: 14px;
  fill: currentColor;
  animation: spin 6s linear infinite;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--choco);
  --fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: 1rem;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn:hover::before {
  transform: translateX(-120%);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn--primary {
  --bg: var(--orange);
  --fg: #fff;
}
.btn--dark {
  --bg: var(--ink);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--choco);
  box-shadow: inset 0 0 0 2px var(--choco);
}
.btn--ghost:hover {
  --bg: var(--choco);
  --fg: var(--cream);
}
.btn--light {
  --bg: var(--cream);
  --fg: var(--choco);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Sparkle canvas ---------- */
#sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.4s,
    box-shadow 0.4s,
    height 0.4s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.header.is-scrolled {
  background: rgba(251, 243, 228, 0.96);
  box-shadow: 0 1px 0 rgba(59, 36, 22, 0.08);
  --header-h: 64px;
}
.header.is-hidden {
  transform: translateY(-100%);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__logo img {
  height: 46px;
  width: auto;
  transition: transform 0.4s var(--ease-spring);
}
.header__logo:hover img {
  transform: rotate(-6deg) scale(1.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}
.nav__link {
  position: relative;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__cta {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 0.92rem;
}
.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  position: relative;
  z-index: 60;
}
.burger span {
  position: absolute;
  inset-inline: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--choco);
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.3s;
}
.burger span:nth-child(1) {
  top: 16px;
}
.burger span:nth-child(2) {
  top: 23px;
}
.burger span:nth-child(3) {
  top: 30px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   BLOBS
   ========================================================= */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 14s ease-in-out infinite;
  opacity: 0.9;
  will-change: transform;
}
.blob--1 {
  width: clamp(160px, 22vw, 320px);
  aspect-ratio: 1;
  background: var(--pink);
  top: 14%;
  inset-inline-end: -60px;
}
.blob--2 {
  width: clamp(120px, 16vw, 230px);
  aspect-ratio: 1;
  background: var(--b-teal);
  opacity: 0.35;
  bottom: 8%;
  inset-inline-start: 6%;
  animation-duration: 18s;
}
.blob--3 {
  width: clamp(70px, 8vw, 120px);
  aspect-ratio: 1;
  background: var(--b-yellow);
  top: 22%;
  inset-inline-start: 42%;
  animation-duration: 11s;
  opacity: 0.75;
}
.blob--4 {
  width: clamp(90px, 10vw, 150px);
  aspect-ratio: 1;
  background: var(--b-purple);
  opacity: 0.25;
  bottom: 14%;
  inset-inline-end: 38%;
  animation-duration: 16s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(239, 207, 142, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(211, 236, 234, 0.9), transparent 70%), var(--cream);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}
.hero__title {
  letter-spacing: -0.025em;
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero__title > span {
  display: block;
}
.brand-word {
  font-family: var(--font-brand) !important;
  font-weight: 400;
  font-size: 1.12em;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange) 40%, var(--pink) 60%, var(--orange) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  margin-bottom: 8px;
}
.hero__title-accent {
  position: relative;
  width: fit-content;
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  inset-inline: -4px;
  bottom: 0.12em;
  height: 0.28em;
  background: var(--lotus);
  z-index: -1;
  border-radius: 6px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.9s 1.1s var(--ease-out) forwards;
}
.hero__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--choco-2);
  max-width: 34ch;
  margin-bottom: 30px;
}
.tag {
  font-family: var(--font-ar);
  padding: 0 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.tag--lotus {
  background: var(--lotus);
}
.tag--white {
  background: var(--sky);
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__anim {
  opacity: 0;
  animation: fadeUp 0.9s var(--d, 0s) var(--ease-out) forwards;
}

/* hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  width: 100%;
}
.hero__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, var(--lotus) 55%, var(--lotus-deep) 100%);
  box-shadow:
    inset 0 -20px 60px rgba(217, 165, 74, 0.5),
    0 40px 80px -30px rgba(217, 165, 74, 0.6);
  opacity: 0;
  animation: popIn 1.1s 0.2s var(--ease-spring) forwards;
}
.hero__ring::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(59, 36, 22, 0.18);
  animation: spin 40s linear infinite;
}
/* Layers carry the pointer parallax (transform set by JS, compositor-only).
   The images inside carry the entrance + float animations (transform/translate only). */
.hero__layer {
  position: absolute;
  will-change: transform;
}
.hero__layer--lotus {
  width: 82%;
  top: 14%;
  inset-inline-start: 2%;
}
.hero__layer--white {
  width: 78%;
  top: 46%;
  inset-inline-end: -2%;
}
.hero__layer--cut {
  width: 40%;
  bottom: -2%;
  inset-inline-start: 6%;
}
.hero__bar,
.hero__cut {
  width: 100%;
  filter: drop-shadow(0 24px 30px rgba(59, 36, 22, 0.3));
  will-change: transform;
  opacity: 0;
}
.hero__bar--lotus {
  --r: -12deg;
  animation:
    barIn 1.2s 0.45s var(--ease-out) forwards,
    floatY 6s 1.7s ease-in-out infinite;
}
.hero__bar--white {
  --r: 8deg;
  animation:
    barIn 1.2s 0.65s var(--ease-out) forwards,
    floatY 7s 1.9s ease-in-out infinite reverse;
}
.hero__cut {
  --r: -4deg;
  animation:
    barIn 1.2s 0.9s var(--ease-spring) forwards,
    floatY 5s 2.1s ease-in-out infinite;
}
.float-spark {
  position: absolute;
  fill: var(--ink);
  width: 34px;
  height: 34px;
  animation: twinkle 3.4s ease-in-out infinite;
}
.float-spark--a {
  top: 4%;
  inset-inline-end: 18%;
}
.float-spark--b {
  top: 40%;
  inset-inline-start: -2%;
  width: 22px;
  height: 22px;
  fill: var(--orange);
  animation-delay: 1.2s;
}
.float-spark--c {
  bottom: 6%;
  inset-inline-end: 10%;
  width: 26px;
  height: 26px;
  fill: var(--b-purple);
  animation-delay: 2s;
}
.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  width: 28px;
  height: 46px;
  border: 2px solid var(--choco);
  border-radius: 20px;
  opacity: 0.6;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--choco);
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--choco);
  color: var(--cream);
  overflow: hidden;
  padding-block: 18px;
  transform: rotate(-1.5deg) scale(1.02);
  box-shadow: var(--shadow-md);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 32px);
  white-space: nowrap;
}
.marquee svg {
  width: 22px;
  height: 22px;
  fill: var(--lotus);
  flex-shrink: 0;
}

/* =========================================================
   FLAVOURS
   ========================================================= */
.flavours {
  --f-bg: var(--lotus);
  --f-accent: var(--orange);
  --f-disc: #f8e2b3;
  background: var(--f-bg);
  transition: background-color 0.8s var(--ease-out);
  overflow: hidden;
}
.flavours[data-flavour="white"] {
  --f-bg: var(--mint);
  --f-accent: #d0628d;
  --f-disc: #eaf6f5;
}
.flavours .eyebrow {
  color: var(--f-accent);
  background: rgba(255, 255, 255, 0.5);
  transition: color 0.6s;
}
.tabs {
  position: relative;
  display: flex;
  width: min(440px, 100%);
  margin: 0 auto clamp(30px, 5vw, 56px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(59, 36, 22, 0.08);
}
.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--font-ar);
  font-weight: 800;
  transition: color 0.4s;
}

.tab.is-active {
  color: var(--cream);
}
.tab__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lotus-deep);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.tab[data-target="white"] .tab__dot {
  background: var(--sky);
}
.tabs__pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  inset-inline-start: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--choco);
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease-spring);
}
.flavours[data-flavour="white"] .tabs__pill {
  transform: translateX(100%);
}
.flavour {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.flavour__stage {
  position: relative;
  aspect-ratio: 1;
  perspective: 1400px;
}
.flavour__disc {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: var(--f-disc);
  transition: background-color 0.8s;
  box-shadow: inset 0 -30px 60px rgba(59, 36, 22, 0.08);
}
.flavour__disc::before,
.flavour__disc::after {
  content: "";
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 12s ease-in-out infinite;
}
.flavour__disc::before {
  width: 30%;
  aspect-ratio: 1;
  background: var(--b-red);
  opacity: 0.85;
  top: 4%;
  inset-inline-end: 6%;
}
.flavour__disc::after {
  width: 22%;
  aspect-ratio: 1;
  background: var(--b-green);
  opacity: 0.85;
  bottom: 8%;
  inset-inline-start: 2%;
  animation-delay: -4s;
}
.flip {
  position: absolute;
  inset: 4% 14% 12%;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
}
.flavours[data-flavour="white"] .flip {
  transform: rotateY(180deg);
}
.flip__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 30px 30px rgba(59, 36, 22, 0.3));
  animation: floatY 6s ease-in-out infinite;
}
.flip__front {
  transform: rotate(-14deg);
}
.flip__back {
  transform: rotateY(180deg);
}
.flavour__cut {
  position: absolute;
  width: 52%;
  bottom: 0;
  inset-inline-end: -2%;
  filter: drop-shadow(0 20px 24px rgba(59, 36, 22, 0.35));
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease-spring);
}
.flavour__cut.is-swapping {
  opacity: 0;
  transform: translateY(30px) scale(0.85) rotate(-8deg);
}
.flavour__info > * {
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease-out);
}
.flavour__info.is-swapping > * {
  opacity: 0;
  transform: translateY(14px);
}
.flavour__kicker {
  font-family: var(--font-brand);
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--f-accent);
  transition:
    color 0.6s,
    opacity 0.4s,
    transform 0.5s;
}
.flavour__name {
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  margin: 6px 0 16px;
}
.flavour__desc {
  font-size: 1.08rem;
  color: var(--choco-2);
  max-width: 44ch;
}
.flavour__notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}
.flavour__notes li {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(59, 36, 22, 0.1);
}
.flavours .btn--primary {
  --bg: var(--choco);
}

/* =========================================================
   INSIDE
   ========================================================= */
.inside__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.inside__visual {
  position: relative;
  padding: 8% 0;
}
.inside__blob {
  position: absolute;
  inset: 0 6%;
  background: linear-gradient(135deg, var(--lotus) 0%, var(--sky) 100%);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 16s ease-in-out infinite;
}
.inside__visual img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 30px 30px rgba(59, 36, 22, 0.35));
  transition: transform 0.6s var(--ease-out);
}
.inside__visual:hover img {
  transform: scale(1.04) rotate(-1deg);
}
.features {
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(59, 36, 22, 0.06);
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s;
}
.feature:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.feature__num {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--orange);
  min-width: 46px;
}
.feature h3 {
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.4;
}
.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* =========================================================
   WHOLESALE
   ========================================================= */
.wholesale__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: clamp(32px, 5vw, 70px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 15% 85%, rgba(224, 116, 43, 0.45), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(238, 157, 189, 0.35), transparent 40%), var(--choco);
  color: var(--cream);
  overflow: hidden;
}
.wholesale__card .section__title {
  color: var(--cream);
  margin-bottom: 14px;
}
.wholesale__text > p {
  color: rgba(251, 243, 228, 0.82);
  max-width: 46ch;
}
.checks {
  list-style: none;
  margin: 22px 0 30px;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-inline-start: 34px;
  font-weight: 500;
}
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b2416' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--lotus);
}
.wholesale__visual {
  position: relative;
  height: clamp(320px, 40vw, 520px);
}
.box {
  position: absolute;
  height: 92%;
  width: auto;
  bottom: 0;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
  will-change: transform;
  transition: transform 0.6s var(--ease-spring);
}
.box--lotus {
  inset-inline-start: 4%;
  transform: rotate(-5deg);
  z-index: 1;
}
.box--white {
  inset-inline-end: 4%;
  bottom: 4%;
  transform: rotate(6deg);
}
.wholesale__visual:hover .box--lotus {
  transform: rotate(-9deg) translateY(-12px);
}
.wholesale__visual:hover .box--white {
  transform: rotate(10deg) translateY(-12px);
}

/* =========================================================
   GALLERY
   ========================================================= */
.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px;
  font-family: var(--font-ar);
  font-weight: 700;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(59, 36, 22, 0.12);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s var(--ease-spring);
}
.chip:hover {
  transform: translateY(-2px);
}
.chip.is-active {
  background: var(--choco);
  color: var(--cream);
  box-shadow: none;
}
.grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  --tile-bg: var(--cream-2);
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--tile-bg);
  overflow: hidden;
  cursor: zoom-in;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s,
    opacity 0.45s;
}
.tile[data-cat="lotus"] {
  --tile-bg: #f5ddae;
}
.tile[data-cat="white"] {
  --tile-bg: #dceef4;
}
.tile[data-cat="box"] {
  --tile-bg: #f7e3e9;
}
.tile--wide {
  grid-column: span 2;
  aspect-ratio: auto; /* stretches to the square tile beside it */
}
.tile::before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  inset-inline-end: -12%;
  top: -14%;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.8s var(--ease-out);
}
.tile img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(59, 36, 22, 0.28));
  transition: transform 0.7s var(--ease-spring);
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.tile:hover img {
  transform: scale(1.08) rotate(-3deg);
}
.tile:hover::before {
  transform: scale(1.4) rotate(40deg);
}
.tile__cap {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 12px;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease-out);
}
.tile:hover .tile__cap,
.tile:focus-visible .tile__cap {
  opacity: 1;
  transform: none;
}
.tile.is-hidden {
  display: none;
}
.tile.is-entering {
  animation: tileIn 0.6s var(--ease-out) both;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(30, 18, 10, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s;
  touch-action: pan-y;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox__figure {
  width: min(900px, 88vw);
  text-align: center;
}
.lightbox__figure img {
  max-height: 76vh;
  width: auto;
  margin-inline: auto;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.5));
  animation: popIn 0.5s var(--ease-spring);
}
.lightbox__figure figcaption {
  margin-top: 14px;
  color: var(--cream);
  font-family: var(--font-ar);
  font-weight: 700;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(251, 243, 228, 0.12);
  color: var(--cream);
  font-size: 30px;
  line-height: 1;
  transition: background 0.3s;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(251, 243, 228, 0.25);
}
.lightbox__close {
  top: 20px;
  inset-inline-end: 20px;
}
.lightbox__prev {
  inset-inline-start: 20px;
  top: 50%;
  translate: 0 -50%;
}
.lightbox__next {
  inset-inline-end: 20px;
  top: 50%;
  translate: 0 -50%;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding-block: clamp(40px, 6vw, 80px);
}
.about__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(59, 36, 22, 0.06);
}
.about__logo {
  width: clamp(120px, 16vw, 200px);
  height: auto;
  animation: floatY 6s ease-in-out infinite;
}
.about .section__title {
  margin-bottom: 10px;
}
.about p {
  color: var(--choco-2);
  max-width: 60ch;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ccard {
  --c: var(--choco);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 16px;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s,
    color 0.35s;
}
.ccard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
  clip-path: circle(0% at 50% 30%);
  transition: clip-path 0.6s var(--ease-out);
}
.ccard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.ccard:hover::before {
  clip-path: circle(150% at 50% 30%);
}
.ccard__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  margin-bottom: 8px;
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.5s var(--ease-spring);
}
.ccard__icon svg {
  width: 28px;
  height: 28px;
}
.ccard:hover .ccard__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.ccard__label {
  font-family: var(--font-ar);
  font-weight: 800;
}
.ccard__value {
  font-size: 0.92rem;
  opacity: 0.75;
  word-break: break-all;
}
.ccard--wa {
  --c: #1fa855;
}
.ccard--phone {
  --c: var(--orange);
}
.ccard--mail {
  --c: #3f7fd6;
}
.ccard--ig {
  --c: #d6336c;
}
.ccard--fb {
  --c: #1877f2;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 1;
  background: var(--choco);
  color: var(--cream);
  padding-block: 50px 40px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer__logo {
  width: 110px;
  height: auto;
  filter: invert(1) brightness(1.1);
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 243, 228, 0.1);
  transition:
    background 0.3s,
    transform 0.4s var(--ease-spring);
}
.footer__social a:hover {
  background: var(--orange);
  transform: translateY(-4px) rotate(-8deg);
}
.footer__social svg {
  width: 22px;
  height: 22px;
}
.footer__copy {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Floating WhatsApp */
.fab {
  position: fixed;
  z-index: 40;
  bottom: 22px;
  inset-inline-start: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.4s var(--ease-spring);
  animation: fabIn 0.8s 1.6s var(--ease-spring) both;
}
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
.fab:hover {
  transform: scale(1.1) rotate(-8deg);
}
.fab svg {
  width: 30px;
  height: 30px;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--mask {
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 1.3s var(--ease-out),
    opacity 0.4s;
}
.reveal--mask.is-visible {
  clip-path: inset(0 0 0 0);
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes barIn {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(calc(var(--r) - 14deg)) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--r)) scale(1);
  }
}
@keyframes floatY {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes morph {
  0%,
  100% {
    rotate: 0deg;
    scale: 1 1;
  }
  33% {
    rotate: 12deg;
    scale: 1.06 0.95;
  }
  66% {
    rotate: 25deg;
    scale: 0.95 1.05;
  }
}
@keyframes shimmer {
  to {
    background-position: -250% 0;
  }
}
@keyframes underline {
  to {
    transform: scaleX(1);
  }
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
@keyframes twinkle {
  0%,
  100% {
    transform: scale(0.6) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1) rotate(45deg);
    opacity: 1;
  }
}
@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(16px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes tileIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
}
@keyframes fabIn {
  from {
    opacity: 0;
    transform: scale(0) rotate(-90deg);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .burger {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: var(--cream);
    clip-path: circle(0% at calc(100% - 44px) 38px);
    visibility: hidden;
    transition:
      clip-path 0.7s var(--ease-out),
      visibility 0s 0.7s;
  }
  .nav.is-open {
    clip-path: circle(150% at calc(100% - 44px) 38px);
    visibility: visible;
    transition: clip-path 0.7s var(--ease-out);
  }
  .nav__link {
    font-size: 1.6rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.4s,
      transform 0.5s var(--ease-out);
  }
  .nav.is-open .nav__link {
    opacity: 1;
    transform: none;
  }
  .nav.is-open .nav__link:nth-child(1) { transition-delay: 0.15s; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: 0.2s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: 0.25s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: 0.3s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: 0.35s; }
  .nav.is-open .nav__link:nth-child(6) { transition-delay: 0.4s; }
  .nav__cta {
    margin-top: 18px;
    min-height: 54px;
    font-size: 1.05rem;
  }

  .hero__inner,
  .flavour,
  .inside__grid,
  .wholesale__card {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    text-align: center;
  }
  .hero__visual {
    order: -1;
    width: min(560px, 100%);
    margin-inline: auto;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__title-accent {
    margin-inline: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .scroll-hint {
    display: none;
  }
  .flavour__stage {
    width: min(480px, 100%);
    margin-inline: auto;
  }
  .flavour__info {
    text-align: center;
  }
  .flavour__desc {
    margin-inline: auto;
  }
  .flavour__notes {
    justify-content: center;
  }
  .inside__visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }
  .section__head--start {
    text-align: center;
    margin-inline: auto;
  }
  .wholesale__text {
    text-align: center;
  }
  .wholesale__text > p {
    margin-inline: auto;
  }
  .checks {
    justify-items: center;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile--wide {
    aspect-ratio: 2 / 1; /* alone on its row at 2 columns */
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 66px;
  }
  .header__logo img {
    height: 38px;
  }
  .hero {
    padding-bottom: 60px;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .grid {
    gap: 12px;
  }
  .tile--wide {
    grid-column: span 2;
  }
  .tile__cap {
    opacity: 1;
    transform: none;
    font-size: 0.75rem;
  }
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ccard--fb {
    grid-column: span 2;
  }
  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .feature:hover {
    transform: none;
  }
  .lightbox__nav {
    top: auto;
    bottom: 24px;
    translate: none;
  }
  .fab {
    width: 54px;
    height: 54px;
    bottom: 16px;
    inset-inline-start: 16px;
  }
}

@media (max-width: 380px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .ccard--fb {
    grid-column: auto;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal--mask {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  #sparkles {
    display: none;
  }
}

/* =========================================================
   LANGUAGE TOGGLE + I18N / RTL
   ========================================================= */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 60;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1.5px rgba(59, 36, 22, 0.18);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    transform 0.4s var(--ease-spring);
}
.lang-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.6s var(--ease-spring);
}
.lang-toggle:hover {
  background: var(--choco);
  color: var(--cream);
  box-shadow: none;
  transform: translateY(-2px);
}
.lang-toggle:hover svg {
  transform: rotate(180deg);
}
/* the toggle label is written in the *other* language */
.lang-toggle[lang="ar"] {
  font-family: "Cairo", "Tajawal", sans-serif;
}
.lang-toggle[lang="en"] {
  font-family: "DM Sans", sans-serif;
}

/* Arabic typography */
html[lang="ar"] {
  --font-ar: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] .section__title,
html[lang="ar"] .hero__title {
  letter-spacing: 0; /* letter-spacing breaks Arabic letter joining */
}
html[lang="ar"] .hero__title {
  line-height: 1.2;
}

/* Hide content until the saved Arabic dictionary is applied (no flash of English) */
html.i18n-loading body {
  opacity: 0;
}
body {
  transition: opacity 0.25s ease;
}
body.is-lang-switching main,
body.is-lang-switching .header__inner,
body.is-lang-switching .footer {
  opacity: 0;
  transform: translateY(6px);
}
main,
.header__inner,
.footer {
  transition:
    opacity 0.22s ease,
    transform 0.3s var(--ease-out);
}

/* RTL mirrors for direction-specific motion */
[dir="rtl"] .nav__link::after,
[dir="rtl"] .hero__title-accent::after {
  transform-origin: right;
}
[dir="rtl"] .flavours[data-flavour="white"] .tabs__pill {
  transform: translateX(-100%);
}
[dir="rtl"] .marquee__track {
  animation-name: marquee-rtl;
}
@keyframes marquee-rtl {
  to {
    transform: translateX(50%);
  }
}
[dir="rtl"] .reveal--mask {
  clip-path: inset(0 0 0 100%);
}
[dir="rtl"] .reveal--mask.is-visible {
  clip-path: inset(0 0 0 0);
}
[dir="rtl"] .feature:hover {
  transform: translateX(-6px);
}
[dir="rtl"] .lightbox__nav svg {
  transform: scaleX(-1);
}
.lightbox__nav {
  display: grid;
  place-items: center;
}
.lightbox__nav svg {
  width: 26px;
  height: 26px;
}
@media (max-width: 960px) {
  [dir="rtl"] .nav {
    clip-path: circle(0% at 44px 38px);
  }
  [dir="rtl"] .nav.is-open {
    clip-path: circle(150% at 44px 38px);
  }
}
@media (max-width: 600px) {
  .lang-toggle {
    padding: 8px 12px;
    font-size: 0.88rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  [dir="rtl"] .reveal--mask {
    clip-path: none;
  }
}

/* Language toggle is hidden for now (remove the `hidden` attribute in index.html to show it again) */
.lang-toggle[hidden] {
  display: none;
}
