/* 📘 شرح للدراسة — floors.css (جديد v11): طبقة "المبنى" فوق site.css.
   1) انتقال أبواب المصعد بين الصفحات (View Transitions) ← 2) شريط الوصول ورقم الطابق
   3) دليل المبنى في الرئيسية (لوحة استدعاء المصعد) ← 4) أزرار الطابق السابق/التالي ← 5) شريط الدعوة 24/7
   6) قائمة الهاتف كدليل طوابق. كل الألوان من متغيرات site.css، فيعمل الوضع الفاتح تلقائياً. */

/* ── 1) elevator doors between pages ───────────────────────────────── */
@view-transition { navigation: auto; }
.site-header { view-transition-name: st-header; }
.action-bar { view-transition-name: st-actions; }
.fab-stack { view-transition-name: st-fab; }
::view-transition-group(root) { animation-duration: .8s; }
::view-transition-old(root) { animation: st-vt-old .6s var(--ease-io) both; }
::view-transition-new(root) { animation: st-vt-doors .8s cubic-bezier(.7, 0, .18, 1) both; }
html:active-view-transition-type(up)::view-transition-old(root) { animation-name: st-vt-old-up; }
html:active-view-transition-type(down)::view-transition-old(root) { animation-name: st-vt-old-down; }
@keyframes st-vt-doors { from { clip-path: inset(0 50% 0 50%); filter: brightness(1.25); } 60% { filter: brightness(1.05); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes st-vt-old { to { opacity: .25; transform: scale(.985); filter: brightness(.55) saturate(.8); } }
@keyframes st-vt-old-up { to { opacity: .2; transform: translateY(-5%) scale(.99); filter: brightness(.5); } }
@keyframes st-vt-old-down { to { opacity: .2; transform: translateY(5%) scale(.99); filter: brightness(.5); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── 2) arrival strip ──────────────────────────────────────────────── */
.arrival { position: relative; padding-top: calc(var(--header-h) + 18px); padding-bottom: 0; z-index: 2; }
.arrival + .section { padding-top: clamp(28px, 4vw, 52px); }
.arrival-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line-soft); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; flex: none; }
[dir="rtl"] .crumbs svg { transform: scaleX(-1); }
.crumbs span:last-child { color: var(--gold); font-weight: 700; }
.arrival-ind { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 12px; border-radius: 12px; direction: ltr;
  background: linear-gradient(180deg, #120a02, #070402); border: 1px solid rgba(255, 182, 72, .25); box-shadow: inset 0 0 18px rgba(255, 140, 20, .12), 0 8px 24px rgba(0, 0, 0, .35); overflow: hidden; }
.arrival-ind .arr { font-style: normal; font-size: 10px; color: rgba(255, 182, 72, .2); transition: color .2s; }
.arrival-ind.going-up .arr.up, .arrival-ind.going-down .arr.down { color: #ffb648; text-shadow: 0 0 8px rgba(255, 182, 72, .9); }
.arrival-num { font: 800 26px/1 var(--font-num); letter-spacing: .08em; color: #ffb648; text-shadow: 0 0 12px rgba(255, 160, 40, .75); min-width: 2.3ch; text-align: center; font-variant-numeric: tabular-nums; }
.arrival-num.tick { animation: st-tick .18s ease-out; }
@keyframes st-tick { from { transform: translateY(-30%); opacity: .3; } }
.arrival-doors { display: flex; gap: 2px; width: 26px; height: 22px; margin-inline-start: 4px; }
.arrival-doors i { flex: 1; background: linear-gradient(90deg, #3a2a10, #7a5a22, #3a2a10); border-radius: 2px; transition: transform .6s var(--ease) .1s; }
.arrival-ind.open .arrival-doors i:first-child { transform: translateX(-70%) scaleX(.3); }
.arrival-ind.open .arrival-doors i:last-child { transform: translateX(70%) scaleX(.3); }

/* ── 3) building directory: an elevator call panel ─────────────────── */
.dir-panel { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: clamp(14px, 2.4vw, 26px); border-radius: var(--r-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 40%, rgba(217, 169, 62, .05)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-2); }
.dir-panel::before { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-xl) - 8px); border: 1px dashed rgba(217, 169, 62, .12); pointer-events: none; }
.dir-btn { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "led led go" "ico t t" "ico s s"; align-items: center; column-gap: 14px; row-gap: 4px;
  padding: 18px 18px 20px; border-radius: var(--r-lg); text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, background .3s; isolation: isolate; overflow: hidden; }
.dir-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -30%), rgba(217, 169, 62, .16), transparent 70%); opacity: 0; transition: opacity .3s; }
.dir-btn:hover, .dir-btn:focus-visible { transform: translateY(-4px); border-color: rgba(217, 169, 62, .5); box-shadow: 0 18px 44px -18px rgba(217, 169, 62, .45); }
.dir-btn:hover::before, .dir-btn:focus-visible::before { opacity: 1; }
.dir-led { grid-area: led; justify-self: start; font: 800 13px/1 var(--font-num); letter-spacing: .14em; padding: 5px 9px; border-radius: 8px; direction: ltr;
  color: #ffb648; background: #160c02; border: 1px solid rgba(255, 182, 72, .18); text-shadow: 0 0 8px rgba(255, 160, 40, .6); }
.dir-ico { grid-area: ico; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%), var(--navy-3); border: 1.5px solid rgba(217, 169, 62, .35);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .35), 0 0 0 4px rgba(217, 169, 62, .05); transition: box-shadow .35s, color .3s, border-color .3s; }
.dir-ico svg { width: 24px; height: 24px; }
.dir-btn:hover .dir-ico { border-color: var(--gold); box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .35), 0 0 0 4px rgba(217, 169, 62, .18), 0 0 22px rgba(217, 169, 62, .55); color: var(--gold-hi); }
.dir-btn b { grid-area: t; font: 800 19px/1.3 var(--font-head); }
.dir-btn small { grid-area: s; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.dir-go { grid-area: go; justify-self: end; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-soft); transition: all .3s var(--ease); }
.dir-go svg { width: 15px; height: 15px; }
[dir="rtl"] .dir-go svg { transform: scaleX(-1); }
.dir-btn:hover .dir-go { color: var(--on-gold); background: var(--grad-gold); border-color: transparent; transform: translateX(3px); }
[dir="rtl"] .dir-btn:hover .dir-go { transform: translateX(-3px); }
.dir-btn--hot { border-color: rgba(217, 169, 62, .35); background: linear-gradient(160deg, rgba(217, 169, 62, .12), transparent 55%), var(--surface); }
.dir-btn--hot .dir-led { color: #1a0f02; background: var(--grad-gold); text-shadow: none; }
.dir-btn.called .dir-ico { animation: st-called .5s ease-out; border-color: var(--gold-hi); box-shadow: 0 0 0 6px rgba(217, 169, 62, .25), 0 0 30px rgba(242, 207, 122, .9); }
@keyframes st-called { 40% { transform: scale(.9); } }
.dir-panel.rv .dir-btn { opacity: 0; transform: translateY(18px); }
.dir-panel.rv.in .dir-btn { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * 45ms), transform .6s var(--ease) calc(var(--i, 0) * 45ms), border-color .3s, box-shadow .35s; }
.dir-panel.rv.in .dir-btn:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ── 4) previous / lobby / next floor ──────────────────────────────── */
.floor-nav { padding-block: 0 clamp(64px, 8vw, 104px); }
.fn-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.fn-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; padding-inline-end: 64px; border-radius: var(--r-lg); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-soft); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; min-width: 0; }
.fn-card small { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.fn-card small .num { color: #ffb648; font-family: var(--font-num); }
.fn-card b { font: 800 18px/1.3 var(--font-head); }
.fn-card svg { position: absolute; inset-inline-end: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); transition: all .3s var(--ease); }
.fn-card:hover { transform: translateY(-3px); border-color: rgba(217, 169, 62, .45); box-shadow: 0 16px 40px -20px rgba(217, 169, 62, .4); }
.fn-card:hover svg { background: var(--grad-gold); color: var(--on-gold); border-color: transparent; }
.fn-card.next { text-align: end; align-items: flex-end; padding-inline-end: 22px; padding-inline-start: 64px; }
.fn-card.next svg { inset-inline-end: auto; inset-inline-start: 20px; }
.fn-card.home { align-items: center; text-align: center; padding: 18px 26px 18px; padding-inline-end: 26px; justify-content: center; }
.fn-card.home svg { position: static; margin: 0 auto 2px; order: -1; }
.fn-card.called svg { box-shadow: 0 0 0 6px rgba(217, 169, 62, .25), 0 0 24px rgba(242, 207, 122, .9); }
@media (max-width: 700px) { .fn-grid { grid-template-columns: 1fr 1fr; } .fn-card.home { grid-column: 1 / -1; order: 3; flex-direction: row; gap: 10px; } .fn-card.home svg { margin: 0; } .fn-card { padding-inline-end: 54px; } .fn-card.next { padding-inline-start: 54px; } }

/* ── 5) 24/7 call-to-action band ───────────────────────────────────── */
.cta-band-wrap { padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 112px); }
.cta-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 48px); border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, rgba(217, 169, 62, .16), rgba(42, 111, 230, .1) 60%, transparent), var(--surface-solid); border: 1px solid rgba(217, 169, 62, .35); box-shadow: var(--shadow-2); }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; inset-inline-end: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 169, 62, .28), transparent 65%); animation: st-breathe 7s ease-in-out infinite; }
@keyframes st-breathe { 50% { transform: scale(1.12); opacity: .7; } }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; margin: 10px 0 6px; }
.cta-band p { color: var(--text-2); max-width: 52ch; margin: 0; }
.cta-led { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px; font: 800 13px/1 var(--font-num); letter-spacing: .12em; color: #ffb648; background: #160c02; border: 1px solid rgba(255, 182, 72, .25); direction: ltr; }
.cta-led i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: st-ping 1.8s infinite; }
@keyframes st-ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.cta-band-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 6) mobile menu = floor directory ──────────────────────────────── */
.mm-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.mm-title .led { font: 800 13px/1 var(--font-num); color: #ffb648; background: #160c02; padding: 5px 9px; border-radius: 8px; direction: ltr; }
.mobile-menu a { font-size: 18px; padding: 12px 4px; }
.mobile-menu a.active { color: var(--gold); }
.mobile-menu a.active .led { color: #1a0f02; background: var(--grad-gold); padding: 3px 7px; border-radius: 6px; }
.mobile-menu a.mm-account { margin-top: 8px; border-bottom: 0; color: var(--text-2); }
.mobile-menu.open a:nth-child(n+6) { transition-delay: .3s; }
.mobile-menu.open a:nth-child(n+9) { transition-delay: .36s; }
.mobile-menu.open a:nth-child(n+12) { transition-delay: .42s; }

/* inner pages: the first section title is now the page h1 */
.section h1.sec-title { font-size: clamp(32px, 5vw, 56px); }

@media (prefers-reduced-motion: reduce) {
  .dir-panel.rv .dir-btn { opacity: 1; transform: none; }
  .cta-band::before, .cta-led i { animation: none; }
}
html.lite .cta-band::before { animation: none; }

/* v13 — plans: resident technician card */
.res-card { margin-top: 18px; padding: 24px; border-color: rgba(217,169,62,.35); background: radial-gradient(600px 240px at 100% 0, rgba(42,111,230,.12), transparent 70%), var(--surface); }
.res-head { display: flex; gap: 16px; align-items: flex-start; }
.res-head > svg { width: 40px; height: 40px; flex: none; color: var(--gold); padding: 8px; border-radius: 12px; background: rgba(217,169,62,.1); box-sizing: content-box; }
.res-tag { display: inline-block; font-size: 12px; font-weight: 800; color: #ffb648; background: rgba(255,182,72,.12); padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; }
.res-head h3 { margin: 0 0 6px; font-size: 21px; }
.res-head p { margin: 0; color: var(--text-2); line-height: 1.8; }
.res-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.res-rates div { padding: 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.15); display: grid; gap: 4px; }
.res-rates small { color: var(--muted); font-size: 12.5px; }
.res-rates b { font-size: 24px; color: var(--gold-hi); }
.res-rates b small { font-size: 12px; }
.res-rates em { font-style: normal; font-size: 12px; color: var(--text-2); }
.res-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 760px) { .res-rates { grid-template-columns: 1fr 1fr; } }
