/* =========================================================
   SHAHAREEZ — editorial hospitality theme (RTL / Arabic)
   Palette drawn from the Shahareez logo
   ========================================================= */
:root {
	--sand: #EFE9E1;
	--sand-2: #E6DDD1;
	--stone: #8C8174;
	--ink: #4A4038;
	--ink-soft: #7C7167;
	--brown: #6B5F53;
	--green: #1F3A2C;
	--terracotta: #A4573F;
	--sage: #8FA27A;
	--apricot: #E3A57B;
	--white: #FBF9F6;

	--f-display: 'Tajawal', system-ui, sans-serif;
	--f-serif: 'Amiri', 'Times New Roman', serif;
	--f-script: 'Aref Ruqaa', 'Amiri', serif;

	--ease: cubic-bezier(.19, 1, .22, 1);
	--ease-io: cubic-bezier(.77, 0, .175, 1);
	--pad: clamp(20px, 6vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-display);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---------- smooth scroll container ---------- */
html.has-smooth body { overscroll-behavior: none; }
html.has-smooth #scroll { position: fixed; inset: 0 0 auto 0; will-change: transform; }

.container { width: 100%; padding-inline: var(--pad); margin-inline: auto; max-width: 1600px; }
.container.narrow { max-width: 1100px; }
.bg-sand { background: var(--sand); }
.bg-brown { background: var(--brown); color: var(--sand); }
.bg-stone { background: var(--stone); color: var(--white); }
.bg-green { background: var(--green); color: var(--sand); }

/* ---------- reveal system ---------- */
.mask { display: block; overflow: hidden; padding-block: .12em .22em; margin-block: -.12em -.22em; }
.mask > span { display: inline-block; transform: translate3d(0, 115%, 0); transition: transform 1.8s var(--ease); }
.is-in .mask > span, .mask.is-in > span, .is-ready .hero .mask > span { transform: none; }

/* plain fade-up for everything that is not a mask / image reveal */
[data-reveal]:not(.mask, .section-title, .title-xl, .payoff-big, .lead, .img-reveal, .full-img, .strip, .window, .fac-card, .exp-media) {
	opacity: 0; transform: translate3d(0, 40px, 0);
	transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
[data-reveal].is-in:not(.mask, .section-title, .title-xl, .payoff-big, .lead, .img-reveal, .full-img, .strip, .window, .fac-card, .exp-media) {
	opacity: 1; transform: none;
}

.img-reveal, .full-img, .strip, .window, .fac-card, .exp-media { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease-io); }
.img-reveal img, .full-img img, .strip img, .window img, .fac-card img, .exp-media img { transform: scale(1.25); transition: transform 2.4s var(--ease); }
.img-reveal.is-in, .full-img.is-in, .strip.is-in, .window.is-in, .fac-card.is-in, .exp-media.is-in { clip-path: inset(0 0 0 0); }
.img-reveal.is-in img, .full-img.is-in img, .strip.is-in img, .window.is-in img, .fac-card.is-in img, .exp-media.is-in img { transform: scale(1.08); }

.d1 { transition-delay: .1s !important; } .d2 { transition-delay: .2s !important; } .d3 { transition-delay: .35s !important; }
.d4 { transition-delay: .5s !important; } .d5 { transition-delay: .65s !important; } .d6 { transition-delay: .8s !important; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 200; background: var(--green); display: grid; place-items: center; transition: clip-path 1.4s var(--ease-io); clip-path: inset(0 0 0 0); }
.is-ready #loader { clip-path: inset(0 0 100% 0); }
.loader-inner { display: grid; justify-items: center; gap: 18px; }
.loader-logo { width: 96px; filter: brightness(0) invert(1); opacity: 0; transform: translateY(20px); animation: fadeUp 1.2s var(--ease) .1s forwards; }
.loader-bar { width: 140px; height: 1px; background: rgba(239, 233, 225, .2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--apricot); transform: scaleX(0); transform-origin: right; transition: transform .4s linear; }
@keyframes up { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- header ---------- */
#header {
	position: fixed; z-index: 120; inset: 0 0 auto 0; height: 84px;
	display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(16px, 3vw, 44px);
	color: var(--white); transition: color .6s, transform .8s var(--ease), background .6s;
	mix-blend-mode: normal;
}
#header.is-dark { color: var(--ink); }
#header.is-hidden { transform: translateY(-100%); }
body.menu-open #header { color: var(--ink); }

#menuToggle { width: 44px; height: 44px; display: grid; align-content: center; gap: 6px; z-index: 2; }
#menuToggle span { display: block; height: 1.3px; width: 30px; background: currentColor; transition: transform .8s var(--ease), width .8s var(--ease), opacity .4s; justify-self: start; }
#menuToggle span:nth-child(2) { width: 22px; }
#menuToggle:hover span:nth-child(2) { width: 30px; }
body.menu-open #menuToggle span:nth-child(1) { transform: translateY(7.3px) rotate(45deg); }
body.menu-open #menuToggle span:nth-child(2) { opacity: 0; }
body.menu-open #menuToggle span:nth-child(3) { transform: translateY(-7.3px) rotate(-45deg); }

#header { height: 96px; }

.header-end { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; letter-spacing: .08em; opacity: .8; font-family: system-ui, sans-serif; }
.lang:hover { opacity: 1; }
.pill { height: 38px; min-width: 38px; padding-inline: 16px; border: 1px solid currentColor; border-radius: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; transition: background .4s, color .4s, border-color .4s; }
.pill svg { width: 16px; height: 16px; fill: currentColor; }
a.pill { padding-inline: 0; width: 38px; }
.pill-solid { background: var(--white); color: var(--ink); border-color: var(--white); }
#header.is-dark .pill-solid, body.menu-open .pill-solid { background: var(--green); color: var(--sand); border-color: var(--green); }
.pill:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.pill.wide { width: 100%; height: 52px; font-size: 16px; }

/* ---------- menu overlay ---------- */
#menu { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.menu-bg { position: absolute; inset: 12px; border-radius: 22px; background: var(--sand); clip-path: circle(0% at calc(100% - 50px) 40px); transition: clip-path 1.2s var(--ease-io); }
body.menu-open #menu { pointer-events: auto; }
body.menu-open .menu-bg { clip-path: circle(150% at calc(100% - 50px) 40px); }
.menu-grid { visibility: hidden; transition: visibility 0s 1.2s; }
body.menu-open .menu-grid { visibility: visible; transition-delay: 0s; }
.menu-grid { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 6vw; padding: 130px var(--pad) 60px; color: var(--ink); overflow-y: auto; }
.menu-title { font-size: clamp(32px, 3.4vw, 56px); font-weight: 200; border-bottom: 1px solid rgba(74, 64, 56, .25); padding-bottom: 10px; margin-bottom: 18px; }
.menu-col > a { display: block; padding: 10px 0; }
.menu-col > a > .mask { font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; }
.menu-col small { display: block; font-family: var(--f-serif); font-size: 15px; color: var(--ink-soft); opacity: 0; transition: opacity .8s .5s; }
.menu-col > a:hover .mask > span { color: var(--terracotta); }
.menu-aside { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 15px; }
.menu-logo { width: 90px; margin-bottom: 20px; opacity: 0; transition: opacity 1s .4s; }
.menu-aside a { opacity: 0; transform: translateY(15px); transition: opacity .8s, transform .8s var(--ease); }
body.menu-open .menu-col .mask > span { transform: none; transition-delay: calc(.35s + var(--i, 0) * .06s); }
body.menu-open .menu-col small, body.menu-open .menu-logo { opacity: 1; }
body.menu-open .menu-aside a { opacity: 1; transform: none; transition-delay: calc(.5s + var(--i, 0) * .06s); }

/* ---------- booking panel ---------- */
#book { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.book-shade { position: absolute; inset: 0; background: rgba(31, 58, 44, .45); opacity: 0; transition: opacity .8s; }
.book-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(520px, 100%); background: var(--white); padding: 70px 44px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform 1s var(--ease-io); }
body.book-open #book { pointer-events: auto; }
body.book-open .book-shade { opacity: 1; }
body.book-open .book-panel { transform: none; }
.book-close { position: absolute; top: 18px; inset-inline-end: 22px; font-size: 34px; line-height: 1; font-weight: 200; }
.book-head h3 { font-size: 40px; font-weight: 300; margin: 4px 0 10px; }
.book-head p { font-family: var(--f-serif); color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
#bookForm { display: grid; gap: 16px; margin-top: 28px; }
#bookForm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#bookForm label span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
#bookForm input, #bookForm select, #bookForm textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(74, 64, 56, .3); padding: 8px 0; outline: none; border-radius: 0; transition: border-color .4s; }
#bookForm input:focus, #bookForm select:focus, #bookForm textarea:focus { border-color: var(--terracotta); }
.book-alt { text-align: center; font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.book-why { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(74, 64, 56, .15); font-family: var(--f-serif); font-size: 15px; color: var(--ink-soft); display: grid; gap: 8px; }
.book-why li::before { content: "— "; color: var(--terracotta); }

/* ---------- shared type ---------- */
.eyebrow, .mini-title { display: inline-block; font-size: 14px; font-weight: 500; color: var(--terracotta); margin-bottom: 18px; }
.mini-title { position: relative; padding-inline-start: 46px; }
.mini-title::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 34px; height: 1px; background: currentColor; }
.mini-title.light, .light { color: var(--sand); }
.mini-title.light { color: var(--apricot); }
.text { font-family: var(--f-serif); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.95; color: var(--ink-soft); }
.text.light { color: rgba(239, 233, 225, .85); }
.text.center { text-align: center; }
.text p + p { margin-top: 1em; }
.quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.7; color: var(--ink); }
.quote.light { color: var(--sand); }

