/* ===========================================
   LEIL COFFEE | ليل — Links
   links.colartdigitalmarketingagency.com/leil/
   Clean white, charcoal & burnt orange
=========================================== */

:root {
  --orange:    #c75f28;
  --orange-dk: #a94c1c;
  --orange-lt: #fbeee6;
  --char:      #231f20;
  --char-2:    #4a4446;
  --muted:     #8b8384;
  --bg:        #ffffff;
  --bg-warm:   #faf6f2;
  --line:      rgba(35, 31, 32, .1);
  --line-hi:   rgba(35, 31, 32, .2);
  --whatsapp:  #25d366;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Tajawal', 'Outfit', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--char);
  background:
    radial-gradient(70% 38% at 50% 0%, var(--bg-warm), transparent 75%),
    var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* ============ TOP BAR ============ */
.topbar {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display: flex;
  justify-content: flex-end;
}
.share {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hi);
  background: #fff;
  color: var(--char);
  transition: background .3s, color .3s, border-color .3s;
}
.share:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.share svg { width: 17px; height: 17px; }

/* ============ PAGE ============ */
.page {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* ============ HERO ============ */
.hero { text-align: center; padding-top: 6px; }
.mark {
  width: clamp(190px, 56vw, 236px);
  margin: 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mark svg { width: 100%; height: auto; overflow: visible; }
.mark .bar    { fill: var(--char); }
.mark .letter { fill: var(--orange); transform-box: fill-box; transform-origin: center bottom; }
.mark .dot    { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.tagline {
  margin-top: 16px;
  font-family: var(--font-ar);
  font-weight: 500;
  font-size: 15px;
  color: var(--char-2);
}
.tagline b { color: var(--orange); font-weight: 700; }

/* ============ MENU ============ */
.menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 20px 16px 16px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 34px -16px rgba(199, 95, 40, .55);
  transition: transform .35s var(--ease), background .3s, box-shadow .35s;
}
.menu:hover { transform: translateY(-3px); background: var(--orange-dk); box-shadow: 0 22px 40px -16px rgba(199, 95, 40, .65); }
.menu__icon {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
}
.menu__icon svg { width: 28px; height: 28px; }
.menu__text { flex: 1; min-width: 0; text-align: left; }
.menu__en { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; }
.menu__ar { display: block; font-family: var(--font-ar); font-size: 15px; font-weight: 500; opacity: .85; }
.menu__go svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.menu:hover .menu__go svg { transform: translateX(4px); }
.menu::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

/* ============ SECTIONS ============ */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--char);
}
.label span[lang="ar"] { font-family: var(--font-ar); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--orange); font-weight: 700; }
.label::after { content: ''; flex: 1; height: 1px; background: var(--line-hi); }

.links { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.link {
  --tone: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(35, 31, 32, .03);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.link:hover { transform: translateY(-2px); border-color: var(--tone); box-shadow: 0 16px 30px -20px rgba(35, 31, 32, .35); }
.link__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--orange-lt);
  color: var(--orange);
  transition: background .3s, color .3s, transform .45s var(--spring);
}
.link__icon svg { width: 21px; height: 21px; }
.link:hover .link__icon { background: var(--tone); color: #fff; transform: rotate(-6deg); }
.link--wa { --tone: var(--whatsapp); }
.link--wa .link__icon { background: #e4f8ec; color: #1ea952; }
.link--ig { --tone: #e1306c; }
.link--ig .link__icon { background: #fde8ef; color: #e1306c; }
.link--fb { --tone: #0866ff; }
.link--fb .link__icon { background: #e7efff; color: #0866ff; }
.link__text { flex: 1; min-width: 0; }
.link__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.link__en { font-size: 16px; font-weight: 600; }
.link__ar { font-family: var(--font-ar); font-size: 15px; font-weight: 700; color: var(--orange); }
.link__sub { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__go { flex: none; color: var(--muted); transition: color .3s, transform .35s var(--ease); }
.link__go svg { width: 18px; height: 18px; }
.link:hover .link__go { color: var(--char); transform: translateX(3px); }

/* ============ GET LISTED (Colart) ============ */
.listed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 16px 16px 20px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-hi);
  background: var(--bg-warm);
  transition: border-color .3s, background .3s;
}
.listed:hover { border-color: var(--whatsapp); background: #fff; }
.listed__q { display: block; font-size: 14px; color: var(--muted); }
.listed__a { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.listed__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease);
}
.listed__icon svg { width: 22px; height: 22px; fill: currentColor; }
.listed:hover .listed__icon { transform: scale(1.08); }

/* ============ FOOTER ============ */
.footer {
  background: var(--char);
  color: rgba(255, 255, 255, .6);
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom, 0px));
}
.footer__credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  text-align: center;
}
.footer__credit { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; }
.footer__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.footer a { color: #f3a679; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer a:hover { border-color: #f3a679; }
.footer__sep { color: rgba(255, 255, 255, .25); }
@media (max-width: 440px) { .footer__sep { display: none; } .footer__credits { flex-direction: column; } }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--char);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ ENTRANCE: "the pour" ============ */
@media (prefers-reduced-motion: no-preference) {
  .js .mark .bar, .js .mark .letter, .js .mark .dot { opacity: 0; }
  /* 1. the three strokes of ليل fill up from the bottom, like a cup being poured */
  .mark.play .bar    { animation: pour .9s var(--d) cubic-bezier(.65, 0, .35, 1) both; }
  /* 2. the two dots drip in */
  .mark.play .dot    { animation: drip .7s var(--d) var(--spring) both; }
  /* 3. LEIL COFFEE lights up letter by letter along the arc */
  .mark.play .letter { animation: light .55s var(--d) var(--spring) both; }
  .tagline { animation: rise .8s 2s var(--ease) both; }
  .menu    { animation: rise .8s 2.1s var(--ease) both; }
  .menu::after { animation: sheen 1.3s 2.8s ease both; }
  .label, .links li, .listed { animation: rise .7s var(--ease) both; }
  .label:nth-of-type(1) { animation-delay: 2.25s; }
  .links--contact li:nth-child(1) { animation-delay: 2.3s; }
  .links--contact li:nth-child(2) { animation-delay: 2.36s; }
  .label:nth-of-type(2) { animation-delay: 2.42s; }
  .links--follow li:nth-child(1) { animation-delay: 2.48s; }
  .links--follow li:nth-child(2) { animation-delay: 2.54s; }
  .listed { animation-delay: 2.62s; }
}
@keyframes pour  { from { opacity: 1; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes drip  { 0% { opacity: 0; transform: translateY(-260%) scale(.6, 1.3); } 70% { opacity: 1; transform: translateY(8%) scale(1.15, .85); } 100% { opacity: 1; transform: none; } }
@keyframes light { from { opacity: 0; transform: translateY(30%) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes rise  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { left: -60%; } to { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .mark .bar, .js .mark .letter, .js .mark .dot { opacity: 1 !important; }
}
