/* ==========================================================================
   Carlo Joaillier — design system
   Palette: charcoal #0d0c0a · ivory #f4efe6 · gold #c8a24b · champagne #e6d3a3
   Type:    Cormorant Garamond (display) · Jost (text)
   ========================================================================== */

:root {
  --ink: #0d0c0a;
  --ink-2: #14120e;
  --ink-3: #1d1a14;
  --ivory: #f4efe6;
  --ivory-dim: rgba(244, 239, 230, 0.72);
  --ivory-faint: rgba(244, 239, 230, 0.45);
  --gold: #c8a24b;
  --gold-soft: #e6d3a3;
  --gold-line: rgba(200, 162, 75, 0.38);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1180px, 92%); margin-inline: auto; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.overline::before { content: ''; width: 34px; height: 1px; background: var(--gold-line); }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0.6rem 0 1rem; }
.section__head p { color: var(--ivory-dim); }

.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .overline { justify-content: center; }
.section__head--center .overline::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: all 0.45s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ink); box-shadow: 0 10px 34px rgba(200, 162, 75, 0.35); }

.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding: 1.1rem 0;
}
.nav.is-scrolled {
  /* NOTE: no backdrop-filter here — it would create a containing block that
     clips the position:fixed mobile drawer to the header height (the classic
     "menu opens cut off" bug on real phones). A near-opaque bar reads the
     same visually and is bulletproof across browsers. */
  background: rgba(13, 12, 10, 0.96);
  box-shadow: 0 1px 0 var(--gold-line), 0 14px 40px rgba(0, 0, 0, 0.4);
  padding: 0.65rem 0;
}

.nav__inner {
  width: min(1320px, 94%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo img { height: 46px; width: auto; transition: height 0.4s; }
.nav.is-scrolled .nav__logo img { height: 38px; }

.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.8rem);
}
.nav__links a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; left: 0; }

.nav__cta {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--gold-line);
  padding: 0.62rem 1.35rem;
  transition: all 0.35s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.nav__burger { display: none; z-index: 130; }
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  margin: 5.5px 0;
  transition: all 0.35s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 90; /* must stay BELOW .nav (100) so the drawer itself is never dimmed */
}
.nav-drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 9s var(--ease) forwards;
}
@keyframes kenburns { to { transform: scale(1); } }

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,12,10,0.55) 0%, rgba(13,12,10,0.18) 40%, rgba(13,12,10,0.82) 100%);
}

