/* New layout header + footer */

.header--new .header__actions {
  gap: 1rem;
  align-items: center;
}

/* White Deepal mark (footer-logo.svg) */
body.layout-new .header--new .logo__img--new {
  height: 36px;
  width: auto;
  filter: none;
}

/* Language: text + small caret, no globe */
body.layout-new .header--new .header__lang--new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

body.layout-new .header--new .header__lang--new:hover {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

body.layout-new .header--new .header__lang-caret {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
}

/* Booking (no page banner): solid black header bar */
body.layout-new.page-booking .header--new,
body.layout-new.page-booking .header--new.header--scrolled {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Quick Test Drive share page: logo + language only (header uses normal blur like other pages) */
body.layout-new.page-quick-test-drive .footer--new .footer__grid--new {
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.2fr) minmax(140px, 0.7fr);
  align-items: start;
}

@media (max-width: 991px) {
  body.layout-new.page-quick-test-drive .footer--new .footer__grid--new,
  body.layout-new.page-quick-test-drive .footer--new .footer__grid--with-contact {
    grid-template-columns: 1fr;
  }

  body.layout-new.page-quick-test-drive .footer--new .footer__contact {
    grid-template-columns: 1fr;
  }
}

body.layout-new.page-booking .booking-container {
  padding-top: calc(var(--header-h, 80px) + 16px);
}

/* Test Drive — outline only, white border, no fill */
body.layout-new .header--new .header__cta--outline,
body.layout-new .header__cta--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

body.layout-new .header--new .header__cta--outline:hover,
body.layout-new .header--new .header__cta--outline.header__cta--active,
body.layout-new .header__cta--outline:hover,
body.layout-new .header__cta--outline.header__cta--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.header__cta--drawer {
  width: 100%;
  margin-bottom: 0;
}

/* Transparent blur over banner */
body.layout-new .header--new {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

/* Past the banner: solid black bar */
body.layout-new .header--new.header--scrolled {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* All header text / icons white; active link slightly softer */
body.layout-new .header--new .nav__link,
body.layout-new .header--new .header__lang,
body.layout-new .header--new .header__lang-text {
  color: #fff;
}

/* Nav is outside <header> — must set white here too */
body.layout-new .nav--new .nav__link {
  color: #fff;
}

body.layout-new .header--new .nav__link:hover,
body.layout-new .nav--new .nav__link:hover {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

body.layout-new .header--new .nav__link--active,
body.layout-new .nav--new .nav__link--active {
  color: #cfd8e3;
}

/* Hamburger bars white on new layout */
body.layout-new .header--new .nav-toggle-btn--new span {
  background: #fff;
}

/* Hero / model banner under glass header (not pushed below with white gap) */
body.layout-new .hero {
  margin-top: 0;
  margin-bottom: 0;
  background: #000;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.layout-new .hero.hero--no-media {
  background: #000;
}

body.layout-new .hero__media {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

body.layout-new .hero__media .hero__slide,
body.layout-new .hero__media .hero__slide--video {
  object-fit: cover;
  object-position: center center;
}

/*
 * All page banners (home + shared hero): same full-bleed laptop frame as home.
 * 100vw edge-to-edge + 100svh including glass menu overlap.
 */
@media (min-width: 901px) {
  body.layout-new .hero:hover .hero__media img {
    transform: none;
  }

  body.layout-new .hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: unset;
    height: 100svh !important;
    min-height: calc(640px + var(--header-h, 80px));
  }

  /* Vertical-only overlay — side vignette reads as narrow gutters */
  body.layout-new .hero .hero__overlay,
  body.layout-new .hero .hero__overlay--home {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.08) 45%,
      rgba(0, 0, 0, 0.32) 100%
    );
  }

  body.layout-new:has(.hero) {
    overflow-x: clip;
  }

  /* Shared banners: lift title/description above the scroll chevron */
  body.layout-new .hero:not(.hero--home) .hero__content {
    bottom: clamp(5.75rem, 11vh, 7.5rem);
    padding-bottom: 0;
  }
}

/* Shared scroll-down cue (all full banners) */
.hero__scroll-down {
  position: absolute;
  left: 50%;
  bottom: clamp(1.1rem, 2.8vh, 1.85rem);
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.3s ease, box-shadow 0.25s ease;
}

@media (min-width: 901px) {
  body.layout-new .hero .hero__scroll-down {
    display: flex;
  }

  body.layout-new .hero .hero__scroll-down.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

.hero__scroll-down__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  height: 16px;
  overflow: hidden;
  animation: hero-scroll-nudge 1.6s ease-in-out infinite;
}

.hero__scroll-down__chev {
  display: block;
  margin-top: -4px;
  color: #fff;
}

.hero__scroll-down__chev--soft {
  opacity: 0.45;
  margin-top: -6px;
}

.hero__scroll-down:hover,
.hero__scroll-down:focus-visible {
  background: rgba(0, 0, 0, 0.58);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) translateY(2px);
}

.hero__scroll-down:hover .hero__scroll-down__chevrons,
.hero__scroll-down:focus-visible .hero__scroll-down__chevrons {
  animation-duration: 0.9s;
}

.hero__scroll-down:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero__scroll-down:active {
  transform: translateX(-50%) translateY(4px) scale(0.98);
}

@keyframes hero-scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-down__chevrons {
    animation: none;
  }
}

