/* ============================================================
   Ridey — Shared Stylesheet
   rideyapp.com
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg:          #080C18;
  --bg-alt:      #0C1120;
  --card:        #0F1628;
  --card2:       #141C32;
  --primary:     #4361EE;
  --primary-dk:  #3451D1;
  --glow:        rgba(67, 97, 238, 0.25);
  --text:        #FFFFFF;
  --dim:         #C5CEDC;
  --muted:       #7B8CA0;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.14);
  --r:           16px;
  --r-sm:        10px;
  --r-lg:        24px;
  --t:           0.25s ease;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
[lang="ar"] body {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
}

/* ── Utilities ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-block;
  background: var(--glow);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(67, 97, 238, 0.35);
  letter-spacing: 0.3px;
}
.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 17px;
  color: var(--dim);
  max-width: 560px;
  margin-top: 14px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t);
  border: none;
  outline: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 8px 28px var(--glow); }
.btn-outline { background: transparent; color: var(--dim); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Store Buttons ───────────────────────────────────────── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card2);
  border: 1px solid var(--border2);
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--r);
  transition: var(--t);
  white-space: nowrap;
}
.store-btn:hover {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; }
.store-btn-text small { font-size: 11px; color: var(--muted); font-weight: 500; }
.store-btn-text strong { font-size: 15px; font-weight: 700; }

/* ── Navigation ──────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.logo { font-size: 26px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -0.5px; flex-shrink: 0; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: var(--t);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-btn {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid var(--border2);
  transition: var(--t);
  white-space: nowrap;
}
.lang-btn:hover { color: #fff; border-color: var(--primary); background: var(--glow); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand > p { color: var(--muted); font-size: 14px; max-width: 260px; line-height: 1.8; }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact a:hover { color: var(--primary); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { color: var(--dim); text-decoration: none; font-size: 14px; transition: var(--t); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted); font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: var(--t); }
.footer-bottom-links a:hover { color: #fff; }

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.legal-hero p { color: var(--muted); font-size: 15px; }
.legal-body { max-width: 800px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-body h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; color: #fff; }
.legal-body h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: var(--dim); }
.legal-body p  { color: var(--dim); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.legal-body ul { color: var(--dim); font-size: 15px; line-height: 1.8; padding-left: 24px; margin-bottom: 14px; }
[dir="rtl"] .legal-body ul { padding-left: 0; padding-right: 24px; }
.legal-body ul li { margin-bottom: 8px; }
.legal-body a { color: var(--primary); text-decoration: underline; }
.legal-contact-box {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 32px;
}
.legal-contact-box h3 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.legal-contact-box a { color: var(--primary); text-decoration: none; }
.legal-contact-box a:hover { text-decoration: underline; }
.legal-contact-box p { margin: 0 0 8px; }

/* ── Support Page ─────────────────────────────────────────── */
.support-hero { padding: 80px 24px 64px; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.support-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.support-hero p { color: var(--dim); font-size: 17px; max-width: 480px; margin: 0 auto; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 64px 24px; max-width: 900px; margin: 0 auto; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: var(--t);
  display: block;
}
.contact-card:hover { border-color: rgba(67,97,238,0.5); background: var(--card2); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.contact-icon { font-size: 36px; margin-bottom: 16px; }
.contact-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); }
.contact-card strong { display: block; font-size: 14px; color: var(--dim); margin-top: 8px; font-weight: 500; }

.faq-section { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; }
.faq-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 32px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--t);
}
[dir="rtl"] .faq-q { text-align: right; }
.faq-q:hover { color: var(--primary); }
.faq-q .chevron { font-size: 20px; flex-shrink: 0; transition: var(--t); color: var(--muted); }
.faq-q[aria-expanded="true"] .chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { color: var(--dim); font-size: 15px; line-height: 1.8; padding-bottom: 20px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-cards { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  nav .btn { display: none; }
}