.section-title { margin-bottom: 50px; }
.section-title .small { font-size: clamp(28px, 3vw, 52px); font-weight: 300; line-height: 1.1; }
.section-title .big { font-size: clamp(64px, 9vw, 170px); font-weight: 200; line-height: 1; color: var(--stone); }
.section-title.light .big { color: var(--sand); }
.title-xl { font-size: clamp(44px, 6.4vw, 120px); font-weight: 200; line-height: 1.15; display: flex; flex-wrap: wrap; gap: 0 .3em; }
.title-xl .mask { display: inline-block; }

.o-btn { display: inline-flex; align-items: center; gap: 14px; height: 46px; padding-inline: 22px 8px; border: 1px solid currentColor; border-radius: 46px; font-size: 15px; font-weight: 500; position: relative; overflow: hidden; isolation: isolate; }
.o-btn i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-style: normal; font-size: 14px; }
.o-btn::before { content: ""; position: absolute; inset: 0; background: var(--terracotta); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.o-btn:hover { color: var(--white); border-color: var(--terracotta); }
.o-btn:hover::before { transform: scaleX(1); transform-origin: right; }
.o-btn.solid { background: var(--green); color: var(--sand); border-color: var(--green); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: var(--white); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { width: 100%; height: 125%; object-fit: cover; transform: scale(1.15); transition: transform 3.5s var(--ease); }
.is-ready .hero-img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 24, .45) 0%, rgba(20, 30, 24, .1) 40%, rgba(20, 30, 24, .55) 100%); }
.hero-content { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hero-content { gap: 2vh; }
.hero-content { justify-items: center; }
.hero-logo-slot { height: min(42vh, 380px); aspect-ratio: 744 / 1059; }
.hero-sub { font-family: var(--f-serif); font-size: clamp(20px, 2vw, 30px); opacity: .9; }

/* flying logo — positioned every frame by main.js */
#flyLogo { position: fixed; top: 0; left: 0; z-index: 125; height: min(42vh, 380px); aspect-ratio: 744 / 1059; transform-origin: 0 0; will-change: transform; }
#flyLogo img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 6px 30px rgba(0, 0, 0, .25)); opacity: 0; transform: translateY(30px); transition: filter .6s ease, opacity 1.6s var(--ease) .3s, transform 1.8s var(--ease) .3s; }
.is-ready #flyLogo img { opacity: 1; transform: none; }
#flyLogo.on-light img { filter: none; }
.scroll-hint { position: absolute; bottom: 36px; inset-inline-start: 50%; transform: translateX(50%); display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 13px; line-height: 1.5; }
.scroll-hint .arrow { width: 1px; height: 50px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.scroll-hint .arrow::after { content: ""; position: absolute; inset: 0; background: var(--white); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- payoff ---------- */
.payoff { padding: 18vh 0 10vh; overflow: hidden; }
.payoff-row { position: relative; display: flex; align-items: center; justify-content: flex-start; padding-inline: var(--pad); }
.ghost { font-size: clamp(120px, 20vw, 380px); font-weight: 200; line-height: .9; color: var(--sand-2); position: relative; z-index: 2; mix-blend-mode: multiply; will-change: transform; }
.ghost.small { font-size: clamp(90px, 13vw, 240px); }
.window { position: relative; width: min(46vw, 760px); aspect-ratio: 16 / 7; margin-inline-start: -8vw; }
.window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform 2.4s var(--ease); }
.window img.is-on { opacity: 1; }
.payoff-line { font-size: clamp(28px, 3vw, 52px); color: var(--ink-soft); font-weight: 300; padding-inline: calc(var(--pad) + 30vw) var(--pad); margin-top: -2vw; }
.strip { margin: 9vh 0 0 auto; width: 76vw; height: clamp(220px, 34vh, 420px); margin-inline-start: 0; margin-inline-end: auto; }
.payoff .strip { margin-inline: auto 0; }
.strip img { width: 100%; height: 140%; object-fit: cover; margin-top: -10%; }
.payoff-find { position: relative; padding-inline: var(--pad); margin-top: -6vh; display: grid; justify-items: end; }
.payoff-find .ghost { color: var(--sand-2); justify-self: end; }
.payoff-big { font-size: clamp(54px, 8vw, 150px); font-weight: 300; line-height: 1.05; color: var(--brown); justify-self: end; margin-top: -2vw; }

/* ---------- welcome ---------- */
.welcome { padding: 14vh 0 12vh; }
.lead { font-size: clamp(26px, 2.2vw, 36px); font-weight: 500; color: var(--ink); margin-bottom: 36px; }
.cols { column-count: 2; column-gap: 60px; }
.cols p { break-inside: avoid; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12vh; border-top: 1px solid rgba(74, 64, 56, .15); }
.stat { padding: 34px 10px 0; display: grid; gap: 6px; text-align: center; border-inline-start: 1px solid rgba(74, 64, 56, .15); }
.stat:first-child { border-inline-start: 0; }
.stat b { font-size: clamp(40px, 4.4vw, 76px); font-weight: 200; color: var(--terracotta); line-height: 1; }
.stat span { font-family: var(--f-serif); color: var(--ink-soft); }

/* ---------- ethos ---------- */
.ethos { padding: 16vh 0; }
.ethos-head { margin-bottom: 9vh; }
.ethos-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 7vw; align-items: start; }
.img-reveal img, .full-img img { width: 100%; height: 100%; object-fit: cover; }
.img-reveal.tall { aspect-ratio: 4 / 5; }
.img-reveal.small { aspect-ratio: 4 / 3; width: 70%; margin: 7vh 0; }
.ethos-side { padding-top: 12vh; }
.ethos-side .o-btn { margin-top: 40px; }

/* ---------- rooms ---------- */
.rooms { padding: 16vh 0 12vh; }
.rooms-top { display: grid; grid-template-columns: .5fr 1fr; gap: 6vw; align-items: end; margin-bottom: 10vh; }
.img-reveal.thumb { aspect-ratio: 3 / 4; }
.full-img { position: relative; height: 92vh; margin: 0 auto; width: calc(100% - var(--pad) * 2); }
.full-img img { height: 130%; margin-top: -15%; }
.full-img figcaption { position: absolute; bottom: 34px; inset-inline-start: 34px; color: var(--white); font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 26px); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.full-img.is-in figcaption > span { transform: none; transition-delay: .9s; }
.room-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw; margin-top: 10vh; }
.room-type { border-top: 1px solid rgba(74, 64, 56, .2); padding-top: 22px; }
.room-type .num { font-size: 14px; color: var(--terracotta); }
.room-type h4 { font-size: 26px; font-weight: 400; margin: 6px 0; }
.room-type p { font-family: var(--f-serif); color: var(--ink-soft); }

