/* Valu Taxi website. One stylesheet for English (ltr) and Arabic (rtl).
   Logical properties (inline-start/end) keep both directions correct. */

:root {
  --ink: #141414;          /* off-black, brand dark */
  --ink-2: #1e1e1f;
  --ink-3: #2a2a2c;
  --text: #1f2023;
  --muted: #5c606a;
  --line: #e6e7ea;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --yellow: #ffe100;       /* brand yellow, used as fill only */
  --yellow-ink: #141414;   /* text on yellow */
  --yellow-soft: #fff7c2;
  --ok: #157347;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 8px 24px rgba(20, 20, 20, .06);
  --wrap: 1160px;
  --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 6px; }
.ic { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 19px; white-space: nowrap; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.lang:hover { border-color: rgba(255,255,255,.5); }
.lang .ic { width: 18px; height: 18px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; color: #fff; padding: 8px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; inset-inline-end: 0; top: 52px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 8px; min-width: 230px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.menu-panel a { display: block; color: #fff; text-decoration: none; padding: 11px 14px; border-radius: 10px; font-size: 16px; }
.menu-panel a:hover { background: rgba(255,255,255,.08); }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-actions { margin-inline-start: auto; }
}

/* ---------- Buttons and badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn-yellow:hover { background: #ffd400; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: #c9ccd2; }
.btn .ic { width: 18px; height: 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* Both official badges at the same height. The Google Play image is trimmed
   of its built-in padding, so equal heights give equal visual size. */
.stores a { display: inline-flex; border-radius: 9px; }
.stores img { height: 48px; width: auto; }
.stores.sm img { height: 42px; }
.app-label { font-size: 14px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.on-dark .app-label { color: rgba(255,255,255,.7); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset-inline-end: -10%; bottom: -35%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,225,0,.16), rgba(255,225,0,0)); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 72px 64px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--yellow); background: rgba(255,225,0,.1); border: 1px solid rgba(255,225,0,.25); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.eyebrow .ic { width: 16px; height: 16px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; margin: 20px 0 16px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-cta .link { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.hero-cta .link:hover { border-color: var(--yellow); }
.hero-visual { display: flex; justify-content: center; gap: 18px; }
.page-hero .wrap { grid-template-columns: 1fr; padding-block: 64px 56px; }
.page-hero.has-visual .wrap { grid-template-columns: 1.1fr .9fr; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
@media (max-width: 900px) {
  .hero .wrap, .page-hero.has-visual .wrap { grid-template-columns: 1fr; padding-block: 48px; gap: 36px; }
  .hero-visual { order: 2; }
}

/* Phone mockup around a real app screenshot */
.phone { width: 260px; aspect-ratio: 1080 / 2400; border-radius: 38px; padding: 9px; background: #0b0b0c; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.45); position: relative; flex: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phone.back { width: 220px; margin-top: 60px; opacity: .92; }
@media (max-width: 900px) { .phone { width: 220px; } .phone.back { width: 180px; } }
@media (max-width: 480px) { .phone.back { display: none; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 20px 16px; border-inline-start: 1px solid rgba(255,255,255,.08); }
.trust-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trust-item .ic { color: var(--yellow); width: 26px; height: 26px; }
.trust-item b { display: block; font-size: 15px; }
.trust-item span { display: block; font-size: 13px; color: rgba(255,255,255,.65); }
@media (max-width: 900px) { .trust .wrap { grid-template-columns: 1fr 1fr; } .trust-item { border-inline-start: 0; padding-inline: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding-block: 64px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
[dir="rtl"] .kicker { text-transform: none; letter-spacing: 0; }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 700px) { .section { padding-block: 64px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Ride types */
.rides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ride { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ride-top { display: flex; align-items: center; justify-content: space-between; }
.ride .ic { width: 28px; height: 28px; color: var(--ink); }
.ride h3 { font-size: 20px; }
.ride p { color: var(--muted); font-size: 15px; flex: 1; }
.seats { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; background: var(--bg-soft); border-radius: 999px; padding: 4px 10px; color: var(--ink); }
.seats .ic { width: 16px; height: 16px; }
@media (max-width: 1080px) { .rides { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .rides { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .rides { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic-box { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow-soft); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic-box .ic { color: var(--ink); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.features.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .features, .features.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features, .features.three { grid-template-columns: 1fr; } }

/* Split block (text + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.dark { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; }
.split.dark h2 { color: #fff; }
.split.dark p { color: rgba(255,255,255,.75); }
.split .visual { display: flex; justify-content: center; gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.dark { padding: 36px 24px; } }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { width: 22px; height: 22px; color: var(--ok); margin-top: 3px; }
.split.dark .checks .ic { color: var(--yellow); }

/* Licence card */
.licence { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.licence-seal { width: 72px; height: 72px; border-radius: 20px; background: #eaf5ee; color: var(--ok); display: grid; place-items: center; }
.licence-seal .ic { width: 36px; height: 36px; }
.licence h2 { font-size: 26px; margin-bottom: 8px; }
.licence p { color: var(--muted); }
.licence dl { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 14px 0 0; }
.licence dt { font-size: 13px; color: var(--muted); }
.licence dd { margin: 0; font-weight: 700; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) { .licence { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s ease; width: 20px; height: 20px; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-band .apps { display: grid; gap: 18px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Cards / tables (licence page, contact) */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.data { width: 100%; border-collapse: collapse; font-size: 16px; }
.data th, .data td { text-align: start; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { width: 42%; color: var(--muted); font-weight: 500; padding-inline-end: 16px; }
.data tr:last-child th, .data tr:last-child td { border-bottom: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.doc { margin: 0; }
.doc a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.doc img { width: 100%; height: auto; }
.doc figcaption { margin-top: 10px; font-size: 15px; }
.doc figcaption a { border: 0; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink); }
.list-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-links li { display: flex; gap: 12px; align-items: flex-start; }
.list-links .ic { margin-top: 3px; color: var(--muted); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ic-box { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow-soft); display: grid; place-items: center; flex: none; }
.contact-item h3 { font-size: 18px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--muted); }
.contact-item a.strong { color: var(--ink); font-weight: 600; text-decoration: none; }
.muted { color: var(--muted); }
.prose { max-width: 780px; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }

/* Legal pages */
.legal { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: 30px; margin: 0 0 18px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: #34363c; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-inline-start: 22px; }
.legal a { color: var(--ink); }
.legal-lang { display: flex; gap: 8px; margin-bottom: 28px; }
.legal-lang a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.legal-section + .legal-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* Support form */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #cfd2d8; border-radius: 12px; background: #fff; color: var(--text); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,225,0,.45); }
.form .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; padding: 24px; }
.modal-box { max-width: 420px; margin: 18vh auto 0; background: #fff; border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.modal-box h2 { font-size: 22px; margin-bottom: 8px; }
.modal-box p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 64px 28px; margin-top: 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.footer-legal .lic a { color: #fff; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
