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

:root {
  --yellow: #F59E0B;
  --yellow-dark: #D97706;
  --yellow-light: #FEF3C7;
  --brand: #FFC42E;
  --black: #1C1917;
  --gray-900: #292524;
  --gray-700: #44403C;
  --gray-500: #78716C;
  --gray-300: #D6D3D1;
  --gray-200: #E7E5E4;
  --gray-100: #F5F5F4;
  --white: #FFFFFF;
  --green: #059669;
  --green-light: #D1FAE5;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --blue-light: #DBEAFE;
  --purple-light: #EDE9FE;
  --orange-light: #FFEDD5;
  --radius: 20px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.skip-link { position: absolute; top: -100px; inset-inline-start: 1rem; background: var(--black); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 1rem; }

/* ---- NAV ---- */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: .8rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
nav#nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-logo img { height: 41px; width: auto; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--gray-700); font-weight: 600; font-size: .95rem; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--yellow-dark); }
.nav-links a.lang-switch { border: 1.5px solid var(--gray-300); border-radius: 50px; padding: .2rem .9rem; font-size: .85rem; }
.nav-links a.lang-switch:hover { border-color: var(--yellow); }
.nav-cta {
  background: var(--yellow) !important; color: var(--black) !important;
  padding: .5rem 1.4rem; border-radius: 50px; font-weight: 700 !important;
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(245,158,11,0.4); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.menu-toggle svg { width: 28px; height: 28px; fill: var(--black); }

/* ---- SHARED ---- */
section { padding: 5.5rem 2rem; }
section.tight { padding: 3.5rem 2rem; }
section.alt { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; background: var(--yellow-light); color: var(--yellow-dark);
  padding: .3rem 1.2rem; border-radius: 50px; font-size: .85rem; font-weight: 700; margin-bottom: 1rem;
}
.section-header h2, .page-header h1 { font-size: 2.4rem; font-weight: 900; color: var(--black); margin-bottom: .75rem; line-height: 1.3; }
.section-header p, .page-header p { font-size: 1.1rem; color: var(--gray-500); max-width: 640px; margin: 0 auto; }
.grid { display: grid; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--gray-100); border-radius: var(--radius); padding: 2rem;
  transition: transform .3s, box-shadow .3s;
}
.alt .card { background: var(--white); }
.card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.card h3 { font-size: 1.15rem; font-weight: 800; color: var(--black); margin-bottom: .5rem; }
.card p, .card li { font-size: .95rem; color: var(--gray-700); }
.card ul { padding-inline-start: 1.2rem; margin-top: .5rem; }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem; background: var(--yellow-light);
}
.icon.green { background: var(--green-light); } .icon.blue { background: var(--blue-light); }
.icon.red { background: var(--red-light); } .icon.purple { background: var(--purple-light); } .icon.orange { background: var(--orange-light); }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 2rem; border-radius: 14px;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform .2s, box-shadow .2s; cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--black); color: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.btn-primary svg { width: 24px; height: 24px; fill: var(--white); }
.btn-outline { background: var(--white); color: var(--black); border: 2px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--yellow); box-shadow: 0 4px 15px rgba(245,158,11,0.15); }
.btn-outline svg { width: 24px; height: 24px; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn .soon { font-size: .7rem; background: rgba(255,255,255,.2); padding: .1rem .5rem; border-radius: 50px; }
.btn-outline .soon { background: var(--yellow-light); color: var(--yellow-dark); }
.pill { display: inline-block; padding: .15rem .7rem; border-radius: 50px; font-size: .8rem; font-weight: 700; background: var(--yellow-light); color: var(--yellow-dark); }
.pill.green { background: var(--green-light); color: var(--green); }
.pill.red { background: var(--red-light); color: var(--red); }

/* ---- HERO ---- */
.hero {
  min-height: min(92vh, 860px); display: flex; align-items: center; padding: 7rem 2rem 4rem;
  background: linear-gradient(160deg, var(--yellow-light) 0%, var(--white) 50%, #FFF7ED 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%); top: -200px; inset-inline-end: -200px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; width: 100%; position: relative; }
.hero-text h1 { font-size: 3.1rem; font-weight: 900; line-height: 1.25; color: var(--black); margin-bottom: 1.4rem; }
.hero-text h1 span { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-text p { font-size: 1.2rem; color: var(--gray-700); margin-bottom: 2rem; max-width: 540px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--gray-300); }
.stat { text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 900; color: var(--yellow-dark); }
.stat-label { font-size: .85rem; color: var(--gray-500); }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 290px; height: 590px; background: var(--black); border-radius: 40px; padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2), 0 0 0 2px rgba(255,255,255,0.1); transform: rotate(-3deg);
}
[dir="rtl"] .phone-mockup { transform: rotate(3deg); }
.phone-screen { width: 100%; height: 100%; background: var(--gray-100); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.phone-top { background: linear-gradient(180deg, var(--brand), var(--yellow)); padding: 2.6rem 1.2rem 1.2rem; }
.phone-top .app-title { color: var(--black); font-weight: 900; font-size: 1.15rem; }
.phone-top .app-sub { color: rgba(0,0,0,.65); font-size: .8rem; }
.phone-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.phone-card { background: var(--white); border-radius: 14px; padding: .7rem .9rem; font-size: .8rem; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.phone-card .row { display: flex; justify-content: space-between; align-items: center; }
.phone-card .price { font-weight: 900; color: var(--black); font-size: 1.05rem; }
.phone-card .muted { color: var(--gray-500); font-size: .72rem; }
.phone-card.offer { border: 2px solid var(--green); }
.phone-card .badge { background: var(--green-light); color: var(--green); font-size: .68rem; font-weight: 800; padding: .05rem .5rem; border-radius: 50px; }
.phone-map { flex: 1; background: repeating-linear-gradient(45deg, #E7E5E4 0 2px, #F5F5F4 2px 18px); border-radius: 14px; min-height: 90px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* ---- PAGE HEADER ---- */
.page-header { padding: 8rem 2rem 3.5rem; text-align: center; background: linear-gradient(160deg, var(--yellow-light) 0%, var(--white) 70%); }

/* ---- STEPS ---- */
.steps { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; position: relative; }
.steps::before { content: ''; position: absolute; inset-inline-start: 30px; top: 40px; bottom: 40px; width: 3px; background: var(--gray-300); }
.step { display: flex; gap: 2rem; align-items: flex-start; padding: 1.6rem 0; }
.step-number { width: 60px; height: 60px; min-width: 60px; border-radius: 50%; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; position: relative; z-index: 1; }
.step-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--black); margin-bottom: .3rem; }
.step-content p { font-size: 1rem; color: var(--gray-700); }

/* ---- DARK CARD ---- */
.dark-card {
  max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, var(--black) 0%, var(--gray-900) 100%);
  border-radius: 24px; padding: 3rem; color: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.dark-card h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: 1rem; }
.dark-card h3 span { color: var(--yellow); }
.dark-card p { color: var(--gray-300); font-size: 1rem; margin-bottom: 1.2rem; }
.dark-card a { color: var(--yellow); }
.checks { display: flex; flex-direction: column; gap: .9rem; }
.check-item { display: flex; align-items: center; gap: .75rem; font-size: 1rem; }
.check-item .check { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: rgba(245,158,11,0.15); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }

/* ---- CTA ---- */
.cta { padding: 6rem 2rem; background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%); text-align: center; }
.cta h2 { font-size: 2.4rem; font-weight: 900; color: var(--black); margin-bottom: 1rem; }
.cta p { font-size: 1.15rem; color: var(--gray-900); margin: 0 auto 2.5rem; max-width: 560px; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta .btn-primary { background: var(--black); color: var(--white); }
.cta .btn-outline { background: rgba(255,255,255,0.92); border-color: transparent; }
.cta .note { margin-top: 1.5rem; font-size: .9rem; color: rgba(0,0,0,.7); }

/* ---- PROSE (long-form pages) ---- */
.prose { max-width: 820px; margin: 0 auto; font-size: 1.05rem; color: var(--gray-900); }
.prose h2 { font-size: 1.7rem; font-weight: 900; color: var(--black); margin: 2.8rem 0 1rem; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; font-weight: 800; color: var(--black); margin: 2rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-inline-start: 1.5rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose .meta { color: var(--gray-500); font-size: .9rem; margin-bottom: 2rem; }
.callout { background: var(--yellow-light); border-inline-start: 4px solid var(--yellow); padding: 1rem 1.4rem; border-radius: 12px; margin: 1.6rem 0; }
.callout.green { background: var(--green-light); border-color: var(--green); }
.callout.red { background: var(--red-light); border-color: var(--red); }
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--gray-100); border-radius: 16px; padding: 1.4rem 1.8rem; margin-bottom: 2.5rem; }
.toc strong { display: block; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-inline-start: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .25rem; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 16px; border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--white); }
th, td { padding: .85rem 1.1rem; text-align: start; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
th { background: var(--gray-100); font-weight: 800; color: var(--black); }
tr:last-child td { border-bottom: none; }
td .num { font-weight: 800; color: var(--black); white-space: nowrap; }

/* ---- FAQ ACCORDION ---- */
.faq-group { max-width: 860px; margin: 0 auto 3rem; }
.faq-group h2 { font-size: 1.5rem; font-weight: 900; color: var(--black); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .6rem; }
details.faq { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; margin-bottom: .7rem; overflow: hidden; }
.alt details.faq { background: var(--white); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.3rem; font-weight: 700; font-size: 1.02rem; color: var(--black);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--yellow-dark); font-weight: 400; line-height: 1; transition: transform .2s; }
details.faq[open] summary::after { content: '−'; }
details.faq[open] summary { border-bottom: 1px solid var(--gray-200); background: #FFFBEB; }
details.faq .answer { padding: 1rem 1.3rem 1.2rem; color: var(--gray-700); font-size: .98rem; }
details.faq .answer p { margin-bottom: .6rem; } details.faq .answer p:last-child { margin-bottom: 0; }
details.faq .answer ul { padding-inline-start: 1.3rem; margin: .4rem 0; }

/* ---- FARE CALCULATOR ---- */
.calc { max-width: 900px; margin: 0 auto; background: var(--white); border-radius: 24px; box-shadow: 0 15px 50px rgba(0,0,0,.08); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.calc-form { padding: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.calc-form label { font-weight: 700; color: var(--black); display: block; margin-bottom: .35rem; }
.calc-form .hint { font-weight: 400; color: var(--gray-500); font-size: .85rem; }
.calc-form input[type=range] { width: 100%; accent-color: var(--yellow-dark); }
.calc-form .val { font-weight: 900; color: var(--yellow-dark); font-size: 1.2rem; }
.calc-form .toggle { display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 700; }
.calc-form .toggle input { width: 20px; height: 20px; accent-color: var(--yellow-dark); }
.calc-result { background: linear-gradient(135deg, var(--black), var(--gray-900)); color: var(--white); padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.calc-result .label { color: var(--gray-300); font-size: .9rem; }
.calc-result .big { font-size: 3rem; font-weight: 900; color: var(--yellow); line-height: 1.1; }
.calc-result .big small { font-size: 1.1rem; color: var(--gray-300); font-weight: 700; }
.calc-result .range { font-size: 1rem; color: var(--gray-300); }
.calc-result .range strong { color: var(--white); }
.calc-result .breakdown { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .9rem; color: var(--gray-300); display: grid; gap: .3rem; }
.calc-result .breakdown span { display: flex; justify-content: space-between; }
.calc-note { max-width: 900px; margin: 1.2rem auto 0; font-size: .88rem; color: var(--gray-500); text-align: center; }

/* ---- MISC BLOCKS ---- */
.compare { max-width: 1000px; margin: 0 auto; }
.compare th:first-child { width: 28%; }
.compare td.yes { color: var(--green); font-weight: 700; }
.compare td.no { color: var(--red); }
.timeline-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1000px; margin: 0 auto; }
.timeline-mini .card { text-align: center; padding: 1.5rem 1.2rem; }
.timeline-mini .card .n { font-size: .8rem; font-weight: 800; color: var(--yellow-dark); letter-spacing: .05em; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.contact-grid .card { text-align: center; }
.contact-grid .card a { font-weight: 800; color: var(--black); text-decoration: none; word-break: break-all; }
.contact-grid .card a:hover { color: var(--yellow-dark); }
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.2rem 0; }
.doc-list .card { padding: 1.2rem 1.4rem; display: flex; gap: .9rem; align-items: flex-start; }
.doc-list .card .icon { width: 44px; height: 44px; min-width: 44px; margin: 0; font-size: 1.2rem; border-radius: 12px; }
.doc-list .card h3 { font-size: 1rem; margin-bottom: .15rem; }
.doc-list .card p { font-size: .88rem; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.link-cards a.card { text-decoration: none; color: inherit; display: block; }
.link-cards a.card .more { color: var(--yellow-dark); font-weight: 700; font-size: .9rem; margin-top: .8rem; display: inline-block; }

/* ---- FOOTER ---- */
footer { background: var(--black); color: var(--gray-300); padding: 3.5rem 2rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; background: var(--white); border-radius: 10px; padding: .35rem .6rem; }
.footer-brand p { font-size: .92rem; line-height: 1.8; color: var(--gray-500); }
.footer-contact a { color: var(--yellow); text-decoration: none; }
.footer-col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--gray-500); text-decoration: none; font-size: .92rem; margin-bottom: .6rem; transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--gray-700); display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--gray-500); flex-wrap: wrap; gap: .5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .nav-links { gap: 1rem; } .nav-links a { font-size: .88rem; }
  .grid-4, .timeline-mini { grid-template-columns: repeat(2, 1fr); }
  .link-cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-text p { margin: 0 auto 2rem; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .phone-mockup { width: 240px; height: 490px; transform: none !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dark-card, .calc { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  nav#nav { padding: .7rem 1rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0;
    background: var(--white); padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); gap: 1rem; z-index: 99; align-items: flex-start;
  }
  .menu-toggle { display: block; }
  .hero { padding: 5.5rem 1.2rem 3rem; min-height: auto; }
  .hero-text h1 { font-size: 1.95rem; }
  .hero-text p { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  section { padding: 3.5rem 1.2rem; }
  .page-header { padding: 6rem 1.2rem 2.5rem; }
  .section-header h2, .page-header h1 { font-size: 1.8rem; }
  .grid-3, .grid-2, .grid-4, .timeline-mini, .link-cards, .contact-grid, .doc-list { grid-template-columns: 1fr; }
  .dark-card { padding: 2rem 1.5rem; }
  .cta h2 { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .prose { font-size: 1rem; }
  .calc-result .big { font-size: 2.4rem; }
  .step { gap: 1.2rem; }
  .steps::before { inset-inline-start: 24px; }
  .step-number { width: 48px; height: 48px; min-width: 48px; font-size: 1.2rem; }
}
@media print {
  nav#nav, footer, .cta, .skip-link { display: none !important; }
  .page-header { padding-top: 1rem; }
}
