/* ===========================================
   NAKHA KHASA | نكهة خاصة — Links
   links.colartdigitalmarketingagency.com/nakhakhasa/
   Built on the Nakha Khasa brand tokens
=========================================== */

/* ============ TOKENS ============ */
:root {
  --bg-deep:    #faf6ef;
  --bg-soft:    #f2ece1;
  --bg-card:    #ffffff;

  --green-50:   #eaf6ec;
  --green-300:  #5ec46e;
  --green-500:  #39b24a;
  --green-600:  #2e9a3d;
  --green-700:  #237a2f;
  --green-logo: #166e38;

  --red-50:     #fbeaea;
  --red-500:    #ce2327;
  --red-600:    #ad1b1f;
  --red-shadow: rgba(206, 35, 39, .22);

  --orange:     #f39c23;
  --orange-50:  #fdf1e0;

  --ink:        #1c1f1d;
  --ink-soft:   #3a423d;
  --ink-mute:   #6b736e;
  --hairline:   rgba(28, 31, 29, .10);
  --hairline-strong: rgba(28, 31, 29, .18);

  --font-display:    'Amiri', 'Cormorant Garamond', serif;
  --font-display-en: 'Cormorant Garamond', Georgia, serif;
  --font-body:       'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 40px -22px rgba(28, 31, 29, .18);
  --shadow-deep: 0 30px 60px -20px rgba(28, 31, 29, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  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: 3px solid var(--green-500); outline-offset: 3px; border-radius: 8px; }

/* Subtle grain (from the Nakha Khasa site) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.18  0 0 0 0 0.15  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ============ TOP BAR ============ */
.topbar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color .25s, border-color .25s, background .25s;
}
.chip:hover { color: var(--green-600); border-color: var(--green-300); background: #fff; }
.chip svg { width: 16px; height: 16px; }
.chip--icon { width: 40px; padding: 0; justify-content: center; }

/* ============ PAGE ============ */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}

/* Warm glow behind the logo */
.page::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  width: min(560px, 100vw); height: 460px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(243, 156, 35, .16), transparent 70%),
    radial-gradient(closest-side at 30% 60%, rgba(57, 178, 74, .10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ============ IDENTITY ============ */
.identity { text-align: center; }
.logo {
  width: clamp(190px, 58vw, 240px);
  margin: 4px auto 0;
  filter: drop-shadow(0 18px 30px rgba(22, 110, 56, .14));
}
/* ============ MENU (primary) ============ */
.menu-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px 18px 18px;
  border-radius: 22px;
  background: var(--red-500);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 18px 36px -14px var(--red-shadow), 0 0 0 1px rgba(206, 35, 39, .25);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.menu-cta:hover {
  transform: translateY(-2px);
  background: var(--red-600);
  box-shadow: 0 22px 40px -14px var(--red-shadow), 0 0 0 1px rgba(206, 35, 39, .4);
}
/* soft sheen across the button once on load */
.menu-cta::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.menu-cta__icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
}
.menu-cta__icon svg { width: 26px; height: 26px; }
.menu-cta__text { flex: 1; min-width: 0; text-align: start; }
.menu-cta__en { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.menu-cta__ar { display: block; text-align: left; margin-top: 2px; font-family: var(--font-display); font-size: 17px; font-weight: 700; opacity: .9; }
.menu-cta__arrow svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.menu-cta:hover .menu-cta__arrow svg { transform: translateX(4px); }

/* ============ LINKS ============ */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 14px;
  font-family: var(--font-display-en);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--hairline-strong); }
.section-label span[lang="ar"] { font-family: var(--font-display); font-style: normal; font-size: 17px; color: var(--green-logo); }

.links { list-style: none; display: grid; gap: 12px; }
.link {
  --tone: var(--green-600);
  --tone-bg: var(--green-50);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  min-height: 72px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(28, 31, 29, .03);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.link:hover { transform: translateY(-3px); border-color: var(--green-300); box-shadow: var(--shadow-soft); }
.link--red    { --tone: var(--red-500);  --tone-bg: var(--red-50); }
.link--orange { --tone: #d97f0b;         --tone-bg: var(--orange-50); }
.link--wa     { --tone: #1ea952;         --tone-bg: #e4f8ec; }
.link--wa:hover     { border-color: rgba(37, 211, 102, .45); }
.link--red:hover    { border-color: rgba(206, 35, 39, .35); }
.link--orange:hover { border-color: rgba(243, 156, 35, .5); }

.link__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tone-bg);
  color: var(--tone);
  display: grid;
  place-items: center;
  transition: background .25s, color .25s;
}
.link:hover .link__icon { background: var(--tone); color: #fff; }
.link__icon svg { width: 22px; height: 22px; }
.link__text { flex: 1; min-width: 0; }
.link__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.link__en { font-size: 17px; font-weight: 700; color: var(--ink); }
.link__ar { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--green-logo); }
.link__sub { display: block; font-size: 14px; color: var(--ink-mute); direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__go { flex: none; color: var(--ink-mute); transition: color .25s, transform .3s var(--ease); }
.link__go svg { width: 18px; height: 18px; }
.link:hover .link__go { color: var(--tone); 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: var(--radius-card);
  border: 1.5px dashed var(--hairline-strong);
  background: rgba(255, 255, 255, .5);
  transition: border-color .25s, background .25s;
}
.listed:hover { border-color: #25d366; background: #fff; }
.listed__q { display: block; font-size: 15px; color: var(--ink-mute); }
.listed__a { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.listed__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease);
}
.listed__icon svg { width: 22px; height: 22px; }
.listed:hover .listed__icon { transform: scale(1.08); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
  border-top: 1px solid var(--hairline);
  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;
  color: var(--ink-mute);
  text-align: center;
}
.footer__credit { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; }
.footer__credit-label {
  font-family: var(--font-display-en);
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
}
.footer__credit a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.footer__credit a:hover { color: var(--green-600); border-bottom-color: var(--green-500); }
.footer__sep { color: var(--hairline-strong); font-weight: 700; }
@media (max-width: 420px) { .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: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ ENTRANCE (one sequence) ============ */
@media (prefers-reduced-motion: no-preference) {
  .logo        { animation: logoIn 1.1s var(--ease) both; }
  .menu-cta    { animation: fadeUp .9s .4s var(--ease) both; }
  .menu-cta::after { animation: sheen 1.4s 1.2s ease both; }
  .section-label { animation: fadeUp .9s .5s var(--ease) both; }
  .links li    { animation: fadeUp .8s var(--ease) both; }
  .links--contact li { animation-delay: .58s; }
  .section-label:nth-of-type(2) { animation-delay: .66s; }
  .links--follow li:nth-child(1) { animation-delay: .74s; }
  .links--follow li:nth-child(2) { animation-delay: .82s; }
  .links--follow li:nth-child(3) { animation-delay: .90s; }
  .links--follow li:nth-child(4) { animation-delay: .98s; }
  .links--follow li:nth-child(n+5) { animation-delay: 1.06s; }
  .listed { animation: fadeUp .8s 1.14s var(--ease) both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.86) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes sheen  { from { left: -60%; } to { left: 130%; } }

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