/* ---------- facilities ---------- */
.facilities { position: relative; padding: 16vh 0; color: var(--white); overflow: hidden; }
.fac-bg { position: absolute; inset: 0; z-index: -1; }
.fac-bg img { width: 100%; height: 140%; object-fit: cover; margin-top: -20%; filter: brightness(.55) saturate(.8); }
.fac-cards { display: flex; gap: 3vw; padding: 4vh var(--pad) 12vh; align-items: flex-start; }
.fac-card { position: relative; flex: 1; aspect-ratio: 3 / 4.4; }
.fac-card.up { margin-top: -8vh; }
.fac-card img { width: 100%; height: 100%; object-fit: cover; }
.fac-card:hover img { transform: scale(1.14); }
.v-label { position: absolute; bottom: 20px; inset-inline-start: 16px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(28px, 2.6vw, 46px); font-weight: 200; color: var(--white); text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }

/* ---------- dining ---------- */
.dining { padding: 16vh 0; }
.dining-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: start; }
.dining-sticky { will-change: transform; }
.dining-list li { border-top: 1px solid rgba(239, 233, 225, .2); padding: 18px 0; display: grid; gap: 2px; }
.dining-list b { font-weight: 400; font-size: 22px; }
.dining-list span { font-family: var(--f-serif); color: rgba(239, 233, 225, .65); }
.dining-media { display: grid; gap: 10vh; }
.taste-word { font-family: var(--f-serif); font-size: clamp(70px, 8vw, 150px); line-height: 1.1; color: var(--sand); margin-bottom: 20px; }
.dining-media .img-reveal { aspect-ratio: 4 / 5; }
.dining-media .img-reveal.offset { width: 70%; margin-inline-start: auto; }

