/* ShoesNet site — palette taken from the app's dark navy theme */
:root {
  --bg: #060E1B;
  --surface: #0F1A2B;
  --surface-2: #1F2836;
  --line: #2A3546;
  --text: #EAEFF5;
  --muted: #9AA6B6;
  --red: #F0000F;
  --kraft: #C9A46A;   /* carton cardboard tone, used only on the label */
  --kraft-ink: #2B2014;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --max: 1120px;
  --read: 70ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
html[lang="en"] body { line-height: 1.6; }

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Language switching: both languages live in the page, one is hidden */
html[data-lang="ar"] .l-en,
html[data-lang="en"] .l-ar { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 14, 27, 0.92);
  backdrop-filter: blur(8px);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: 0.2px;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted);
  padding: 6px 10px; border-radius: var(--radius-sm); font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.lang-btn {
  font: inherit; font-size: 14px; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; margin-inline-start: 6px;
}
.lang-btn:hover { border-color: var(--muted); }

/* Home hero */
.hero { padding: 72px 0 56px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.15; margin: 0 0 20px; font-weight: 700;
}
html[lang="en"] .hero h1 { line-height: 1.08; letter-spacing: -0.5px; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 0 0 28px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 15px; color: var(--text);
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

/* The carton label — the one memorable element */
.carton {
  background: var(--kraft);
  color: var(--kraft-ink);
  border-radius: 6px;
  padding: 22px 22px 52px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
  transform: rotate(-2deg);
  position: relative;
  max-width: 420px; justify-self: center; width: 100%;
}
html[dir="ltr"] .carton { transform: rotate(2deg); }
.carton::before { /* packing tape across the top */
  content: ""; position: absolute; inset-inline: 38%; top: -10px; height: 22px;
  background: rgba(255,255,255,0.35); border-radius: 2px;
}
.carton .tag {
  border: 2px solid var(--kraft-ink); border-radius: 4px; padding: 14px 16px;
}
.carton .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(43,32,20,0.45); }
.carton .row:last-of-type { border-bottom: 0; }
.carton .k { font-size: 14px; opacity: 0.8; }
.carton .v { font-weight: 700; font-size: 16px; }
.carton .big { font-size: 34px; font-weight: 700; line-height: 1.1; margin: 0 0 10px; }
.carton .sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.carton .sizes span {
  border: 1.5px solid var(--kraft-ink); border-radius: 4px;
  min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; padding: 1px 4px;
}
.carton .stamp {
  position: absolute; bottom: 14px; inset-inline-end: 16px;
  color: var(--red); border: 2px solid var(--red); border-radius: 4px;
  padding: 0 10px; font-weight: 700; font-size: 14px; transform: rotate(-8deg); opacity: 0.85;
}

/* Sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; line-height: 1.3; }
section.block .sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.role { padding: 26px 24px; background: var(--surface); }
.role + .role { border-inline-start: 1px solid var(--line); }
.role h3 { margin: 0 0 8px; font-size: 20px; }
.role p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; max-width: 760px; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); font-weight: 700;
}
html[data-lang="ar"] .steps li::before { content: counter(s, arabic-indic); }
.steps strong { display: block; font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; max-width: 860px; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Policy pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: calc(var(--read) + 40px); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.25; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; line-height: 1.4; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #D4DBE5; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
html[data-lang="ar"] .doc ol { list-style: arabic-indic; }
.doc .note {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 20px 0;
}
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 12px 24px; font-size: 16px; border: 0;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.mono { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* 404 */
.lost { padding: 120px 0; text-align: center; }
.lost h1 { font-size: 48px; margin: 0 0 8px; }
.lost p { color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 40px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .roles { grid-template-columns: 1fr; }
  .role + .role { border-inline-start: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav a { padding: 4px 8px; font-size: 14px; }
  .carton { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