/* Model detail uses .model-full-width (not .hero) — remove old 80px offset */
body.layout-new .model-full-width {
  padding-top: 0;
  background: #000;
}

/* Soft black vignette on banner edges (mobile / fallback; desktop overridden above) */
body.layout-new .hero__overlay {
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42) 100%);
}

body.layout-new .hero__content {
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.layout-new .hero__title,
body.layout-new .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  text-align: center;
}

.footer--new {
  background: #1E1E1E;
}

.footer--new .footer__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer--new .footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer--new .footer__logo img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
  filter: none;
}

.footer--new .footer__logo--masar img {
  height: 50px;
  max-width: 140px;
  object-fit: contain;
}

.footer--new .footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
}

.footer--new .footer__grid--new {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) auto minmax(160px, 1fr);
  gap: 6rem; /* blurb → columns, columns → social */
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* QTD only: blurb + 3 equal contact cols + social */
.footer--new .footer__grid--with-contact {
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.2fr) minmax(140px, 0.7fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.footer--new .footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.footer--new .footer__contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 14px 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer--new a.footer__contact-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
}

.footer--new .footer__contact-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.footer--new .footer__contact-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer--new .footer__contact-icon img {
  width: 14px;
  height: 14px;
  display: block;
}

.footer--new .footer__contact-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer--new .footer__contact-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  word-break: break-word;
  white-space: pre-line;
}

.footer--new .footer__contact-value--address {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.footer--new .footer__contact-place {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  white-space: pre-line;
  word-break: break-word;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer--new a.footer__contact-place {
  cursor: pointer;
  text-decoration: none;
}

.footer--new a.footer__contact-place:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}

.footer--new .footer__nav-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 9rem; /* Models / Quick Links / Services */
}

.footer--new .footer__blurb {
  margin: 0;
  max-width: 380px;
  color: #8f8e8e;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500; /* Medium */
  line-height: normal;
}

.footer--new .footer__blurb b,
.footer--new .footer__blurb strong {
  color: #fff;
  font-weight: 700; /* Bold */
}

.footer--new .footer__heading {
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700; /* Bold */
  line-height: 22px;
  color: #fff;
  text-transform: capitalize;
  text-decoration: underline;
  text-underline-position: from-font;
}

.footer--new .footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer--new .footer__links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700; /* Bold */
  line-height: 26px;
  color: #fff;
  text-transform: none;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer--new .footer__links a:hover {
  color: #fff;
  opacity: 0.85;
  transform: none;
}

.footer--new .footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer--new .footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 0;
}

.footer--new .footer__social a:hover {
  transform: none;
  opacity: 0.85;
}

