/* ==========================================================
   Honey Sweet — QR links page
   Palette is shared with the POS (assets/css/style.css):
   dark espresso sidebar tones + the gold gradient.
   ========================================================== */

@font-face {
  font-family: 'UbuntuArabic';
  src: url('../fonts/ubuntu-arabic-R.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'UbuntuArabic';
  src: url('../fonts/ubuntu-arabic-B.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --gold: #c9a44c;
  --gold-light: #e6c97a;
  --gold-dark: #8a6d2f;
  --gold-shine: #f4d77a;
  --cream: #fdf8ef;
  --cream-soft: rgba(253, 248, 239, 0.66);
  --ink: #120f0a;
  --ink-2: #1a1610;
  --ink-3: #2a2418;
  --line: rgba(201, 164, 76, 0.22);
  --line-strong: rgba(230, 201, 122, 0.5);
  --glass: rgba(253, 244, 220, 0.045);
  --glass-hi: rgba(253, 244, 220, 0.08);
  --gold-gradient: linear-gradient(135deg, #f4d77a 0%, #c9a44c 52%, #8a6d2f 100%);
  --radius: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: 'UbuntuArabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--gold-shine);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- Ambient backdrop ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, #2a2418 0%, rgba(42, 36, 24, 0) 60%),
    linear-gradient(180deg, #16120c 0%, #0e0b07 100%);
}
.bag-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bag-lines path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  opacity: 0.32;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s var(--ease-out) forwards;
}
.bag-lines path:nth-child(2) { animation-delay: 0.15s; }
.bag-lines path:nth-child(3) { animation-delay: 0.55s; }
.bag-lines path:nth-child(4) { animation-delay: 0.7s; }
.bag-lines path:nth-child(5) { animation-delay: 0.35s; }
.bag-lines path:nth-child(6) { animation-delay: 0.5s; }
.bag-lines path:nth-child(7) { animation-delay: 0.85s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.glow-a {
  width: 70vmax; height: 70vmax;
  top: -38vmax; inset-inline-start: -30vmax;
  background: radial-gradient(circle, rgba(201, 164, 76, 0.28), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  width: 60vmax; height: 60vmax;
  bottom: -30vmax; inset-inline-end: -28vmax;
  background: radial-gradient(circle, rgba(184, 98, 27, 0.22), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}

/* Floating honeycomb cells, echoing the hexagons in the logo */
.hexes { position: absolute; inset: 0; }
.hex {
  position: absolute;
  bottom: -40px;
  width: var(--s, 14px);
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-gradient);
  opacity: 0;
  animation: rise var(--d, 16s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--o, 0.22); }
  85%  { opacity: var(--o, 0.22); }
  100% { transform: translate3d(var(--x, 20px), -110vh, 0) rotate(240deg); opacity: 0; }
}

/* ---------- Page column ---------- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 14px)
    calc(env(safe-area-inset-right, 0px) + var(--gutter))
    calc(env(safe-area-inset-bottom, 0px) + 28px)
    calc(env(safe-area-inset-left, 0px) + var(--gutter));
}

main { transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease; }
main.swapping { opacity: 0; transform: translateY(6px); filter: blur(4px); }

/* ---------- Language switcher ---------- */
.lang {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: max-content;
  margin-inline-start: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(26, 22, 16, 0.6);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fadeDown 0.7s var(--ease-out) 0.9s forwards;
}
.lang button {
  position: relative;
  z-index: 1;
  min-width: 58px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cream-soft);
  transition: color 0.3s ease;
}
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--gold-gradient);
  box-shadow: 0 4px 16px rgba(201, 164, 76, 0.4);
  transform: translateX(calc(var(--idx, 0) * 100%));
  transition: transform 0.45s var(--ease-spring);
}
/* The grid itself flips in RTL, so the thumb must mirror its index */
[dir="rtl"] .lang-thumb { left: auto; right: 4px; transform: translateX(calc(var(--idx, 0) * -100%)); }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 26px;
  margin-bottom: 18px;
}
.strands {
  position: absolute;
  top: -30px;
  left: 50%;
  width: 100vw;
  max-width: 760px;
  height: 340px;
  transform: translateX(-50%);
  z-index: 0;
  touch-action: pan-y;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 55%, transparent 100%);
}
/* No WebGL2: a soft CSS halo stands in for the shader */
.strands.fallback {
  background:
    radial-gradient(40% 22% at 50% 52%, rgba(244, 215, 122, 0.45), transparent 70%),
    radial-gradient(60% 12% at 50% 56%, rgba(217, 142, 43, 0.35), transparent 70%);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.6; transform: translateX(-50%) scale(1.06); } }

