/* TradeInSyria — pre-launch landing page
   Brand Board v1 tokens. RTL-first: every spatial rule uses logical
   properties, so the Arabic page needs no separate stylesheet (R-172).

   Fonts: system stack here. The platform proper self-hosts and subsets
   Cairo per R-175 — deliberately NOT loading from a font CDN, which would
   disclose every visitor's IP to a third party. */

:root {
  --navy: oklch(0.32 0.09 250);
  --navy-deep: oklch(0.24 0.03 260);
  --gold: oklch(0.72 0.14 75);          /* 5.01:1 on navy — safe here only */
  --gold-text: oklch(0.55 0.12 70);     /* 4.98:1 on white */
  --ink: oklch(0.28 0.03 260);
  --grey: oklch(0.50 0.02 90);
  --line: oklch(0.88 0.005 90);
  --surface: #fdfcfa;
  --white: #fff;

  --font-latin: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Segoe UI', 'Tahoma', system-ui, sans-serif;

  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 1rem;            /* 16px floor, R-175 */
  line-height: 1.6;
  text-align: start;
}

[lang='ar'] body,
body[dir='rtl'] {
  font-family: var(--font-arabic);
  line-height: 1.85;          /* Arabic needs more leading than Latin */
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--navy);
  padding-block: 1rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { display: block; height: 40px; width: auto; }
.logo span { color: var(--white); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo span b { color: var(--gold); font-weight: 800; }

.lang-switch {
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.lang-switch:hover { background: rgb(255 255 255 / 0.12); }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  max-width: 20ch;
}

[dir='rtl'] .hero h1 { max-width: 22ch; line-height: 1.45; }

.hero h1 em { color: var(--gold); font-style: normal; }

.hero p {
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgb(255 255 255 / 0.85);
  max-width: 48ch;
}

.hero-status {
  display: inline-block;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.875rem;
  margin-block-end: 1.5rem;
  color: var(--white);
}

/* ---------- pillars ---------- */

.pillars { padding-block: clamp(3rem, 7vw, 4.5rem); }

.pillars h2, .signup h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.section-intro { color: var(--grey); margin: 0 0 2.5rem; max-width: 60ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.card p { margin: 0; color: var(--grey); font-size: 0.9375rem; }

/* ---------- signup ---------- */

.signup {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.signup-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.benefits { margin: 0; padding: 0; list-style: none; }
.benefits li {
  padding-inline-start: 1.75rem;
  margin-block-end: 0.75rem;
  position: relative;
  color: var(--grey);
}
/* inset-inline-start mirrors automatically in RTL — no second rule */
.benefits li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold-text);
  transform: rotate(45deg);
}

/* ---------- contact actions ---------- */

.cta-group { display: grid; gap: 0.75rem; align-content: start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
}

/* Navy rather than WhatsApp green: white on #25D366 is 1.75:1 and on the
   darker #128C7E still only ~4.2:1 — both fail AA (R-306). White on navy is
   12.69:1. The glyph carries the recognition; the brand carries the colour. */
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: oklch(0.36 0.10 250); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--navy); }

.btn:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

form { display: grid; gap: 1rem; }

label { display: block; font-weight: 600; font-size: 0.9375rem; margin-block-end: 0.35rem; }

input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
}

input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

button {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
}

button:hover { background: oklch(0.36 0.10 250); }
button:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.form-note { font-size: 0.875rem; color: var(--grey); margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.75);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
}

.site-footer a { color: var(--gold); }
.site-footer strong { color: var(--white); display: block; margin-block-end: 0.35rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.footer-legal {
  margin-block-start: 2rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
}
