:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --soft: #f3e7da;
  --soft-2: #ead9c6;
  --ink: #1f1a17;
  --muted: #6b5f57;
  --line: #e9ded2;
  --accent: #b5502f;
  --accent-ink: #ffffff;
  --band-1: #b5502f;
  --band-2: #d99a6c;
  --band-3: #7a8c6e;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 8px 24px rgba(31, 26, 23, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171311;
    --surface: #211b18;
    --soft: #2a221e;
    --soft-2: #352a24;
    --ink: #f5ede4;
    --muted: #b3a69b;
    --line: #3a302a;
    --accent: #e07a55;
    --accent-ink: #1f1a17;
    --band-1: #e07a55;
    --band-2: #c98d62;
    --band-3: #8fa383;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171311;
  --surface: #211b18;
  --soft: #2a221e;
  --soft-2: #352a24;
  --ink: #f5ede4;
  --muted: #b3a69b;
  --line: #3a302a;
  --accent: #e07a55;
  --accent-ink: #1f1a17;
  --band-1: #e07a55;
  --band-2: #c98d62;
  --band-3: #8fa383;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

/* Language switching: show only the active language */
html[lang="ar"] [lang="en"]:not(.lang-toggle),
html[lang="en"] [lang="ar"]:not(.lang-toggle) { display: none !important; }

a { color: inherit; }
img { max-width: 100%; }

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

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.ltr { direction: ltr; unicode-bidi: isolate; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.top-actions { display: flex; align-items: center; gap: 10px; }

.wordmark {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 20px;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}

.lang-toggle:hover { border-color: var(--accent); }

.top .btn-sm { display: none; }

@media (min-width: 768px) {
  .top .btn-sm { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
  transition: filter 0.15s, border-color 0.15s;
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn-sm { padding: 8px 18px; min-height: 40px; font-size: 15px; }
.btn-sm svg { width: 18px; height: 18px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: 32px 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    padding-block: 56px 72px;
  }
}

.descriptor {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 12vw, 112px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .hero h1 { text-align: right; }

.pitch {
  margin: 24px 0 0;
  max-width: 32ch;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 520px;
}

.facts strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.facts span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }

/* Owner portrait */
.portrait {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 28px 28px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.10) 22px 24px),
    linear-gradient(180deg, var(--band-2), var(--band-1));
}

.portrait-frame picture {
  position: absolute;
  inset-inline: 0;
  top: 7%;
  margin-inline: auto;
  width: 88%;
}

.portrait-frame img { display: block; width: 100%; height: auto; }

.portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: 18px;
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.4;
}

.portrait figcaption strong { display: block; font-size: 16px; font-weight: 600; }
.portrait figcaption span { display: block; font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-block: 40px; }

@media (min-width: 768px) {
  .section { padding-block: 64px; }
}

.section-head { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.25;
}

/* Categories */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-band {
  height: 88px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, 0.14) 14px 16px),
    var(--band);
}

.card:nth-child(1) { --band: var(--band-1); }
.card:nth-child(2) { --band: var(--band-2); }
.card:nth-child(3) { --band: var(--band-3); }

.card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }

.card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

.card-link {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps li {
  counter-increment: step;
  background: var(--soft);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 14px;
}

.steps strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px;
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .contact-box { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; }
}

.contact-box h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.25;
}

.contact-box p { margin: 0; color: var(--muted); }

.phone {
  display: inline-block;
  margin-top: 16px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 600;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

.phone:hover { color: var(--accent); }

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  min-height: 52px;
}

.socials a:hover { border-color: var(--accent); }
.socials svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* Floating WhatsApp button (phones) */
.fab {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(31, 26, 23, 0.25);
}

.fab svg { width: 26px; height: 26px; }

@media (min-width: 768px) {
  .fab { display: none; }
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-block: 24px 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 15px;
}

@media (min-width: 768px) {
  .foot { padding-block: 24px 40px; }
}

.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }

/* Legal pages */
.legal {
  max-width: 720px;
  padding-block: 32px 24px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 600;
}

.legal .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
.legal ul { padding-inline-start: 22px; margin: 8px 0; }
.legal li { margin-block: 4px; }

.back {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.back:hover { color: var(--accent); }