.hero__content {
  position: absolute;
  inset: auto 0 16%;
  text-align: center;
  z-index: 5;
  padding: 0 6vw;
}
.hero__overline {
  font-size: 0.74rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.hero__title em { font-style: italic; color: var(--gold-soft); }
.hero__sub {
  margin-top: 1.5rem;
  color: var(--ivory-dim);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  letter-spacing: 0.06em;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--ivory-faint);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee strip ---------- */
.strip {
  border-block: 1px solid var(--gold-line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 1.05rem 0;
}
.strip__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide-x 30s linear infinite;
}
.strip__track span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
@keyframes slide-x { to { transform: translateX(-50%); } }

/* ---------- collection cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.6vw, 2.2rem); }

.card {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(200, 162, 75, 0.16);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold-line); }

.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(0.92);
}
.card:hover .card__media img { transform: scale(1.07); filter: saturate(1.05); }

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(13, 12, 10, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gold-line);
  padding: 0.4rem 0.85rem;
}

.card__body { padding: 1.5rem 1.4rem 1.7rem; }
.card__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; letter-spacing: 0.04em; }
.card__body p {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--ivory-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__link::after { content: ' →'; transition: margin 0.3s; }
.card:hover .card__link::after { margin-left: 6px; }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split--flip .split__media { order: 2; }

.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; box-shadow: var(--shadow); }
.split__media::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold-line);
  z-index: -1;
}
.split--flip .split__media::before { inset: 22px 22px -22px -22px; }

.split__text .display { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 0.6rem 0 1.2rem; }
.split__text p { color: var(--ivory-dim); margin-bottom: 1rem; }
.split__text .btn { margin-top: 1rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.stats__cell { background: var(--ink-2); text-align: center; padding: 2.4rem 1rem; }
.stats__num { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--gold-soft); font-weight: 500; }
.stats__label { margin-top: 0.35rem; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-faint); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(3.2rem, 7vw, 5rem);
  background:
    linear-gradient(180deg, rgba(13,12,10,0.88), rgba(13,12,10,0.55)),
    var(--ink-3) center/cover;
  text-align: center;
  border-bottom: 1px solid var(--gold-line);
}
.page-hero.has-photo { background-image: linear-gradient(180deg, rgba(13,12,10,0.9), rgba(13,12,10,0.72)), var(--bg-img); background-size: cover; background-position: center; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-top: 0.8rem;
}
.page-hero p { max-width: 620px; margin: 1.1rem auto 0; color: var(--ivory-dim); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(200, 162, 75, 0.14);
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: '⤢';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: transparent;
  background: rgba(13, 12, 10, 0);
  transition: all 0.4s;
}
.gallery__item:hover::after { color: var(--gold-soft); background: rgba(13, 12, 10, 0.35); }

.gallery__item figcaption { display: none; }

.collection-quote {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.4rem, 5vw, 3.6rem);
}
.collection-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--gold-soft);
}
.collection-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ---------- brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.brand-card {
  padding: 2.2rem 1.8rem;
  background: var(--ink-2);
  border: 1px solid rgba(200, 162, 75, 0.16);
  text-align: center;
  transition: all 0.45s var(--ease);
}
.brand-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.brand-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; letter-spacing: 0.05em; }
.brand-card p { margin-top: 0.7rem; font-size: 0.87rem; color: var(--ivory-faint); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }

.info-list { list-style: none; margin-top: 2rem; }
.info-list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(200, 162, 75, 0.18);
}
.info-list li:first-child { border-top: 1px solid rgba(200, 162, 75, 0.18); }
.info-list__icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.info-list h4 { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.info-list p { margin-top: 0.3rem; color: var(--ivory-dim); font-size: 0.95rem; }

.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid rgba(200, 162, 75, 0.22);
  color: var(--ivory);
  padding: 0.95rem 1.05rem;
  font: inherit;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink-3);
}
.field textarea { min-height: 150px; resize: vertical; }

.form__note { font-size: 0.8rem; color: var(--ivory-faint); }

.alert {
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--gold-line);
  background: rgba(200, 162, 75, 0.1);
  color: var(--gold-soft);
}
.alert--error { border-color: rgba(214, 94, 77, 0.5); background: rgba(214, 94, 77, 0.1); color: #e8a196; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background:
    linear-gradient(180deg, rgba(13,12,10,0.86), rgba(13,12,10,0.94)),
    var(--ink-3);
  border-top: 1px solid var(--gold-line);
}
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-band p { color: var(--ivory-dim); max-width: 520px; margin: 1rem auto 2.2rem; }

/* ---------- footer ---------- */
.footer { background: #0a0908; border-top: 1px solid var(--gold-line); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer__brand img { height: 54px; }
.footer__tagline { margin-top: 1.1rem; font-family: var(--serif); font-style: italic; color: var(--ivory-faint); }

.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer__col a { display: block; color: var(--ivory-dim); padding: 0.32rem 0; font-size: 0.92rem; transition: color 0.3s, transform 0.3s; }
.footer__col a:hover { color: var(--gold-soft); transform: translateX(4px); }
.footer__col p { color: var(--ivory-dim); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer__fb { margin-top: 0.6rem; color: var(--gold-soft); }

.footer__social { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.footer__social a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold-soft); font-size: 0.82rem; letter-spacing: 0.06em;
  transition: color 0.25s ease;
}
.footer__social a svg { flex: 0 0 auto; opacity: 0.9; }
.footer__social a:hover { color: var(--ivory); }
/* RTL: flex row already mirrors (icon rightmost) — no reversal needed */

.footer__bar { border-top: 1px solid rgba(200, 162, 75, 0.15); padding: 1.2rem 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.76rem; color: var(--ivory-faint); letter-spacing: 0.08em; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 5, 0.94);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__figure { max-width: min(920px, 92vw); text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; border: 1px solid var(--gold-line); }
.lightbox__figure figcaption {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory-dim);
  letter-spacing: 0.05em;
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 30px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ivory-dim);
  transition: color 0.3s, transform 0.3s;
}
.lightbox__close:hover { color: var(--gold); transform: rotate(90deg); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
  font-family: var(--serif);
  color: var(--ivory-faint);
  padding: 0.4rem 1rem;
  transition: color 0.3s;
}
.lightbox__nav:hover { color: var(--gold); }
.lightbox__nav--prev { left: 2vw; }
.lightbox__nav--next { right: 2vw; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 10rem 0 7rem; }
.err h1 { font-family: var(--serif); font-size: clamp(4.5rem, 12vw, 9rem); color: var(--gold); font-weight: 500; }
.err p { color: var(--ivory-dim); margin: 1rem 0 2.4rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- language switcher ---------- */
.nav__right { display: flex; align-items: center; gap: 1.3rem; justify-self: end; }

.nav__langs { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; letter-spacing: 0.12em; }
.nav__langs a { color: var(--ivory-faint); padding: 0.15rem 0.15rem; transition: color 0.25s; }
.nav__langs a:hover { color: var(--ivory); }
.nav__langs a.is-current { color: var(--gold); font-weight: 500; }
.nav__langs span { color: var(--ivory-faint); }
.nav__langs--mobile { display: none; }

/* numbers (phones) stay LTR inside RTL text */
.num-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ==========================================================================
   Arabic typography (Amiri display + Tajawal text)
   ========================================================================== */
html[lang="ar"] body { font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif; }
html[lang="ar"] .display,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .hero__title, html[lang="ar"] .collection-quote blockquote,
html[lang="ar"] .stats__num, html[lang="ar"] .err h1 {
  font-family: 'Amiri', 'Tajawal', serif;
}
html[lang="ar"] .overline,
html[lang="ar"] .btn, html[lang="ar"] .nav__links a, html[lang="ar"] .nav__cta,
html[lang="ar"] .card__link, html[lang="ar"] .stats__label, html[lang="ar"] .hero__overline,
html[lang="ar"] .hero__scroll, html[lang="ar"] .collection-quote cite,
html[lang="ar"] .footer__col h4, html[lang="ar"] .brand-card h3 {
  letter-spacing: 0; /* Arabic has no letter-spacing tradition */
}
/* Amiri & Tajawal have no true italics — synthetic slant distorts the script */
html[lang="ar"] .hero__title em,
html[lang="ar"] .strip__track span,
html[lang="ar"] .footer__tagline,
html[lang="ar"] .collection-quote blockquote,
html[lang="ar"] .lightbox__figure figcaption {
  font-style: normal;
}
html[lang="ar"] .footer__col a:hover { transform: translateX(-4px); }

/* Amiri & Tajawal have no true italics — synthetic slant distorts the script */
html[lang="ar"] .hero__title em,
html[lang="ar"] .strip__track span,
html[lang="ar"] .footer__tagline,
html[lang="ar"] .collection-quote blockquote,
html[lang="ar"] .lightbox__figure figcaption {
  font-style: normal;
}

/* ==========================================================================
   RTL (Arabic)
   ========================================================================== */
[dir="rtl"] .nav__inner { grid-template-columns: auto 1fr auto; }
/* Desktop RTL: grid auto-placement already mirrors LTR (logo right, links
   center, langs/CTA left) — order overrides here would throw the logo into
   the wide middle column and break the bar. Orders are mobile-only rules;
   they live inside the ≤900px media query below. */

/* Drawer geometry for RTL lives ONLY inside the ≤900px media query below —
   on desktop .nav__links is a normal centered grid item, and inset/transform
   values meant for the off-canvas drawer were throwing it off-screen. */

[dir="rtl"] .overline { flex-direction: row-reverse; }
[dir="rtl"] .split__media::before { inset: 22px 22px -22px -22px; }
[dir="rtl"] .split--flip .split__media::before { inset: 22px -22px -22px 22px; }
[dir="rtl"] .card__link::after { content: ' ←'; }
[dir="rtl"] .lightbox__nav--prev { left: auto; right: 2vw; }
[dir="rtl"] .lightbox__nav--next { right: auto; left: 2vw; }
[dir="rtl"] .lightbox__close { right: auto; left: 30px; }
[dir="rtl"] .footer__col a:hover { transform: translateX(0) scale(1.02); }

@media (max-width: 900px) {
  .nav__langs--mobile {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    font-size: 0.95rem;
    padding-top: 1.4rem;
    margin-top: 0.6rem;
    border-top: 1px solid var(--gold-line);
  }
  .nav__langs:not(.nav__langs--mobile) { display: none; }
  /* Mobile RTL: burger on the LEFT (drawer side), logo on the right.
     .nav__links is position:fixed here, so it takes no grid cell. */
  [dir="rtl"] .nav__burger { order: 3; }
  [dir="rtl"] .nav__logo { order: 1; }
  [dir="rtl"] .nav__right { order: 2; justify-self: start; }
  [dir="rtl"] .nav__links { top: 0; right: 0; bottom: 0; left: auto; border-right: 0; border-left: 1px solid var(--gold-line); transform: translateX(100%); }
  [dir="rtl"] .nav__links.is-open { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links {
    /* explicit longhands (not `inset`) for older iOS support */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 84vw);
    height: 100vh;
    height: 100dvh; /* follows mobile browser chrome collapse */
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.9rem;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 2.6rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(13, 12, 10, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--gold-line);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 120;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1rem; color: var(--ivory); }
  .nav__burger { display: block; }
  .nav__cta { display: none; }

  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media::before, .split--flip .split__media::before { inset: 16px -16px -16px 16px; }

  .contact-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .brand-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .form__row { grid-template-columns: 1fr; }
  .hero__content { bottom: 13%; }
  .lightbox__nav { display: none; }
  .footer__bar-inner { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Enhancements — vintage archive integration, booking, heritage album,
   classic effects (all consistent with the original identity)
   ========================================================================== */

html { scroll-behavior: smooth; }

/* ----- brands collage shown as framed artwork (was a hero bg with text on
   text — now displayed like the original archive did: as an image) ----- */
.brands-collage {
  margin: 0 auto 3.6rem;
  max-width: 880px;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
}
.brands-collage::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(200, 162, 75, 0.16);
  pointer-events: none;
}
.brands-collage img { display: block; width: 100%; height: auto; }

/* ----- heritage album (about page) ----- */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}
.heritage-grid__item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 75, 0.16);
  background: var(--ink-2);
  aspect-ratio: 3 / 2;
}
.heritage-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.02);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.heritage-grid__item:hover img { transform: scale(1.07); filter: sepia(0) contrast(1); }
.heritage-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s var(--ease);
  pointer-events: none;
}
.heritage-grid__item:hover::after { border-color: rgba(200, 162, 75, 0.45); }