/* ---------- experiences ---------- */
.experiences { padding: 14vh 0 16vh; }
.exp-title { font-family: var(--f-script); font-size: clamp(90px, 12vw, 220px); line-height: 1.15; color: var(--white); margin-bottom: 6vh; }
.exp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5vw; align-items: start; }
.exp-media { position: relative; aspect-ratio: 4 / 4.6; }
.exp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, transform 2.4s var(--ease); }
.exp-media img.is-on { opacity: 1; }
.exp-item { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.exp-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: clamp(22px, 2vw, 32px); font-weight: 400; text-align: start; }
.exp-item button i { font-style: normal; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 16px; transition: transform .8s var(--ease), background .4s; }
.exp-item.is-open button i { transform: rotate(-90deg); background: var(--white); color: var(--stone); }
.exp-body { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 1s var(--ease), opacity .8s; }
.exp-item.is-open .exp-body { max-height: 420px; opacity: 1; }
.exp-body h5 { font-family: var(--f-serif); font-size: 20px; font-weight: 400; }
.exp-body p { font-family: var(--f-serif); font-size: 17px; line-height: 1.9; opacity: .9; padding-bottom: 26px; margin-top: 6px; }

/* ---------- gallery (pinned) ---------- */
.gallery { position: relative; height: 340vh; background: var(--white); }
.pin-inner { height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; will-change: transform; }
.gallery-head { padding-inline: var(--pad); display: flex; align-items: baseline; gap: 24px; margin-bottom: 4vh; }
.gallery-head .ghost { font-size: clamp(90px, 12vw, 220px); color: var(--sand-2); mix-blend-mode: normal; }
.gallery-track { display: flex; gap: 2.4vw; padding-inline: var(--pad); width: max-content; will-change: transform; }
.gallery-track figure { height: 52vh; aspect-ratio: 3 / 4; position: relative; overflow: hidden; }
.gallery-track figure.land { aspect-ratio: 16 / 10; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.gallery-track figure:hover img { transform: scale(1.08); }
.gallery-track figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 40px 18px 16px; color: var(--white); font-family: var(--f-serif); font-size: 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); transform: translateY(100%); transition: transform .8s var(--ease); }
.gallery-track figure:hover figcaption { transform: none; }

