/* ليفارتو — موقع المعرض
   Layout: black brand header, one full-bleed showroom photograph as the opening,
   three expanding room panels as the single memorable move, then plain facts,
   customization, and the showroom itself. Photos carry the page; type stays light. */
:root {
  --ink: #000000;
  --text: #1c1a18;
  --muted: #655f59;
  --paper: #ffffff;
  --stone: #ece9e3;
  --oak: #8c5e33;
  --gold: #c9a24e;
  --gold-d: #8f6d22;
  --wa: #0f7a43;
  --font: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  background: var(--paper);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ribbon shown only while this is a review copy */
.review-note { background: var(--stone); color: var(--text); font-size: .9rem; padding: 8px var(--gutter); text-align: center; }

/* header */
.site-header { border-bottom: 1px solid rgba(201,162,78,.5); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.brand .logo { height: 58px; width: auto; }
.brand .slogan { height: 38px; width: auto; }
.nav { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 14px; white-space: nowrap; border-radius: 2px; }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: 14px 26px; text-decoration: none; border: 1.5px solid transparent; border-radius: 2px; cursor: pointer; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6537; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* hero */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero img.bg { width: 100%; height: clamp(440px, 56vw, 700px); object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.12) 65%, rgba(0,0,0,.25) 100%); pointer-events: none; }
.hero .copy { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding-block: clamp(24px, 5vw, 64px); }
.hero h1 { margin: 0 0 16px; font-weight: 600; letter-spacing: -.01em; font-size: clamp(2.1rem, 5.2vw, 4.4rem); line-height: 1.22; max-width: 15em; text-wrap: balance; }
.hero .rule { display:block; width: 64px; height: 3px; background: var(--gold); margin-bottom: 22px; }
.hero p { margin: 0 0 28px; max-width: 34em; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.94); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section.stone { background: var(--stone); }
h2 { margin: 0 0 12px; font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.3; text-wrap: balance; }
.section h2::before { content:""; display:block; width:48px; height:3px; background: var(--gold); margin-bottom:18px; }
.lead { margin: 0 0 32px; max-width: 38em; color: var(--muted); }

/* rooms: three panels, the hovered one opens */
.rooms { display: flex; gap: 6px; height: clamp(420px, 50vw, 620px); }
.room { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; transition: flex-grow .55s cubic-bezier(.2,.7,.2,1); }
.room:hover, .room:focus-visible { flex-grow: 2.6; }
.room:hover .label, .room:focus-visible .label { border-color: var(--gold); }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); }
.room .label { border-bottom: 3px solid transparent; transition: border-color .3s; position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 22px; }
.room h3 { margin: 0; font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.3; }
.room p { margin: 4px 0 0; font-size: .98rem; color: rgba(255,255,255,.92); max-width: 22em; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.facts li { border-top: 1px solid rgba(0,0,0,.18); padding-top: 20px; }
.facts .fig { display:block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.1; color: var(--gold-d); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.facts .fig small { font-size: .38em; font-weight: 600; margin-inline-start: 6px; color: var(--text); }
.facts h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; line-height: 1.4; }
.facts p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }

