/* Dubai Gold Real Estate — storefront design system.
   Bright palette taken from the original site: white, champagne gold #d2c196,
   charcoal #252a2c, pale sky #edf7fa, slate #5c727d and teal #267188.
   Written with logical properties so /ar/ (dir="rtl") mirrors without a second sheet.
   Page layouts live in pages.css. */

:root {
  --white: #ffffff;
  --ivory: #faf7f1;
  --sand: #f2ebdd;
  --sky: #edf7fa;
  --sky-2: #dcedf2;
  --gold: #d2c196;
  --gold-soft: #e7dcc0;
  --gold-deep: #9a7c3e;   /* text-safe on white (4.6:1) */
  --gold-ink: #7a5f29;
  --charcoal: #252a2c;
  --charcoal-2: #33393c;
  --slate: #5c727d;
  --teal: #267188;
  --text: #252a2c;
  --text-soft: #5b6266;
  --line: rgba(37, 42, 44, 0.12);
  --line-strong: rgba(37, 42, 44, 0.22);
  --on-dark: #fbf8f2;
  --on-dark-soft: rgba(251, 248, 242, 0.72);
  --line-dark: rgba(251, 248, 242, 0.16);
  --danger: #b4412f;
  --ok: #2f7a55;

  --display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(96px, 12vw, 180px);
  --radius: 4px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 92px;
  --shadow: 0 30px 80px -30px rgba(37, 42, 44, 0.28);
  --shadow-sm: 0 10px 30px -12px rgba(37, 42, 44, 0.18);
}
html[lang="ar"] {
  --display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.7 var(--sans);
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--charcoal); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--charcoal); color: var(--on-dark); padding: 10px 16px; }
.skip:focus { top: 12px; }
/* Arabic script must never be tracked or uppercased. */
html[lang="ar"] body * { letter-spacing: normal !important; text-transform: none !important; }
[dir="rtl"] .i-arrow, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.bg-white { background: var(--white); }
.bg-sky { background: var(--sky); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--charcoal); color: var(--on-dark); }
.texture-paper { background-image: url("../img/site/paper-texture.jpg"); background-size: cover; background-position: center; }
.texture-topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/site/topo-lines.webp") center / cover no-repeat; opacity: 0.22; mix-blend-mode: multiply;
}
.texture-topo > * { position: relative; }