/* ---------- contact / clock ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--sand); }
.contact-media { overflow: hidden; position: relative; }
.contact-media img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; }
.contact-panel { padding: 14vh var(--pad) 10vh; display: flex; flex-direction: column; justify-content: space-between; gap: 8vh; }
.date-block { display: flex; align-items: flex-end; gap: 22px; }
.year { font-size: clamp(90px, 10vw, 190px); font-weight: 200; line-height: .85; color: var(--ink); font-family: var(--f-display); }
.day { display: grid; gap: 4px; padding-bottom: 10px; }
.day b { font-weight: 400; font-size: 26px; }
.day i { font-style: normal; font-family: var(--f-serif); color: var(--ink-soft); }
.clock-line { display: flex; align-items: center; justify-content: space-between; border-block: 1px solid rgba(74, 64, 56, .2); padding: 22px 0; font-family: var(--f-serif); color: var(--ink-soft); }
.clock-line b { font-family: var(--f-display); font-weight: 200; font-size: 56px; color: var(--terracotta); direction: ltr; }
.contact-cta h3 { font-size: clamp(26px, 2.2vw, 38px); font-weight: 300; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.footer { padding: 12vh 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4vw; }
.f-brand img { width: 110px; filter: brightness(0) invert(1); opacity: .92; }
.f-script { font-family: var(--f-script); font-size: 34px; margin-top: 18px; color: var(--apricot); }
.f-col { display: grid; gap: 10px; align-content: start; }
.f-col h6 { font-size: 13px; font-weight: 500; color: var(--sage); margin-bottom: 6px; }
.f-col a, .f-col span, .f-col button { font-family: var(--f-serif); font-size: 17px; text-align: start; opacity: .85; transition: opacity .3s, color .3s; justify-self: start; }
.f-col a:hover, .f-col button:hover { opacity: 1; color: var(--apricot); }
.f-bottom { display: flex; justify-content: space-between; margin-top: 10vh; padding-top: 22px; border-top: 1px solid rgba(239, 233, 225, .15); font-size: 13px; opacity: .7; }

/* ---------- progress ---------- */
#progress { position: fixed; z-index: 90; inset-block: 50%; inset-inline-end: 22px; height: 120px; width: 1px; transform: translateY(-50%); background: rgba(120, 110, 100, .25); }
#progress i { position: absolute; inset: 0; background: var(--terracotta); transform-origin: top; transform: scaleY(0); }

