/* ============================================================
   La Limo — shared design system
   Mirrors the Flutter app's tokens (Manrope, palette, radii).
   Used by every EN + AR page. RTL handled via [dir="rtl"].
   ============================================================ */

/* ── SELF-HOSTED FONTS (the exact files the app ships) ──
   Manrope = Latin/numerals · Noto Sans Arabic = Arabic glyphs.
   Noto faces are scoped to Arabic unicode ranges so Latin always
   uses Manrope (matching the app) regardless of family order. */
@font-face {
  font-family: 'Manrope';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/Manrope-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/Manrope-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/Manrope-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/NotoSansArabic-Regular.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/NotoSansArabic-Medium.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/NotoSansArabic-Bold.ttf') format('truetype');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}

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

:root {
  --light:  #F5F5F5;
  --dark:   #191919;
  --white:  #FFFFFF;
  --black:  #0F0F0F;
  --grey:   #969696;
  --fade:   #323232;
  --info:   #505050;
  --border: #E0E0E0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Noto Sans Arabic', sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.06em;
  overflow-x: hidden;
}

/* Arabic reads better without Latin tracking */
[dir="rtl"] body,
body[dir="rtl"] { letter-spacing: normal; }

img { max-width: 100%; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes phonesUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2), transform 0.65s cubic-bezier(.22,.68,0,1.2);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── NAV ── */
/* Scoped to #navbar so the footer's <nav> is never pinned to the top. */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: transparent;
  animation: slideDown 0.5s cubic-bezier(.22,.68,0,1.2) both;
  transition: background 0.3s, border-color 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { color: var(--black); display: inline-flex; }
.logo svg { height: 20px; width: auto; display: block; overflow: visible; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none;
  color: var(--info);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Nav pill buttons — fixed, identical height so they never drift. */
.lang-switch,
.btn-download {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* language switcher */
.lang-switch {
  gap: 6px;
  color: var(--info);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0 16px;
  transition: color .2s, border-color .2s;
}
.lang-switch:hover { color: var(--black); border-color: var(--grey); }
.lang-switch > i { font-size: 15px; }

/* language dropdown */
.lang-select { position: relative; }
.lang-caret { font-size: 14px; transition: transform .2s; opacity: .75; }
.lang-select.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-select.open .lang-menu { display: flex; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 42px;            /* fixed so every option row matches */
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--info);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.lang-option:hover { background: var(--light); color: var(--black); }
.lang-option.active { color: var(--black); }
.lang-option i { font-size: 17px; color: var(--black); }

.btn-download {
  gap: 7px;
  background: var(--black);
  color: var(--white);
  padding: 0 20px;
  border: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-download:hover {
  background: var(--fade);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-download i { font-size: 16px; }

/* ── HERO ── */
.hero {
  padding-top: 64px;
  background: var(--light);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 0;
}
.hero-text {
  padding: 88px 24px 0;
  text-align: center;
  animation: fadeUp 0.7s 0.15s cubic-bezier(.22,.68,0,1.2) both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--info);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.hero-badge i { font-size: 16px; color: var(--black); }
.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--black);
  max-width: 760px;
  margin: 0 auto 20px;
}
.hero h1 .muted { color: var(--grey); }
.hero p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: var(--info);
  max-width: 440px;
  margin: 0 auto 44px;
  font-weight: 500;
}
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* ── STORE BUTTONS ── */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  font-family: inherit;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.btn-store i { font-size: 28px; flex-shrink: 0; }
.store-label { display: flex; flex-direction: column; align-items: flex-start; }
.store-sub { font-size: 11px; font-weight: 500; opacity: 0.65; line-height: 1; letter-spacing: 0.01em; }
.store-name { font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.btn-store.outline {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--border);
}
.btn-store.outline:hover { background: var(--light); }
.btn-store.light { background: var(--white); color: var(--black); }
.btn-store.light:hover { background: var(--light); }
.btn-store.light-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-store.light-ghost:hover { background: rgba(255,255,255,0.07); }

/* ── PHONE MOCKUP ── */
.hero-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  animation: phonesUp 0.9s 0.3s cubic-bezier(.22,.68,0,1.2) both;
  margin-bottom: -120px;
  position: relative;
  z-index: 2;
}
.phone-wrap { position: relative; flex-shrink: 0; }
.phone-wrap.center { z-index: 2; }
.phone-wrap.side {
  transform: translateY(44px) scale(0.87);
  opacity: 0.72;
  z-index: 1;
}
.phone-frame {
  width: 210px;
  border-radius: 36px;
  border: 3px solid var(--black);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  background: var(--white);
  display: block;
}
.phone-frame img { width: 100%; height: auto; display: block; }

/* ── FEATURES ── */
.features {
  padding: 200px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.features h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--black);
  max-width: 520px;
  line-height: 1.08;
  margin-bottom: 64px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--light);
  border-radius: 28px;
  padding: 36px 32px 40px;
  border: 1px solid transparent;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.07);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.feature-icon i { font-size: 24px; color: var(--black); }
