/* ===== Gemzo Car Rental ===== */
:root {
  --red: #d71920;
  --red-dark: #b3121a;
  --bg: #0b0b0c;
  --bg-2: #111113;
  --card: #141416;
  --border: #26262a;
  --text: #f5f5f5;
  --muted: #a3a3a8;
  --radius: 4px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px;
  font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--red); border-radius: 2px;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 16px; }
.btn-primary { background: var(--red); color: #fff; border-color: #fff3; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 25px -10px var(--red); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.wa-icon { width: 20px; height: 20px; fill: currentColor; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
  padding: 10px 0;
}
.header.scrolled { background: rgba(11, 11, 12, .94); backdrop-filter: blur(10px); border-color: var(--border); padding: 4px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 24px; letter-spacing: 2px; color: var(--red); }
.brand-sub { font-family: var(--font-ar); font-size: 12px; color: #cfcfcf; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link { font-weight: 600; font-size: 15px; position: relative; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--red); }
.lang-toggle { background: none; border: 0; color: var(--red); font-weight: 700; font-size: 15px; padding: 4px 0; }
.lang-toggle:hover { color: #fff; }

.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: #000 url("images/hero.jpg") center 60%/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.42) 40%, rgba(0,0,0,.5) 70%, rgba(11,11,12,1) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.hero-title { font-size: clamp(36px, 5vw, 76px); line-height: 1.1; font-weight: 800; margin: 0 0 22px; letter-spacing: -1.5px; }
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.35; }
.hero-title .accent { color: var(--red); display: inline-block; }
.hero-title, .hero-text { text-shadow: 0 2px 18px rgba(0,0,0,.75); }
.hero-text { max-width: 640px; margin: 0 auto 38px; font-size: clamp(16px, 1.6vw, 21px); color: #e2e2e2; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { background: rgba(0,0,0,.35); }
.hero-actions .btn-outline:hover { background: var(--red); }
.hero > .container > * { animation: fadeUp .9s both; }
.hero-text { animation-delay: .15s !important; }
.hero-actions { animation-delay: .3s !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid #fff8; border-radius: 14px; z-index: 1; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--red); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Highlights ===== */
.highlights { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight { display: flex; gap: 14px; align-items: center; padding: 28px 20px; }
.highlight + .highlight { border-inline-start: 1px solid var(--border); }
.highlight svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.highlight strong { display: block; font-size: 16px; }
.highlight span { color: var(--muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; margin: 0 0 14px; position: relative; padding-bottom: 18px; letter-spacing: -.5px; }
.section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 96px; height: 4px; background: var(--red); }
.section-title.center { text-align: center; }
.section-title.center::after { inset-inline-start: 50%; transform: translateX(-50%); }
html[dir="rtl"] .section-title.center::after { transform: translateX(50%); }
.section-sub { color: var(--muted); margin: 0; max-width: 560px; }

/* ===== Fleet ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { background: transparent; border: 1px solid var(--border); color: #ddd; padding: 10px 20px; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border-radius: 2px; transition: .2s; }
html[lang="ar"] .filter { letter-spacing: 0; font-size: 14px; }
.filter:hover { border-color: #fff; color: #fff; }
.filter.active { border-color: var(--red); background: var(--red); color: #fff; }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.car-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, border-color .35s, box-shadow .35s; }
.car-card:hover { transform: translateY(-6px); border-color: #3a3a40; box-shadow: 0 24px 40px -24px #000; }
.car-card.hide { display: none; }
.car-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1c1c20, #0e0e10); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.car-card:hover .car-media img { transform: scale(1.06); }
.price-badge { position: absolute; top: 16px; inset-inline-end: 16px; background: var(--red); padding: 5px 12px; border-radius: 2px; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .5px; text-transform: uppercase; }
.price-badge strong { color: var(--red); font-size: 18px; font-weight: 700; }
.car-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.car-cat { color: var(--red); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
html[lang="ar"] .car-cat { letter-spacing: 0; font-size: 13px; }
.car-name { font-size: 21px; font-weight: 700; margin: 4px 0 16px; }
.swatches { display: flex; gap: 8px; margin: -6px 0 16px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3a40; padding: 0; transition: transform .2s, border-color .2s; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--red); }
.car-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 24px; padding: 0; list-style: none; color: #c9c9cc; font-size: 15px; }
.car-specs li { display: flex; align-items: center; gap: 8px; }
.car-specs svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car-body .btn { margin-top: auto; padding: 13px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); background: #1a1a1d; }
.about-badge { position: absolute; bottom: -28px; inset-inline-end: -20px; background: var(--bg); border: 1px solid var(--border); border-top: 3px solid var(--red); padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 290px; box-shadow: 0 20px 40px -20px #000; }
.about-badge img { width: 56px; }
.about-badge span { font-weight: 700; font-size: 15px; line-height: 1.4; }
.about-text p { color: #c9c9cc; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.stat { border: 1px solid var(--border); padding: 18px 14px; text-align: center; background: var(--bg); }
.stat-num { display: block; font-size: 30px; font-weight: 800; color: var(--red); line-height: 1.2; }
.stat-label { color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ===== Booking ===== */
.booking-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; }
.steps li { display: flex; gap: 18px; }
.steps li > span { flex: none; width: 46px; height: 46px; border: 1px solid var(--red); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.steps strong { font-size: 17px; }
.steps p { margin: 2px 0 0; color: var(--muted); }

.booking-form { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--red); padding: 36px; display: grid; gap: 18px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.booking-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: #ddd; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 13px 14px; font: inherit; font-weight: 400; font-size: 15px; border-radius: 2px; transition: border-color .2s;
  color-scheme: dark;
}
.booking-form textarea { resize: vertical; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--red); }
.booking-form .invalid { border-color: var(--red); background: #1d0d0e; }
html[dir="rtl"] .booking-form input[type="tel"] { text-align: right; }
.form-total { margin: 0; padding: 12px 14px; background: var(--bg); border-inline-start: 3px solid var(--red); font-size: 15px; }
.form-total strong { color: var(--red); }
.form-error { margin: 0; color: #ff6b70; font-size: 14px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 860px; }
.faq-list { margin-top: 48px; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq-item[open] { border-color: #3a3a40; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: #c0c0c4; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; margin-top: 48px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); padding: 18px 20px; border-radius: var(--radius); transition: border-color .2s; }
a.contact-card:hover { border-color: var(--red); }
.contact-card svg { flex: none; width: 44px; height: 44px; padding: 11px; background: #d719201f; border-radius: 50%; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card svg.fill { fill: var(--red); stroke: none; }
.contact-card span { display: block; color: var(--muted); font-size: 13px; }
.contact-card strong { font-size: 16px; }
.map-wrap { position: relative; min-height: 420px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-btn { position: absolute; bottom: 16px; inset-inline-start: 16px; background: var(--bg); }

/* ===== Footer ===== */
.footer { background: #070708; border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { width: 130px; margin-bottom: 16px; }
.footer p { color: var(--muted); max-width: 340px; }
.footer h4 { font-size: 17px; margin: 0 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.footer-links a:hover { color: var(--red); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--border); display: grid; place-items: center; transition: .2s; border-radius: 2px; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: 14px; text-align: center; }

/* ===== Floating WhatsApp ===== */
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px -6px #0009; transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-inline-start: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--border); }
  .nav { gap: 24px; }
}
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: min(300px, 82vw);
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 96px 28px 28px;
    background: #0d0d0f; border-inline-start: 1px solid var(--border);
    transform: translateX(100%); transition: transform .35s ease; z-index: -1;
  }
  html[dir="rtl"] .nav { transform: translateX(-100%); }
  .nav.open, html[dir="rtl"] .nav.open { transform: none; }
  .nav-link { font-size: 18px; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .lang-toggle { margin-top: 16px; font-size: 18px; border: 1px solid var(--red); padding: 8px 22px; }
  .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { inset-inline-end: 12px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .fleet-grid { grid-template-columns: 1fr; gap: 24px; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight { padding: 18px 4px; }
  .highlight + .highlight { border-inline-start: 0; border-top: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 24px 18px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-logo { height: 42px; }
  .brand-name { font-size: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 32px; }
  .map-wrap { min-height: 340px; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; inset-inline-end: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
