/* ===== Design Tokens ===== */
:root {
  --taxi-yellow: #FFD700;
  --taxi-yellow-light: #FFE34D;
  --taxi-yellow-dark: #E6C200;
  --taxi-yellow-bg: #FFF8E1;
  --black: #1A1A1A;
  --dark-gray: #2D2D2D;
  --mid-gray: #555555;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mid-gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* RTL Support */
[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--black);
  line-height: 1.2;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: 'Noto Sans Arabic', 'Montserrat', sans-serif;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--mid-gray);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--taxi-yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--taxi-yellow-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--taxi-yellow-dark);
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 12px 0;
}

.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--taxi-yellow-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--taxi-yellow);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.lang-switcher {
  display: flex;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switcher button {
  padding: 6px 12px;
  border: none;
  background: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--mid-gray);
  transition: all var(--transition);
}

.lang-switcher button:hover {
  background: var(--taxi-yellow-bg);
}

.lang-switcher button.active {
  background: var(--taxi-yellow);
  color: var(--black);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 0;
  margin-top: var(--nav-height);
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 50%, var(--black) 100%);
  opacity: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--taxi-yellow);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--taxi-yellow);
}

.hero-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--taxi-yellow);
  margin-bottom: 8px;
}

.hero-phone a {
  color: var(--taxi-yellow);
  transition: color var(--transition);
}

.hero-phone a:hover {
  color: var(--taxi-yellow-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero car image */
.hero-taxi {
  position: absolute;
  right: 8%;
  bottom: 5%;
  width: 480px;
  max-width: 45%;
  height: auto;
  z-index: 1;
  opacity: 0.85;
  filter: drop-shadow(0 4px 24px rgba(255,193,7,0.15));
}

[dir="rtl"] .hero-taxi {
  right: auto;
  left: 8%;
  transform: scaleX(-1);
}

/* ===== Services ===== */
.services {
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--taxi-yellow-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--taxi-yellow-dark);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Tours Map ===== */
.tours {
  background: var(--white);
  position: relative;
}

.tours-banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.tours-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tours-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.tours-list {
  margin-bottom: 24px;
}

.tours-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.tours-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--taxi-yellow-dark);
}

.tours-map-wrapper {
  position: relative;
}

.tours-map-wrapper svg {
  width: 100%;
  height: auto;
}

/* ===== About ===== */
.about {
  background: var(--taxi-yellow-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.about-card {
  text-align: center;
  padding: 32px 24px;
}

.about-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.about-icon svg {
  width: 36px;
  height: 36px;
  color: var(--taxi-yellow-dark);
}

.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--black);
  transition: border-color var(--transition);
  background: var(--white);
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .form-group select {
  font-family: 'Noto Sans Arabic', 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--taxi-yellow);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53935;
}

.form-error {
  font-size: 0.8rem;
  color: #e53935;
  display: none;
}

.form-group input.error ~ .form-error,
.form-group textarea.error ~ .form-error {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot */
.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Contact info card */
.contact-info-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--taxi-yellow);
  margin-top: 2px;
}

.contact-info-item a {
  color: var(--white);
  transition: color var(--transition);
}

.contact-info-item a:hover {
  color: var(--taxi-yellow);
}

.contact-info-item p {
  font-size: 0.95rem;
  color: #ccc;
}

.contact-info-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--dark-gray);
  color: var(--taxi-yellow);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.map-fallback:hover {
  background: var(--black);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-gray);
  color: #aaa;
  padding: 60px 30px 30px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 44px;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #777;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #777;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.powered-by:hover {
  opacity: 1;
}

.powered-by a {
  display: flex;
  align-items: center;
}

/* ===== Animations ===== */
.fade-in-OFF {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Route animation for map */
@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

.route-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawRoute 2s ease forwards;
}

/* Pulse for city dots */
@keyframes pulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 7; opacity: 0.7; }
}

.city-dot {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-phone {
    font-size: 1.3rem;
  }

  .hero-taxi {
    display: none;
  }

  .tours-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .container {
    padding: 60px 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }


  .lang-switcher button {
    min-height: 36px;
  }
}

/* RTL adjustments */
[dir="rtl"] .contact-info-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .tours-list li {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn {
  flex-direction: row-reverse;
}
