/* بيتزا لمياء — v7: بيتزا مائلة خارجة من الفرن على حجر داكن + شعار على لوحة بيضاء + أقسام داكنة تتبدّل */
:root {
  --bg: #16120F;
  --fg: #FFF4E6;
  --orange: #F0693F;
  --gold: #F4B860;
  --font: 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --bar: 96px;                               /* ارتفاع صف الروابط */
  --lh: clamp(170px, 34vh, 264px);           /* ارتفاع الشعار (ثلاثة أضعاف السابق) */
  --lw: calc(var(--lh) * .7 + 36px);         /* عرض لوحة الشعار البيضاء */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 18px/1.7 var(--font); overflow-x: hidden; transition: background-color .9s var(--ease); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; position: relative; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }

/* ── Header: الشعار دائماً على لوحة بيضاء معلّقة ── */
.top { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .4s; }
.top::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(10,8,6,.7), transparent); transition: opacity .4s; }
.top.scrolled { background: rgba(22,18,15,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top.scrolled::before { opacity: 0; }
.top-row { display: flex; align-items: center; gap: 30px; height: var(--bar); padding-inline-start: calc(var(--lw) + 28px); transition: height .5s var(--ease), padding .5s var(--ease); }
.brand { position: absolute; top: 0; inset-inline-start: 0; background: #fff; padding: 14px 18px 18px; border-radius: 0 0 26px 26px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); transform-origin: top center; animation: hang 1.4s var(--out) .2s both; }
.brand img { height: var(--lh); width: auto; transition: height .5s var(--ease); }
@keyframes hang { 0% { transform: translateY(-110%); } 60% { transform: translateY(0) rotate(2deg); } 80% { transform: rotate(-1deg); } 100% { transform: none; } }
.top.scrolled { --lh: 66px; --lw: 84px; --bar: 76px; }
.top.scrolled .brand { padding: 6px 10px 8px; border-radius: 0 0 16px 16px; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; font: 700 19px/1.4 var(--font); color: #FFF4E6; opacity: .85; transition: opacity .3s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; inset: auto 0 -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
:dir(ltr) .nav a::after { transform-origin: left; }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,244,230,.35); background: rgba(0,0,0,.3); color: #FFF4E6; font: 700 15px var(--font); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.lang:hover { background: #FFF4E6; color: var(--bg); border-color: #FFF4E6; }

/* ── Buttons ── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; min-height: 60px; padding: 0 36px; border-radius: 999px; font: 700 19px/1 var(--font); transition: transform .5s var(--ease), color .4s; touch-action: manipulation; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: scale(0); transition: transform .55s var(--ease); }
.btn:hover::before { transform: scale(1.5); }
.btn:active { transform: scale(.96); }
.btn-sm { min-height: 54px; padding: 0 30px; font-size: 18px; }
.btn-solid { background: var(--orange); color: #fff; }
.btn-solid::before { background: #fff; }
.btn-solid:hover { color: var(--orange); }
.btn-line { border: 1px solid rgba(255,244,230,.45); color: #FFF4E6; }
.btn-line::before { background: #FFF4E6; }
.btn-line:hover { color: var(--bg); }
.arrow { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(-6px); }
:dir(ltr) .btn:hover .arrow { transform: translateX(6px); }

/* ── Hero ── */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; align-items: center; overflow: hidden; color: #FFF4E6; }
.photo { position: absolute; inset: 0; overflow: hidden; background: #0E0B09; }
.stone { position: absolute; inset: -4%; background: url(assets/stone.webp) center / cover; animation: reveal 2.2s var(--out) both, breathe 20s ease-in-out 2.2s infinite alternate; }
:dir(ltr) .stone { scale: -1 1; }
@keyframes reveal { from { opacity: 0; filter: brightness(.3) blur(6px); } to { opacity: 1; filter: none; } }
@keyframes breathe { to { transform: scale(1.06); } }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10,8,6,.75), transparent 30%); }

/* البيتزا المائلة: تخرج من الفرن ثم تطفو بهدوء */
.plate { position: absolute; inset-inline-end: 5vw; top: 56%; width: min(48vw, 112vh); aspect-ratio: 905 / 485; translate: 0 -50%; animation: serve 1.8s var(--out) .3s both; }
@keyframes serve { from { opacity: 0; transform: translate(-30%, 12%) scale(.7) rotate(-14deg); filter: blur(8px) brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
:dir(ltr) .plate { animation-name: serve-ltr; }
@keyframes serve-ltr { from { opacity: 0; transform: translate(30%, 12%) scale(.7) rotate(14deg); filter: blur(8px) brightness(1.6); } to { opacity: 1; transform: none; filter: none; } }
.plate::before { content: ""; position: absolute; inset: -45% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,150,60,.42), rgba(255,120,40,.12) 55%, transparent 75%); animation: oven 5s ease-in-out infinite; }
@keyframes oven { 0%, 100% { opacity: .6; } 30% { opacity: .9; } 55% { opacity: .7; } 75% { opacity: 1; } }
.plate::after { content: ""; position: absolute; inset: 62% 6% -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), transparent); filter: blur(10px); z-index: 0; }
.pz { position: relative; z-index: 1; width: 100%; height: auto; filter: saturate(1.18) contrast(1.07) brightness(1.04) drop-shadow(0 26px 30px rgba(0,0,0,.6)); animation: hover 7s ease-in-out 2.2s infinite; }
@keyframes hover { 50% { transform: translateY(-1.6%) rotate(-.6deg); } }
.deco { position: absolute; z-index: 0; height: auto; pointer-events: none; }
.dt { width: 40%; left: -10%; top: -50%; }
.db { width: 42%; left: -10%; bottom: -44%; }
:dir(ltr) .dt { left: auto; right: -10%; scale: -1 1; }
:dir(ltr) .db { left: auto; right: -10%; scale: -1 1; }

