/* Taj Al Shurfa — site styles. Logical properties throughout so the Arabic (RTL) layout mirrors automatically. */

:root {
  /* brand constants */
  --crimson: #961b24;
  --crimson-deep: #5f121a;
  --crimson-ink: #3d0b11;
  --crimson-bright: #ba2138;
  --gold: #a38b52;
  --gold-soft: #cdb98c;
  --ink: #151314;
  --ink-2: #2b2728;
  --paper: #ffffff;
  --stone: #f6f3ef;
  --sand: #ede6dd;
  --wa: #1fae55;

  /* theme tokens: light */
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f3ef;
  --surface: #ffffff;
  --surface-2: #f6f3ef;
  --placeholder: #ede6dd;
  --text: #151314;
  --text-2: #2b2728;
  --muted: #6e6764;
  --line: #e4ded7;
  --line-soft: #efeae4;
  --accent: #961b24;
  --accent-deep: #5f121a;
  --inverse: #151314;
  --inverse-2: #211e1f;
  --tile-ink: #151314;
  --header-bg: rgba(255, 255, 255, 0.86);
  --ghost-bd: rgba(21, 19, 20, 0.22);
  --hairline: rgba(21, 19, 20, 0.12);
  --soon-bg: #fff4e0;
  --soon-fg: #8a5a00;
  --compare-hi: #fbf6f4;
  --glare: rgba(255, 255, 255, 0.35);
  --logo-a: #cf3442;
  --logo-b: #961b24;
  --logo-c: #6a1018;
  --shadow: 0 1px 2px rgba(25, 10, 12, 0.05), 0 18px 40px -18px rgba(45, 12, 18, 0.28);
  --shadow-lg: 0 2px 4px rgba(25, 10, 12, 0.06), 0 30px 60px -24px rgba(45, 12, 18, 0.4);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Manrope", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-mark: "Nunito Sans", "Manrope", system-ui, sans-serif;
  --concentric: repeating-radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 26px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121011;
  --bg-alt: #1a1617;
  --surface: #211c1d;
  --surface-2: #2a2425;
  --placeholder: #2a2425;
  --text: #f3eeea;
  --text-2: #ddd5d0;
  --muted: #a69d98;
  --line: #372f30;
  --line-soft: #2b2526;
  --accent: #e8586a;
  --accent-deep: #f2a3ac;
  --inverse: #0a0909;
  --inverse-2: #1c1819;
  --tile-ink: #3b3435;
  --header-bg: rgba(18, 16, 17, 0.82);
  --ghost-bd: rgba(255, 255, 255, 0.24);
  --hairline: rgba(255, 255, 255, 0.12);
  --soon-bg: #3a2c10;
  --soon-fg: #f2c66d;
  --compare-hi: #2a1d1f;
  --glare: rgba(255, 255, 255, 0.16); --logo-a: #ff5a68; --logo-b: #d02c3b; --logo-c: #9c1a26;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -24px rgba(0, 0, 0, 0.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #121011;
    --bg-alt: #1a1617;
    --surface: #211c1d;
    --surface-2: #2a2425;
    --placeholder: #2a2425;
    --text: #f3eeea;
    --text-2: #ddd5d0;
    --muted: #a69d98;
    --line: #372f30;
    --line-soft: #2b2526;
    --accent: #e8586a;
    --accent-deep: #f2a3ac;
    --inverse: #0a0909;
    --inverse-2: #1c1819;
    --tile-ink: #3b3435;
    --header-bg: rgba(18, 16, 17, 0.82);
    --ghost-bd: rgba(255, 255, 255, 0.24);
    --hairline: rgba(255, 255, 255, 0.12);
    --soon-bg: #3a2c10;
    --soon-fg: #f2c66d;
    --compare-hi: #2a1d1f;
    --glare: rgba(255, 255, 255, 0.16); --logo-a: #ff5a68; --logo-b: #d02c3b; --logo-c: #9c1a26;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -24px rgba(0, 0, 0, 0.85);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--crimson-bright); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--inverse); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--stone { background: var(--bg-alt); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--crimson-bright); border-radius: 2px; }
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; font-size: 0.9rem; }
.title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.98; }
.title::after { content: "."; color: var(--crimson-bright); }
html[lang="ar"] .title { text-transform: none; line-height: 1.3; }
.rule { display: block; width: 200px; height: 3px; margin-top: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--crimson), rgba(150, 27, 36, 0)); }
[dir="rtl"] .rule { background: linear-gradient(270deg, var(--crimson), rgba(150, 27, 36, 0)); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 4px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; column-gap: 64px; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--crimson); --fg: #fff; --bd: var(--crimson);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { --bg: var(--crimson-deep); --bd: var(--crimson-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(95, 18, 26, 0.6); }
.btn--ghost { --bg: transparent; --fg: var(--text); --bd: var(--ghost-bd); }
.btn--ghost:hover { --bg: var(--text); --fg: var(--bg); --bd: var(--text); box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--crimson-deep); --bd: #fff; }
.btn--light:hover { --bg: var(--stone); --fg: var(--crimson-deep); --bd: var(--stone); }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; box-shadow: none; }
.btn--wa { --bg: var(--wa); --bd: var(--wa); }
.btn--wa:hover { --bg: #178a43; --bd: #178a43; box-shadow: 0 10px 24px -12px rgba(23, 138, 67, 0.6); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.88rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 46px; height: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-mark); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.035em; color: var(--text); white-space: nowrap; }
.brand-name::after { content: ""; display: block; width: 34px; height: 2.5px; margin-top: 5px; background: var(--crimson-bright); border-radius: 2px; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }
html[lang="ar"] .brand-tag { letter-spacing: 0; font-size: 0.72rem; }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.94rem; color: var(--text-2); transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.25s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: 0.9rem; transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover, .theme-btn:hover { border-color: var(--text); }
html[lang="en"] .lang-btn { font-family: var(--font-ar); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; translate: -50% 0;
  width: min(760px, 92vw); padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
[dir="rtl"] .mega { translate: 50% 0; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; transition: background 0.2s; }
.mega a:hover { background: var(--surface-2); }
.mega img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.mega strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.mega span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.mega .mega-all { grid-column: 1 / -1; justify-content: center; margin-top: 6px; border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; padding-top: 14px; font-weight: 700; color: var(--accent); font-size: 0.9rem; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; padding: 18px var(--gutter) 28px;
  transform: translateX(100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.25rem; font-weight: 700; }
.drawer-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.drawer-products a { font-size: 0.92rem !important; font-weight: 600 !important; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px !important; justify-content: flex-start !important; gap: 10px; }
.drawer-products img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.drawer-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }

@media (max-width: 1080px) {
  .main-nav, .header-actions .btn-quote { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-mark { width: 40px; }
  .lang-btn { padding-inline: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg-alt); overflow: clip; padding-block: clamp(40px, 6vw, 84px) clamp(64px, 7vw, 104px); }
.hero-ts { position: absolute; inset-inline-start: -5vw; bottom: -9vw; width: min(820px, 64vw); opacity: 0.13; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); letter-spacing: -0.04em; line-height: 0.96; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 2px; bottom: 0.02em; height: 0.09em; background: var(--crimson-bright); opacity: 0.35; border-radius: 4px; }
html[lang="ar"] .hero h1 { line-height: 1.25; letter-spacing: 0; font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.hero .lead { color: var(--text-2); opacity: 0.85; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 4vw, 48px); padding-top: 26px; margin-top: 6px; border-top: 1px solid var(--hairline); }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.hero-stats dd { margin: 0; font-size: 0.85rem; color: var(--muted); }

.hero-visual { position: relative; min-height: clamp(460px, 52vw, 640px); }
.hv-block { position: absolute; inset-inline-end: 0; top: 7%; bottom: 0; width: 64%; background: var(--concentric), var(--crimson-deep); border-radius: 26px; }
[dir="rtl"] .hv-block { background: repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 26px), var(--crimson-deep); }
.hv-main { position: absolute; inset-inline-end: 13%; top: 0; width: 52%; aspect-ratio: 3 / 5; margin: 0; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hv-main img { width: 100%; height: 100%; object-fit: cover; }
.hv-vertical {
  position: absolute; right: 3.2%; top: 12%; writing-mode: vertical-rl;
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); font-weight: 600;
}
[dir="rtl"] .hv-vertical { right: auto; left: 3%; }
html[lang="ar"] .hv-vertical { letter-spacing: 0.04em; font-size: 0.82rem; }
.hv-card { position: absolute; inset-inline-start: 0; bottom: 9%; width: 48%; margin: 0; padding: 10px 10px 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); }
.hv-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.hv-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 6px 0; font-weight: 700; font-size: 0.9rem; }
.hv-card figcaption span { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.hv-swatches { position: absolute; inset-inline-start: 6%; top: 4%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
.hv-swatches .dots { display: flex; }
.hv-swatches img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--surface); margin-inline-start: -10px; }
.hv-swatches img:first-child { margin-inline-start: 0; }
.hv-swatches b { font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; aspect-ratio: 1 / 0.95; max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-ts { width: 110vw; bottom: auto; top: 30%; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats dd { font-size: 0.78rem; line-height: 1.35; }
  .hv-card { width: 56%; bottom: 5%; }
  .hv-main { width: 58%; inset-inline-end: 10%; }
  .hv-swatches { top: 2%; inset-inline-start: 0; }
  .hv-vertical { display: none; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--inverse); color: #fff; overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; }
.marquee-group span { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
html[lang="ar"] .marquee-group span { letter-spacing: 0; text-transform: none; }
.marquee-group i { width: 8px; height: 8px; background: var(--crimson-bright); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- product cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.pcard:hover { --lift: -4px; box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--placeholder); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-num { position: absolute; inset-inline-start: 14px; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--crimson); }
.pcard-body { display: grid; gap: 10px; padding: 22px 22px 24px; flex: 1; align-content: start; }
.pcard h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
.pcard p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.pcard .chips-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chips-mini span { font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.pcard .link-arrow { margin-top: 8px; }
.pcard[hidden] { display: none; }

/* ---------- feature (marble) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature-visual { position: relative; padding-bottom: 12%; }
.feature-visual .fv-main { width: 76%; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.feature-visual .fv-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.feature-visual .fv-sub { position: absolute; inset-inline-end: 0; bottom: 0; width: 58%; border: 8px solid var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-visual .fv-sub img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-copy { display: grid; gap: 24px; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.mini-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-swatches button { width: 54px; height: 72px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform 0.2s; }
.mini-swatches button:hover { transform: translateY(-3px); }
.mini-swatches img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } .feature-visual { max-width: 520px; } }

/* ---------- finish library ---------- */
.finishes { background: var(--inverse); color: #fff; }
.finishes .lead { color: rgba(255, 255, 255, 0.66); }
.finishes .title::after { color: var(--crimson-bright); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 28px; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow: visible; } }
.tab {
  flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82); font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.tab:hover { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.fl-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.fl-group + .fl-group { margin-top: 30px; }
.fl-group h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; }
.fl-group h3 small { color: rgba(255, 255, 255, 0.45); font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 0.8rem; }
html[lang="ar"] .fl-group h3 { letter-spacing: 0; font-size: 0.95rem; }
.swatch-grid { --min: 104px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr)); gap: 14px 12px; }
.swatch-grid[data-ratio="3/5"] { --min: 84px; }
.swatch-grid[data-ratio="5/2"] { --min: 150px; }
.swatch { display: grid; gap: 7px; text-align: start; }
.swatch-img { border-radius: 10px; overflow: hidden; aspect-ratio: var(--ratio, 1); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.swatch-img img { width: 100%; height: 100%; object-fit: cover; }
.swatch:hover .swatch-img { transform: translateY(-2px); }
.swatch[aria-pressed="true"] .swatch-img { box-shadow: 0 0 0 2px var(--inverse), 0 0 0 4px var(--gold-soft); }
.swatch-code { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.light .swatch-code { color: var(--muted); }
.light .swatch-img { box-shadow: 0 0 0 1px var(--line); }
.light .swatch[aria-pressed="true"] .swatch-img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

.fl-preview { position: sticky; top: calc(var(--header-h) + 20px); background: var(--inverse-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 16px; display: grid; gap: 16px; }
.fl-preview .pv-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #2d292a; }
.fl-preview .pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
html[lang="ar"] .pv-label { letter-spacing: 0; font-size: 0.85rem; }
.pv-code { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.pv-product { color: rgba(255, 255, 255, 0.66); font-size: 0.92rem; }
.pv-actions { display: grid; gap: 8px; }
.pv-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); line-height: 1.5; }
.pv-close { display: none; }
@media (max-width: 900px) {
  .fl-layout { grid-template-columns: 1fr; }
  .fl-preview {
    position: fixed; inset-inline: 0; bottom: 0; top: auto; z-index: 80; border-radius: 22px 22px 0 0; padding: 18px var(--gutter) 22px;
    grid-template-columns: 116px 1fr; align-items: center; column-gap: 16px; row-gap: 14px;
    transform: translateY(105%); transition: transform 0.35s var(--ease); box-shadow: 0 -20px 40px -10px rgba(0, 0, 0, 0.5);
  }
  .fl-preview.is-open { transform: none; }
  .fl-preview .pv-img { aspect-ratio: 1; }
  .pv-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .pv-actions .btn { padding-inline: 12px; font-size: 0.86rem; white-space: normal; text-align: center; line-height: 1.2; }
  .pv-note { display: none; }
  .pv-close { display: inline-flex; position: absolute; top: 10px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); }
  .pv-close svg { width: 18px; height: 18px; }
}

/* ---------- applications (masonry) ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { position: relative; margin: 0 0 18px; break-inside: avoid; border-radius: 18px; overflow: hidden; background: var(--placeholder); }
.masonry button { display: block; width: 100%; overflow: hidden; }
.masonry button img { height: 100%; }
.masonry img { width: 100%; height: auto; object-fit: cover; transition: transform 0.7s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 46px 16px 14px; color: #fff;
  background: linear-gradient(to top, rgba(10, 6, 7, 0.78), rgba(10, 6, 7, 0));
  display: flex; justify-content: space-between; align-items: end; gap: 10px; pointer-events: none;
}
.masonry figcaption b { font-size: 1rem; }
.masonry figcaption a { pointer-events: auto; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); white-space: nowrap; }
.masonry figcaption a:hover { background: #fff; color: var(--ink); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-visual { position: relative; padding-bottom: 18%; padding-inline-end: 14%; }
.about-visual .av-main { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 7; }
.about-visual .av-main img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .av-sub { position: absolute; inset-inline-end: 0; bottom: 0; width: 62%; border: 8px solid var(--bg-alt); border-radius: 22px; overflow: hidden; }
.about-visual .av-sub img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-visual .av-badge { position: absolute; inset-inline-start: -14px; top: 9%; background: var(--crimson); color: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-lg); width: 128px; }
.av-badge svg { width: 66px; height: auto; display: block; margin-bottom: 8px; }
.av-badge small { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; line-height: 1.3; display: block; }
html[lang="ar"] .av-badge small { letter-spacing: 0; font-size: 0.8rem; }
.about-copy { display: grid; gap: 22px; }
.about-copy p { color: var(--text-2); opacity: 0.88; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.value { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.value .ficon { width: 42px; height: 42px; }
.value h3 { font-size: 1.02rem; }
.value p { font-size: 0.9rem; color: var(--muted); opacity: 1; line-height: 1.5; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-visual { max-width: 460px; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- icon tile (catalog gold tiles) ---------- */
.ficon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ficon svg { width: 55%; height: 55%; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step-num { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 8px; font-family: var(--font); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- catalogue band ---------- */
.catband { position: relative; overflow: hidden; color: #fff; background: var(--concentric), linear-gradient(120deg, var(--crimson-deep), var(--crimson-ink)); }
.catband-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.catband .eyebrow { color: var(--gold-soft); }
.catband .eyebrow::before { background: #fff; }
.catband .title::after { color: var(--gold-soft); }
.catband .lead { color: rgba(255, 255, 255, 0.75); }
.catband-copy { display: grid; gap: 22px; }
.catband-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.books { position: relative; aspect-ratio: 4 / 3; }
.books img { position: absolute; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); border: 6px solid #fff; }
.books .b1 { width: 74%; inset-inline-start: 0; top: 4%; transform: rotate(-5deg); }
.books .b2 { width: 74%; inset-inline-end: 0; bottom: 4%; transform: rotate(4deg); }
@media (max-width: 900px) { .catband-grid { grid-template-columns: 1fr; } .books { max-width: 480px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.info-list { display: grid; gap: 14px; margin-top: 30px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.info .ficon { width: 46px; height: 46px; border-radius: 12px; }
.info .ficon--wa { background: var(--wa); }
.info .ficon--ink { background: var(--tile-ink); }
.info h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
html[lang="ar"] .info h3 { letter-spacing: 0; font-size: 0.88rem; }
.info p, .info a { font-weight: 600; line-height: 1.5; }
.info .sub { font-size: 0.85rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
.badge-soon { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: var(--soon-bg); color: var(--soon-fg); font-size: 0.74rem; font-weight: 700; vertical-align: 2px; }
.map { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--placeholder); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface-2); transition: border-color 0.2s, background 0.2s; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); background: var(--surface); }
.form-error { grid-column: 1 / -1; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.form-card .btn { width: 100%; margin-top: 6px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--inverse); color: rgba(255, 255, 255, 0.72); padding-block: clamp(56px, 7vw, 88px) 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 40px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: rgba(255, 255, 255, 0.5); }
.footer-blurb { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.site-footer h3 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
html[lang="ar"] .site-footer h3 { letter-spacing: 0; font-size: 0.95rem; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer-legal { display: grid; gap: 4px; }
@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; } }

/* ---------- floating WhatsApp + toast ---------- */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(16, 120, 58, 0.65); transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .wa-tip {
  position: absolute; inset-inline-end: calc(100% + 12px); white-space: nowrap; background: var(--inverse); color: #fff;
  font-size: 0.82rem; font-weight: 600; padding: 7px 12px; border-radius: 10px; opacity: 0; transform: translateX(6px); transition: all 0.2s; pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 120; translate: -50% 0; width: min(520px, calc(100vw - 32px));
  background: var(--inverse); color: #fff; padding: 16px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--gold-soft); margin-top: 1px; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(12, 8, 9, 0.88); }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; width: auto; height: auto; border-radius: 14px; margin-inline: auto; }
.lightbox p { color: rgba(255, 255, 255, 0.8); text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox-close { position: fixed; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.6; }
[dir="rtl"] .crumbs svg { transform: scaleX(-1); }
.pp-hero { background: var(--bg-alt); padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); overflow: clip; position: relative; }
.pp-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pp-copy { display: grid; gap: 22px; }
.pp-copy h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -0.035em; line-height: 1; }
html[lang="ar"] .pp-copy h1 { line-height: 1.3; letter-spacing: 0; }
.pp-copy h1::after { content: "."; color: var(--crimson-bright); }
.pp-copy .lead { color: var(--text-2); opacity: 0.85; max-width: 62ch; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips span { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 0.85rem; }
@media (max-width: 980px) {
  .pp-hero-grid { grid-template-columns: 1fr; }
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
@media (min-width: 980px) { .features-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.feature-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.feature-card h3 { font-size: 1.12rem; margin-top: 6px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.spec-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: start; vertical-align: top; font-size: 0.95rem; }
.spec-table th { width: 30%; background: var(--crimson); color: #fff; font-weight: 700; border-start-start-radius: 10px; border-end-start-radius: 10px; }
.spec-table td { background: var(--surface); border-start-end-radius: 10px; border-end-end-radius: 10px; color: var(--text-2); }
@media (max-width: 600px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table tr { margin-bottom: 8px; }
  .spec-table th { border-radius: 10px 10px 0 0; padding-block: 10px; }
  .spec-table td { border-radius: 0 0 10px 10px; }
}
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.two-col > .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col > .section-head { position: static; } }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 14px; }
.profile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px; display: grid; gap: 8px; transition: box-shadow 0.25s, transform 0.25s; text-align: center; }
.profile:hover { box-shadow: var(--shadow); --lift: -2px; }
.profile img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; mix-blend-mode: multiply; }
.profile span { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.sub-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 34px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.sub-title:first-child { margin-top: 0; }
.sub-title small { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
html[lang="ar"] .sub-title { letter-spacing: 0; font-size: 0.98rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.gallery-grid button { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--placeholder); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid .contain img { object-fit: contain; background: #fff; }

.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.install-grid figure { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.install-steps { display: grid; gap: 16px; counter-reset: s; }
.install-steps li { display: flex; gap: 16px; align-items: flex-start; counter-increment: s; }
.install-steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.install-steps p { padding-top: 5px; }
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); font-size: 0.92rem; }
.compare th, .compare td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--crimson); color: #fff; font-weight: 700; }
.compare thead th:nth-child(2) { background: var(--crimson-deep); }
.compare tbody th { background: var(--surface-2); font-weight: 700; width: 18%; }
.compare tbody td:first-of-type { font-weight: 600; color: var(--accent-deep); background: var(--compare-hi); }
.compare tr:last-child > * { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 640px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.mini-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.mini-card h3 { font-size: 1.05rem; }
.mini-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.mini-card img { border-radius: 10px; margin-bottom: 6px; background: #fff; }
.mini-card .layer { height: 10px; border-radius: 4px; margin-bottom: 4px; }

.cta-band { background: var(--concentric), var(--crimson-deep); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; }
.cta-band .cta-row { justify-content: flex-end; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .cta-row { justify-content: flex-start; } }
.not-found { text-align: center; padding-block: 120px; display: grid; gap: 22px; justify-items: center; }

.light .fl-group h3 { color: var(--gold); margin: 34px 0 16px; }
.light .fl-group:first-child h3 { margin-top: 0; }
.light .fl-group h3 small { color: var(--muted); }
.light .fl-group + .fl-group { margin-top: 0; }

/* selected-finish bar (product page) */
.selbar {
  position: fixed; left: 50%; bottom: 18px; z-index: 75; translate: -50% 0; width: min(620px, calc(100vw - 24px));
  display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center;
  padding: 10px; border-radius: 18px; background: var(--inverse); color: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform: translateY(160%); transition: transform 0.35s var(--ease);
}
.selbar.is-on { transform: none; }
.selbar img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.selbar-text { display: grid; line-height: 1.25; min-width: 0; }
.selbar-text small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
html[lang="ar"] .selbar-text small { letter-spacing: 0; font-size: 0.8rem; }
.selbar-text b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selbar-text span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
.selbar-close { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); }
.selbar-close svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .selbar { grid-template-columns: 48px 1fr auto; }
  .selbar img { width: 48px; height: 48px; }
  .selbar .btn { grid-column: 1 / -1; grid-row: 2; }
  .selbar-close { grid-column: 3; grid-row: 1; }
}
body.sheet-on .wa-float { opacity: 0; pointer-events: none; }
.wa-float { transition: transform 0.25s var(--ease), opacity 0.25s; }

/* ---------- logo: crown emblem ---------- */
.brand-emblem { display: block; flex: none; width: 50px; }
.brand-emblem svg { display: block; width: 100%; height: auto; overflow: visible; }
.lg-crown { transform-box: fill-box; transform-origin: 50% 100%; animation: lg-crown-in 1s cubic-bezier(0.2, 1.5, 0.35, 1) 0.15s both; }
@keyframes lg-crown-in { 0% { opacity: 0; transform: translateY(-70%) rotate(-14deg) scale(0.5); } 100% { opacity: 1; transform: none; } }
.lg-jewel { transform-box: fill-box; transform-origin: center; animation: lg-twinkle 4.2s ease-in-out 1.4s infinite; }
.lg-jewel:nth-of-type(2) { animation-delay: 2.1s; }
.lg-jewel:nth-of-type(3) { animation-delay: 2.8s; }
@keyframes lg-twinkle { 0%, 82%, 100% { transform: scale(1); } 90% { transform: scale(1.45); } }
.lg-shine { animation: lg-shine 7s ease-in-out 1.2s infinite; }
@keyframes lg-shine { 0% { transform: translateX(0); } 16%, 100% { transform: translateX(780px); } }
@keyframes lg-shine-once { from { transform: translateX(0); } to { transform: translateX(780px); } }
.brand:hover .lg-shine { animation: lg-shine-once 1.1s ease-in-out; }
.brand-ar {
  display: flex; align-items: center; gap: 7px; margin-top: 6px; line-height: 1; white-space: nowrap;
  font-family: var(--font-ar); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--gold);
}
.brand-ar::before { content: ""; width: 20px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(163, 139, 82, 0), var(--gold)); }
[dir="rtl"] .brand-ar::before { background: linear-gradient(270deg, rgba(163, 139, 82, 0), var(--gold)); }
.brand-text:has(.brand-ar) .brand-name::after { display: none; }
.site-footer { --logo-a: #ff5a68; --logo-b: #d02c3b; --logo-c: #9c1a26; }
.site-footer .brand-emblem { width: 62px; }
.av-badge .brand-emblem { width: 68px; margin-bottom: 10px; }
.av-badge .lg-crown, .av-badge .lg-jewel { animation: none; }
@media (max-width: 420px) { .brand-emblem { width: 42px; } .brand-name { font-size: 1rem; } }

/* ---------- intro splash (once per visit) ---------- */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg-alt);
  animation: intro-failsafe 0.5s ease 3.2s forwards;
}
.intro.is-done { opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro-inner { display: grid; justify-items: center; gap: 16px; }
.intro-emblem { width: clamp(120px, 16vw, 170px); }
.intro-emblem svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro-emblem .lg-ts { transform-box: fill-box; transform-origin: 50% 100%; animation: intro-ts 0.8s var(--ease) both; }
.intro-emblem .lg-crown { animation-delay: 0.45s; animation-duration: 1.1s; }
.intro-emblem .lg-shine { animation: lg-shine-once 1.1s ease-in-out 1s both; }
@keyframes intro-ts { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }
.intro-name { font-family: var(--font-mark); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: 0.32em; padding-inline-start: 0.32em; color: var(--text); animation: intro-up 0.7s var(--ease) 0.95s both; }
.intro-ar { font-family: var(--font-ar); font-weight: 600; font-size: 1.05rem; color: var(--gold); animation: intro-up 0.7s var(--ease) 1.1s both; }
@keyframes intro-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- product showcase (hero) ---------- */
.showcase { --edge: #ddd3c6; position: relative; width: 100%; max-width: 560px; margin-inline: auto; padding: 0 0 46px; padding-inline-end: 36px; }
:root[data-theme="dark"] .showcase { --edge: #4a3f40; }
.sc-frame { position: absolute; inset: 26px 0 20px 34px; border: 1.5px solid rgba(163, 139, 82, 0.55); border-radius: 30px; pointer-events: none; }
[dir="rtl"] .sc-frame { inset: 26px 34px 20px 0; }
.sc-main {
  position: relative; margin: 0; aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden;
  background: var(--placeholder); box-shadow: var(--shadow-lg);
}
.sc-view { position: absolute; inset: 0; transition: opacity 0.5s var(--ease); }
.sc-view.is-entering { opacity: 0; }
.sc-view img { width: 100%; height: 100%; object-fit: cover; animation: sc-drift 16s ease-in-out infinite alternate; }
@keyframes sc-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.sc-main::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(10, 6, 7, 0.55), transparent); pointer-events: none; }
.sc-main .ai-badge { inset-inline-end: auto; inset-inline-start: 14px; top: 14px; }
.sc-count {
  position: absolute; z-index: 2; inset-inline-end: 18px; bottom: 16px; color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
}
.sc-count b { color: #fff; font-size: 1.05rem; }
.sc-thumbs {
  position: absolute; z-index: 3; inset-inline-start: 18px; bottom: 18px; display: flex; gap: 8px; padding: 7px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.sc-thumb { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; opacity: 0.72; transition: opacity 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-thumb:hover { opacity: 1; transform: translateY(-2px); }
.sc-thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--crimson-bright); }

.sc-stack { position: absolute; z-index: 4; inset-inline-end: -6px; top: 9%; width: 150px; display: grid; justify-items: center; gap: 12px; }
.sc-tiles { position: relative; display: block; width: 150px; height: 168px; }
.sc-tile {
  position: absolute; top: 0; inset-inline-start: 22px; width: 100px; height: 132px; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 1px 1px 0 var(--edge), 2px 2px 0 var(--edge), 3px 3px 0 var(--edge), 4px 4px 0 var(--edge), 5px 5px 0 var(--edge), 6px 6px 0 var(--edge),
    0 22px 30px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease);
}
.sc-tile img { width: 100%; height: 100%; object-fit: cover; }
.is-white .sc-tile img { object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.sc-tile:nth-child(1) { transform: translate(-32px, 22px) rotate(-15deg); }
.sc-tile:nth-child(2) { transform: translate(0, 8px) rotate(-3deg); }
.sc-tile:nth-child(3) { transform: translate(30px, 2px) rotate(10deg); }
.sc-stack:hover .sc-tile:nth-child(1) { transform: translate(-40px, 22px) rotate(-20deg); }
.sc-stack:hover .sc-tile:nth-child(2) { transform: translate(0, -2px) rotate(-2deg); }
.sc-stack:hover .sc-tile:nth-child(3) { transform: translate(40px, 4px) rotate(15deg); }
[dir="rtl"] .sc-tile:nth-child(1) { transform: translate(32px, 22px) rotate(15deg); }
[dir="rtl"] .sc-tile:nth-child(3) { transform: translate(-30px, 2px) rotate(-10deg); }
[dir="rtl"] .sc-stack:hover .sc-tile:nth-child(1) { transform: translate(40px, 22px) rotate(20deg); }
[dir="rtl"] .sc-stack:hover .sc-tile:nth-child(3) { transform: translate(-40px, 4px) rotate(-15deg); }
.sc-label {
  display: grid; justify-items: center; gap: 2px; padding: 10px 16px; border-radius: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap;
}
.sc-label b { font-size: 0.92rem; }
.sc-label small { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 700; color: var(--accent); }
.sc-label svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.sc-stack:hover .sc-label svg { transform: translateX(3px); }
[dir="rtl"] .sc-stack:hover .sc-label svg { transform: scaleX(-1) translateX(3px); }
@media (max-width: 980px) { .showcase { margin-top: 8px; } }
@media (max-width: 560px) {
  .showcase { padding-inline-end: 18px; padding-bottom: 34px; }
  .sc-frame { inset: 18px 0 14px 22px; }
  [dir="rtl"] .sc-frame { inset: 18px 22px 14px 0; }
  .sc-main { aspect-ratio: 4 / 4.4; border-radius: 22px; }
  .sc-thumbs { inset-inline-start: 12px; bottom: 12px; padding: 5px; gap: 6px; border-radius: 14px; }
  .sc-thumb { width: 44px; height: 44px; border-radius: 9px; }
  .sc-stack { width: 104px; top: auto; bottom: -6px; inset-inline-end: 8px; gap: 8px; }
  .sc-tile:nth-child(1), .sc-stack:hover .sc-tile:nth-child(1) { transform: translate(-16px, 14px) rotate(-13deg); }
  .sc-tile:nth-child(3), .sc-stack:hover .sc-tile:nth-child(3) { transform: translate(16px, 2px) rotate(9deg); }
  [dir="rtl"] .sc-tile:nth-child(1), [dir="rtl"] .sc-stack:hover .sc-tile:nth-child(1) { transform: translate(16px, 14px) rotate(13deg); }
  [dir="rtl"] .sc-tile:nth-child(3), [dir="rtl"] .sc-stack:hover .sc-tile:nth-child(3) { transform: translate(-16px, 2px) rotate(-9deg); }
  .sc-tiles { width: 104px; height: 108px; }
  .sc-tile { width: 66px; height: 88px; inset-inline-start: 19px; border-radius: 8px; }
  .sc-label { padding: 7px 10px; border-radius: 11px; }
  .sc-label b { font-size: 0.8rem; }
  .sc-count { display: none; }
}

/* ---------- floor visualiser ---------- */
.fv-section { background: var(--bg); }
.fv-stage { display: grid; gap: 18px; }
.fv-view {
  position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden;
  background: var(--placeholder); box-shadow: var(--shadow-lg);
}
.fv-layer { position: absolute; inset: 0; transition: opacity 0.55s var(--ease); }
.fv-layer.is-entering { opacity: 0; }
.fv-layer img { width: 100%; height: 100%; object-fit: cover; }
.fv-view .ai-badge { inset-inline-end: 16px; top: 16px; }
.fv-toggle {
  position: absolute; z-index: 3; inset-inline-start: 16px; top: 16px; display: flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(15, 12, 13, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fv-toggle button { min-height: 34px; padding: 6px 16px; border-radius: 999px; color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 0.82rem; transition: background 0.2s, color 0.2s; }
.fv-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.fv-card {
  position: absolute; z-index: 3; inset-inline-start: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; padding-inline-end: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.86); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
:root[data-theme="dark"] .fv-card { background: rgba(28, 24, 25, 0.82); color: #fff; }
.fv-chip { width: 44px; height: 56px; border-radius: 9px; overflow: hidden; flex: none; box-shadow: 1px 1px 0 #d6cdc0, 2px 2px 0 #d6cdc0, 3px 3px 0 #d6cdc0; }
.fv-chip img { width: 100%; height: 100%; object-fit: cover; }
.fv-meta { display: grid; line-height: 1.2; min-width: 84px; }
.fv-meta small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .fv-meta small { letter-spacing: 0; font-size: 0.78rem; }
.fv-meta b { font-size: 1.2rem; letter-spacing: -0.01em; }
.fv-picker { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.fv-opt { flex: none; display: grid; gap: 6px; justify-items: center; scroll-snap-align: start; }
.fv-opt-img {
  display: block; width: 74px; height: 96px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease), box-shadow 0.25s;
}
.fv-opt-img img { width: 100%; height: 100%; object-fit: cover; }
.fv-opt:hover .fv-opt-img { transform: translateY(-4px) rotate(-2deg); }
.fv-opt[aria-pressed="true"] .fv-opt-img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 14px 24px -14px rgba(0, 0, 0, 0.6); transform: translateY(-4px); }
.fv-opt-code { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.fv-opt[aria-pressed="true"] .fv-opt-code { color: var(--text); }
@media (min-width: 1100px) { .fv-picker { justify-content: center; overflow: visible; } }
@media (max-width: 640px) {
  .fv-view { aspect-ratio: 4 / 3.4; border-radius: 20px; }
  .fv-toggle { inset-inline-start: 10px; top: 10px; }
  .fv-toggle button { padding: 5px 12px; min-height: 30px; font-size: 0.76rem; }
  .fv-view .ai-badge { top: auto; bottom: 12px; inset-inline-end: 10px; }
  .fv-card { bottom: 10px; inset-inline-start: 10px; gap: 8px; padding: 5px; padding-inline-start: 12px; border-radius: 999px; }
  .fv-chip, .fv-meta small { display: none; }
  .fv-meta { min-width: 0; }
  .fv-meta b { font-size: 0.95rem; }
  .fv-card .btn { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
  .fv-card .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fv-opt-img { width: 60px; height: 78px; }
}

/* ---------- 3D room designer ---------- */
.dz-main { background: var(--bg-alt); padding-bottom: clamp(48px, 7vw, 96px); }
.dz-intro { padding-top: clamp(24px, 3vw, 40px); }
.dz-titlebar { display: grid; gap: 14px; margin-bottom: 22px; }
@media (min-width: 900px) { .dz-titlebar { grid-template-columns: 1fr 1.1fr; align-items: end; gap: 48px; } }
.dz { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.dz-stage {
  position: sticky; top: calc(var(--header-h) + 14px); height: min(74vh, 760px); min-height: 420px;
  border-radius: 24px; overflow: hidden; background: #e8e2da; box-shadow: var(--shadow-lg);
}
.dz-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.dz-stage canvas:active { cursor: grabbing; }
.dz-views { position: absolute; inset-inline-start: 14px; top: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(15, 12, 13, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dz-views button { min-height: 34px; padding: 6px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 0.82rem; }
.dz-views button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dz-hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(15, 12, 13, 0.55); color: #fff; font-size: 0.8rem; font-weight: 600; white-space: nowrap; pointer-events: none; backdrop-filter: blur(8px); }
.dz-loading { position: absolute; inset-inline-end: 16px; top: 16px; width: 26px; height: 26px; opacity: 0; transition: opacity 0.2s; }
.dz-loading span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: var(--crimson-bright); animation: dz-spin 0.8s linear infinite; }
.dz-stage.is-loading .dz-loading { opacity: 1; }
@keyframes dz-spin { to { transform: rotate(360deg); } }
.dz-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.dz-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.dz-tabs button { min-height: 40px; padding: 6px 4px; border-radius: 10px; font-weight: 700; font-size: 0.8rem; color: var(--muted); line-height: 1.2; }
.dz-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.3); }
.dz-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-prods .chip { min-height: 36px; padding: 6px 12px; font-size: 0.8rem; }
.dz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dz-head b { font-size: 1.05rem; }
.dz-head small { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px 8px; max-height: 330px; overflow-y: auto; padding: 4px; margin: -4px; }
.dz-sw { display: grid; gap: 5px; text-align: center; min-width: 0; }
.dz-sw img, .dz-paint { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.dz-sw:hover img, .dz-sw:hover .dz-paint { transform: translateY(-2px); }
.dz-sw[aria-pressed="true"] img, .dz-sw[aria-pressed="true"] .dz-paint { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.dz-sw span { font-size: 0.68rem; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-sw[aria-pressed="true"] span { color: var(--text); }
.dz-summary { border-top: 1px solid var(--line); padding-top: 14px; }
.dz-summary h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
html[lang="ar"] .dz-summary h3 { letter-spacing: 0; font-size: 0.88rem; }
.dz-summary li button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 0.85rem; text-align: start; }
.dz-summary li button:hover, .dz-summary li button.is-active { background: var(--surface-2); }
.dz-summary li span { color: var(--muted); flex: none; }
.dz-summary li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-actions { display: grid; gap: 8px; }
.dz-actions .btn--wa { width: 100%; white-space: normal; }
.dz-actions-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dz-actions-row .btn { padding-inline: 8px; font-size: 0.8rem; }
@media (max-width: 980px) {
  .dz { grid-template-columns: 1fr; }
  .dz-stage { position: relative; top: auto; height: 62vh; min-height: 340px; }
  .dz-grid { max-height: none; }
}
@media (max-width: 520px) { .dz-hint { white-space: normal; text-align: center; width: calc(100% - 28px); } .dz-stage { border-radius: 18px; } }

/* photo-real designer mode */
.dz-photo { position: absolute; inset: 0; display: none; overflow: hidden; }
.dz-photo .dz-base { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-ly { position: absolute; }
.dz-ly img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.4s var(--ease); }
.dz-ly img.is-entering { opacity: 0; }
.dz-stage[data-mode="photo"] { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
.dz-stage[data-mode="photo"] .dz-photo { display: block; }
.dz-stage[data-mode="photo"] canvas, .dz-stage[data-mode="photo"] .dz-views, .dz-stage[data-mode="photo"] .dz-hint--3d { display: none; }
.dz-stage[data-mode="3d"] .dz-hint--photo { display: none; }
.dz-mode { position: absolute; inset-inline-end: 14px; top: 14px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(15, 12, 13, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 2; }
.dz-mode button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 0.82rem; }
.dz-mode button svg { width: 15px; height: 15px; }
.dz-mode button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dz-stage[data-mode="3d"] .dz-loading { inset-inline-end: auto; inset-inline-start: 50%; }
@media (max-width: 980px) { .dz-stage[data-mode="photo"] { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) {
  .dz-mode { inset-inline-end: 8px; top: 8px; }
  .dz-mode button { padding: 5px 10px; font-size: 0.74rem; min-height: 30px; }
  .dz-mode button svg { display: none; }
  .dz-stage[data-mode="photo"] .dz-hint { bottom: 8px; font-size: 0.72rem; padding: 5px 10px; width: auto; white-space: nowrap; }
}
.nav-3d { color: var(--accent) !important; }
.dz-band { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 28px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--concentric), linear-gradient(120deg, #241f20, #121011); color: #fff; overflow: hidden; }
.dz-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.dz-band p { color: rgba(255, 255, 255, 0.72); margin: 10px 0 20px; max-width: 52ch; }
.dz-band img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8); transform: perspective(900px) rotateY(-8deg) rotateX(3deg); }
[dir="rtl"] .dz-band img { transform: perspective(900px) rotateY(8deg) rotateX(3deg); }
@media (max-width: 800px) { .dz-band { grid-template-columns: 1fr; } }

/* ---------- AI visualisation badge ---------- */
.ai-badge {
  position: absolute; inset-inline-end: 12px; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(15, 12, 13, 0.62); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.ai-badge svg { width: 12px; height: 12px; color: var(--gold-soft); }
.gallery-grid button { position: relative; }
.masonry figure > .ai-badge { top: 12px; }


/* ---------- theme toggle ---------- */
.theme-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
  transition: border-color 0.2s, background 0.2s;
}
.theme-btn svg { position: absolute; width: 19px; height: 19px; transition: transform 0.5s var(--ease), opacity 0.3s; }
.theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.drawer-prefs { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.drawer-prefs .lang-btn { min-height: 46px; }
@media (max-width: 420px) { .header-actions .theme-btn { display: none; } }
:root[data-theme="dark"] .brand-mark { filter: brightness(1.45) saturate(1.1); }
:root[data-theme="dark"] .hero-ts { opacity: 0.2; filter: brightness(1.6); }
:root[data-theme="dark"] .map iframe { filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
:root[data-theme="dark"] .pcard-num { background: rgba(18, 16, 17, 0.85); color: var(--accent); }
:root[data-theme="dark"] .gallery-grid .contain img, :root[data-theme="dark"] .mini-card img { background: #f4f1ed; }

/* ---------- 3D: tilt cards ---------- */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.5s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  will-change: transform;
}
.js .tilt.is-tilting, .tilt.is-tilting {
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.12s linear, box-shadow 0.35s var(--ease), border-color 0.35s;
}
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), var(--glare), transparent 58%);
  opacity: 0; transition: opacity 0.35s;
}
.tilt.is-tilting::after { opacity: 1; }

/* ---------- 3D: scenes (layers float at different depths) ---------- */
[data-scene] {
  transform-style: preserve-3d;
  transform: perspective(1500px) rotateX(var(--sx, 0deg)) rotateY(var(--sy, 0deg));
}
[data-scene] [data-z] { transform: translateZ(var(--z, 0px)); }
.books[data-scene] .b1 { transform: translateZ(10px) rotate(-5deg); }
.books[data-scene] .b2 { transform: translateZ(70px) rotate(4deg); }
.feature-visual, .about-visual, .books, .hero-visual, .showcase { will-change: transform; }

/* ---------- 3D: material cube ---------- */
.cube-wrap {
  position: absolute; inset-inline-start: 4%; top: 27%; z-index: 3;
  width: clamp(78px, 8.4vw, 118px); aspect-ratio: 1; cursor: grab; touch-action: none;
  transform-style: preserve-3d;
}
.cube-wrap:active { cursor: grabbing; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; --h: calc(clamp(78px, 8.4vw, 118px) / 2); }
.cube > span {
  position: absolute; inset: 0; border-radius: 8px; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 0 24px rgba(0, 0, 0, 0.18);
  backface-visibility: hidden;
}
.cube > span:nth-child(1) { transform: rotateY(0deg) translateZ(var(--h)); }
.cube > span:nth-child(2) { transform: rotateY(90deg) translateZ(var(--h)); }
.cube > span:nth-child(3) { transform: rotateY(180deg) translateZ(var(--h)); }
.cube > span:nth-child(4) { transform: rotateY(-90deg) translateZ(var(--h)); }
.cube > span:nth-child(5) { transform: rotateX(90deg) translateZ(var(--h)); }
.cube > span:nth-child(6) { transform: rotateX(-90deg) translateZ(var(--h)); }
.cube-shadow { position: absolute; left: 10%; right: 10%; bottom: -26%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent); transform: rotateX(80deg); filter: blur(2px); }
.cube-tip {
  position: absolute; top: calc(100% + 30px); left: 50%; translate: -50% 0; white-space: nowrap;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
html[lang="ar"] .cube-tip { letter-spacing: 0; font-size: 0.8rem; }
@media (max-width: 980px) { .cube-wrap { top: 19%; } .cube-tip { display: none; } }
@media (max-width: 520px) { .cube-wrap { width: 56px; inset-inline-start: auto; inset-inline-end: 6%; top: auto; bottom: 6%; } .cube { --h: 28px; } .cube > span { border-radius: 5px; } }

/* ---------- 3D: section title entrance ---------- */
.js .section-head.reveal .title { display: block; transform-origin: 50% 100%; transform: perspective(700px) rotateX(55deg); opacity: 0.2; transition: transform 1s var(--ease) 0.1s, opacity 1s var(--ease) 0.1s; }
.js .section-head.reveal.is-in .title { transform: none; opacity: 1; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.5s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.js .reveal.is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .marquee-track { animation: none; }
  .tilt, [data-scene] { transform: none !important; }
  .sc-view img { animation: none; }
  .js .section-head.reveal .title { transform: none; opacity: 1; }
}

.nav-link { white-space: nowrap; }
@media (max-width: 1320px) { .main-nav > ul { gap: 0; } .nav-link { padding-inline: 10px; font-size: 0.9rem; } .header-inner { gap: 18px; } }

.profile.is-3d { padding: 0 0 12px; background: #eceae7; }
.profile.is-3d img { aspect-ratio: 600 / 427; object-fit: cover; mix-blend-mode: normal; border-radius: 13px 13px 0 0; }
:root[data-theme="dark"] .profile.is-3d span { color: #2b2728; }

/* curtain visualiser: series chips + many colours */
.fv-series { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fv-series .chip { min-height: 36px; padding: 6px 14px; font-size: 0.82rem; }
.fv-picker.is-many .fv-opt-img { width: 66px; height: 66px; }
@media (min-width: 720px) { .fv-picker.is-many { flex-wrap: wrap; overflow: visible; justify-content: center; } }
#pp-visualiser:has(.fv-picker.is-many) .fv-stage { max-width: 960px; margin-inline: auto; }
