/* Home: "Dawn over the palms". Night sky with stars turns to dawn, the sun rises behind the palms,
   and the brand mark sprouts like a palm offshoot. Below the hero: open-now status, hours on a sun arc,
   branches, delivery apps and social accounts. */
:root { --night: #07140F; --cream-l: #F6EEDD; --sun: #F6C979; --gold-btn: linear-gradient(180deg, #F3D28E, #D9AE62); }

.intro { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: var(--night); transition: opacity .5s, transform .5s; scrollbar-width: none; }
.intro::-webkit-scrollbar { display: none; }
.intro.leaving { opacity: 0; transform: scale(1.03); pointer-events: none; }

/* ---------- Hero scene ---------- */
.hero { position: relative; height: 100dvh; min-height: 620px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -5; }
.sky-night { background: radial-gradient(120% 70% at 50% 100%, #173B2C 0%, #0D251B 38%, #07140F 75%); }
.sky-dawn { opacity: 0; background:
  radial-gradient(70% 45% at 50% 82%, rgba(255, 214, 140, .95) 0%, rgba(240, 180, 100, .55) 30%, rgba(240, 180, 100, 0) 62%),
  linear-gradient(180deg, #0C2219 0%, #1E4434 30%, #5E6E4E 52%, #C99A5E 72%, #F0C98A 86%, #F6DDAA 100%); }
.stars { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; transition: opacity 2.6s ease; }
.sun { position: absolute; z-index: -3; left: 50%; bottom: 2%; width: min(46vw, 260px); aspect-ratio: 1; margin-left: calc(min(46vw, 260px) / -2); border-radius: 50%;
  background: radial-gradient(circle, #FFF3D6 0%, #FBD891 45%, #F2B866 70%, rgba(242, 184, 102, 0) 71%);
  box-shadow: 0 0 120px 50px rgba(246, 201, 121, .35); transform: translateY(70%); opacity: 0; }
.palms { position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; width: 100%; height: 40%; }
.palms .palm { fill: #040D09; }
.palms .far { fill: #0C2219; opacity: .9; }
.palms .crown { transform-box: fill-box; transform-origin: 50% 85%; animation: sway 7s ease-in-out infinite; }
.palms .far .crown { animation-duration: 9s; animation-delay: -3s; }
@keyframes sway { 50% { transform: rotate(2.2deg); } }
.palms .ground { fill: #06120D; }

/* Dawn: only in day mode. */
.day.go .sky-dawn { animation: dawn 3.4s .5s ease forwards; }
.day.go .stars { opacity: .15; transition-delay: .8s; }
.day.go .sun { animation: sunrise 3.6s .6s cubic-bezier(.2, .7, .2, 1) forwards; }
.day.go .palms .palm:not(.far) { animation: silhouette 3.4s .5s ease forwards; }
@keyframes dawn { to { opacity: 1; } }
@keyframes sunrise { to { transform: translateY(0); opacity: 1; } }
@keyframes silhouette { to { fill: #0E2A1F; } }
/* Night mode keeps the stars and a soft glow on the horizon. */
.night .sun { opacity: 0; }
.night.go .sky-night { animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { filter: brightness(1.15); } }

.intro-lang { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px; z-index: 3; background: rgba(255, 255, 255, .08); color: var(--cream-l); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.intro-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 22px 84px; width: min(440px, 100%); }

.greet { margin: 0 0 14px; font-family: var(--display); font-size: 14px; letter-spacing: .02em; color: rgba(246, 238, 221, .8); opacity: 0; }
.sprout { width: 50px; height: auto; overflow: visible; margin-bottom: 12px; filter: drop-shadow(0 6px 22px rgba(246, 201, 121, .35)); }
.sprout path { stroke-dasharray: 160; stroke-dashoffset: 160; }
.sprout .v { stroke: #D8BE8E; }
.sprout .x { stroke: var(--cream-l); }
.go .sprout .a1 { animation: grow .7s 1.1s cubic-bezier(.5, 0, .2, 1) forwards; }
.go .sprout .a2 { animation: grow .6s 1.65s cubic-bezier(.5, 0, .2, 1) forwards; }
.go .sprout .a3 { animation: grow .7s 2s cubic-bezier(.3, 0, .2, 1.3) forwards; }
@keyframes grow { to { stroke-dashoffset: 0; } }

.wordmark { margin: 0; width: min(185px, 46vw); aspect-ratio: 700 / 665; opacity: 0; transform: translateY(14px); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .35)); }
.wm-mask { display: block; width: 100%; height: 100%; background: var(--cream-l); -webkit-mask: url(/assets/wordmark.png) center / contain no-repeat; mask: url(/assets/wordmark.png) center / contain no-repeat; }
.intro-tag { margin: 4px 0 0; font-family: var(--display); font-size: 14.5px; line-height: 1.8; color: rgba(246, 238, 221, .78); opacity: 0; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 8px 15px 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: var(--cream-l); font-size: 13.5px; font-weight: 500; backdrop-filter: blur(8px); opacity: 0; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #7BD69B; box-shadow: 0 0 0 0 rgba(123, 214, 155, .7); animation: pulse 1.8s infinite; }
.status.closed i { background: var(--sun); animation: none; box-shadow: 0 0 10px rgba(246, 201, 121, .6); }
.status b { font-weight: 600; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(123, 214, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 214, 155, 0); } }
.table-chip { margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(246, 201, 121, .16); color: var(--sun); font-size: 13px; font-weight: 600; }
.intro-actions { display: grid; gap: 12px; width: 100%; margin-top: 20px; opacity: 0; transform: translateY(12px); }
.btn-gold { background: var(--gold-btn); color: #2A2216; box-shadow: 0 14px 34px -12px rgba(243, 196, 111, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-glass { background: rgba(10, 26, 20, .35); color: var(--cream-l); border: 1px solid rgba(246, 238, 221, .28); backdrop-filter: blur(8px); }
.btn-glass .spark { color: var(--sun); }
.day @keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

.go .greet { animation: rise .8s .4s ease forwards; }
.go .wordmark { animation: rise .9s 2.4s cubic-bezier(.2, .8, .2, 1) forwards; }
.go .intro-tag { animation: rise .8s 2.75s ease forwards; }
.go .status { animation: rise .8s 3s ease forwards; }
.go .intro-actions { animation: rise .8s 3.2s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Quick buttons and social row ---------- */
.status { cursor: pointer; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 14px; opacity: 0; transform: translateY(12px); }
.q-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 62px; border-radius: 18px; background: rgba(10, 26, 20, .48); border: 1px solid rgba(246, 238, 221, .2); color: var(--cream-l); font-size: 12.5px; font-weight: 500; backdrop-filter: blur(8px); transition: background .2s, transform .15s; }
.q-btn:active { transform: scale(.95); }
.q-btn:hover { background: rgba(10, 26, 20, .5); }
.q-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--sun); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soc-mini { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 10px; }
.soc-mini .soc { width: 42px; height: 42px; border-radius: 50%; background: rgba(7, 20, 15, .45); border: 1px solid rgba(246, 238, 221, .2); color: var(--cream-l); backdrop-filter: blur(8px); }
.soc-mini .soc svg { width: 20px; height: 20px; }
.go .quick { animation: rise .8s 3.4s ease forwards; }
.go .soc-mini .soc { animation: popin .55s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(3.7s + var(--i, 0) * .07s); }

/* ---------- Info sheet ---------- */
.info-sheet { max-width: 620px; left: 0; right: 0; margin: 0 auto; transition: transform .25s ease; }
.info-sheet.closing { transform: translateY(100%) !important; transition: transform .22s ease-in; }
.info-sheet .sheet-h h3 { display: flex; align-items: center; gap: 10px; }
.info-sheet .sheet-h h3 svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-sheet .blk { padding: 0 0 6px; }
.info-sheet .blk .sub { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }

/* Hours on a sun arc */
.blk { opacity: 1; }
.arc { position: relative; width: 100%; max-width: 360px; margin: 6px auto 0; }
.arc svg { width: 100%; height: auto; overflow: visible; }
.arc .track { fill: none; stroke: var(--gold-l); stroke-width: 10; stroke-linecap: round; }
.arc .open { fill: none; stroke: url(#arcGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.blk.seen .arc .open { transition: stroke-dashoffset 1.4s .2s cubic-bezier(.4, 0, .2, 1); stroke-dashoffset: 0; }
.arc .now { opacity: 0; transition: opacity .5s 1.4s; }
.blk.seen .arc .now { opacity: 1; }
.arc .now circle.halo { fill: rgba(246, 201, 121, .35); animation: halo 2.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 50% { transform: scale(1.5); opacity: .4; } }
.arc .tick { font: 500 11px var(--latin); fill: var(--muted); }
.arc .mid { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.arc .mid b { display: block; font-family: var(--display); font-size: 22px; color: var(--green-d); }
.arc .mid span { font-size: 13px; color: var(--muted); }
.hours { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 16px; background: var(--cream); font-size: 14.5px; }
.hours li.today { background: var(--green-t); outline: 1.5px solid rgba(59, 103, 78, .35); }
.hours li b { font-weight: 600; color: var(--green-d); }
.hours li span { color: var(--green); font-weight: 500; text-align: end; }
.hours li em { font-style: normal; font-size: 11px; color: #fff; background: var(--green); border-radius: 999px; padding: 2px 8px; margin-inline-start: 6px; }

/* Branches */
.branches { display: grid; gap: 10px; }
.branch { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--cream); color: inherit; text-decoration: none; transition: transform .2s; }
.branch:active { transform: scale(.98); }
.pin { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--green); position: relative; overflow: hidden; }
.pin::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 10px 10px; }
.pin svg { position: relative; width: 24px; height: 24px; fill: var(--sun); }
.blk.seen .pin svg { animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.blk.seen .branch:nth-child(2) .pin svg { animation-delay: .15s; }
@keyframes drop { from { transform: translateY(-26px); opacity: 0; } }
.branch div { flex: 1; min-width: 0; }
.branch b { display: block; font-family: var(--display); font-weight: 600; color: var(--green-d); }
.branch small { color: var(--muted); }
.branch .go-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--green); font-size: 15px; }
html[dir="rtl"] .branch .go-ic { transform: scaleX(-1); }

/* Delivery apps */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-pill { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 16px; font-weight: 700; font-family: var(--latin); font-size: 15px; letter-spacing: .01em; opacity: 0; transform: scale(.85); }
html[lang="ar"] .app-pill { font-family: var(--display); }
.blk.seen .app-pill { animation: popin .5s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.blk.seen .app-pill:nth-child(2) { animation-delay: .08s; } .blk.seen .app-pill:nth-child(3) { animation-delay: .16s; } .blk.seen .app-pill:nth-child(4) { animation-delay: .24s; }
@keyframes popin { to { opacity: 1; transform: none; } }

/* Social */
.socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.soc { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--cream-l); opacity: 0; transform: translateY(14px) scale(.8); transition: background .2s; }
.soc svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soc:hover { background: var(--green-d); }
.soc:active { animation: wiggle .4s; }
.blk.seen .soc { animation: popin .55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.blk.seen .soc:nth-child(2) { animation-delay: .07s; } .blk.seen .soc:nth-child(3) { animation-delay: .14s; } .blk.seen .soc:nth-child(4) { animation-delay: .21s; } .blk.seen .soc:nth-child(5) { animation-delay: .28s; }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }


@media (max-height: 700px) { .wordmark { width: min(150px, 40vw); } .sprout { width: 40px; } .greet { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .sprout path { stroke-dashoffset: 0; }
  .sky-dawn { opacity: 1; } .day .sun { opacity: 1; transform: none; }
  .greet, .wordmark, .intro-tag, .status, .intro-actions, }
.info-sheet .hours li, .info-sheet .branch { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.info-sheet .hours li.today { background: var(--green-t); }

/* Depth with the phone's tilt: --dx / --dy run from -1 to 1. */
.stars { translate: calc(var(--dx, 0) * -6px) calc(var(--dy, 0) * -4px); }
.sun { translate: calc(var(--dx, 0) * -14px) calc(var(--dy, 0) * -8px); }
.palms .far-g { transform: translate(calc(var(--dx, 0) * -12px), calc(var(--dy, 0) * -4px)); }
.palms .near-g { transform: translate(calc(var(--dx, 0) * 22px), calc(var(--dy, 0) * 6px)); }
.palms { left: -30px; right: -30px; width: calc(100% + 60px); }
.intro-core { translate: calc(var(--dx, 0) * 5px) calc(var(--dy, 0) * 3px); }
