/* ═══════════════════════════════════════
   نعم تكسي — موقع التطبيق
   هوية زرقاء من الشعار #2563EB
   ═══════════════════════════════════════ */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #dbeafe;
  --brand-glow: rgba(37, 99, 235, 0.18);

  --bg: #f0f9ff;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --border: #bfdbfe;
  --border-strong: #93c5fd;

  --text: #0f2942;
  --text-soft: #64748b;
  --text-muted: #94a3b8;

  --whatsapp: #25d366;
  --shadow-sm: 0 2px 8px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.14);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --header-h: 72px;
  --container: 1140px;
  --font: 'Tajawal', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 251, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text);
}

.logo-icon svg {
  width: 36px;
  height: 36px;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-inline-start: auto;
}

.nav a {
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--brand);
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-inline-start: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--brand);
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-trust li {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-size: 0.95rem;
  color: var(--text);
}

.hero-trust span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Phone mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.phone {
  width: 280px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  margin: -4px auto 8px;
  position: relative;
  z-index: 3;
}

.phone-screen {
  background: #f8fafb;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #eef2f4;
}

.app-bar-title {
  font-weight: 900;
  color: var(--brand);
  font-size: 1.1rem;
}

.app-bar-badge {
  font-size: 0.75rem;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}

.app-map {
  flex: 1;
  position: relative;
  background: linear-gradient(160deg, #e8f4ea 0%, #dce8f0 100%);
  min-height: 220px;
}

.map-route {
  position: absolute;
  top: 30%;
  right: 20%;
  width: 60%;
  height: 40%;
  border: 3px dashed var(--brand);
  border-radius: 40% 60% 50% 50%;
  opacity: 0.5;
}

.map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.map-pin span, .map-pin {
  transform: rotate(-45deg);
}

.map-pin-a { top: 25%; right: 25%; }
.map-pin-b { bottom: 20%; left: 20%; background: #1a1a1a; }

.map-car {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: carMove 4s ease-in-out infinite;
}

.map-car svg {
  width: 22px;
  height: 22px;
}

@keyframes carMove {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}

.app-card {
  background: #fff;
  padding: 1.25rem;
  border-top: 1px solid #eef2f4;
}

.driver-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.driver-avatar {
  width: 40px;
  height: 40px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.driver-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.driver-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.driver-rating {
  margin-inline-start: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
}

.trip-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafb;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.trip-price strong {
  color: var(--brand);
  font-size: 1rem;
}

.app-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.85rem;
}

.float-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.float-icon {
  font-size: 1.25rem;
}

.float-card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 15%;
  right: -8%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-soft);
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-soft);
  line-height: 1;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: border-color 0.3s;
}

.feature:hover {
  border-color: var(--brand);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ── Drivers ── */
.drivers {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
}

.drivers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.drivers .section-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #ffb380;
}

.drivers h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.drivers p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.drivers-list {
  list-style: none;
  margin-bottom: 2rem;
}

.drivers-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.drivers-list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--brand);
  font-weight: 800;
}

.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.stat-box:hover {
  transform: translateX(-8px);
}

.stat-box.accent {
  background: var(--brand);
  border-color: var(--brand);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-grid-compact {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-whatsapp .contact-icon {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp);
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Legal pages ── */
.legal-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .drivers-inner {
    grid-template-columns: 1fr;
  }

  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .contact-grid-compact {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-links {
    justify-content: center;
  }

  .phone {
    width: 260px;
  }

  .float-card {
    display: none;
  }
}