.feature-card h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--info);
  font-weight: 500;
}

/* ── CTA STRIP ── */
.cta-section { padding: 0 24px 120px; }
.cta-strip {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 32px;
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.035em;
  max-width: 420px;
  line-height: 1.3;
}
.cta-strip h2 .muted { color: var(--grey); }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.cta-buttons .btn-store { justify-content: center; }

/* ── PAGE HERO (contact) ── */
.page-hero {
  background: var(--light);
  padding: calc(64px + 80px) 24px 72px;
  text-align: center;
  animation: fadeUp 0.6s cubic-bezier(.22,.68,0,1.2) both;
}
.page-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--info);
  font-weight: 500;
  max-width: 440px;
  margin: 0 auto;
}

/* ── CONTACT CARDS ── */
.contact-section { max-width: 1100px; margin: 0 auto; padding: 80px 24px 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.contact-card {
  background: var(--light);
  border-radius: 28px;
  padding: 40px 36px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.contact-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.07);
}
.contact-icon {
  width: 56px; height: 56px;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon i { font-size: 26px; color: var(--black); }
.contact-card-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}
.contact-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 6px;
}
.contact-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--info);
  font-weight: 500;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-top: auto;
  padding-top: 8px;
  letter-spacing: -0.01em;
}
.contact-link i { font-size: 16px; transition: transform .2s; }
.contact-card:hover .contact-link i { transform: translateX(3px); }
[dir="rtl"] .contact-card:hover .contact-link i { transform: translateX(-3px); }

/* ── MAP ── */
.map-section { max-width: 1100px; margin: 0 auto; padding: 20px 24px 120px; }
.map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.map-header h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -0.03em; }
.map-header p { font-size: 15px; color: var(--info); font-weight: 500; }
.map-wrap {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 480px;
  background: var(--light);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── LEGAL PAGE ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(64px + 80px) 24px 120px;
  animation: fadeUp 0.6s cubic-bezier(.22,.68,0,1.2) both;
}
.page h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page .meta {
  font-size: 14px;
  color: var(--grey);
  font-weight: 500;
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.page section { margin-bottom: 48px; }
.page h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--black);
}
.page h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
  color: var(--black);
}
.page h3:first-of-type { margin-top: 4px; }
.page strong { font-weight: 700; color: var(--fade); }
.page a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.page p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--info);
  font-weight: 500;
  margin-bottom: 14px;
}
.page p:last-child { margin-bottom: 0; }
.page ul {
  margin: 14px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[dir="rtl"] .page ul { padding-left: 0; padding-right: 20px; }
.page ul li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--info);
  font-weight: 500;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 0 0 48px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px 40px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .logo svg { height: 18px; }
.footer-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 14px;
  color: var(--grey);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--black); }
.copy { font-size: 13px; color: var(--grey); font-weight: 500; }
.footer-brand { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-by { display: flex; align-items: center; gap: 16px; }
.footer-by .co-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.footer-by .co-item { display: flex; align-items: center; gap: 6px; }
.footer-by .co-item svg { height: 14px; width: auto; opacity: 0.45; display: block; }
.footer-by .co-suffix {
  font-size: 11px; font-weight: 500; color: var(--grey);
  letter-spacing: -0.01em; opacity: 0.45;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  #navbar { padding: 0 20px; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-phones .phone-wrap.side { display: none; }
  .phone-frame { width: 240px; }
  .features { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { height: 280px; }
  .cta-strip { padding: 48px 32px; flex-direction: column; align-items: flex-start; }
  footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .phone-frame { width: 200px; }
}
