/* Nubian Holiday House — unofficial concept by Launchly.
   Base: tokens, typography, header, menu, disclosure, buttons, motion.
   Logical properties throughout, so dir="rtl" mirrors the layout. */
:root {
  --teal: #123E3B;
  --forest: #18312D;
  --sand: #E9DDC8;
  --limestone: #F5F0E6;
  --terracotta: #B65E43;
  --gold: #C5A36A;
  --charcoal: #252723;
  --ink-soft: rgba(37, 39, 35, 0.74);
  --line: rgba(37, 39, 35, 0.16);
  --line-light: rgba(245, 240, 230, 0.22);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --arabic: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --arabic-display: "Arabic Display", "Noto Naskh Arabic", "Traditional Arabic", serif; /* composite: Naskh for Arabic, Cormorant for Latin (fonts.css) */

  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --disc-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body { margin: 0; background: var(--limestone); color: var(--charcoal); font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--terracotta); color: var(--limestone); }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; inset-block-start: 16px; z-index: 200; background: var(--limestone); padding: 10px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- typography */
.display { font: 300 clamp(50px, 7.2vw, 104px)/0.96 var(--serif); letter-spacing: -0.015em; }
.display em { font-style: italic; font-weight: 300; }
.heading { font: 400 clamp(40px, 4.45vw, 64px)/1.02 var(--serif); letter-spacing: -0.01em; color: var(--teal); }
.heading em { font-style: italic; color: var(--terracotta); }
.heading.light { color: var(--limestone); }
.heading.light em { color: var(--gold); }
.label { display: flex; align-items: center; gap: 14px; font: 500 11.5px/1 var(--sans); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-soft); margin-block-end: 28px; }
.label span:first-child { color: var(--terracotta); letter-spacing: 0.08em; }
.label span:first-child::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor;
  margin-inline-start: 14px; vertical-align: middle; opacity: .7; }
.label.light { color: rgba(245, 240, 230, 0.72); }
.label.light span:first-child { color: var(--gold); }
.label.center { justify-content: center; }
.body { font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.body.light { color: rgba(245, 240, 230, 0.8); }
.body-lg { font: 300 clamp(19px, 1.55vw, 22px)/1.6 var(--sans); color: var(--charcoal); max-width: 34ch; margin-block-end: 20px; }
.center { text-align: center; margin-inline: auto; }
.note { font-size: 14px; color: var(--ink-soft); border-inline-start: 1px solid var(--gold); padding-inline-start: 16px; margin-block-start: 28px; max-width: 40ch; }
.credit { font: 400 10.5px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-block-start: 10px; }


/* ---------------------------------------------------------------- calls to action */
.link-cta { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font: 500 13px/1 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase; padding-block: 12px; }
.link-cta i { position: relative; width: 56px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.link-cta i::after { content: ""; position: absolute; inset-inline-end: 0; top: -3px; width: 7px; height: 7px;
  border-block-start: 1px solid currentColor; border-inline-end: 1px solid currentColor; transform: rotate(45deg); }
html[dir="rtl"] .link-cta i::after { transform: rotate(-45deg); }
.link-cta:hover i { width: 84px; }
.link-cta.light { color: var(--limestone); }
.btn-primary { display: inline-flex; align-items: center; gap: 14px; padding: 20px 34px; background: var(--teal);
  color: var(--limestone); text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 0 0 rgba(24, 49, 45, 0);
  transition: background .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.btn-primary:hover { background: var(--forest); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(24, 49, 45, 0.55); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 10px -6px rgba(24, 49, 45, 0.5); transition-duration: .12s; }
.btn-primary .ext { color: var(--gold); font-size: 15px; letter-spacing: 0; transition: transform .45s var(--ease); }
.btn-primary:hover .ext { transform: translate(2px, -2px); }
html[dir="rtl"] .btn-primary .ext { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .btn-primary:hover .ext { transform: scaleX(-1) translate(2px, -2px); }

/* ---------------------------------------------------------------- disclosure (mandatory) */
.disclosure { position: relative; z-index: 60; background: var(--charcoal); color: var(--sand);
  font: 400 12px/1.5 var(--sans); letter-spacing: 0.04em; text-align: center; padding: 9px var(--gutter); }
.disclosure p::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  margin-inline-end: 10px; vertical-align: 1px; }
.concept-badge { position: fixed; z-index: 70; inset-block-end: 18px; inset-inline-start: 18px; text-decoration: none;
  background: rgba(24, 49, 45, 0.92); color: var(--sand); border: 1px solid var(--line-light); backdrop-filter: blur(8px);
  font: 500 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; }
.concept-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  margin-inline-end: 8px; vertical-align: 1px; }

/* ---------------------------------------------------------------- header */
.site-header { position: absolute; z-index: 50; inset-inline: 0; inset-block-start: var(--disc-h); color: var(--limestone);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.header-inner { display: flex; align-items: center; gap: 40px; padding: 26px var(--gutter); transition: padding .45s var(--ease); }
.site-header.is-solid { position: fixed; inset-block-start: 0; background: rgba(245, 240, 230, 0.96); color: var(--charcoal);
  backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); animation: header-in .7s var(--drift, ease-out); }
.site-header.is-solid .header-inner { padding-block: 16px; }
@keyframes header-in { from { transform: translateY(-12px); opacity: 0; } }
.wordmark { display: flex; flex-direction: column; gap: 4px; text-decoration: none; margin-inline-end: auto; }
.wm-name { font: 400 25px/1 var(--serif); letter-spacing: 0.01em; }
.wm-place { font: 500 9.5px/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; opacity: .78; }
.nav { display: none; gap: 38px; }
.nav a { position: relative; text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; padding-block: 8px;
  opacity: .8; transition: opacity .4s var(--ease); }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .6s var(--drift, ease-out); }
html[dir="rtl"] .nav a::after { --origin: right; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; }
.lang span { opacity: .45; }
.lang button { padding: 8px 2px; opacity: .55; transition: opacity .3s; }
.lang button[lang="ar"] { font: 400 15px/1 var(--arabic); letter-spacing: 0; }
.lang button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 -1px 0 currentColor; }
.menu-toggle { display: grid; gap: 7px; width: 34px; padding: 8px 2px; }
.menu-toggle span { display: block; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1024px) { .nav { display: flex; } .menu-toggle { display: none; } }

