:root {
  color-scheme: light;
  --bg: #07090d;
  --bg-deep: #05070a;
  --ink: #f4f1ea;
  --muted: #b6b2a9;
  --accent: #d8a856;
  --accent-2: #38d6c9;
  --glow: rgba(216, 168, 86, 0.45);
  --card: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.15);
  --radius: 20px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  --float-duration: 8s;
  --spin-duration: 10s;
  --glow-duration: 10s;
  font-synthesis: none;
}

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

body {
  font-family: "Cairo", sans-serif;
  background: radial-gradient(circle at top, #0c1017 0%, var(--bg) 55%, var(--bg-deep) 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -2;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.primary {
  background: linear-gradient(120deg, var(--accent), #f7d48a);
  color: #20170a;
  box-shadow: 0 20px 40px rgba(216, 168, 86, 0.35);
}

.primary:hover {
  transform: translateY(-3px) scale(1.02);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

/* ── Header ── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4vw;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.7) 100%);
}

.logo {
  font-family: "El Messiri", sans-serif;
  font-size: 18px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-mark {
  font-size: 26px;
  background: linear-gradient(120deg, #f6d188, #f2b85d, #38d6c9);
  -webkit-background-clip: text;
  color: transparent;
  animation: glowPulse 3s ease-in-out infinite;
}

.logo-name { font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 5px 8px;
  border-radius: 16px;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

.site-nav .cta {
  background: rgba(56, 214, 201, 0.16);
  color: #c0fff7;
  border: 1px solid rgba(56, 214, 201, 0.3);
}

/* ── Hero ── */

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 4vw 40px;
  min-height: auto;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 1px; font-size: 0.85rem; }

.hero h1 {
  font-size: clamp(1.8rem, 5vw + 0.5rem, 4.6rem);
  line-height: 1.2;
  font-family: "El Messiri", sans-serif;
}

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

.hero h1 .brand {
  background: linear-gradient(120deg, #38d6c9, #b58a45);
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions button { flex: 1; min-width: 140px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.hero-stats div {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  text-align: center;
}

.hero-stats strong { font-size: 1.1rem; display: block; }

.hero-stats span { color: var(--muted); font-size: 0.75rem; }

.hero-visual {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
  order: -1;
}

.hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  filter: blur(12px);
  animation: glowOrbit var(--glow-duration) ease-in-out infinite;
  will-change: transform;
}

.hero-car {
  width: min(88vw, 760px);
  transform: translateY(calc(var(--scroll) * -28px)) translateX(calc(var(--scroll) * 12px));
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  animation: carFloat var(--float-duration) ease-in-out infinite;
  will-change: transform;
}

.road {
  position: absolute;
  bottom: 24px;
  width: 70%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  border-radius: 999px;
  opacity: 0.5;
  transform: translateY(calc(var(--scroll) * 40px));
}

.speed-lines { position: absolute; inset: 0; display: grid; place-items: center; }

.speed-lines span {
  position: absolute;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 214, 201, 0.7), transparent);
  opacity: 0.5;
  animation: speedLine 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}

.speed-lines span:nth-child(1) { top: 40%; right: 10%; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 55%; right: 20%; animation-delay: 0.6s; }
.speed-lines span:nth-child(3) { top: 30%; right: 5%; animation-delay: 1.1s; }

/* ── Sections ── */

.section { padding: 40px 4vw; }

.section.alt {
  background: radial-gradient(circle at center, rgba(56, 214, 201, 0.08) 0%, transparent 65%);
}

.section-title {
  text-align: right;
  max-width: 680px;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw + 0.8rem, 3.4rem);
  font-family: "El Messiri", sans-serif;
  margin-bottom: 8px;
}

.section-title p { color: var(--muted); font-size: 0.9rem; }

.cards,
.fleet-grid,
.steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card,
.fleet-card,
.step,
.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3,
.fleet-card h3,
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }

.card p,
.fleet-card p,
.step p { color: var(--muted); line-height: 1.7; font-size: 0.9rem; }

.fleet-badge {
  background: rgba(216, 168, 86, 0.2);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.steps .step span { font-size: 1.6rem; color: var(--accent-2); }

.cta-section { padding-bottom: 40px; }

.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  padding: 24px 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}

.contact-form h2 {
  font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.4rem);
  font-family: "El Messiri", sans-serif;
}

.contact-form p { color: var(--muted); font-size: 0.9rem; }

/* ── Carousel ── */

