/* =========================================================
   YMY — ymy.sa
   Bilingual (AR default / EN toggle). Calo-inspired palette.
   ========================================================= */

:root {
  /* palette */
  --cream: #F7F2E8;
  --cream-2: #F0E8D6;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --ink-3: #7A7A7A;
  --green-900: #1E3A2E;
  --green-700: #2F5640;
  --green-500: #4E7A4A;
  --green-300: #94B088;
  --terra: #D97A4A;
  --terra-dark: #B55E34;
  --amber: #E5A84E;
  --line: #E5DDCB;
  --white: #FFFFFF;

  /* rhythm */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(30, 58, 46, 0.06);
  --shadow: 0 10px 30px rgba(30, 58, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 58, 46, 0.12);

  /* typography */
  --ff-en: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-ar: 'Tajawal', 'Inter', system-ui, sans-serif;
  --ff: var(--ff-ar);
}

html[data-lang="en"] { --ff: var(--ff-en); }

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; color: var(--green-900); letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========== eyebrow / section heads =========== */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 14px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section__head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.section__head p { font-size: 17px; color: var(--ink-2); }

.section { padding: 96px 0; }

/* =========== buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-900);
  color: var(--cream);
}
.btn--primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--green-900);
  box-shadow: inset 0 0 0 1.5px var(--green-900);
}
.btn--ghost:hover { background: var(--green-900); color: var(--cream); }
.btn--block { display: flex; width: 100%; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1fb855; }
.btn--app {
  background: var(--white);
  color: var(--green-900);
  border: 1px solid var(--line);
  font-weight: 600;
}
.btn--app:hover { border-color: var(--green-900); }
.btn__app-mark {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--green-900);
  color: var(--cream);
  font-weight: 800;
  font-size: 12px;
}

/* =========== NAV =========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--cream) 96%, transparent); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}
.nav__links a { color: var(--ink); padding: 6px 0; position: relative; }
.nav__links a:hover { color: var(--green-900); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { padding: 10px 20px; font-size: 14px; }
.lang-toggle {
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-900);
  transition: all .15s ease;
}
.lang-toggle:hover { border-color: var(--green-900); }
.nav__burger { display: none; width: 44px; height: 44px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s ease; }

/* =========== HERO =========== */
.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(148,176,136,0.35), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(217,122,74,0.18), transparent 60%),
    var(--cream);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: 560px;
}
.hero__title {
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--green-900);
}
.hero__title--accent {
  display: block;
  color: var(--terra);
  font-style: italic;
  font-weight: 800;
}
.hero__sub { font-size: 18px; color: var(--ink-2); max-width: 520px; margin-bottom: 28px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__trust { display: flex; gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; max-width: 460px; }
.trust__item strong { display: block; font-size: 28px; color: var(--green-900); font-weight: 800; letter-spacing: -0.02em; }
.trust__item span { font-size: 13px; color: var(--ink-3); }

.hero__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.bowl {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--white), var(--cream-2));
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  animation: float 6s ease-in-out infinite;
}
.bowl svg { width: 92%; height: 92%; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__chip {
  position: absolute;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
  border: 1px solid var(--line);
  animation: chip 8s ease-in-out infinite;
}
.chip--1 { top: 15%; inset-inline-end: -2%; animation-delay: 0s; }
.chip--2 { top: 55%; inset-inline-start: -4%; animation-delay: 1.5s; }
.chip--3 { bottom: 8%; inset-inline-end: 10%; animation-delay: 3s; }
@keyframes chip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =========== PACKAGES =========== */
.packages { background: var(--white); }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.pkg {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pkg--featured {
  background: var(--green-900);
  color: var(--cream);
  border-color: var(--terra);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pkg--featured h3, .pkg--featured .pkg__amount { color: var(--cream); }
.pkg--featured .pkg__sub, .pkg--featured .pkg__list li, .pkg--featured .pkg__unit { color: rgba(247,242,232,0.85); }
.pkg--featured .pkg__list li::before { background: var(--terra); }
.pkg--featured .btn--primary { background: var(--terra); color: var(--cream); }
.pkg--featured .btn--primary:hover { background: var(--terra-dark); }
.pkg__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--green-900);
  margin-bottom: 18px;
}
.pkg--featured .pkg__tag { background: var(--terra); color: var(--cream); }
.pkg h3 { font-size: 22px; margin-bottom: 4px; }
.pkg__sub { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.pkg__list { margin: 0 0 28px; flex: 1; }
.pkg__list li {
  position: relative;
  padding-inline-start: 24px;
  padding-block: 6px;
  font-size: 15px;
  color: var(--ink-2);
}
.pkg__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  width: 8px; height: 8px;
  background: var(--terra);
  border-radius: 2px;
  transform: rotate(45deg);
}
.pkg__price { margin-bottom: 20px; }
.pkg__amount { font-size: 40px; font-weight: 800; color: var(--green-900); letter-spacing: -0.02em; }
.pkg__unit { font-size: 14px; color: var(--ink-3); margin-inline-start: 6px; }
.packages__fineprint { text-align: center; margin-top: 32px; font-size: 13px; color: var(--ink-3); }

/* =========== MENU =========== */
.menu { background: var(--cream); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dish {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish__badge {
  position: absolute;
  inset-inline-end: 16px;
  top: 16px;
  background: var(--terra);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.dish--offer { border-color: var(--terra); background: linear-gradient(180deg, #FFF 0%, #FFF8F1 100%); }
.dish__illust {
  aspect-ratio: 16/10;
  border-radius: 12px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
}
/* per-dish illustrations via radial gradients + shapes */
.dish__illust::before {
  content: "";
  position: absolute; inset: 0;
}
.dish__illust--salad::before {
  background:
    radial-gradient(circle at 30% 50%, #4E7A4A 0 14%, transparent 15%),
    radial-gradient(circle at 55% 40%, #94B088 0 12%, transparent 13%),
    radial-gradient(circle at 70% 60%, #D94B3C 0 7%, transparent 8%),
    radial-gradient(circle at 45% 70%, #E5A84E 0 6%, transparent 7%),
    linear-gradient(135deg, #F7F2E8, #E8E0CE);
}
.dish__illust--mexican::before {
  background:
    radial-gradient(circle at 25% 45%, #94B088 0 11%, transparent 12%),
    radial-gradient(circle at 50% 55%, #D9B370 0 10%, transparent 11%),
    radial-gradient(circle at 72% 35%, #D94B3C 0 7%, transparent 8%),
    radial-gradient(circle at 60% 75%, #E5A84E 0 7%, transparent 8%),
    linear-gradient(135deg, #F7F2E8, #EFE4C7);
}
.dish__illust--caesar::before {
  background:
    radial-gradient(circle at 30% 60%, #4E7A4A 0 13%, transparent 14%),
    radial-gradient(circle at 55% 45%, #F0E8D6 0 12%, transparent 13%),
    radial-gradient(circle at 75% 55%, #D9B370 0 8%, transparent 9%),
    linear-gradient(135deg, #FFF, #F0E8D6);
}
.dish__illust--wrap::before {
  background:
    radial-gradient(ellipse at 50% 50%, #D9B370 0 30%, #B8925A 31% 40%, transparent 41%),
    linear-gradient(135deg, #F7F2E8, #E5DDCB);
}
.dish__illust--burger::before {
  background:
    radial-gradient(ellipse at 50% 55%, #D9B370 0 26%, transparent 27%),
    radial-gradient(ellipse at 50% 65%, #4E7A4A 0 22%, transparent 23%),
    radial-gradient(ellipse at 50% 72%, #B55E34 0 24%, transparent 25%),
    linear-gradient(135deg, #FFF, #F0E8D6);
}
.dish__illust--box::before {
  background:
    linear-gradient(135deg, #D97A4A 0 50%, #B55E34 50% 100%);
}
.dish__illust--box::after {
  content: "🥗";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 56px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.dish h3 { font-size: 20px; margin-bottom: 6px; }
.dish__desc { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; min-height: 42px; }
.dish__meta { display: flex; justify-content: space-between; align-items: center; }
.dish__price { font-size: 22px; font-weight: 800; color: var(--green-900); }
.dish__price small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-inline-start: 4px; }
.dish__cal {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--green-700);
}
.menu__more { text-align: center; margin-top: 48px; }

/* =========== WHY =========== */
.why { background: var(--white); }
.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.why__head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.why__head p { font-size: 17px; }
.why__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.why__list > li { display: flex; gap: 16px; }
.why__list h4 { font-size: 17px; margin-bottom: 6px; color: var(--green-900); }
.why__list p { font-size: 14px; margin: 0; color: var(--ink-2); }
.why__icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--green-700);
  display: grid; place-items: center;
}

/* =========== BRANCHES =========== */
.branches { background: var(--cream); }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.branch {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.branch:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.branch__pin {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-900);
  color: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.branch h3 { font-size: 24px; margin-bottom: 4px; }
.branch__tag { font-size: 13px; color: var(--terra); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.branch__addr, .branch__hours { font-size: 15px; margin-bottom: 6px; color: var(--ink-2); }
.branch__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-900);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px solid var(--terra);
  padding-bottom: 2px;
}
.branch__link:hover { color: var(--terra); }

/* =========== ORDER CTA =========== */
.order { background: var(--white); padding: 60px 0; }
.order__card {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.order__card::after {
  content: "";
  position: absolute;
  inset-inline-end: -80px;
  top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,122,74,0.35), transparent 70%);
}
.order__text h2 { color: var(--cream); font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.order__text p { color: rgba(247,242,232,0.85); margin: 0; }
.order__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* =========== FOOTER =========== */
.footer { background: var(--green-900); color: var(--cream); padding-top: 72px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__logo { filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer__brand p { color: rgba(247,242,232,0.7); font-size: 14px; max-width: 320px; }
.footer__col h5 { color: var(--cream); font-size: 15px; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer__col a {
  display: block;
  color: rgba(247,242,232,0.7);
  font-size: 15px;
  padding: 4px 0;
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--terra); }
.socials { display: flex; gap: 10px; margin-bottom: 16px; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(247,242,232,0.08);
  color: var(--cream);
  padding: 0;
}
.socials a:hover { background: var(--terra); color: var(--cream); }
.footer__addr { color: rgba(247,242,232,0.6); font-size: 13px; margin: 0; }
.footer__bar { border-top: 1px solid rgba(247,242,232,0.12); padding: 20px 0; }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  color: rgba(247,242,232,0.6);
  font-size: 13px;
}

/* =========== REVEAL on scroll =========== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========== RESPONSIVE =========== */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    inset-inline-start: 0;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg--featured { transform: none; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .branch-grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; gap: 32px; }
  .why__list { grid-template-columns: 1fr; }
  .order__card { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero__trust { gap: 18px; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1; }
  .order__buttons { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* =========== RTL tweaks =========== */
html[dir="rtl"] .hero__title--accent { font-style: normal; }
html[dir="rtl"] .hero__chip,
html[dir="rtl"] .pkg__tag,
html[dir="rtl"] .dish__badge,
html[dir="rtl"] .branch__tag,
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