.footer--new .footer__social img,
.footer--new .footer__social svg {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer--new .footer__bottom {
  border-top: none;
  padding: 0;
}

.footer--new .footer__copyright {
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 1.25rem 0 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 26px;
  color: #e9edf2;
  text-transform: capitalize;
}

/* New layout: nav is outside header (avoids backdrop-filter clipping the mobile drawer) */
@media (min-width: 901px) {
  body.layout-new .header--new .header__inner {
    grid-template-columns: auto auto;
    grid-template-areas: "logo actions";
    justify-content: space-between;
  }

  body.layout-new .nav--new {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    height: var(--header-h);
    width: auto;
    max-width: none;
    bottom: auto;
    right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding: 0;
  }

  body.layout-new .nav--new .nav__menu {
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.5rem);
    padding: 0;
  }

  body.layout-new .nav--new .nav__drawer-banner {
    display: none;
  }

  body.layout-new .nav--new .nav__link {
    width: auto;
    padding: 0.25rem 0;
    border-bottom: 0;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  /* Mobile drawer: links scroll; Test Drive stays pinned at bottom */
  body.layout-new .nav--new {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: auto;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 88vw;
    height: calc(100% - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: #111;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    padding-bottom: 0;
  }

  body.layout-new.nav-open .nav--new {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  body.layout-new .nav--new .nav__menu {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 1.5rem) 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.layout-new .nav--new .nav__link,
  body.layout-new .nav--new .nav__link--active {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: flex-start;
    text-align: start;
    padding: 0.85rem 0;
    flex-shrink: 0;
  }

  body.layout-new .nav--new .nav__drawer-banner {
    display: flex;
    flex: 0 0 auto;
    margin-top: 0;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    padding: 0.9rem clamp(1rem, 4vw, 1.5rem) calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }

  body.layout-new .nav--new .header__cta--drawer {
    display: inline-flex;
    width: 100%;
  }
}

@media (max-width: 1100px) and (min-width: 992px) {
  .footer--new .footer__grid--with-contact {
    gap: 1.25rem;
  }

  .footer--new .footer__contact {
    gap: 10px;
  }

  .footer--new .footer__contact-value {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .footer--new .footer__grid--new,
  .footer--new .footer__grid--with-contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer--new .footer__contact {
    grid-template-columns: 1fr;
  }

  .footer--new .footer__nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 575px) {
  .footer--new .footer__logos {
    flex-wrap: wrap;
  }

  .footer--new .footer__nav-group {
    grid-template-columns: 1fr;
  }
}

/* Fixed WhatsApp chat overlay */
.whatsapp-float-root {
  position: relative;
  z-index: 99999;
}

.whatsapp-float {
  position: fixed !important;
  z-index: 99999 !important;
  right: 24px;
  left: auto;
  top: auto;
  bottom: 170px; /* original raised position */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  text-decoration: none;
  line-height: 0;
  margin: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: translateY(-3px) scale(1.05);
}

/* Theme 1 */
.whatsapp-float--theme-1 {
  width: 56px;
  height: 56px;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(37, 162, 68, 0.35));
}

.whatsapp-float--theme-1 .whatsapp-float__icon {
  width: 40px;
  height: 40px;
  display: block;
}

.whatsapp-float--theme-1:hover,
.whatsapp-float--theme-1:focus {
  filter: drop-shadow(0 10px 22px rgba(37, 162, 68, 0.5));
}

/* Theme 2 — ring + shine */
.whatsapp-float--theme-2 {
  width: 64px;
  height: 64px;
  background: transparent;
  filter: drop-shadow(0 12px 22px rgba(22, 120, 46, 0.4));
  overflow: visible;
}

.whatsapp-float__disc {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}

.whatsapp-float__disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: wa-float-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 2;
}

.whatsapp-float--theme-2 .whatsapp-float__icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: block;
}

.whatsapp-float__ring {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(62, 194, 79, 0.45);
  animation: wa-float-ring 2.8s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

.whatsapp-float--theme-2:hover,
.whatsapp-float--theme-2:focus {
  filter: drop-shadow(0 16px 28px rgba(22, 120, 46, 0.5));
}

@keyframes wa-float-ring {
  0% { transform: scale(0.92); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes wa-float-sweep {
  0%,
  55% { transform: translateX(-120%); }
  75%,
  100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__ring,
  .whatsapp-float__disc::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .whatsapp-float {
    right: 16px;
    bottom: 145px;
    width: 58px;
    height: 58px;
  }

  html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 16px;
  }

  .whatsapp-float--theme-1 {
    width: 52px;
    height: 52px;
  }

  .whatsapp-float--theme-2 {
    width: 58px;
    height: 58px;
  }
}

body.nav-open .whatsapp-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Page banner multi-image: right -> left slide; title stays fixed */
.hero[data-hero-slider] .hero__media {
  overflow: hidden;
}

.hero[data-hero-slider] .hero__media .hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  z-index: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.hero[data-hero-slider] .hero__media .hero__slide.is-active {
  z-index: 2;
  transform: translate3d(0, 0, 0);
}

.hero[data-hero-slider] .hero__media .hero__slide.is-prev {
  z-index: 1;
  transform: translate3d(-100%, 0, 0);
}

/* Arabic: reverse so motion still feels natural */
html[dir="rtl"] .hero[data-hero-slider] .hero__media .hero__slide {
  transform: translate3d(-100%, 0, 0);
}

html[dir="rtl"] .hero[data-hero-slider] .hero__media .hero__slide.is-active {
  transform: translate3d(0, 0, 0);
}

html[dir="rtl"] .hero[data-hero-slider] .hero__media .hero__slide.is-prev {
  transform: translate3d(100%, 0, 0);
}

/* Non-slider slide markup (single image) */
.hero:not([data-hero-slider]) .hero__media .hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media .hero__slide--video {
  object-fit: cover;
  background: #0d0d0d;
}

/* -- First-load page loader -- */
/* First-load page loader */
html.is-page-loading,
body.is-page-loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  /* Logo loader is always LTR (same in Arabic) */
  direction: ltr !important;
  unicode-bidi: isolate;
}

.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  direction: ltr !important;
}

.site-loader__logo {
  position: relative;
  width: min(220px, 62vw);
  height: auto;
  aspect-ratio: 202 / 56;
  /* Gap between mark and wordmark — keep entire “DEEPAL” in the text layer */
  --loader-split: 23%;
  direction: ltr !important;
}

.site-loader__piece {
  position: absolute;
  inset: 0;
}

.site-loader__piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Icon mark only — stop before any letter of DEEPAL */
.site-loader__piece--icon {
  clip-path: inset(0 calc(100% - var(--loader-split)) 0 0);
  z-index: 2;
}

/*
 * 3D object surface: logo used as mask, filled with lit metal gradient.
 * No extrusion / drop-shadow stack.
 */
.site-loader__icon-surface {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f2f2f2 18%,
      #c8c8c8 38%,
      #8f8f8f 52%,
      #d6d6d6 68%,
      #fafafa 82%,
      #bdbdbd 100%
    );
  -webkit-mask-image: var(--loader-logo-url);
  mask-image: var(--loader-logo-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: left center;
  mask-position: left center;
  overflow: hidden;
}

.site-loader__icon-shine {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.2) 55%,
    transparent 62%
  );
  transform: translateX(-40%);
  animation: siteLoaderShine 2.8s ease-in-out 0.35s infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

