/* أنفاس — PDF Menu Viewer */
:root {
  --bg: #0A0A0A;
  --bar: rgba(10, 10, 10, 0.94);
  --red: #E10600;
  --red-deep: #A80500;
  --gold: #C9A66B;
  --cream: #F5F0E8;
  --muted: rgba(245, 240, 232, 0.65);
  --line: rgba(255, 255, 255, 0.1);
  --bar-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-e: env(safe-area-inset-inline-end, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.topbar {
  flex: 0 0 var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand__logo {
  display: block;
  height: 2.55rem;
  width: auto;
  object-fit: contain;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__tag {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.topbar__link {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(225, 6, 0, 0.55);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.topbar__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(225, 6, 0, 0.4);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #141414;
}

.stage__pdf {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #141414;
}

/* Mobile landing to open PDF natively */
.mobile-menu {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1.15fr 1fr;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu__visual {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.mobile-menu__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 10, 0.92) 100%);
}

.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.35rem calc(5.5rem + var(--safe-b));
  margin-top: -2.5rem;
  position: relative;
  z-index: 1;
}

.mobile-menu__logo {
  width: min(46vw, 11rem);
  height: auto;
  margin-bottom: 0.75rem;
}

.mobile-menu__title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.mobile-menu__text {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 18rem;
}

.mobile-menu__address {
  margin: 1.1rem 0 0;
  color: var(--gold);
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.btn--primary {
  margin-top: 1.35rem;
  width: min(100%, 16rem);
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  box-shadow: 0 14px 32px rgba(225, 6, 0, 0.35);
}

/* Floating contact icons over the menu */
.fab {
  position: fixed;
  inset-inline-end: calc(1rem + var(--safe-e));
  bottom: calc(1.15rem + var(--safe-b));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fab__btn {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fab__btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.fab__btn--call {
  background: linear-gradient(145deg, #2f2f2f, #111);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fab__btn--wa {
  background: linear-gradient(145deg, #25D366, #128C7E);
}

.fab__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  text-align: center;
  background: var(--bg);
  z-index: 100;
  padding: 2rem;
}

@media (max-width: 720px) {
  .topbar__tag {
    display: none;
  }

  .brand__logo {
    height: 2.25rem;
  }
}

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