/* ============================================================
   MALIMOU - styles
   Palette: Berry Jam #84304C · Strawberry Milkshake #F4E7E6
            Warm Butter Cream #F6E7C1 · Paper Bag #F4F4F4
   ============================================================ */

@font-face {
  font-family: "SoType";
  src: url("assets/fonts/SoType.otf") format("opentype");
  font-weight: 400 800; font-display: swap;
}
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Light.ttf") format("truetype");    font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype");  font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Medium.ttf") format("truetype");   font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Bold.ttf") format("truetype");     font-weight: 700; font-display: swap; }

:root {
  --berry: #84304C;
  --berry-deep: #6a2640;
  --berry-soft: #a04865;
  --pink: #F4E7E6;
  --cream: #F6E7C1;
  --paper: #F4F4F4;
  --ink: #3a1f29;
  --muted: #7a6068;
  --white: #fffdfb;

  --display: "SoType", "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -22px rgba(106, 38, 64, 0.45);
  --shadow-sm: 0 10px 30px -18px rgba(106, 38, 64, 0.4);
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-weight: 400; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; color: var(--berry); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }

.kicker {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.72rem; font-weight: 600; color: var(--berry-soft); margin-bottom: 14px;
}
.kicker--cream { color: var(--cream); opacity: 0.95; }

.section__head { text-align: center; max-width: 620px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 100px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--berry); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--berry-deep); }
.btn--ghost { background: rgba(255,255,255,0.6); color: var(--berry); border-color: rgba(132,48,76,0.4); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--berry); color: var(--white); border-color: var(--berry); }
.btn--cream { background: var(--cream); color: var(--berry); }
.btn--cream:hover { background: var(--white); }
.btn--outline-cream { background: transparent; color: var(--cream); border-color: rgba(246,231,193,0.5); }
.btn--outline-cream:hover { background: var(--cream); color: var(--berry); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }

/* ---------- Nav (transparent / glassy) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(255, 253, 251, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 26px -20px rgba(106,38,64,0.55);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { height: 38px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--berry);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--berry); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__ig { color: var(--berry); display: grid; place-items: center; transition: transform 0.25s; }
.nav__ig:hover { transform: scale(1.12) rotate(-6deg); }

.lang {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; cursor: pointer;
  border: 1.5px solid rgba(132,48,76,0.3); color: var(--berry); font-family: var(--body);
  font-weight: 600; font-size: 0.82rem; padding: 7px 14px; border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.lang:hover { background: var(--berry); color: var(--white); border-color: var(--berry); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--berry); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 0 24px;
  background: rgba(255, 253, 251, 0.97); backdrop-filter: blur(14px);
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s;
}
.nav__mobile.open { max-height: 460px; padding: 12px 24px 24px; }
.nav__mobile a { padding: 14px 4px; font-weight: 500; border-bottom: 1px solid var(--pink); }
.nav__mobile .btn { margin-top: 14px; border-bottom: 0; }

/* ---------- Hero (with photo background) ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; text-align: center;
  padding: clamp(104px, 14vh, 140px) 0 clamp(104px, 13vh, 128px);
}
.hero__bg {
  position: absolute; inset: -4% -4% -4% -4%; z-index: 0;
  background: url("assets/photos/hero.jpg") center/cover no-repeat;
  transform: scale(1.06); animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.16) translate(-1.5%, -1.5%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(246,231,193,0.5) 0%, rgba(244,231,230,0.82) 48%, rgba(244,231,230,0.95) 100%),
    linear-gradient(180deg, rgba(244,231,230,0.7), rgba(244,244,244,0.96));
}
.hero__inner { position: relative; z-index: 3; max-width: 760px; }
.hero__eyebrow {
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem;
  color: var(--berry-soft); margin-bottom: 0;
}
.hero__logo { width: min(330px, 70vw); margin: -38px auto -34px; filter: drop-shadow(0 8px 22px rgba(106,38,64,0.18)); }
.hero__tagline {
  font-family: var(--display); font-size: clamp(1.4rem, 3.2vw, 2.1rem); color: var(--berry);
  font-weight: 700; margin-bottom: 14px; line-height: 1.12;
}
.hero__lede { color: #6a4f57; font-size: 1.1rem; max-width: 540px; margin: 0 auto 30px; }
.br-m { display: none; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(132,48,76,0.45); border-radius: 16px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--berry); border-radius: 2px; animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

/* sparkles & crumbs */
.sparkle {
  position: absolute; background: url("assets/img/star.png") center/contain no-repeat;
  z-index: 2; opacity: 0.85; animation: twinkle 4s ease-in-out infinite;
}
.sparkle--1 { width: 44px; height: 44px; top: 20%; left: 12%; animation-delay: 0.2s; }
.sparkle--2 { width: 28px; height: 28px; top: 28%; right: 14%; animation-delay: 1.2s; }
.sparkle--3 { width: 40px; height: 40px; top: 14%; right: 18%; opacity: 0.6; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.198) rotate(13.2deg); opacity: 1; }
}
.crumbs {
  position: absolute; background: url("assets/img/crumbs.png") center/contain no-repeat;
  opacity: 0.4; z-index: 2; pointer-events: none;
}
.crumbs--hero { width: 240px; height: 240px; bottom: 8%; left: -40px; opacity: 0.3; }
.crumbs--four { width: 220px; height: 220px; top: 8%; right: -30px; opacity: 0.18; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--berry); color: var(--cream); overflow: hidden; padding: 16px 0;
  white-space: nowrap; font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; position: relative; z-index: 5;
}
.marquee__track { display: inline-flex; animation: scroll 34s linear infinite; }
.marquee__track span { padding: 0 20px; font-size: 1.05rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story { background: var(--paper); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.story__media { position: relative; }
.story__photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.story__photo--lg { width: 84%; }
.story__photo--sm { width: 48%; position: absolute; right: 0; bottom: -32px; border: 6px solid var(--paper); }
.story__text h2 { margin-bottom: 18px; }
.story__text p { color: var(--muted); margin-bottom: 16px; max-width: 46ch; }
.story__stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.story__stats div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.story__stats strong { font-family: var(--display); font-size: 1.6rem; color: var(--berry); line-height: 1; }
.story__stats span { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Menu ---------- */
.menu { background: linear-gradient(180deg, var(--paper), var(--pink)); }
.menu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(132,48,76,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__emoji { font-size: 2rem; display: grid; place-items: center; width: 60px; height: 60px; background: var(--pink); border-radius: 50%; margin-bottom: 18px; }
.card h3 { color: var(--berry); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.menu__note { text-align: center; margin-top: 40px; font-family: var(--display); font-size: 1.3rem; color: var(--berry-soft); font-weight: 600; }

/* ---------- Meet the Four ---------- */
.four { background: var(--berry); color: var(--pink); position: relative; overflow: hidden; }
.four__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; position: relative; z-index: 2; }
.four__text h2 { color: var(--white); margin-bottom: 18px; }
.four__text > p { color: rgba(244,231,230,0.85); margin-bottom: 26px; max-width: 42ch; }
.four__list { list-style: none; margin-bottom: 26px; }
.four__list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(244,231,230,0.16); font-size: 1.05rem; color: var(--pink); }
.four__list strong { color: var(--white); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.dot--lemon { background: #f3d774; } .dot--choc { background: #5a3826; } .dot--cinn { background: #c98a4b; } .dot--zaatar { background: #8a9a55; }
.four__offer { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.four__price {
  font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--berry);
  line-height: 1; background: var(--cream); border-radius: 14px; padding: 10px 18px; flex: none;
}
.four__offer-text { color: var(--pink); font-size: 1rem; max-width: 24ch; }
.four__media img {
  border-radius: var(--radius); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); transform: rotate(1.5deg);
  /* crop the baked-in "By Malimou" logo off the bottom of the photo */
  aspect-ratio: 81 / 86; object-fit: cover; object-position: top center;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); }
.gallery__grid { columns: 4; column-gap: 16px; }
.gallery__item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; cursor: pointer;
  background: var(--pink); border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid;
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.gallery__item img { width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item.is-hidden { display: none; }
.gallery.is-expanded .gallery__item.is-hidden { display: block; }
.gallery__more { text-align: center; margin-top: 30px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(40, 18, 28, 0.92); backdrop-filter: blur(6px); padding: 24px;
}
.lightbox.open { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: 90vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.85; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12);
  border: 0; color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.25s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }

/* ---------- Values ---------- */
.values { background: var(--cream); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: var(--white); border-radius: var(--radius); padding: 34px 26px; text-align: center; box-shadow: var(--shadow-sm); }
.value__icon { font-size: 1.5rem; color: var(--berry); width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--pink); border-radius: 50%; }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Order ---------- */
.order { background: var(--berry); color: var(--pink); text-align: center; position: relative; overflow: hidden; padding-top: clamp(34px, 4vw, 52px); }
.order__inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.order .kicker { margin-bottom: 8px; }
.order h2 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4rem); }
.order__lede { color: rgba(244,231,230,0.85); font-size: 1.1rem; margin: 14px auto 32px; max-width: 480px; }
.order__steps { display: flex; justify-content: center; gap: 14px 30px; flex-wrap: wrap; margin: 0 auto 40px; max-width: 820px; }
.step { display: flex; align-items: center; gap: 12px; }
.step span { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--berry); display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.step p { color: var(--pink); font-weight: 500; font-size: 0.95rem; }
.order__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* order divider + form */
.order__divider {
  display: flex; align-items: center; gap: 16px; margin: 40px auto 28px; max-width: 460px;
  color: rgba(244,231,230,0.6); font-size: 0.85rem;
}
.order__divider::before, .order__divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(244,231,230,0.25);
}
.order__form { max-width: 480px; margin: 0 auto; text-align: left; }
.order__form-row { display: flex; gap: 14px; }
.order__form-row .field { flex: 1; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
.field input {
  width: 100%; font-family: var(--body); font-size: 0.95rem; color: var(--white);
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(246,231,193,0.28);
  border-radius: 12px; padding: 13px 16px; transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder { color: rgba(244,231,230,0.5); }
.field input:focus { outline: none; border-color: var(--cream); background: rgba(255,255,255,0.14); }
.order__submit { width: 100%; margin-top: 8px; }
.order__formnote { font-size: 0.78rem; color: rgba(244,231,230,0.6); text-align: center; margin-top: 12px; }
[dir="rtl"] .order__form { text-align: right; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--pink); padding: 60px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__logo { height: 46px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__tag { font-family: var(--display); font-size: 1.15rem; color: var(--cream); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.footer__link { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); font-weight: 500; transition: color 0.25s; }
.footer__link:hover { color: var(--cream); }
.footer__copy { font-size: 0.82rem; color: rgba(244,231,230,0.55); margin-top: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ARABIC / RTL
   ============================================================ */
body.lang-ar { font-family: "Tajawal", system-ui, sans-serif; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar .hero__tagline, body.lang-ar .menu__note,
body.lang-ar .footer__tag, body.lang-ar .step span,
body.lang-ar .story__stats strong { font-family: "Tajawal", system-ui, sans-serif; font-weight: 800; }
body.lang-ar .kicker, body.lang-ar .hero__eyebrow { letter-spacing: 0; }
body.lang-ar { letter-spacing: 0; }

[dir="rtl"] .nav__links a::after { left: auto; right: 0; }
[dir="rtl"] .story__photo--sm { right: auto; left: 0; }
[dir="rtl"] .four__media img { transform: rotate(-1.5deg); }
[dir="rtl"] .lightbox__prev { left: auto; right: 18px; }
[dir="rtl"] .lightbox__next { right: auto; left: 18px; }
[dir="rtl"] .lightbox__prev { transform: translateY(-50%) rotate(180deg); }
[dir="rtl"] .lightbox__next { transform: translateY(-50%) rotate(180deg); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .gallery__grid { columns: 3; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn--sm { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .story__grid, .four__grid { grid-template-columns: 1fr; }
  .four__media { order: -1; }
  .four__media img { transform: none; }
  [dir="rtl"] .four__media img { transform: none; }
  .story__photo--lg { width: 78%; }
  .story__photo--sm { width: 46%; bottom: -24px; }
}
@media (max-width: 640px) { .gallery__grid { columns: 2; } }
@media (max-width: 540px) {
  .menu__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; }
  .order__steps { flex-direction: column; align-items: flex-start; max-width: 240px; margin-inline: auto; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .order__btns { flex-direction: column; }
  .order__btns .btn { width: 100%; }
  .br-m { display: inline; }
  .story__stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 10px; margin-top: 26px;
  }
  .story__stats strong { font-size: 1.3rem; }
  .story__stats span { font-size: 0.7rem; margin-top: 3px; line-height: 1.25; }
  .order .kicker { margin-bottom: 6px; }
  .order h2 { line-height: 1.02; }
  .order__lede { margin: 12px auto 28px; }
  .order__form-row { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: scale(1.06); }
}
