/* ===================================================
   🏎️ LIANA Mobility — Porsche Style RTL Edition
   ✅ FINAL FULL VERSION — ALL FIXED
   Updated: 2025-11-04
=================================================== */

/* VARIABLES */
:root {
  --header-height: 90px;
  --menu-color: #ffffff;
  --menu-color-active: #f6c045;
  --slider-btn: #f6c045;
  --btn-bg: #f6c045;
  --btn-color: #000;
  --btn-bg-hover: #fff;
  --cap-title-d: 42px;
  --cap-text-d: 18px;
  --cap-btn-d: 17px;
  --cap-title-m: 28px;
  --cap-text-m: 15px;
  --cap-btn-m: 15px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "MorabbaPro", sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}
a { text-decoration: none; color: inherit; transition: .3s; }
img { max-width: 100%; display: block; }

/* ===================================================
   HEADER — Porsche Style RTL
=================================================== */
.vw-header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
}
.vw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--header-height);
  position: relative;
}
.header-logo {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 99;
}
.header-logo img { height: clamp(44px, 6vh, 62px); width: auto; }

/* Divider */
.header-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,.85);
  position: absolute; bottom: 0; left: 0; z-index: 10;
}

/* Hamburger */
.menu-toggle {
  cursor: pointer;
  background: none; border: 0;
  color: var(--menu-color);
  font-size: 16px;
  font-family: "MorabbaPro", sans-serif;
  display: flex; align-items: center; gap: 10px;
  z-index: 1001;
}
.menu-toggle:hover { color: var(--menu-color-active); }
.hamburger {
  width: 24px; height: 16px;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px; transition: .35s ease;
}
.menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   HERO SLIDER — Porsche RTL Version
=================================================== */
.home-slider {
  position: relative;
  width: 100%;
  height: clamp(600px, 85vh, 900px);
  overflow: hidden;
  background: #000;
}

/* Slide wrapper */
.slider-inner { position: relative; width: 100%; height: 100%; }
.slide-item {
  position: absolute; inset: 0;
  opacity: 0; z-index: 1;
  transition: opacity .8s ease;
}
.slide-item.active { opacity: 1; z-index: 2; }

/* Media (image/video) */
.slide-media { position: absolute; inset: 0; z-index: 1; }
.slide-media img, .slide-media video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 6s ease-in-out;
}
.slide-item.active img { transform: scale(1.05); }

/* Overlay */
.slide-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, var(--overlay, .3));
  z-index: 2; pointer-events: none;
}

/* Content */
.slide-content {
  position: absolute;
  z-index: 4;
  color: var(--cap-color, #fff);
  background: rgba(0,0,0,.35);
  padding: 26px 34px;
  border-radius: 10px;
  max-width: 50%;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  text-align: right;
  direction: rtl;
}
.slide-item.active .slide-content { opacity: 1; transform: none; }

/* Title + Description */
.slide-title {
  font-size: var(--cap-title-d);
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.slide-desc {
  font-size: var(--cap-text-d);
  margin-bottom: 18px;
  font-weight: 400;
  line-height: 1.8;
}

/* Button */
.btn-slide {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: var(--cap-btn-d);
  transition: all .3s ease;
  text-align: center;
}
.btn-slide:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-color-hover, #000);
  transform: translateY(-2px);
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 12px; height: 12px;
  background: var(--dot-color, rgba(255,255,255,.5));
  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}
.slider-dot.active {
  background: var(--dot-active, #f6c045);
  transform: scale(1.25);
}

/* Pause/Play */
.slider-toggle {
  position: absolute;
  bottom: 34px;
  right: 80px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: .3s;
}
.slider-toggle:hover { background: rgba(255,255,255,.32); }
.toggle-icon { color: #fff; font-size: 1rem; }

/* ===================================================
   MOBILE — Porsche Style
=================================================== */
@media (max-width: 768px) {
  .slide-content {
    max-width: 90%;
    padding: 16px 20px;
    left: 50% !important;
    bottom: 50px !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    direction: rtl;
    background: rgba(0,0,0,.4);
  }
  .slide-title { font-size: var(--cap-title-m); }
  .slide-desc { font-size: var(--cap-text-m); }
  .btn-slide {
    font-size: var(--cap-btn-m);
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 12px auto 0;
    padding: 14px 0;
    border-radius: 10px;
  }
  .slider-toggle { right: 20px; bottom: 22px; }
  .slider-dots { bottom: 22px; }
}

/* ===================================================
   RESPONSIVE DESKTOP FIXES
=================================================== */
@media (max-width: 1024px) {
  .slide-content { max-width: 70%; }
  .home-slider { height: 85vh; }
}

/* Gradient Variables Fix */
:root {
  --header-gradient-opacity: 0.65;
  --header-gradient-height: 140px;
}