/* لمعة الجبن على وجه البيتزا */
.shine { position: absolute; z-index: 2; left: 7%; top: 4%; width: 86%; height: 70%; border-radius: 50%; overflow: hidden; pointer-events: none; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.shine::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 34% 30%, rgba(255,250,235,.22), transparent 70%); animation: gloss 5s ease-in-out infinite; }
@keyframes gloss { 50% { opacity: .5; transform: translate(4%, 3%); } }
.sweep { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 36%, rgba(255,252,240,.12) 43%, rgba(255,252,240,.7) 50%, rgba(255,252,240,.12) 57%, transparent 64%); transform: translateX(-120%); animation: sweep 4s cubic-bezier(.45,.05,.3,1) 2.4s infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.shine .g { position: absolute; width: var(--w); height: var(--h); border-radius: 50%; background: radial-gradient(ellipse, #fff 0%, rgba(255,250,230,.8) 30%, transparent 70%); filter: blur(.6px); rotate: var(--r); opacity: .3; animation: glint var(--t) ease-in-out var(--d) infinite; }
@keyframes glint { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }

/* بخار كثيف يتصاعد من البيتزا */
.steam { position: absolute; z-index: 3; left: 50%; top: 34%; width: 0; height: 0; pointer-events: none; }
.steam i { position: absolute; bottom: 0; left: var(--x); width: var(--w, 150px); height: 46vh; border-radius: 50%; background: radial-gradient(ellipse at 50% 75%, rgba(255,255,255,.7), rgba(255,255,255,.22) 45%, transparent 68%); filter: blur(12px); opacity: 0; transform-origin: 50% 100%; animation: steam 5.4s ease-in var(--d) infinite; }
.steam i:nth-child(1) { --x: -75px; --d: 0s; }
.steam i:nth-child(2) { --x: -230px; --d: .6s; --w: 120px; }
.steam i:nth-child(3) { --x: 60px; --d: 1.2s; --w: 130px; }
.steam i:nth-child(4) { --x: -160px; --d: 1.8s; --w: 170px; }
.steam i:nth-child(5) { --x: -20px; --d: 2.4s; --w: 110px; }
.steam i:nth-child(6) { --x: 140px; --d: 3s; --w: 120px; }
.steam i:nth-child(7) { --x: -290px; --d: 3.6s; --w: 110px; }
.steam i:nth-child(8) { --x: -110px; --d: 4.2s; --w: 150px; }
.steam i:nth-child(9) { --x: 10px; --d: 4.8s; --w: 160px; }
@keyframes steam { 0% { opacity: 0; transform: translateY(18%) scale(.5, .6); } 22% { opacity: 1; } 100% { opacity: 0; transform: translateY(-62%) scale(1.7, 1.25) rotate(9deg) skewX(-8deg); } }

.dust { position: absolute; inset: 0; pointer-events: none; }
.dust i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255,240,220,.75); filter: blur(.6px); opacity: 0; animation: rise var(--t) linear var(--d) infinite; }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: var(--o); } 85% { opacity: var(--o); } 100% { opacity: 0; transform: translate(var(--x), -105vh); } }
.torch { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0; transition: opacity .8s; background: radial-gradient(520px circle at var(--tx, 50%) var(--ty, 50%), rgba(255,200,140,.55), transparent 60%); }
.hero:hover .torch { opacity: 1; }