/* ----- appointment booking band ----- */
.booking-band {
  background:
    linear-gradient(180deg, rgba(13,12,10,0.94), rgba(13,12,10,0.88)),
    var(--ink-3) center/cover;
  border-block: 1px solid rgba(200, 162, 75, 0.18);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.booking-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  position: relative;
}
.booking-card::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(200, 162, 75, 0.14);
  pointer-events: none;
}
.booking-card__head { text-align: center; margin-bottom: 2rem; }
.booking-card__head p { color: var(--ivory-dim); max-width: 540px; margin: 0.9rem auto 0; }
.booking-card__foot {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.booking-card__foot .form__note { margin: 0; }
.form__row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ----- classic refinements ----- */
/* staggered cascade for card & gallery grids */
.cards .reveal:nth-child(2), .gallery .reveal:nth-child(2), .brand-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal:nth-child(3), .gallery .reveal:nth-child(3), .brand-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.cards .reveal:nth-child(4), .gallery .reveal:nth-child(4), .brand-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.cards .reveal:nth-child(5), .gallery .reveal:nth-child(5), .brand-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.cards .reveal:nth-child(6), .gallery .reveal:nth-child(6), .brand-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

/* gallery figures keep their caption always legible (overrides the display:none default) */
.gallery__item figcaption {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.8rem 0.9rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(13, 12, 10, 0.88));
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ivory-dim);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }

/* respect RTL for the figcaption + booking foot */
[dir="rtl"] .gallery__item figcaption { direction: rtl; text-align: right; }
[dir="rtl"] .booking-card__foot { flex-direction: row-reverse; }

@media (max-width: 1080px) {
  .heritage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .form__row--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .heritage-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .form__row--3 { grid-template-columns: 1fr; }
  .booking-card__foot { flex-direction: column; align-items: flex-start; }
  .brands-collage { margin-bottom: 2.6rem; }
}

/* ===== Privacy policy page + footer privacy link (restored from the original site) ===== */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  margin: 2.4rem 0 0.7rem;
  color: var(--ivory, inherit);
  letter-spacing: 0.01em;
}
.prose p { color: var(--ivory-dim, inherit); line-height: 1.85; margin-bottom: 0.9rem; }
.prose a { color: var(--gold, #c9a86a); }
.footer__privacy { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; transition: text-decoration-color 0.25s ease, color 0.25s ease; }
.footer__privacy:hover { color: var(--gold, #c9a86a); text-decoration-color: currentColor; }
