/* ── ساوم — home pages (index.html, en/index.html) ──────────────────────────
   The 2026-10 redesign: an emerald hero with a live lot card, then the rules,
   the steps, how an auction ends, the showroom, the seller's side, and the
   stores. Same Emerald & Sand tokens as zawid.css (which support, terms and
   privacy keep using); written with logical properties so the Arabic (rtl)
   and English (ltr) pages share every rule. */

:root {
  color-scheme: light;
  --bg: #F5F2EB;
  --bg-deep: #EFEBE2;
  --paper: #FBF9F4;
  --surface: #FFFFFF;
  --ink: #121A16;
  --text2: #384440;
  --muted: #5C6964;
  --muted2: #6B7873;
  --line: #E5E0D5;
  --hair: #ECE8DF;

  --accent: #0B5E45;
  --accent-tint: #E3F0E9;
  --mint: #7FD4B0;
  --live: #5FD3A6;
  --hero: #06432F;
  --hero-night: #04291D;
  --hero-soft: #C9D9D0;
  --hero-line: rgba(245, 242, 235, .18);

  --gold: #B8903B;
  --gold-deep: #8F6B22;
  --gold-glow: #E3C27A;
  --gold-tint: #F8F0DC;
  --gold-line: #E8D8B0;

  --urgent: #B9331F;
  --urgent-btn: #D9432F;
  --urgent-tint: #FBEBE8;
  --urgent-line: #F0D9D4;

  --night: #0B1511;
  --ivory: #F5F2EB;
  --ivory-dim: #A9BBB1;
  --ivory-mute: #7E8F86;

  --sans: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
html[lang="en"] { --sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #06432F; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 6px; }
.num, .mono { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .num, html[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ivory); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ── Header + hero band ───────────────────────────────────────────── */
.band { background: var(--hero); color: var(--ivory); }
.band a { color: inherit; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding-block: 14px; border-bottom: 1px solid var(--hero-line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.nav-links {
  flex: 1 1 380px; order: 3; display: flex; gap: 4px 22px;
  overflow-x: auto; white-space: nowrap; font-size: 15px; font-weight: 500; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { text-decoration: none; padding-block: 10px; opacity: .85; }
.nav-links a:hover { opacity: 1; color: inherit; }
.nav-actions { order: 2; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1000px) { .nav-links { order: 2; } .nav-actions { order: 3; margin-inline-start: 0; } }
@media (max-width: 480px) {
  .nav { column-gap: 12px; }
  .nav-actions { gap: 6px; }
  .nav .pill { padding: 0 12px; font-size: 14px; }
}
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--hero-line); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
}
.pill:hover { background: rgba(245, 242, 235, .08); color: inherit; }
.pill-cta { background: var(--mint); border-color: var(--mint); color: var(--hero-night) !important; font-weight: 700; }
.pill-cta:hover { background: #95DDBE; }
.pill[lang="en"] { font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif; }
.pill[lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 15px; }

.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px);
}
.hero-copy { flex: 1 1 480px; min-width: 0; }
.chip-line {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--hero-line); font-size: 14px; font-weight: 600; color: var(--hero-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.hero h1 {
  margin: 24px 0 0; font-size: clamp(36px, 5.4vw, 74px); line-height: 1.22;
  font-weight: 700; letter-spacing: 0; text-wrap: balance;
}
html[lang="en"] .hero h1 { line-height: 1.08; letter-spacing: -.025em; font-size: clamp(36px, 5.4vw, 72px); }
.hero h1 span { color: var(--mint); }
.lede { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.9; max-width: 34em; color: var(--hero-soft); text-wrap: pretty; }
html[lang="en"] .lede { line-height: 1.6; max-width: 32em; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; text-decoration: none;
  font-size: 16px; font-weight: 700; border: 1px solid transparent;
}
.btn-mint { background: var(--mint); color: var(--hero-night) !important; }
.btn-mint:hover { background: #95DDBE; }
.btn-ghost { border-color: var(--hero-line); font-weight: 600; }
.btn-ghost:hover { background: rgba(245, 242, 235, .08); color: inherit; }
@media (max-width: 480px) { .cta-row .btn { flex: 1 1 100%; } }
.btn svg { flex: none; }

/* store badges: placeholders until the apps are live. Same 156×52 box as
   the official badges, so swapping them in moves nothing. */
.stores { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.stores-label { font-size: 14px; font-weight: 600; color: var(--hero-soft); }
.store {
  width: 156px; height: 52px; border-radius: 12px; border: 1px dashed var(--hero-line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif; font-weight: 600; font-size: 15px; direction: ltr;
}
.store-solid { background: var(--ink); color: var(--ivory); border: none; }
.points { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; font-weight: 500; color: var(--hero-soft); }
.points li { display: flex; align-items: center; gap: 8px; }
.points svg { flex: none; }

/* the live lot card */
.card-col { flex: 1 1 360px; max-width: 440px; margin-inline: auto; width: 100%; }
.live {
  background: var(--surface); color: var(--ink); border-radius: 28px; padding: 14px;
  box-shadow: 0 2px 4px rgba(18, 26, 22, .06), 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.live-photo { position: relative; border-radius: 18px; overflow: hidden; height: 220px; background: var(--bg-deep); }
.live-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chips { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6;
}
.chip-live { background: var(--accent); color: #fff; transition: background-color .4s; }
.chip-live .dot { width: 7px; height: 7px; background: #fff; }
.chip-gold { background: var(--gold-tint); color: var(--gold-deep); }
.live-body { padding: 16px 8px 4px; }
.live-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.price-row { margin-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.label { margin: 0; font-size: 13px; color: var(--muted); }
.big-price { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; }
.cur { font-size: 18px; color: var(--muted); font-weight: 600; }
.clock-box { text-align: end; }
.clock { margin: 0; font-size: 28px; line-height: 1.3; transition: color .4s; }
.leader { margin: 6px 0 0; font-size: 13.5px; color: var(--text2); }
.leader b { color: var(--accent); }
.final-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--urgent-tint);
  border: 1px solid var(--urgent-line); color: var(--urgent); font-size: 13.5px; font-weight: 600; line-height: 1.6;
}
.final-note[hidden] { display: none; }
.bids-h { margin: 14px 0 4px; font-size: 13px; font-weight: 700; }
.bids { margin: 0; padding: 0; list-style: none; }
.bids li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-deep); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.bids li:first-child .av { background: var(--accent-tint); color: var(--accent); }
.bids .who { flex: 1; font-weight: 600; }
.bids .ago { color: var(--muted2); font-size: 12.5px; }
.bids .amt { min-width: 64px; text-align: end; }
.bids li.new { animation: slideIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); background: var(--accent-tint); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bids li.new { animation: none; } }
.bid-btn {
  margin: 10px 0 0; min-height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: .3em;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  transition: background-color .4s;
}
.live.is-final .clock { color: var(--urgent); }
.live.is-final .chip-live { background: var(--urgent-btn); }
.live.is-final .bid-btn { background: var(--urgent); }
.demo-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--hero-soft); }

.ticker { border-top: 1px solid var(--hero-line); }
.ticker-row { display: flex; gap: 12px; overflow-x: auto; padding-block: 18px; scrollbar-width: none; }
.ticker-row::-webkit-scrollbar { display: none; }
.tick { flex: none; display: flex; align-items: center; gap: 10px; padding-block: 8px; padding-inline: 8px 14px; border-radius: 14px; border: 1px solid var(--hero-line); line-height: 1.45; }
.tick img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; }
.tick p { margin: 0; font-size: 13px; font-weight: 600; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick small { display: block; font-size: 12.5px; color: var(--hero-soft); }

/* ── Sections ─────────────────────────────────────────────────────── */
.sec { padding-top: clamp(72px, 9vw, 128px); }
.kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
html[lang="en"] .kicker { letter-spacing: .04em; text-transform: uppercase; }
.sec h2 { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3; font-weight: 700; max-width: 20em; text-wrap: balance; }
html[lang="en"] .sec h2 { line-height: 1.15; letter-spacing: -.02em; }
.sec-lede { margin: 16px 0 0; font-size: 18px; color: var(--text2); max-width: 36em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.sec-head p { margin: 0; font-size: 14px; color: var(--muted); }

.cards { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card h3 { margin: 14px 0 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
html[lang="en"] .card h3 { line-height: 1.35; }
.card p { margin: 8px 0 0; font-size: 15.5px; color: var(--text2); }
.rule-num { margin: 0; font-family: var(--mono); font-size: 54px; line-height: 1.1; font-weight: 600; color: var(--accent); direction: ltr; text-align: end; }
html[lang="en"] .rule-num { text-align: start; }
.rule-num + h3 { margin-top: 18px; }
.card-gold { border-color: var(--gold-line); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.b-gold { background: var(--gold-tint); color: var(--gold-deep); }
.b-green { background: var(--accent-tint); color: var(--accent); }
.b-grey { background: var(--bg-deep); color: var(--muted); }

.steps { margin: 44px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 300px; background: var(--bg-deep); border-radius: 28px; padding: 28px 28px 0; display: flex; flex-direction: column; overflow: hidden; }
.step .mono { font-size: 15px; color: var(--accent); }
.step h3 { margin: 8px 0 0; font-size: 22px; font-weight: 700; }
.step p { margin: 8px 0 0; font-size: 15.5px; color: var(--text2); }
.step img { margin: 28px auto 0; width: 220px; max-width: 80%; height: auto; border-radius: 26px 26px 0 0; box-shadow: 0 -2px 0 6px var(--ink); display: block; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.trust-band {
  margin-top: 16px; background: var(--night); color: var(--ivory); border-radius: 28px;
  padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px 48px;
}
.trust-band > div { flex: 1 1 260px; }
.trust-band h3 { margin: 12px 0 0; font-size: 19px; font-weight: 700; }
.trust-band p { margin: 8px 0 0; font-size: 15px; color: var(--ivory-dim); }

.gallery { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; }
.lot { flex: 1 1 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.lot-photo { position: relative; height: 220px; background: var(--bg-deep); }
.lot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-time { position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(18, 26, 22, .72); color: #fff; font-size: 13px; direction: ltr; }
.lot-time.urgent { background: var(--urgent-btn); }
.lot-photo .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.lot-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lot h3 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.6; }
html[lang="en"] .lot h3 { line-height: 1.45; }
.lot-meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.lot-price { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: baseline; }
.lot-price span:first-child { font-size: 13px; color: var(--muted); }
.lot-price b { font-size: 20px; }
.lot-price .cur { font-size: 14px; }

.seller {
  background: var(--accent-tint); border-radius: 32px; padding: clamp(28px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 40px 56px;
}
.seller-main { flex: 1 1 420px; min-width: 0; }
.seller h2 { max-width: none; }
.seller-steps { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.seller-steps li { display: flex; gap: 16px; }
.seller-steps .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; }
.seller-steps h3 { margin: 0; font-size: 18px; font-weight: 700; }
.seller-steps p { margin: 4px 0 0; font-size: 15.5px; color: var(--text2); }
.pledge { flex: 1 1 320px; align-self: center; background: var(--paper); border: 1px solid var(--gold-line); border-radius: 24px; padding: 30px; }
.pledge-h { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold-deep); }
.pledge-text { margin: 16px 0 0; font-size: 18px; line-height: 1.9; font-weight: 500; }
html[lang="en"] .pledge-text { line-height: 1.6; }
.pledge-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--gold-line); font-size: 14px; color: var(--muted); }

.get { padding-block: clamp(72px, 9vw, 128px); text-align: center; }
.get-inner { max-width: 720px; margin: 0 auto; }
.get img { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto; }
.get h2 { margin: 24px auto 0; font-size: clamp(28px, 4vw, 52px); }
.get .sec-lede { margin-inline: auto; }
.get .stores { justify-content: center; margin-top: 28px; }
.contact-row { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; }
.contact-row a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { background: var(--night); color: var(--ivory); }
.foot a { color: var(--ivory); text-decoration: none; }
.foot a:hover { color: var(--mint); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-block: 56px 32px; }
.foot-about { flex: 2 1 320px; }
.foot-brand { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.foot-brand img { width: 34px; height: 34px; border-radius: 9px; }
.foot-about p { margin: 14px 0 0; font-size: 15px; color: var(--ivory-dim); max-width: 30em; }
.foot-col { flex: 1 1 140px; }
.foot-col h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ivory-mute); }
.foot-col ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 2.4; }
.foot-bottom {
  border-top: 1px solid rgba(245, 242, 235, .12); padding-block: 20px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: var(--ivory-mute);
}
