/* Safarh marketing homepage. Bilingual (Arabic RTL default / English LTR). */

:root {
  --primary: #5c24cf;
  --primary-dark: #1d0b52;
  --primary-soft: #efeafc;
  --yellow: #f7c504;
  --pink: #e83f6f;
  --text: #2a2540;
  --muted: #6b6b80;
  --border: #e6e2f5;
  --soft: #f6f4fd;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(40, 20, 120, .10);
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Language: both languages are in the HTML, the active one is shown */
html[lang="ar"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="ar"] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px; font-family: var(--font); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 8px 20px; font-size: 15px; }
.btn--lg { padding: 15px 34px; font-size: 17px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(92, 36, 207, .35); }
.btn--yellow { background: var(--yellow); color: var(--primary-dark); box-shadow: 0 6px 18px rgba(247, 197, 4, .35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 600; }
.pill--yellow { background: rgba(247, 197, 4, .18); color: var(--yellow); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font-size: 24px; font-weight: 800; color: var(--primary-dark); }
.brand--light .brand__name { color: #fff; }
.nav__links { display: flex; gap: 26px; margin-inline-start: 16px; flex: 1; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav__links a:hover { color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang-toggle { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--primary-dark); font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer; }
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Hero ---------- */
.hero { background: #5c24cf; color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; min-height: 620px; }
.hero__text { padding: 64px 0 56px; }
.hero h1 { margin: 18px 0 16px; font-size: clamp(36px, 5vw, 58px); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.hero__lead { max-width: 520px; font-size: 19px; color: rgba(255, 255, 255, .88); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 14px; background: #fff; color: var(--primary-dark); text-decoration: none; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 600; opacity: .7; }
.store strong { font-size: 17px; font-weight: 800; }
.store--soon { cursor: default; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.store--soon:hover { transform: none; }
.hero__owner { font-size: 15px; color: rgba(255, 255, 255, .8); }
.hero__owner a { margin-inline-start: 6px; color: var(--yellow); font-weight: 700; text-decoration: none; }
.hero__art { align-self: end; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero__art img { width: 100%; max-width: 560px; height: 520px; object-fit: cover; object-position: bottom; }

/* ---------- Value strip ---------- */
.strip { background: var(--primary-dark); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.strip__item { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 15px; }
.strip__item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; font-weight: 800; color: var(--primary-dark); }
.section__head p { margin-top: 12px; color: var(--muted); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: var(--yellow); color: var(--primary-dark); font-size: 20px; font-weight: 800; }
.step h3 { margin-bottom: 8px; font-size: 21px; font-weight: 800; color: var(--primary-dark); }
.step p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--primary-soft); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 6px; font-size: 19px; font-weight: 800; color: var(--primary-dark); }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Owners ---------- */
.owners { background: var(--primary-dark); color: #fff; padding: 88px 0; }
.owners__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.owners h2 { margin: 16px 0 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; font-weight: 800; }
.owners__text > p { font-size: 18px; color: rgba(255, 255, 255, .85); }
.ticks { margin: 24px 0 30px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d0b52' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.owners__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.owners__note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .65); }
.mock { padding: 18px 20px 22px; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.mock__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock__row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-top: 10px; border-radius: 12px; background: var(--primary-soft); font-size: 15px; }
.mock__row span { font-weight: 800; color: var(--primary); direction: ltr; }
.mock__row--free { background: #fff8dc; border: 1px dashed var(--yellow); }
.mock__row--free span { color: var(--primary-dark); }

/* ---------- FAQ ---------- */
.faq { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.faq summary { padding: 18px 22px; font-size: 18px; font-weight: 700; color: var(--primary-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 20px; font-weight: 800; }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 22px 20px; color: var(--muted); }
.faq p a { color: var(--primary); font-weight: 700; }
.faq__more { margin-top: 20px; text-align: center; }
.faq__more a { color: var(--primary); font-weight: 700; }

/* ---------- Final call to action ---------- */
.cta { background: linear-gradient(135deg, #5c24cf 0%, #3e1796 100%); color: #fff; text-align: center; }
.cta__inner { padding-top: 72px; padding-bottom: 72px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.cta p { margin: 10px 0 26px; font-size: 18px; color: rgba(255, 255, 255, .85); }

/* ---------- Footer ---------- */
.footer { background: #12073a; color: rgba(255, 255, 255, .8); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer__brand p { margin-top: 12px; max-width: 320px; font-size: 15px; color: rgba(255, 255, 255, .65); }
.footer__links, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--yellow); }
.footer__legal { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__text { padding: 44px 0 8px; }
  .hero__art img { max-width: 440px; height: 280px; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .owners__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section, .owners { padding: 60px 0; }
  .nav__cta { display: none; }
  .nav__inner { height: 60px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .strip__item { font-size: 14px; }
  .footer__inner { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
  .hero__lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .store { transition: none; }
}
