/* Malaz Gold landing page — shared by / (Arabic, RTL) and /en/ (English). */
:root {
  --navy: #0d2165;
  --navy-deep: #081548;
  --gold: #dbb464;
  --gold-soft: #f3e6c7;
  --ink: #1f2937;
  --muted: #5b6475;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e7e1d3;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 21, 72, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(219, 180, 100, 0.18);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--gold); }
.lang {
  color: var(--navy-deep); background: var(--gold); text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 820px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(219, 180, 100, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #fff; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.25; margin: 0 0 18px; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 18px; color: rgba(255, 255, 255, 0.82); margin: 0 0 30px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 190px;
  padding: 10px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.06);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.65); line-height: 1.2; }
.store strong { display: block; font-size: 16px; line-height: 1.3; }
a.store:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold); }
.note { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-top: 14px; }

/* Phone mockup (illustrative — no real prices) */
.phone {
  justify-self: center; width: 280px; aspect-ratio: 9 / 18.5;
  background: #0b1435; border-radius: 42px; padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.screen { height: 100%; border-radius: 32px; overflow: hidden; background: #f4f4f4; display: flex; flex-direction: column; }
.screen .top { background: #bf9b4b; padding: 26px 16px 22px; color: #fff; }
.screen .top b { display: block; font-size: 15px; }
.screen .top i { font-style: normal; font-size: 11px; opacity: 0.85; }
.tabs { display: flex; background: #fff; border-radius: 12px; margin-top: 14px; padding: 4px; }
.tabs span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); padding: 6px 0; border-radius: 9px; }
.tabs span.on { background: #bf9b4b; color: #fff; }
.screen .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 12px; }
.mini { background: #fff8e6; border-radius: 12px; padding: 10px; }
.mini em { font-style: normal; font-size: 10px; color: var(--muted); display: block; }
.bar { height: 10px; border-radius: 6px; background: #e8dcc0; margin: 8px 0 6px; }
.bar.w60 { width: 60%; } .bar.w80 { width: 80%; }
.trend { font-size: 10px; font-weight: 700; }
.trend.up { color: #15803d; } .trend.down { color: #b91c1c; }
.screen .list { padding: 0 12px; display: grid; gap: 8px; }
.row { background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.dot { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-soft); flex: none; }
.row .bar { flex: 1; margin: 0; background: #eceff3; }
.navbar { margin-top: auto; background: #fff; display: flex; justify-content: space-around; padding: 10px 0 14px; }
.navbar i { width: 18px; height: 18px; border-radius: 6px; background: #d9dde3; display: block; }
.navbar i.on { background: #2563eb; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .phone { width: 240px; }
}

/* Sections */
section.block { padding: 84px 0; }
section.block.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 10px; color: var(--navy); line-height: 1.3; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 33, 101, 0.08); }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--navy); margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--bg); border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Security band */
.band { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #fff; }
.band .section-head h2 { color: #fff; }
.band .section-head p { color: rgba(255, 255, 255, 0.75); }
.band .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(219, 180, 100, 0.25); }
.band .card h3 { color: var(--gold); }
.band .card p { color: rgba(255, 255, 255, 0.78); }
.band .icon { background: rgba(219, 180, 100, 0.16); color: var(--gold); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Contact + footer */
.contact { text-align: center; }
.contact a.mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
}
.contact a.mail:hover { background: var(--navy-deep); }
footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); padding: 30px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
footer .brand { font-size: 16px; }
footer .brand img { width: 32px; }
footer nav { display: flex; gap: 18px; }
footer nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
footer nav a:hover { color: var(--gold); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* Legal pages (/privacy, /terms) — rendered by legal/build-pages.py */
.legal { padding: 56px 0 84px; }
.legal article { max-width: 780px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); margin: 0 0 6px; line-height: 1.3; }
.legal .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.legal .draft { background: #fff4d6; border: 1px solid #f0d58a; color: #7a5a00; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 0 0 28px; }
.legal h2 { font-size: 21px; color: var(--navy); margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.85; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { padding-inline-start: 1.4em; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold); font-weight: 700; }
.legal mark.todo { background: #fff1b8; color: #6b4e00; padding: 0 4px; border-radius: 4px; }