/* full-screen menu (mobile / tablet) */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--teal); color: var(--limestone);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 60px;
  opacity: 0; transition: opacity .45s var(--ease); }
.menu.open { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .menu nav a, .menu .menu-note { opacity: 0; transform: translateY(14px);
    transition: opacity .6s var(--breeze, ease), transform .8s var(--drift, ease-out); transition-delay: 0s; }
  .menu.open nav a, .menu.open .menu-note { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 55ms); }
}
.menu nav { display: grid; gap: 6px; }
.menu a { display: flex; align-items: baseline; gap: 18px; text-decoration: none; font: 300 clamp(36px, 9vw, 56px)/1.15 var(--serif); }
.menu a small { font: 500 11px/1 var(--sans); letter-spacing: 0.2em; color: var(--gold); }
.menu-note { margin-block-start: 48px; font-size: 12.5px; color: rgba(245, 240, 230, 0.66); max-width: 44ch; }
.menu-open .site-header, .menu-open .site-header.is-solid { color: var(--limestone); background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- motion
   One calm language: slow ease-out ("--drift"), short distances, nothing loops.
   Layout offsets use the `translate` property; motion uses `transform`, `scale`, `opacity` and `clip-path`,
   so a reveal never cancels a composed overlap. Hidden start states exist only under html.js and
   never under prefers-reduced-motion, so content is always visible without them. */
:root { --drift: cubic-bezier(.16, 1, .3, 1); --breeze: cubic-bezier(.33, 0, .2, 1); }
figure { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* fade and rise: whole blocks (the rooftop panel) */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--breeze), transform 1.1s var(--drift); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* staggered text: children rise a little, one after another; short so copy is readable almost at once */
  .js [data-stagger] > * { opacity: 0; transform: translateY(16px);
    transition: opacity .8s var(--breeze), transform 1s var(--drift); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-stagger].in > * { opacity: 1; transform: none; }

  /* the small rule inside section labels draws itself as the section arrives */
  .js [data-stagger] .label span:first-child::after { transform: scaleX(0); transform-origin: var(--rule-origin, left);
    transition: transform 1.2s var(--drift) .25s; }
  .js [data-stagger].in .label span:first-child::after { transform: scaleX(1); }

  /* photographs: a slow tide-like wipe from the bottom while the image settles from a slight scale.
     The observed figure itself is never clipped (an element clipped to nothing never "intersects"):
     the figure only fades, the photograph inside it is wiped in. */
  .js .reveal-img { opacity: 0; transition: opacity .7s var(--breeze); }
  .js .reveal-img.in { opacity: 1; }
  .js .reveal-img > img, .js .reveal-img > .owner-ph { clip-path: inset(100% 0 0 0); scale: 1.08;
    transition: clip-path 1.5s var(--drift), scale 1.9s var(--drift), transform 1.2s var(--drift); }
  .js .reveal-img.in > img, .js .reveal-img.in > .owner-ph { clip-path: inset(0); scale: 1; }
  .js .reveal-img[data-delay="1"], .js .reveal-img[data-delay="1"] > * { transition-delay: .12s; }
  .js .reveal-img[data-delay="2"], .js .reveal-img[data-delay="2"] > * { transition-delay: .24s; }

  /* language switch: a brief cross-fade instead of a jolt between scripts and directions */
  body { transition: opacity .18s var(--breeze); }
  .lang-switching body { opacity: 0; }
}
html[dir="rtl"] { --rule-origin: right; }

/* photography hover: desktop pointers only, a gentle push-in; captions brighten. Crops never change. */
@media (hover: hover) and (pointer: fine) {
  figure img { transition: transform 1.2s var(--drift), scale 1.8s var(--drift); }
  figure:hover img:not(.parallax) { transform: scale(1.03); }
  figure .credit { transition: opacity .6s var(--breeze), translate .6s var(--drift); }
  .mosaic figure .credit, .dining-main .credit { opacity: .82; }
  .mosaic figure:hover .credit, .dining-main:hover .credit { opacity: 1; translate: 0 -2px; }
}

/* line breaking: balanced headings, no orphaned last words in paragraphs (both languages) */
.display, .heading { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