/* ---------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.bg-dark .eyebrow, .on-dark .eyebrow { color: var(--gold); }
html[lang="ar"] .eyebrow { font-size: 14px; }
.index { font: italic 400 20px/1 var(--display); color: var(--gold-deep); }
.bg-dark .index { color: var(--gold); }

.display, .h1, .h2, .h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.display { font-size: clamp(56px, 9.6vw, 168px); line-height: 0.9; font-weight: 300; letter-spacing: -0.035em; }
.h1 { font-size: clamp(48px, 7vw, 112px); line-height: 0.95; font-weight: 300; letter-spacing: -0.025em; }
.h2 { font-size: clamp(40px, 5.2vw, 84px); line-height: 1; font-weight: 300; letter-spacing: -0.02em; }
.h3 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; }
html[lang="ar"] .display { font-size: clamp(46px, 7.6vw, 128px); line-height: 1.2; font-weight: 400; }
html[lang="ar"] .h1 { font-size: clamp(40px, 5.8vw, 90px); line-height: 1.25; font-weight: 400; }
html[lang="ar"] .h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.3; font-weight: 400; }
html[lang="ar"] .h3 { line-height: 1.4; }
:is(.display, .h1, .h2, .h3, .statement) em { font-style: italic; color: var(--gold-deep); }
.bg-dark :is(.display, .h1, .h2, .h3, .statement) em, .on-dark :is(.display, .h1, .h2, .h3) em { color: var(--gold); }
html[lang="ar"] :is(.display, .h1, .h2, .h3, .statement) em { font-style: normal; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.75; color: var(--text-soft); max-width: 60ch; }
.bg-dark .lede, .on-dark .lede { color: var(--on-dark-soft); }
.statement { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.9vw, 62px); line-height: 1.14; letter-spacing: -0.015em; }
html[lang="ar"] .statement { font-weight: 400; line-height: 1.55; font-size: clamp(26px, 3.2vw, 48px); }
.muted { color: var(--text-soft); }

/* ---------- buttons & links */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px;
  font: 500 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 999px;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
  white-space: nowrap;
}
html[lang="ar"] .btn { font-size: 15px; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--charcoal)); transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.btn:hover .i-arrow { translate: 4px 0; }
[dir="rtl"] .btn:hover .i-arrow { translate: -4px 0; }
.i-arrow { transition: translate 0.4s var(--ease); }
.btn--gold { --bg: var(--gold); --fg: var(--charcoal); --bd: var(--gold); }
.btn--gold:hover { --fg: var(--on-dark); --bd: var(--charcoal); }
.btn--dark { --bg: var(--charcoal); --fg: var(--on-dark); --bd: var(--charcoal); --fill: var(--gold); }
.btn--dark:hover { --fg: var(--charcoal); --bd: var(--gold); }
.btn--line { --fg: var(--charcoal); --bd: var(--line-strong); }
.btn--line:hover { --fg: var(--on-dark); --bd: var(--charcoal); }
.btn--ghost-light { --fg: var(--on-dark); --bd: var(--line-dark); --fill: var(--on-dark); }
.btn--ghost-light:hover { --fg: var(--charcoal); --bd: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.u-link { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size 0.5s var(--ease-out); padding-bottom: 2px; }
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; background-position: 0 100%; }
[dir="rtl"] .u-link { background-position: 0 100%; }
[dir="rtl"] .u-link:hover { background-position: 100% 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
html[lang="ar"] .link-arrow { font-size: 15px; }
.link-arrow span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; padding-bottom: 6px; transition: background-size 0.5s var(--ease-out); }
.link-arrow:hover span { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.link-arrow:hover .i-arrow { translate: 5px 0; }
[dir="rtl"] .link-arrow:hover .i-arrow { translate: -5px 0; }

/* ---------- header */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
[dir="rtl"] .scroll-progress { transform-origin: right; }
.site-header {
  --hdr-fg: var(--charcoal);
  position: fixed; inset: 0 0 auto; z-index: 80; color: var(--hdr-fg);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.6s var(--ease-out), color 0.4s var(--ease);
}
body[data-tone="dark"] .site-header:not(.is-solid) { --hdr-fg: var(--on-dark); }
.site-header.is-solid { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header__inner { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); height: var(--header-h); transition: height 0.5s var(--ease); }
.site-header.is-solid .site-header__inner { height: calc(var(--header-h) - 18px); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { height: 46px; width: auto; color: var(--gold); }
.brand__mark .mark-ring { fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand__mark .mark-tower { fill: currentColor; }
.brand__word { display: grid; line-height: 1; }
.brand__word b { font: 500 23px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.06em; text-transform: uppercase; }
.brand__word small { font: 500 9px/1 "Instrument Sans", Arial, sans-serif; letter-spacing: 0.56em; text-transform: uppercase; margin-top: 6px; color: var(--gold-deep); }
body[data-tone="dark"] .site-header:not(.is-solid) .brand__word small { color: var(--gold); }
html[lang="ar"] .brand__word b { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.15; }
html[lang="ar"] .brand__word small { font-family: var(--sans); font-size: 12px; margin-top: 2px; }

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 36px); list-style: none; padding: 0; margin: 0; }
.nav a { position: relative; display: inline-block; font: 500 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 0; white-space: nowrap; }
html[lang="ar"] .nav a { font-size: 15px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
[dir="rtl"] .nav a::after { transform-origin: left; }
[dir="rtl"] .nav a:hover::after, [dir="rtl"] .nav a[aria-current="page"]::after { transform-origin: right; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px 0 14px; border: 1px solid color-mix(in srgb, var(--hdr-fg) 26%, transparent); border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: 0.1em; }
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: rotate 0.3s var(--ease); }
.lang__btn[aria-expanded="true"] svg { rotate: 180deg; }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 180px; padding: 8px; margin: 0; list-style: none;
  background: var(--white); color: var(--charcoal); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.3s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.lang__link b { width: 26px; font: 600 12px/1 var(--sans); color: var(--gold-deep); }
.lang__link:hover, .lang__link[aria-current] { background: var(--sky); }
.cur-select {
  appearance: none; height: 40px; background: transparent; color: inherit; border: 1px solid color-mix(in srgb, var(--hdr-fg) 26%, transparent); border-radius: 999px;
  font: 600 12px/1 "Instrument Sans", Arial, sans-serif; letter-spacing: 0.08em; padding-block: 0; padding-inline: 14px 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 12px) 52%; background-size: 4px 4px; background-repeat: no-repeat;
}
[dir="rtl"] .cur-select { background-position: 16px 52%, 12px 52%; }
.cur-select option { color: var(--text); }
.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--hdr-fg) 26%, transparent); z-index: 2; }
.burger span { position: absolute; inset-inline: 14px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; color: var(--charcoal); overflow-y: auto; }
.mobile-menu__bg { position: absolute; inset: 0; z-index: -1; background: var(--ivory) url("../img/site/paper-texture.jpg") center / cover; clip-path: circle(0% at calc(100% - 44px) 46px); transition: clip-path 0.9s var(--ease-out); }
[dir="rtl"] .mobile-menu__bg { clip-path: circle(0% at 44px 46px); }
.mobile-menu.is-open .mobile-menu__bg { clip-path: circle(150% at calc(100% - 44px) 46px); }
[dir="rtl"] .mobile-menu.is-open .mobile-menu__bg { clip-path: circle(150% at 44px 46px); }
.mobile-menu__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mobile-menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 6px 0; font: 300 clamp(40px, 11vw, 64px)/1.05 var(--display); overflow: hidden; }
html[lang="ar"] .mobile-menu__nav a { line-height: 1.5; font-weight: 400; }
.mobile-menu__nav .menu-num { font: 500 12px/1 var(--sans); color: var(--gold-deep); letter-spacing: 0.1em; }
.mobile-menu__nav a[aria-current="page"] .menu-text { font-style: italic; color: var(--gold-deep); }
.mobile-menu .menu-text, .mobile-menu__foot > * { transform: translateY(40px); opacity: 0; transition: transform 0.8s var(--ease-out), opacity 0.6s var(--ease); }
.mobile-menu.is-open .menu-text, .mobile-menu.is-open .mobile-menu__foot > * { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) .menu-text { transition-delay: 0.05s; }
.mobile-menu.is-open li:nth-child(3) .menu-text { transition-delay: 0.1s; }
.mobile-menu.is-open li:nth-child(4) .menu-text { transition-delay: 0.15s; }
.mobile-menu.is-open li:nth-child(5) .menu-text { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__foot > * { transition-delay: 0.3s; }
.mobile-menu__foot { display: grid; gap: 14px; padding-top: 28px; font-size: 15px; color: var(--text-soft); }
.mobile-menu__foot .cur-select { justify-self: start; --hdr-fg: var(--charcoal); color: var(--charcoal); }
.mobile-langs { display: flex; gap: 8px; }
.mobile-lang { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--charcoal); }
.mobile-lang[aria-current] { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.mobile-lang b { font-weight: 600; font-size: 12px; }
.mobile-lang span { font-size: 14px; }

@media (max-width: 1240px) { .brand__word { display: none; } }
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-actions { margin-inline-start: auto; }
  .brand__word { display: grid; }
}
@media (max-width: 600px) {
  :root { --header-h: 76px; }
  .brand__mark { height: 38px; }
  .brand__word b { font-size: 19px; }
  .header-actions .cur-select, .header-actions .lang { display: none; }
}
body.menu-open .site-header { --hdr-fg: var(--charcoal); background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }

/* ---------- preloader, curtain, cursor */
.preloader, .curtain { display: none; }
.motion.is-preloading .preloader {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: var(--ivory) url("../img/site/paper-texture.jpg") center / cover; color: var(--charcoal);
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.preloader__mark { width: 74px; height: auto; color: var(--gold-deep); }
.preloader__mark path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.preloader__word { font: 400 clamp(34px, 5vw, 56px)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.14em; text-transform: uppercase; }
.preloader__tag { font-size: 14px; color: var(--text-soft); max-width: 36ch; }
.preloader__meter { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 500 12px/1 "Instrument Sans", Arial, sans-serif; letter-spacing: 0.1em; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.preloader__meter span:first-child { min-width: 3ch; text-align: end; }
.preloader__bar { width: min(240px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; }
.motion .curtain {
  position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; pointer-events: none;
  background: var(--sand) url("../img/site/paper-texture.jpg") center / cover;
}
.motion.is-preloading .curtain { visibility: hidden; }
.curtain__mark { width: 56px; color: var(--gold-deep); }
.curtain__mark .mark-ring { fill: none; stroke: currentColor; stroke-width: 1.4; }
.curtain__mark .mark-tower { fill: currentColor; }

.cursor { position: fixed; inset: 0 auto auto 0; z-index: 160; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
.cursor__ring {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; translate: -50% -50%;
  background: var(--gold-deep); transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), background 0.3s, border-color 0.3s;
}
.cursor.is-hover .cursor__ring { width: 46px; height: 46px; background: transparent; border: 1px solid var(--gold-deep); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--gold); }
.cursor__label { position: absolute; left: 0; top: 0; translate: -50% -50%; font: 600 11px/1 "Instrument Sans", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
html[lang="ar"] .cursor__label { font-family: var(--sans); font-size: 14px; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- motion start states (only while .motion is set) */
.motion [data-split], .motion [data-intro] { visibility: hidden; }
.motion [data-reveal]:not([data-reveal="clip"]) { opacity: 0; }
.motion [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.line-mask { padding-block: 0.06em; margin-block: -0.06em; }
html[lang="ar"] .line-mask { padding-block: 0.18em; margin-block: -0.18em; }
[data-parallax] { will-change: transform; }
.media-frame { position: relative; overflow: hidden; background: var(--sand); }
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame > img[data-parallax] { position: absolute; inset: -9% 0; height: 118%; }

/* ---------- property card */
.cards { display: grid; gap: clamp(36px, 3.6vw, 56px) clamp(20px, 2.4vw, 36px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.09); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,42,44,0) 55%, rgba(37,42,44,.45)); opacity: 0.7; transition: opacity 0.6s var(--ease); }
.card:hover .card__media::after { opacity: 1; }
.card__tags { position: absolute; inset-inline: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  font: 500 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.86); color: var(--charcoal); backdrop-filter: blur(8px); border-radius: 999px;
}
html[lang="ar"] .tag { font-size: 13px; }
.tag--gold { background: var(--gold); }
.tag--dark { background: rgba(37, 42, 44, 0.72); color: var(--on-dark); }
.card__price-float { position: absolute; inset-inline-start: 18px; bottom: 16px; z-index: 1; color: var(--on-dark); font: 400 clamp(24px, 2vw, 30px)/1 var(--display); }
.card__body { padding-top: 22px; display: grid; gap: 8px; }
.card__place { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
html[lang="ar"] .card__place { font-size: 14px; }
.card__place svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card__title { font: 400 clamp(28px, 2.3vw, 36px)/1.05 var(--display); letter-spacing: -0.01em; }
html[lang="ar"] .card__title { line-height: 1.35; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card__tagline { color: var(--text-soft); font-size: 15px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.card__price { font-size: 16px; font-weight: 600; }
.specs-inline { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--text-soft); }
.specs-inline li { display: flex; align-items: center; gap: 6px; }
.specs-inline svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- forms */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.form-row { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form > *, .form-row > *, .field > * { min-width: 0; }
.field { display: grid; gap: 6px; }
.field > span, .field-label { font: 500 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
html[lang="ar"] .field > span, html[lang="ar"] .field-label { font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 12px 0; transition: border-color 0.4s var(--ease);
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 24px; }
[dir="rtl"] .field select { background-position: 9px 55%, 4px 55%; }
.field select option { color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.bg-dark .field > span { color: var(--on-dark-soft); }
.bg-dark .field :is(input, select, textarea) { border-color: var(--line-dark); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold-deep); flex-shrink: 0; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.bg-dark .check { color: var(--on-dark-soft); }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--ok); }
.bg-dark .form-status.is-ok { color: var(--gold); }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

/* ---------- FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 28px 0; font: 400 clamp(22px, 2.1vw, 30px)/1.2 var(--display); transition: color 0.4s var(--ease);
}
html[lang="ar"] .faq summary { line-height: 1.5; }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .index { font-size: 16px; }
.faq summary i { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background 0.4s var(--ease), border-color 0.4s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 0 30px; padding-inline-start: calc(22px + 2ch); max-width: 74ch; color: var(--text-soft); display: grid; gap: 12px; }

/* ---------- marquee */
.marquee { display: flex; overflow: hidden; white-space: nowrap; padding-block: clamp(22px, 3vw, 38px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; gap: clamp(28px, 4vw, 64px); padding-inline-end: clamp(28px, 4vw, 64px); }
.marquee__item { font: 300 clamp(38px, 5.4vw, 88px)/1 var(--display); letter-spacing: -0.02em; }
html[lang="ar"] .marquee__item { line-height: 1.4; font-weight: 400; }
.marquee__item:nth-child(even) { font-style: italic; color: var(--gold-deep); }
html[lang="ar"] .marquee__item:nth-child(even) { font-style: normal; }
.marquee__sep { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.no-motion-marquee .marquee__track { animation: none; }
html:not(.motion) .marquee { overflow-x: auto; scrollbar-width: none; }

/* ---------- misc components */
.toasts { position: fixed; z-index: 170; inset-inline-end: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--charcoal); color: var(--on-dark); padding: 14px 18px; border-inline-start: 3px solid var(--gold); border-radius: 10px; box-shadow: var(--shadow); font-size: 15px; animation: toast-in 0.4s var(--ease-out); }
.toast--error { border-color: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: 0.3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--charcoal); color: var(--gold);
  box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease-out), background 0.3s;
}
.wa-float:hover { transform: scale(1.08) rotate(-8deg); background: var(--gold); color: var(--charcoal); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-rows: auto 1fr auto; background: rgba(250, 247, 241, 0.98); color: var(--charcoal); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font: 500 13px/1 var(--sans); letter-spacing: 0.14em; }
.lightbox__stage { display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 18px; }
.icon-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.icon-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--on-dark); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-btn--prev svg { transform: rotate(180deg); }
[dir="rtl"] .icon-btn--prev svg { transform: none; }
[dir="rtl"] .icon-btn--next svg { transform: rotate(180deg); }

.empty { padding: 72px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); display: grid; gap: 16px; justify-items: center; }
.skeleton { border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--sand), #f7f1e6, var(--sand)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- footer */
.site-footer { position: relative; overflow: hidden; background: var(--charcoal); color: var(--on-dark); padding: clamp(90px, 11vw, 150px) 0 28px; }
.footer-topo { position: absolute; inset: 0; background: url("../img/site/topo-lines.webp") center / cover no-repeat; opacity: 0.06; filter: invert(1); pointer-events: none; }
.site-footer .wrap { position: relative; }
.footer-cta { display: grid; justify-items: center; text-align: center; gap: 28px; padding-bottom: clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line-dark); }
.footer-cta .eyebrow { color: var(--gold); }
.footer-cta__title { font: 300 clamp(44px, 7vw, 112px)/0.98 var(--display); letter-spacing: -0.03em; max-width: 14ch; }
html[lang="ar"] .footer-cta__title { font-weight: 400; line-height: 1.3; }
.footer-cta__title em { font-style: italic; color: var(--gold); }
html[lang="ar"] .footer-cta__title em { font-style: normal; }
.footer-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-block: 72px 32px; }
.footer-grid h3 { font: 500 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
html[lang="ar"] .footer-grid h3 { font-size: 15px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--on-dark-soft); }
.footer-grid a:hover { color: var(--on-dark); }
.footer-brand .brand { margin-bottom: 24px; }
.footer-brand .brand__mark { height: 60px; }
.footer-brand .brand__word b { font-size: 28px; color: var(--on-dark); }
.footer-brand .brand__word small { color: var(--gold); }
.footer-brand p { color: var(--on-dark-soft); max-width: 34ch; }
.footer-langs a { display: inline-flex; gap: 10px; }
.footer-langs b { color: var(--gold); font-weight: 600; font-size: 12px; min-width: 22px; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.socials a { color: var(--on-dark-soft); }
/* site.js fits the size to the container (--fit) in every language; the clamp is the no-JS fallback. */
.footer-word {
  font: 300 var(--fit, clamp(48px, 13vw, 230px))/0.9 "Cormorant Garamond", Georgia, serif; letter-spacing: -0.04em; text-transform: uppercase;
  text-align: center; white-space: nowrap; color: var(--gold); opacity: 0.9; padding-block: 24px 36px; overflow: hidden;
}
html[lang="ar"] .footer-word { font-family: var(--display); font-weight: 400; line-height: 1.4; padding-block: 4px 20px; }
.fw-char-mask { padding-block: 0.08em; margin-block: -0.08em; }
.fw-word-mask { padding-block: 0.3em; margin-block: -0.3em; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-soft); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.to-top { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.to-top:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* Leave room for the floating WhatsApp button so it never covers the back-to-top control. */
.footer-bottom { padding-inline-end: 84px; }
html[lang="ar"] .preloader__word { font-family: var(--display); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .wa-float, .mobile-menu, .cursor, .curtain, .preloader, .scroll-progress { display: none !important; }
  body { background: #fff; }
}