/* native-scroll fallbacks (touch devices / reduced motion) */
html:not(.has-smooth) .dining-sticky { position: sticky; top: 120px; }
html:not(.has-smooth) .pin-inner { position: sticky; top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	body { font-size: 16px; }
	.lang { display: none; }
	.menu-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 100px; }
	.payoff-row { flex-direction: column; align-items: flex-start; }
	.window { width: 100%; margin: -8vw 0 0; }
	.payoff-line { padding-inline: var(--pad); margin-top: 20px; }
	.strip { width: 100%; }
	.cols { column-count: 1; }
	.stats { grid-template-columns: 1fr 1fr; row-gap: 30px; }
	.stat:nth-child(3) { border-inline-start: 0; }
	.ethos-grid, .rooms-top, .dining-grid, .exp-grid, .contact { grid-template-columns: 1fr; }
	.ethos-side { padding-top: 0; }
	.room-types { grid-template-columns: 1fr 1fr; }
	.full-img { height: 60vh; }
	.fac-cards { overflow-x: auto; scroll-snap-type: x mandatory; }
	.fac-card { flex: 0 0 62vw; scroll-snap-align: start; }
	.fac-card.up { margin-top: 0; }
	.contact-media { height: 50vh; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	#progress { display: none; }
	.gallery { height: auto; }
	.pin-inner { height: auto; padding: 12vh 0; }
	.gallery-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; }
	.gallery-track figure { flex: 0 0 auto; height: 50vh; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.book-panel .pill-solid { background: var(--green); color: var(--sand); border-color: var(--green); }
.book-panel .pill-solid:hover { background: var(--terracotta); border-color: var(--terracotta); }

/* =========================================================
   BROCHURE LAYER — content & motifs from shahariz.pdf
   ========================================================= */
.hero-place { font-size: 14px; letter-spacing: 0; opacity: .8; margin-top: 6px; }

/* welcome / positioning */
.welcome { position: relative; overflow: hidden; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw; align-items: center; }
.statement { font-size: clamp(40px, 4.6vw, 84px); font-weight: 300; line-height: 1.15; color: var(--brown); margin-bottom: 18px; }
.lede { font-size: clamp(22px, 1.8vw, 30px); font-weight: 300; color: var(--terracotta); margin-bottom: 28px; }
.welcome-media { aspect-ratio: 4 / 3; }
.welcome .text p + p { margin-top: 1em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; margin-top: 14vh; }
.feature { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 30px 10px; border-top: 1px solid rgba(74, 64, 56, .15); }
.feature b { font-size: clamp(30px, 2.6vw, 44px); font-weight: 300; color: var(--brown); line-height: 1.1; }
.feature span { font-family: var(--f-serif); color: var(--ink-soft); }
.ico { width: 92px; height: 92px; display: block; margin-bottom: 12px; background: var(--green); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: transform 1s var(--ease), background .4s; }
.feature:hover .ico { transform: translateY(-6px) rotate(-4deg); background: var(--terracotta); }
.ico-bed { --m: url(../img/b/icon-0.png); }
.ico-hall { --m: url(../img/b/icon-1.png); }
.ico-pool { --m: url(../img/b/icon-2.png); }
.ico-garden { --m: url(../img/b/icon-3.png); }
.area { display: flex; justify-content: center; align-items: baseline; gap: 18px; margin-top: 30px; font-family: var(--f-serif); color: var(--ink-soft); font-size: 20px; }
.area b { font-family: var(--f-display); font-weight: 200; font-size: clamp(56px, 6vw, 110px); color: var(--terracotta); line-height: 1; }

/* rotating star motif */
.star-mark { position: absolute; width: min(46vw, 620px); inset-inline-start: -12vw; top: 6vh; opacity: .08; pointer-events: none; animation: spin 90s linear infinite; filter: brightness(0); }
.star-mark.small { width: 340px; inset-inline-start: auto; inset-inline-end: -120px; top: auto; bottom: -120px; opacity: .07; }
@keyframes spin { to { transform: rotate(360deg); } }

/* rooms triptych */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; margin-top: 2vw; }
.triptych .img-reveal { aspect-ratio: 4 / 3; position: relative; }
.triptych figcaption { position: absolute; bottom: 14px; inset-inline-start: 16px; color: var(--white); font-family: var(--f-serif); font-size: 17px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }

/* split statement (brochure p.3) */
.split-statement { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; min-height: 100vh; background: var(--brown); overflow: hidden; }
.split-media { position: relative; overflow: hidden; }
.split-media img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.split-panel { display: flex; align-items: center; padding: 10vh var(--pad); position: relative; z-index: 2; }
.split-title { font-size: clamp(44px, 5vw, 96px); font-weight: 300; line-height: 1.2; color: var(--sand); margin-inline-end: -14vw; text-shadow: 0 4px 40px rgba(0, 0, 0, .25); }

/* leaf band — the brochure's vertical leaf strip */
.leaf-band { position: absolute; inset-block: 0; inset-inline-end: 0; width: clamp(60px, 8vw, 140px); background: rgba(239, 233, 225, .55);
	-webkit-mask: url(../img/b/leaf-a.png) top center / 100% auto repeat-y; mask: url(../img/b/leaf-a.png) top center / 100% auto repeat-y; z-index: 3; pointer-events: none; }
.split-statement .leaf-band { inset-inline-end: auto; inset-inline-start: 0; }
.dining { position: relative; overflow: hidden; }
.leaf-band.left { inset-inline-end: auto; inset-inline-start: 0; background: rgba(239, 233, 225, .12); }

/* dining extra */
.dining-media .img-reveal.wide { aspect-ratio: 16 / 10; }

/* contact extras */
.contact-panel { position: relative; overflow: hidden; }
.big-phone { display: inline-block; font-size: clamp(40px, 4vw, 68px); font-weight: 200; color: var(--terracotta); line-height: 1.1; margin: 4px 0 14px; }
.big-phone:hover { color: var(--green); }
.address { font-family: var(--f-serif); color: var(--ink-soft); font-size: 18px; line-height: 1.9; margin-bottom: 26px; }
.address b { font-family: var(--f-display); font-weight: 500; color: var(--ink); letter-spacing: .05em; }
.groups { font-family: var(--f-serif); color: var(--ink-soft); margin-top: 18px; font-size: 15px; }
.contact-cta h3 { margin-bottom: 4px; }

/* pattern texture on taupe sections */
.bg-brown, .split-statement { background-image: linear-gradient(rgba(107, 95, 83, .9), rgba(107, 95, 83, .9)), url(../img/b/pattern.jpg); background-size: auto, 420px auto; }

@media (max-width: 960px) {
	.welcome-grid, .split-statement { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr 1fr; }
	.triptych { grid-template-columns: 1fr; }
	.split-media { height: 55vh; }
	.split-title { margin: 0; }
	.leaf-band { width: 44px; }
}

/* hide the flying logo while the menu is open (the menu shows its own logo) */
#flyLogo { transition: opacity .5s ease, visibility 0s 0s; }
body.menu-open #flyLogo { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s .3s; }