/* Full wordmark (including first letter) — nothing left parked by the icon */
.site-loader__piece--text {
  clip-path: inset(0 0 0 var(--loader-split));
  animation: siteLoaderTextIn 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both;
}

@keyframes siteLoaderTextIn {
  0% {
    opacity: 0;
    transform: translate3d(48px, 0, 0);
    clip-path: inset(0 0 0 100%);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 var(--loader-split));
  }
}

@keyframes siteLoaderShine {
  0%,
  20% { transform: translateX(-55%); opacity: 0; }
  35% { opacity: 1; }
  55% { transform: translateX(55%); opacity: 1; }
  70%,
  100% { transform: translateX(70%); opacity: 0; }
}

/* Arabic pages: keep the same EN logo loader (do not mirror) */
html[dir="rtl"] .site-loader,
html[dir="rtl"] .site-loader__stage,
html[dir="rtl"] .site-loader__logo {
  direction: ltr !important;
}

html[dir="rtl"] .site-loader__piece--icon {
  clip-path: inset(0 calc(100% - var(--loader-split)) 0 0);
}

html[dir="rtl"] .site-loader__icon-surface {
  -webkit-mask-position: left center;
  mask-position: left center;
}

html[dir="rtl"] .site-loader__piece--text {
  clip-path: inset(0 0 0 var(--loader-split));
  animation-name: siteLoaderTextIn;
}