.medallion {
  position: relative;
  z-index: 1;
  width: 156px;
  aspect-ratio: 1;
  margin-top: 34px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6) rotate(-25deg);
  filter: blur(14px);
  animation: logoIn 1.3s var(--ease-out) 0.25s forwards;
}
@keyframes logoIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.medallion .ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, #f4d77a 18%, transparent 32%, transparent 52%, #c9a44c 64%, #fff3d1 70%, transparent 82%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 7s linear infinite;
}
.medallion .disc {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2418, #120f0a 70%);
  box-shadow:
    0 0 0 1px rgba(201, 164, 76, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(244, 215, 122, 0.22);
}
.medallion img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(244, 215, 122, 0.28));
  animation: float 6s ease-in-out 1.6s infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.medallion .gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.medallion .gloss::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 246, 216, 0.35), transparent);
  transform: skewX(-18deg);
  animation: sheen 5.5s ease-in-out 2.2s infinite;
}
.medallion.ready { opacity: 1; transform: none; filter: none; animation: none; }
.medallion.ready.bump { animation: bump 0.6s var(--ease-spring); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes sheen {
  0%   { left: -60%; }
  35%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.brand {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  background: linear-gradient(110deg, #8a6d2f 0%, #c9a44c 28%, #fff3d1 48%, #e6c97a 60%, #8a6d2f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: rise-in 0.9s var(--ease-out) 0.75s forwards, shimmer 6s linear 1.6s infinite;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -150% 0; }
}
.tagline {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 15px;
  color: var(--cream-soft);
  opacity: 0;
  animation: rise-in 0.9s var(--ease-out) 0.95s forwards;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hex-divider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.hex-divider i {
  width: 9px;
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-gradient);
  opacity: 0;
  animation: pop 0.5s var(--ease-spring) forwards;
}
.hero .hex-divider i:nth-child(1) { animation-delay: 1.15s; }
.hero .hex-divider i:nth-child(2) { animation-delay: 1.25s; }
.hero .hex-divider i:nth-child(3) { animation-delay: 1.35s; }
.foot .hex-divider i { opacity: 0.7; animation: none; }
@keyframes pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 0.85; transform: scale(1); }
}

/* ---------- Blocks ---------- */
.block { margin-top: 30px; }
.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
[lang="en"] .block-title { text-transform: uppercase; letter-spacing: 0.16em; }
.block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--fwd, right), var(--line-strong), transparent);
}
[dir="rtl"] .block-title::after { --fwd: left; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.8s var(--ease-out) calc(var(--i, 0) * 90ms),
    transform 0.8s var(--ease-out) calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 243, 209, 0.06);
  overflow: hidden;
  isolation: isolate;
}
/* animated gold edge that lights up on interaction */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, #f4d77a 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.socials { display: grid; gap: 12px; }
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px 12px 12px;
  padding-inline: 12px 16px;
}
.social .chip {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--gold-gradient);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(201, 164, 76, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.45s var(--ease-spring);
}
.social .chip svg { width: 24px; height: 24px; }
.social .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.social .name { font-size: 16.5px; font-weight: 700; }
.social .handle {
  font-size: 13.5px;
  color: var(--cream-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}
[dir="rtl"] .social .handle { text-align: right; }
.go {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--gold-light);
  opacity: 0.75;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}
[dir="rtl"] .go { transform: scaleX(-1); }

/* brand tint wash behind the chip on interaction */
.social::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
[dir="rtl"] .social::after { background: radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%); }

.tap { transition: transform 0.25s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease; }
.tap:active { transform: scale(0.97); }

@media (hover: hover) {
  .card.social:hover { border-color: var(--line-strong); }
  .card.social:hover::before,
  .card.social:hover::after { opacity: 1; }
  .card.social:hover .chip { transform: rotate(-8deg) scale(1.06); }
  .card.social:hover .go { opacity: 1; transform: translateX(4px); }
  [dir="rtl"] .card.social:hover .go { transform: scaleX(-1) translateX(4px); }
}
.card.social:active::before,
.card.social:active::after { opacity: 1; }

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.card::before { animation: orbit 3.2s linear infinite; }
@keyframes orbit { to { --a: 360deg; } }

/* Tap ripple */
.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 215, 122, 0.45), rgba(244, 215, 122, 0) 70%);
  transform: scale(0);
  animation: ripple 0.7s var(--ease-out) forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* ---------- Branches ---------- */
.branch { padding: 18px; }
.branch + .branch { margin-top: 14px; }
.branch-head { display: flex; align-items: center; gap: 12px; }
.branch-head h3 { font-size: 17px; font-weight: 700; }
.badge {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-gradient);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.addr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
}
.addr > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--gold-light); }
.addr [data-i18n$="_city"] { color: var(--gold-light); font-weight: 700; }

.phones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.phones.two { grid-template-columns: 1fr 1fr; }
.pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(201, 164, 76, 0.1);
  border: 1px solid rgba(201, 164, 76, 0.32);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--gold-shine);
}
.pill svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pill svg { animation: ring 4.5s ease-in-out infinite; transform-origin: 50% 50%; }
.phones .pill:nth-child(2) svg { animation-delay: 0.4s; }
@keyframes ring {
  0%, 82%, 100% { transform: rotate(0); }
  85% { transform: rotate(-14deg); }
  88% { transform: rotate(12deg); }
  91% { transform: rotate(-8deg); }
  94% { transform: rotate(4deg); }
}
@media (hover: hover) {
  .pill:hover { background: rgba(201, 164, 76, 0.18); border-color: var(--line-strong); }
}
@media (max-width: 390px) {
  .phones.two { gap: 8px; }
  .phones.two .pill { font-size: 14.5px; padding: 0 8px; gap: 6px; letter-spacing: 0; }
  .phones.two .pill svg { width: 15px; height: 15px; }
}
@media (max-width: 335px) {
  .phones.two { grid-template-columns: 1fr; }
}

.map-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--gold-gradient);
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 10px 26px rgba(201, 164, 76, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.map-btn > svg:first-child { width: 20px; height: 20px; }
.map-btn span { flex: 1; }
.map-btn .go { color: var(--ink); opacity: 0.8; }
.map-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: sheen 4.8s ease-in-out 1s infinite;
}
.branch:nth-of-type(2) .map-btn::after { animation-delay: 3.4s; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out), opacity 0.6s ease;
  opacity: 0;
}
.gallery img.loaded { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 36px;
  text-align: center;
  font-size: 13px;
  color: var(--cream-soft);
}
.foot p { margin-top: 12px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hex { display: none; }
  .reveal { opacity: 1; transform: none; }
}
