:root {
  color-scheme: light dark;
  --canvas: #f4ede3;
  --surface: #fbf7f1;
  --studio: #ffffff;
  --ink: #17110d;
  --text: #2b1d14;
  --text-supporting: #6a5546;
  --action-fill: #7a3e17;
  --action-hover: #66320f;
  --action-text: #ffffff;
  --accent: #b5743f;
  --link: #7a3e17;
  --wa-fill: #1f6f43;
  --wa-hover: #145c36;
  --control-boundary: #8c7a6b;
  --divider: #e2d6c5;
  --selected-fill: #2b1d14;
  --selected-text: #f4ede3;
  --error-text: #a52828;
  --focus: #1d5fbf;
  --shadow: 0 1px 2px rgb(43 29 20 / 0.06), 0 24px 48px -20px rgb(43 29 20 / 0.28);
  --font-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mark: "Playfair Display", Didot, Georgia, serif;
  --radius-control: 999px;
  --radius-media: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17110d;
    --surface: #211915;
    --text: #f3eadf;
    --text-supporting: #b8a595;
    --action-fill: #e9b98c;
    --action-hover: #f2cba6;
    --action-text: #17110d;
    --accent: #e9b98c;
    --link: #e9b98c;
    --divider: #3a2d25;
    --selected-fill: #f3eadf;
    --selected-text: #17110d;
    --error-text: #ff9c94;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 56px -20px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
html[lang="en"] body { line-height: 1.6; }

img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { inline-size: min(1200px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 16px; inset-block-start: -80px;
  background: var(--text); color: var(--canvas); padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { inset-block-start: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid var(--divider);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--canvas); backdrop-filter: none; } }
.header-row { display: flex; align-items: center; gap: 12px; min-block-size: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; margin-inline-end: auto; }
.brand-logo { inline-size: 48px; block-size: 48px; color: var(--accent); flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-latin { font-family: var(--font-mark); font-style: italic; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.06em; }
.brand-local { font-size: 0.875rem; color: var(--text-supporting); font-weight: 500; }
nav { display: flex; gap: 2px; }
nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 999px; min-block-size: 44px; display: inline-flex; align-items: center; }
nav a:hover { background: var(--surface); }
.lang-toggle {
  font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  min-block-size: 44px; padding-inline: 16px; border-radius: 999px;
  background: var(--text); color: var(--canvas); border: 0;
}
.lang-toggle:lang(ar) { font-family: var(--font-body); }
.lang-toggle:hover { opacity: 0.9; }
@media (max-width: 560px) { nav { display: none; } .brand-logo { inline-size: 42px; block-size: 42px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.hero-watermark {
  position: absolute; inline-size: clamp(420px, 60vw, 820px); block-size: clamp(420px, 60vw, 820px);
  inset-inline-start: -12%; inset-block-start: -18%; color: var(--accent); opacity: 0.08; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.8rem); line-height: 1.2; }
html[lang="en"] h1 { font-family: var(--font-mark); font-style: italic; line-height: 1.05; letter-spacing: -0.01em; }
.lede { margin: 22px 0 0; color: var(--text-supporting); max-inline-size: 46ch; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.hero-media { margin: 0; background: var(--studio); border-radius: var(--radius-media); overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { aspect-ratio: 1; object-fit: contain; inline-size: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: rise 900ms cubic-bezier(.2,.8,.2,1) both; }
  .hero-copy > * { animation: rise 700ms cubic-bezier(.2,.8,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.scroll-hint { position: relative; text-align: center; margin: 40px 0 0; color: var(--text-supporting); font-size: 0.875rem; }
.scroll-hint::after { content: ""; display: block; inline-size: 1px; block-size: 36px; margin: 8px auto 0; background: var(--control-boundary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 52px; padding-inline: 26px; border-radius: var(--radius-control);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action-fill); color: var(--action-text); }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--control-boundary); }
.btn-secondary:hover { box-shadow: inset 0 0 0 2px var(--text); }
.btn-wa { inline-size: 100%; background: var(--wa-fill); color: #fff; }
.btn-wa svg { inline-size: 20px; block-size: 20px; }
.btn-wa:hover { background: var(--wa-hover); }
.btn:disabled { background: var(--divider); color: var(--text-supporting); cursor: not-allowed; transform: none; }

.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
html[lang="en"] .section-title { font-family: var(--font-mark); font-style: italic; }

/* Horizontal scroll collection */
.hscroll { position: relative; background: var(--ink); color: #f3eadf; }
.hscroll-sticky { position: sticky; top: 0; block-size: 100vh; block-size: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-block: 88px 28px; }
.hscroll-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hscroll-head .section-title { color: #f3eadf; }
.hscroll-count { margin: 0; font-variant-numeric: tabular-nums; color: #b8a595; font-weight: 600; }
.hscroll-viewport { flex: 1; min-block-size: 0; display: flex; align-items: center; margin-block: 20px; }
.track {
  list-style: none; margin: 0; padding: 0 max(16px, calc((100vw - 1200px) / 2));
  display: flex; gap: clamp(16px, 2.5vw, 36px); block-size: 100%; will-change: transform;
}
.panel {
  --shift: 0;
  flex: none; inline-size: min(78vw, 980px); block-size: 100%;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(16px, 2.5vw, 32px); border-radius: var(--radius-media);
  background: #241a14; border: 1px solid #3a2d25;
}
.panel-tan { background: #3a2416; }
.panel-dark { background: #1e1611; }
.panel-media { block-size: 100%; max-block-size: 62vh; background: #fff; border-radius: 20px; overflow: hidden; display: grid; place-items: center; }
.panel-media img {
  inline-size: 100%; block-size: 100%; object-fit: contain;
  transform: translateX(calc(var(--shift) * -40px)) scale(1.02);
  transition: transform 80ms linear;
}
.crop img { object-fit: cover; }
.crop-zip img { object-position: 28% 30%; transform: translateX(calc(var(--shift) * -40px)) scale(1.9); transform-origin: 30% 40%; }
.crop-tab img { object-position: 15% 30%; transform: translateX(calc(var(--shift) * -40px)) scale(2); transform-origin: 18% 35%; }
.panel-text { display: grid; gap: 12px; align-content: center; justify-items: start; }
.panel-kicker { margin: 0; color: #e9b98c; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); color: #f3eadf; }
html[lang="en"] .panel h3 { font-family: var(--font-mark); font-style: italic; }
.panel p { margin: 0; color: #d3c3b4; }
.panel-price { font-size: 1.25rem; font-weight: 600; color: #f3eadf !important; }
.panel .btn-primary { background: #e9b98c; color: #17110d; }
.panel .btn-primary:hover { background: #f2cba6; }
.panel .btn-secondary { color: #f3eadf; box-shadow: inset 0 0 0 1.5px #8c7a6b; }
.panel .btn-secondary:hover { box-shadow: inset 0 0 0 2px #f3eadf; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; block-size: 100%; max-block-size: 62vh; }
.panel-duo img { inline-size: 100%; block-size: 100%; object-fit: contain; background: #fff; border-radius: 20px; }
.hscroll-progress { block-size: 3px; margin-inline: max(16px, calc((100vw - 1200px) / 2)); background: #3a2d25; border-radius: 3px; overflow: hidden; }
.hscroll-progress span { display: block; block-size: 100%; background: #e9b98c; transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .hscroll-progress span { transform-origin: left; }

@media (max-width: 760px) {
  .hscroll-sticky { padding-block: 84px 20px; }
  .panel { inline-size: 84vw; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; }
  .panel-media, .panel-duo { max-block-size: none; min-block-size: 0; }
  .panel h3 { font-size: 1.5rem; }
  .panel-text { gap: 8px; }
  .panel p:not(.panel-kicker):not(.panel-price) { display: none; }
}

/* Reduced motion: the track still follows the user's own scroll 1:1; image drift is removed. */
@media (prefers-reduced-motion: reduce) {
  .panel-media img { transform: none; transition: none; }
  .crop-zip img { transform: scale(1.9); }
  .crop-tab img { transform: scale(2); }
}

/* Order */
.models { padding-block: clamp(56px, 7vw, 104px); }
.models .section-title { margin-block-end: clamp(24px, 3vw, 40px); }
.model-list { display: grid; gap: clamp(24px, 3vw, 32px); }
@media (min-width: 900px) { .model-list { grid-template-columns: 1fr 1fr; } }
.model { display: grid; gap: 20px; align-content: start; padding: clamp(16px, 2vw, 24px); background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-media); scroll-margin-block-start: 88px; }
.model-media { margin: 0; background: var(--studio); border-radius: 20px; overflow: hidden; }
.model-media img { aspect-ratio: 4 / 3; object-fit: contain; inline-size: 100%; }
.model-body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
html[lang="en"] .model-body h3 { font-family: var(--font-mark); font-style: italic; }
.price { margin: 4px 0 0; font-size: 1.2rem; font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.specs { list-style: none; padding: 0; margin: 18px 0 22px; border-block-start: 1px solid var(--divider); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-block-end: 1px solid var(--divider); }
.specs span { color: var(--text-supporting); }
.specs strong { font-weight: 500; text-align: end; }
.order fieldset { border: 0; padding: 0; margin: 0 0 18px; min-inline-size: 0; }
.order legend { font-weight: 600; margin-block-end: 10px; padding: 0; }
.legend-note { color: var(--text-supporting); font-weight: 400; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span {
  display: grid; place-items: center; min-inline-size: 52px; min-block-size: 48px; padding-inline: 10px;
  border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--control-boundary);
  font-weight: 600; font-variant-numeric: tabular-nums; background: var(--canvas); cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.size input:hover + span { box-shadow: inset 0 0 0 2px var(--text); }
.size input:checked + span { background: var(--selected-fill); color: var(--selected-text); box-shadow: inset 0 0 0 2px var(--selected-fill); }
.size input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-error { margin: 10px 0 0; color: var(--error-text); font-weight: 600; }
.order-note { margin: 10px 0 0; color: var(--text-supporting); font-size: 0.9375rem; }

.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n { flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--action-fill); color: var(--action-text); font-weight: 600; }
.steps h3 { font-size: 1.0625rem; font-weight: 600; }
.steps p { margin: 4px 0 0; color: var(--text-supporting); font-size: 0.9375rem; }

/* Footer */
.site-footer { border-block-start: 1px solid var(--divider); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 24px; color: var(--text-supporting); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand svg { inline-size: 32px; block-size: 32px; color: var(--accent); }