@media (prefers-reduced-motion: reduce) {
  .site-loader__piece--text {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 var(--loader-split));
  }

  .site-loader__icon-shine {
    animation: none;
    transform: translateX(0);
    opacity: 0.35;
  }

  .site-loader__car-spin {
    animation: none;
    transform: translateY(0) rotateY(-8deg) rotateX(4deg);
  }

  .site-loader__car-shadow {
    animation: none;
  }

  .site-loader__car {
    animation: none;
    opacity: 1;
  }

  .loader-car3d__viewer {
    --progress-bar-color: transparent;
  }

  .loader-car3d__shadow {
    animation: none !important;
  }
}

/* Miniature car under logo (simple + 3d modes) */
.site-loader__car {
  position: relative;
  width: min(210px, 58vw);
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  animation: siteLoaderCarIn 0.65s ease 0.28s both;
  perspective: 800px;
}

.site-loader__car--3d {
  width: min(280px, 78vw);
  height: 160px;
  perspective: none;
}

.site-loader__car-shadow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 58%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 72%);
  animation: siteLoaderCarShadow 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.site-loader__car-spin {
  position: relative;
  z-index: 1;
  width: 100%;
  transform-style: preserve-3d;
  animation: siteLoaderCarFloat 2.8s ease-in-out infinite;
}

.site-loader__car-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

@keyframes siteLoaderCarIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes siteLoaderCarFloat {
  0%,
  100% {
    transform: translateY(0) rotateY(-10deg) rotateX(5deg);
  }
  50% {
    transform: translateY(-6px) rotateY(10deg) rotateX(3deg);
  }
}

@keyframes siteLoaderCarShadow {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) scaleX(0.88);
    opacity: 0.5;
  }
}

/* =========================================================
   Real GLB car via model-viewer (SITE_LOADER_MODE=3d)
   Body/glass/headlamps styled in page-loader-car-style.js
   ========================================================= */
.loader-car3d {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.loader-car3d__shadow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 58%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.loader-car3d__viewer {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  opacity: 0;
  animation: loaderCar3dViewerIn 0.6s ease 0.12s forwards;
}

.loader-car3d__viewer::part(default-progress-bar) {
  display: none;
}

@keyframes loaderCar3dViewerIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Shared CTA arrow (home + form submit buttons) */
.btn-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 24px;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    width 0.45s ease,
    margin-left 0.45s ease,
    opacity 0.35s ease;
}

.btn-cta-icon__svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-cta-icon__dash,
.btn-cta-icon__arrow {
  stroke: currentColor;
  fill: none;
  opacity: 0;
}

.btn-cta-icon__dash {
  transition: opacity 0.28s ease;
}

.btn-cta-icon__arrow {
  transition: opacity 0.28s ease;
  transition-delay: 0s;
}

html[dir="rtl"] .btn-cta-icon {
  margin-left: 0;
  margin-right: 0;
}

html[dir="rtl"] .contact-submit:hover .btn-cta-icon,
html[dir="rtl"] .service-submit:hover .btn-cta-icon,
html[dir="rtl"] .td-submit-btn:hover .btn-cta-icon,
html[dir="rtl"] .rq-submit:hover .btn-cta-icon,
html[dir="rtl"] .qtd-submit:hover .btn-cta-icon {
  margin-left: 0;
  margin-right: 8px;
}

html[dir="rtl"] .btn-cta-icon__svg {
  transform: scaleX(-1);
}