/* rooms intro: title + text beside a landscape photo (no empty gap) */
.rooms { padding-top: 14vh; }
.rooms-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6vw; align-items: center; margin-bottom: 10vh; }
.rooms-head .section-title { margin-bottom: 28px; }
.rooms-head .text { margin-bottom: 34px; }
.rooms-img { aspect-ratio: 4 / 3; }
@media (max-width: 960px) { .rooms-intro { grid-template-columns: 1fr; } }

/* full-width photo: image always covers the frame while it parallaxes, caption sits on a gradient */
.full-img { background: var(--brown); }
.full-img img { position: absolute; inset: -18% 0 auto 0; height: 136%; margin-top: 0; }
.full-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(20, 16, 12, .55)); pointer-events: none; z-index: 1; }
.full-img figcaption { z-index: 2; }
.triptych .img-reveal::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(20, 16, 12, .5)); pointer-events: none; }
.triptych figcaption { z-index: 1; }

/* "اكتشف متعة اللقاء": words + photo side by side (fills the empty half) */
.payoff { padding-bottom: 6vh; }
.payoff-find { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5vw; align-items: center; justify-items: stretch; margin-top: 8vh; }
.find-side { display: grid; gap: 22px; padding-inline-start: 4vw; }
.find-img { aspect-ratio: 4 / 3; width: 100%; }
.find-img img { width: 100%; height: 115%; object-fit: cover; }
.find-note { font-family: var(--f-serif); font-size: clamp(18px, 1.3vw, 22px); line-height: 1.9; color: var(--ink-soft); max-width: 460px; }
.find-words { display: grid; justify-items: end; }
.find-words .ghost { justify-self: end; }
@media (max-width: 960px) { .payoff-find { grid-template-columns: 1fr; } .find-side { padding: 0; } }

/* payoff, tidied: words right, photo left, no overlaps; strip aligned to the grid */
.payoff { padding-top: 16vh; }
.payoff-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5vw; align-items: center; padding-inline: var(--pad); }
.payoff-words { display: grid; justify-items: start; gap: 2vh; }
.payoff-row .ghost { font-size: clamp(110px, 15vw, 280px); line-height: 1; }
.payoff-line { padding: 0; margin: 0; font-size: clamp(26px, 2.4vw, 42px); }
.window { width: 100%; max-width: none; aspect-ratio: 16 / 10; margin: 0; }
.payoff .strip { width: calc(100% - var(--pad) * 2); margin: 12vh auto 0; height: clamp(260px, 42vh, 480px); }
@media (max-width: 960px) { .payoff-row { grid-template-columns: 1fr; } }

/* ---------- arrival (from the on-site photo shoot) ---------- */
.arrival { padding: 16vh 0 6vh; }
.arrival-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh 6vw; align-items: end; margin-bottom: 8vh; }
.arrival-head .mini-title { grid-column: 1 / -1; }
.arrival-title { font-size: clamp(44px, 5vw, 92px); font-weight: 300; line-height: 1.15; color: var(--brown); }
.arrival-title .mask { display: block; }
.arrival-main { height: 86vh; }
.arrival-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 2vw; margin-top: 2vw; align-items: start; }
.arrival-row .img-reveal { position: relative; aspect-ratio: 4 / 3; }
.arrival-row .img-reveal:nth-child(2) { aspect-ratio: 4 / 3.4; margin-top: 6vh; }
.arrival-row img { width: 100%; height: 112%; object-fit: cover; }
.arrival-row .img-reveal::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(20, 16, 12, .5)); pointer-events: none; }
.arrival-row figcaption { position: absolute; bottom: 14px; inset-inline-start: 16px; z-index: 1; color: var(--white); font-family: var(--f-serif); font-size: 17px; }
.triptych.details { margin-top: 2vw; }
@media (max-width: 960px) {
	.arrival-head, .arrival-row { grid-template-columns: 1fr; }
	.arrival-main { height: 60vh; }
	.arrival-row .img-reveal:nth-child(2) { margin-top: 0; }
}

/* hero drone video */
.hero-video { display: block; background: #2a2620 url(../video/hero-poster.jpg) center / cover; }
@media (prefers-reduced-motion: reduce) { .hero-video { animation: none; } }
@media (max-width: 960px) { .triptych.details { grid-template-columns: 1fr; } }