/* النص: بجانب لوحة الشعار، وحجمه يتبع ارتفاع الشاشة فلا يصطدم بالأعلى */
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: start; padding-top: var(--bar); padding-inline-start: calc(var(--lw) + 28px); }
.hero-copy > * { max-width: 560px; }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 1.4vh; font: 700 18px/1 var(--font); color: var(--gold); opacity: 0; animation: fade 1s var(--ease) 1.1s forwards; }
.kicker .line { width: 0; height: 2px; background: var(--gold); animation: grow 1s var(--ease) 1.2s forwards; }
.kicker .en { font-size: 12px; letter-spacing: .4em; color: #FFF4E6; opacity: .55; direction: ltr; }
:lang(en) .kicker .en { display: none; }
@keyframes grow { to { width: 46px; } }
h1 { margin: 0 0 1.6vh; font: 800 clamp(46px, min(8vw, 13.5vh), 128px)/1.08 var(--font); }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln { display: block; transform: translateY(110%); animation: up 1.2s var(--out) forwards; }
.mask:nth-child(1) .ln { animation-delay: 1.25s; }
.mask:nth-child(2) .ln { animation-delay: 1.4s; }
.mask:nth-child(3) .ln { animation-delay: 1.55s; }
@keyframes up { to { transform: none; } }
.accent { color: var(--orange); }
.lead { margin: 0 0 3vh; font: 600 clamp(19px, min(2.1vw, 3.6vh), 30px)/1.5 var(--font); opacity: 0; animation: fade 1s var(--ease) 1.9s forwards; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade 1s var(--ease) 2.05s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
:lang(en) h1 { font-size: clamp(42px, min(6.6vw, 12.5vh), 108px); line-height: 1.02; letter-spacing: -.015em; }

.cue { position: absolute; z-index: 2; bottom: 18px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,244,230,.5); border-radius: 20px; opacity: 0; animation: fade 1s 2.6s forwards; }
.cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #FFF4E6; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 640px) { .cue { display: none; } }

/* ── أقسام داكنة تتبدّل ── */
.taste { min-height: 90vh; display: grid; align-items: center; padding: 120px 0; }
.big { margin: 0; font: 800 clamp(40px, 6vw, 92px)/1.25 var(--font); }
.big span { display: block; }
.big .w { display: inline-block; opacity: .15; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.big .w.on { opacity: 1; transform: none; color: #FFF4E6; }
.big span:nth-child(3) .w.on { color: var(--orange); }
.next { min-height: 70vh; display: grid; align-items: center; padding: 100px 0; }
.soon { margin: 0; max-width: 24em; font: 700 clamp(24px, 3vw, 40px)/1.5 var(--font); }

/* ── Responsive ── */
@media (max-width: 1100px) { .nav { gap: 20px; } .nav a { font-size: 17px; } }
@media (max-width: 960px) { .nav { display: none; } .top-row { justify-content: flex-end; } }
@media (max-width: 760px) {
  :root { --lh: 132px; --bar: 76px; }
  .top-row { padding-inline-start: 0; }
  .lang { width: 48px; height: 48px; }
  .hero { height: auto; min-height: max(100svh, calc(176px + 52vw + 300px)); align-items: end; }
  .plate { inset-inline-end: 3vw; width: 94vw; top: 176px; translate: none; }
  .steam i { height: 300px; }
  .db { display: none; }
  .dt { width: 40%; left: -6%; top: -60%; }
  .hero-copy { padding: calc(190px + 52vw) 0 40px; text-align: center; justify-items: center; }
  h1 { font-size: clamp(38px, 11.6vw, 54px) !important; line-height: 1.14; margin-bottom: 6px; }
  h1 .mask { display: inline-block; vertical-align: top; }
  h1 .mask:first-child { display: block; }
  .kicker { justify-content: center; margin-bottom: 10px; }
  .lead { font-size: 19px; margin-bottom: 16px; }
  .ctas { justify-content: center; }
  .cue { display: none; }
}
@media (max-width: 420px) {
  .btn-sm { display: none; }
  .ctas .btn { flex: 1; padding: 0 16px; }
}

/* بخار واقعي: جزيئات ناعمة مرسومة على canvas تتلوّى وتتبدّد */
.steam-cv { position: absolute; z-index: 3; left: -20%; width: 140%; bottom: 52%; height: 64vh; pointer-events: none; filter: blur(5px); mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 14%, #000 60%, transparent 100%); mask-image: linear-gradient(to top, transparent 0, #000 14%, #000 60%, transparent 100%); }
@media (max-width: 760px) { .steam-cv { height: 300px; } }