.car-carousel {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.car-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.car-tab {
  font-family: "Cairo", sans-serif;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.car-tab:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

.car-tab.active {
  background: rgba(216, 168, 86, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.carousel-main-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.carousel-main-wrap {
  position: relative;
}

.carousel-main-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1;
}

.carousel-main-wrap[data-loading="true"]::after {
  opacity: 1;
}

.carousel-main-wrap[data-loading="true"] .carousel-main {
  opacity: 0.3;
}

.carousel-main-wrap .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.carousel-main-wrap[data-loading="true"] .spinner {
  opacity: 1;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.carousel-main {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  background: var(--card);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.carousel-thumbstrip {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.cthumb {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cthumb:hover { opacity: 0.8; transform: translateY(-2px); }

.cthumb.active { opacity: 1; border-color: var(--accent); }

.carousel-arrow {
  position: absolute;
  top: 92px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
  padding: 0;
}

.carousel-arrow:hover { opacity: 1; background: rgba(255, 255, 255, 0.2); }

.carousel-prev { right: 6px; }
.carousel-next { left: 6px; }

.carousel-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.carousel-badge {
  background: rgba(216, 168, 86, 0.2);
  color: var(--accent);
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.carousel-name {
  font-family: "El Messiri", sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.carousel-select { margin-top: 2px; }

.rental-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

.rental-dates label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--muted);
}

.date-input {
  font-family: "Cairo", sans-serif;
  direction: ltr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.15s ease;
}

.date-input:focus { outline: none; border-color: var(--accent); }

.date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.wa-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.wa-picker-label { font-size: 0.8rem; color: var(--muted); }

.wa-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.wa-option {
  font-family: "Cairo", sans-serif;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wa-option:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

.wa-option.active {
  background: rgba(56, 214, 201, 0.15);
  border-color: var(--accent-2);
  color: var(--ink);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  place-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.open { display: grid; }

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.15s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.carousel-dots {

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-dot:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.2); }

.carousel-dot.active { background: var(--accent); transform: scale(1.2); }

/* ── Footer ── */

.site-footer {
  padding: 20px 4vw 32px;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

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

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes headlightPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes speedLine {
  0% { opacity: 0; transform: translateX(30px) scaleX(0.6); }
  50% { opacity: 1; transform: translateX(0) scaleX(1); }
  100% { opacity: 0; transform: translateX(-30px) scaleX(0.6); }
}

@keyframes glowOrbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.05); }
}

/* ── Tablet ── */
@media (min-width: 640px) {
  button { padding: 14px 28px; font-size: 1rem; }

  .site-header { padding: 14px 5vw; }

  .logo { font-size: 20px; gap: 6px; }
  .logo-mark { font-size: 28px; }

  .site-nav { gap: 6px; }
  .site-nav a { padding: 6px 10px; font-size: 0.82rem; }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 24px 5vw 60px;
    min-height: auto;
  }

  .hero-content { gap: 16px; }
  .hero-visual { min-height: 280px; order: 0; }
  .hero-glow { width: 280px; height: 280px; }
  .hero-car { width: min(90vw, 700px); }

  .hero h1 { font-size: clamp(2.2rem, 4vw + 0.5rem, 4.6rem); }
  .lead { font-size: 1rem; }
  .hero-actions button { flex: none; min-width: auto; }

  .hero-stats { gap: 10px; }
  .hero-stats div { padding: 12px 10px; }
  .hero-stats strong { font-size: 1.2rem; }
  .hero-stats span { font-size: 0.8rem; }

  .section { padding: 60px 5vw; }
  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3.4rem); }
  .section-title p { font-size: 0.95rem; }
  .cta-section { padding-bottom: 60px; }

  .cards,
  .steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .card, .step { padding: 22px; }
  .card h3, .step h3 { font-size: 1.2rem; }

  .carousel-main { height: 280px; }

  .cthumb { width: 90px; height: 54px; }

  .carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    background: var(--card);
    border: 1px solid var(--border);
  }

  .carousel-arrow:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-50%) scale(1.05); }

  .carousel-prev { right: -12px; }
  .carousel-next { left: -12px; }

  .carousel-name { font-size: 1.3rem; }

  .rental-dates {
    flex-direction: row;
    gap: 12px;
    max-width: none;
  }

  .wa-option { font-size: 0.82rem; padding: 6px 14px; }

  .cta-card { padding: 28px 24px; }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .site-header { padding: 20px 6vw; }

  .logo { font-size: 24px; gap: 8px; }
  .logo-mark { font-size: 34px; }

  .site-nav { gap: 14px; }
  .site-nav a { padding: 8px 14px; font-size: 0.9rem; }

  .hero {
    gap: 40px;
    padding: 40px 6vw 80px;
    min-height: 85vh;
  }

  .hero-visual { min-height: 420px; }
  .hero-glow { width: 460px; height: 460px; filter: blur(16px); }
  .hero-car { width: min(96vw, 760px); }

  .hero h1 { font-size: clamp(2.8rem, 3vw + 2rem, 4.6rem); }
  .lead { font-size: 1.1rem; }

  .hero-actions { gap: 14px; }

  .hero-stats div { padding: 14px 18px; }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-stats span { font-size: 0.9rem; }

  .section { padding: 80px 6vw; }
  .section-title { margin-bottom: 36px; }
  .section-title h2 { margin-bottom: 10px; }
  .section-title p { font-size: 1rem; }

  .cards, .steps-grid { gap: 24px; }

  .card, .step { padding: 24px; }
  .card h3, .step h3 { font-size: 1.3rem; }
  .card p, .step p { font-size: 0.95rem; }

  .cta-section { padding-bottom: 80px; }
  .cta-card { padding: 32px; gap: 20px; }

  .carousel-main { height: 400px; }

  .cthumb { width: 110px; height: 66px; }

  .carousel-arrow { width: 44px; height: 44px; font-size: 1.6rem; }
  .carousel-prev { right: -18px; }
  .carousel-next { left: -18px; }

  .carousel-viewport { gap: 12px; }
  .carousel-thumbstrip { gap: 10px; }

  .carousel-name { font-size: 1.5rem; }

  .car-tab { font-size: 0.9rem; padding: 8px 20px; }
  .car-tabs { gap: 8px; margin-bottom: 24px; }

  .rental-dates { gap: 16px; }

  .wa-option { font-size: 0.85rem; padding: 6px 16px; }
  .wa-picker { gap: 8px; }
  .carousel-dots { gap: 10px; margin-top: 24px; }

  .site-footer { padding: 24px 6vw 48px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
