/* SI menu — the welcome screen and greeting. Loaded in order after the files before it (see index.html). */
/* welcome: a short greeting, then the language choice, on a daylight screen in the menu's theme */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 60;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: var(--w-ink);
  padding: calc(env(safe-area-inset-top, 0px) + 9vh) max(24px, env(safe-area-inset-right, 0px))
    calc(env(safe-area-inset-bottom, 0px) + 34px) max(24px, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(70% 42% at 50% 30%, var(--w-glow), transparent 72%),
    radial-gradient(90% 40% at 50% 108%, var(--w-glow), transparent 70%),
    linear-gradient(to bottom, var(--w-bg-1) 0%, var(--w-bg-2) 55%, var(--w-bg-3) 100%);
  overflow: hidden;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.welcome.out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}
/* a thin gold frame, like the edge of a printed menu card */
.welcome::before {
  content: '';
  position: absolute;
  inset: calc(env(safe-area-inset-top, 0px) + 14px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border: 1px solid var(--w-line);
  border-radius: 22px;
  pointer-events: none;
}
.welcome::after {
  content: '';
  position: absolute;
  inset: calc(env(safe-area-inset-top, 0px) + 19px) 19px calc(env(safe-area-inset-bottom, 0px) + 19px);
  border: 1px solid var(--w-line-soft);
  border-radius: 18px;
  pointer-events: none;
}
.welcome > * {
  position: relative;
  z-index: 1;
}
.w-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.welcome:not(.greeting) .w-center {
  animation: wIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.welcome:not(.greeting) .w-langs {
  animation: wIn 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.welcome.greeting .w-center,
.welcome.greeting .w-langs {
  visibility: hidden;
}
.w-logo {
  width: min(78%, 310px);
  height: auto;
  filter: drop-shadow(0 8px 18px var(--w-shadow));
}
/* the restaurant's name in place of a logo, when none is uploaded */
.w-name {
  font-family: var(--f-serif);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--w-accent);
  max-width: 90%;
}
.w-name:empty {
  display: none;
}
.top-brand b.ar-name,
.foot b.ar-name {
  font-family: var(--f-ar);
  letter-spacing: 0;
  direction: rtl;
}
.w-orn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--w-accent);
  font-size: 12px;
  width: min(70%, 240px);
}
.w-orn i {
  flex: 1;
  height: 1px;
}
.w-orn i:last-child {
  background: linear-gradient(to left, transparent, var(--w-accent));
}
.w-orn i:first-child {
  background: linear-gradient(to right, transparent, var(--w-accent));
}
.w-hello {
  font-size: 15px;
  color: var(--w-ink);
  letter-spacing: 0.02em;
}
.w-hello span {
  color: var(--w-accent);
  margin: 0 6px;
}
.w-langs {
  display: grid;
  gap: 10px;
  width: min(100%, 320px);
}
.w-langs p {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--w-soft);
  letter-spacing: 0.02em;
}
.w-langs button {
  height: 54px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--w-line);
  color: var(--w-ink);
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 6px 18px var(--w-line-soft);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.w-langs button small {
  font-size: 11px;
  color: var(--w-accent);
  letter-spacing: 0.12em;
  font-weight: 600;
  direction: ltr;
}
.w-langs button:hover,
.w-langs button:focus-visible {
  background: var(--w-hover);
  border-color: var(--w-accent);
}
.w-langs button:active {
  transform: scale(0.98);
}
.w-langs button[lang='ckb'] {
  font-family: var(--f-ku);
}

/* the greeting shown first ("good evening"), which fades into the language choice */
.w-greet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 32px;
  cursor: pointer;
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.welcome:not(.greeting) .w-greet {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.welcome.greeting .w-greet > * {
  animation: wIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.welcome.greeting .w-greet > :nth-child(2) {
  animation-delay: 0.15s;
}
.welcome.greeting .w-greet > :nth-child(3) {
  animation-delay: 0.3s;
}
.welcome.greeting .w-greet > :nth-child(4) {
  animation-delay: 0.45s;
}
.welcome.greeting .w-greet > :nth-child(5) {
  animation-delay: 0.6s;
}
.wg-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--w-accent);
  background: radial-gradient(circle, var(--w-badge-1), var(--w-badge-2));
  border: 1px solid var(--w-line);
  box-shadow: 0 8px 22px var(--w-line-soft);
  margin-bottom: 8px;
}
.wg-icon .i {
  width: 30px;
  height: 30px;
}
.w-greet h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: var(--w-ink);
  line-height: 1.4;
}
.wg-alt {
  font-size: 14px;
  color: var(--w-accent);
  letter-spacing: 0.02em;
}
.wg-alt span {
  margin: 0 8px;
  opacity: 0.6;
}
.w-greet p {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--w-soft);
  line-height: 1.7;
  max-width: 300px;
}
.wg-orn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 170px;
  color: var(--w-accent);
  margin-top: 10px;
}
.wg-orn i {
  flex: 1;
  height: 1px;
  background: var(--w-line);
}
.wg-orn .i {
  width: 18px;
  height: 18px;
}
.ku-font {
  font-family: var(--f-ku);
}
@keyframes wIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