/* split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.split img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.split .text > :last-child { margin-bottom: 0; }
.split .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tiers { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.tiers li { display: flex; gap: 12px; align-items: baseline; }
.tiers b { min-width: 7.5em; color: var(--oak); }

/* showroom details */
.details { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px 18px; margin: 0 0 28px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* collection page */
.page-title { padding-block: clamp(36px, 5vw, 64px) 8px; }
.page-title h1 { margin: 0 0 8px; font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.25; }
.page-title p { margin: 0; color: var(--muted); max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 32px); padding-block: 32px clamp(48px, 7vw, 96px); margin: 0; list-style: none; }
.piece img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.piece h3 { margin: 14px 0 2px; font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.piece .code { margin: 0; color: var(--muted); font-size: .92rem; }
.piece .price { margin: 8px 0 0; font-size: 1.3rem; font-weight: 700; color: var(--oak); }
.piece .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.piece .when { margin: 2px 0 14px; font-size: .95rem; color: var(--muted); }
.piece .btn { padding: 11px 20px; font-size: .95rem; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.88); padding-block: 48px; font-size: .98rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; align-items: flex-start; }
.site-footer img { height: 64px; width: auto; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { color: #fff; }
.site-footer h4 { margin: 0 0 8px; font-size: 1rem; color: var(--gold); font-weight: 700; }
.site-footer ul { margin:0; padding:0; list-style:none; line-height:2; }
.site-footer ul a { text-decoration:none; color: rgba(255,255,255,.85); }
.site-footer ul a:hover { color: var(--gold); }
.copy-line { width: 100%; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: rgba(255,255,255,.62); }

/* floating WhatsApp */
.float-wa { position: fixed; z-index: 30; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 6px 22px rgba(0,0,0,.28); border-radius: 999px; padding: 13px 22px; }

@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .brand .slogan { height: 32px; }
  .brand .logo { height: 46px; }
  .rooms { flex-direction: column; height: auto; }
  .room { flex: none; height: 230px; }
  .room:hover, .room:focus-visible { flex-grow: 0; }
  .hero img.bg { height: 480px; object-position: 38% 60%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .tiers li { flex-direction: column; gap: 0; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .details dd { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room { transition: none; }
}

.piece h3 .en { display:block; font-size:.9rem; font-weight:400; color: var(--muted); direction:ltr; text-align:start; }
.piece .price del { font-size: .95rem; font-weight: 400; color: var(--muted); margin-inline-end: 8px; text-decoration-thickness: 1.5px; }

.piece .pl { display:block; text-decoration:none; color:inherit; }
.piece .pl:hover h3 { color: var(--oak); }
.crumb { margin: 28px 0 0; font-size: .95rem; } .crumb a { color: var(--muted); }
.detail { display:grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(24px,4vw,56px); padding-block: 20px clamp(48px,7vw,96px); align-items:start; }
.gallery #main { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; background: var(--stone); }
.thumbs { display:grid; grid-template-columns: repeat(auto-fill,minmax(88px,1fr)); gap:8px; margin-top:8px; }
.th { padding:0; border:0; background:none; cursor:pointer; } .th img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.info h1 { margin:0 0 6px; font-weight:600; font-size: clamp(1.8rem,3.4vw,2.6rem); line-height:1.25; }
.info h1 .en { display:block; font-size:1rem; font-weight:400; color:var(--muted); direction:ltr; text-align:start; }
.price.big { font-size:2rem; margin:14px 0 0; font-weight:700; color:var(--oak); } .price.big del { font-size:1.1rem; font-weight:400; color:var(--muted); margin-inline-end:10px; } .price.big small { font-size:1rem; font-weight:400; color:var(--muted); }
.info .when { margin:0 0 20px; color:var(--muted); }
.info h2.sub { font-size:1.2rem; font-weight:700; margin:32px 0 8px; }
.pieces { margin:0; padding-inline-start:1.2em; line-height:1.9; color:var(--text); }
@media (max-width: 900px){ .detail{ grid-template-columns: minmax(0,1fr);} }

/* catalog filters */
.filters { display:flex; flex-wrap:wrap; gap:12px 16px; align-items:center; padding-block: 18px 6px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { font:inherit; font-weight:600; font-size:.95rem; padding:9px 18px; border:1.5px solid var(--ink); background:transparent; color:var(--ink); border-radius:999px; cursor:pointer; }
.chip[aria-pressed="true"] { background:var(--ink); color:#fff; }
.sel { display:flex; align-items:center; gap:8px; font-size:.95rem; font-weight:600; }
.sel select, #q { font:inherit; font-size:.95rem; padding:9px 12px; border:1.5px solid rgba(0,0,0,.35); background:#fff; color:var(--text); border-radius:2px; min-width:0; }
#q { flex: 1 1 200px; max-width: 320px; }
.count { margin: 6px 0 0; color: var(--muted); font-size:.92rem; font-variant-numeric: tabular-nums; }
.site-header .lang { border:1px solid rgba(201,162,78,.7); color: var(--gold); border-radius:2px; margin-inline-start: auto; padding: 8px 14px; font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; }
.site-header .lang:hover { background: rgba(201,162,78,.14); }
.site-header .wrap { justify-content: flex-start; }
.steps { margin:0 0 28px; padding:0; list-style:none; display:grid; gap:18px; }
.steps li { display:flex; gap:16px; align-items:flex-start; }
.steps h3 { margin:0 0 2px; font-size:1.1rem; } .steps p { margin:0; color: var(--muted); }
.stepn { flex:none; width:40px; height:40px; border-radius:50%; background:var(--ink); color:var(--gold); display:grid; place-items:center; font-weight:700; }
.pieces.wide { max-width: 46em; }
[dir="ltr"] .hero h1 { letter-spacing: -.015em; }
[dir="ltr"] .piece .price del { margin-inline-end: 8px; }
.hero .copy .wrap { text-align: start; }
a[href^="tel:"], a[href^="mailto:"] { text-decoration: none; }
.site-footer address a { color:#fff; }

.intro{max-width:68ch;margin-block:0 1.5rem}
.faq{display:grid;gap:.75rem;max-width:68ch;margin-block:1rem 2rem}
.faq details{border:1px solid var(--line,#ddd);border-radius:6px;padding:.9rem 1.1rem}
.faq summary{cursor:pointer;font-weight:600}
.faq p{margin:.6rem 0 0}

/* ---- mobile menu, bottom bar, filters (Oct 2026) ---- */
.menu-btn, .drawer, .bar { display: none; }
.menu-btn { width: 46px; height: 46px; padding: 0; border: 1px solid rgba(201,162,78,.7); background: transparent; border-radius: 2px; cursor: pointer; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.rooms .from { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--gold); font-size: 1rem; font-variant-numeric: tabular-nums; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.trust a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(0,0,0,.28); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--text); }
.trust a:hover { border-color: var(--oak); color: var(--oak); }
.view { display: none; gap: 6px; }
.vw { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border: 1.5px solid rgba(0,0,0,.35); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; }
.vw[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.doc { max-width: 68ch; padding-block: 8px clamp(48px, 7vw, 96px); }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .5rem; }
.doc p { margin: 0 0 .9rem; }
html.lock { overflow: hidden; }
.btn-line-w { border-color: var(--ink); color: var(--ink); background: #fff; }

@media (max-width: 720px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .site-header .wrap { flex-wrap: nowrap; padding-block: 8px; gap: 12px; }
  .brand { gap: 12px; min-width: 0; }
  .brand .logo { height: 40px; }
  .brand .slogan { height: 26px; }
  .site-header .lang { padding: 7px 10px; font-size: .9rem; }
  .nav { flex-wrap: wrap; overflow: visible; }
  .js .nav { display: none; }
  .js .menu-btn { display: grid; flex: none; order: -1; }
  .float-wa { display: none; }
  .bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 25; inset-inline: 0; bottom: 0; background: var(--ink); border-top: 1px solid rgba(201,162,78,.6); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: #fff; text-decoration: none; font-weight: 700; font-size: .82rem; }
  .bar a.b-wa { background: var(--wa); }
  .bar svg { width: 22px; height: 22px; fill: currentColor; }
  .drawer:not([hidden]) { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 50; background: #fff; }
  .d-top { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter); background: var(--ink); border-bottom: 1px solid rgba(201,162,78,.6); padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .d-top img { height: 40px; width: auto; }
  .d-close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(201,162,78,.7); background: transparent; color: #fff; border-radius: 2px; cursor: pointer; }
  .d-body { flex: 1 1 auto; overflow-y: auto; padding: 8px var(--gutter) 24px; }
  .d-h { margin: 16px 0 8px; font-weight: 700; color: var(--muted); font-size: .95rem; }
  .d-rooms { display: grid; gap: 8px; }
  .d-rooms a { display: flex; align-items: center; gap: 14px; padding: 8px; border: 1px solid rgba(0,0,0,.14); text-decoration: none; color: var(--text); border-radius: 2px; }
  .d-rooms img { width: 64px; height: 64px; object-fit: cover; flex: none; }
  .d-rooms b { font-size: 1.15rem; }
  .d-links { margin: 18px 0 0; padding: 0; list-style: none; }
  .d-links a { display: block; padding: 13px 4px; border-bottom: 1px solid rgba(0,0,0,.12); text-decoration: none; font-weight: 600; }
  .d-lang { display: inline-block; margin-top: 18px; padding: 10px 18px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; border-radius: 2px; }
  .d-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(0,0,0,.14); background: var(--stone); }
  .d-foot .btn { justify-content: center; padding: 13px 10px; font-size: .95rem; flex-wrap: wrap; text-align: center; }
  .filters { gap: 10px; }
  .sel { flex: 1 1 150px; }
  .sel select { flex: 1 1 auto; width: 100%; }
  .view { display: flex; width: 100%; }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .grid.two .piece h3 { font-size: .98rem; }
  .grid.two .piece .price { font-size: 1.05rem; }
  .grid.two .piece .price del { display: block; margin: 0; font-size: .85rem; }
  .grid.two .piece .btn { width: 100%; justify-content: center; padding: 10px 8px; font-size: .88rem; }
  .grid.two .piece .code, .grid.two .piece h3 .en { display: none; }
}
.grid { padding-inline: 0; }

/* best seller badge (Oct 2026) */
.piece .pl{position:relative;display:block}
.badge{position:absolute;top:10px;inset-inline-start:10px;z-index:2;background:var(--gold,#c9a14a);color:#111;font-weight:700;font-size:.78rem;line-height:1;padding:7px 10px;border-radius:2px}
.badge.inl{position:static;display:inline-block;margin-bottom:10px}
.copy-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.copy-line .foot-slogan { height: 40px; width: auto; display: block; opacity: .95; }
@media (max-width: 640px) { .copy-line { flex-direction: column; justify-content: center; gap: 10px; text-align: center; } .copy-line .foot-slogan { height: 44px; } }
