html { scroll-behavior: smooth; }
    :root {
      --space-xs: 0.5rem;
      --space-sm: 1rem;
      --space-md: 1.5rem;
      --space-lg: 2.5rem;
      --space-xl: 4rem;
      --space-2xl: 5.5rem;
      --section-y: 3.5rem;
      --section-y-lg: 4.5rem;
      --page-end: 7.5rem;
      --footer-pad-top: 12rem;
      --container-max: 1280px;
      --container-px: 1rem;
      --brand-orange: #EC9912;
      --brand-gray: #736F6E;
      --brand-ink: #2F2D2C;
    }
    @media (min-width: 640px) {
      :root {
        --section-y: 4rem;
        --page-end: 8.5rem;
        --footer-pad-top: 9rem;
      }
    }
    @media (min-width: 768px) {
      :root {
        --section-y: 5rem;
        --section-y-lg: 6rem;
        --page-end: 9.5rem;
        --footer-pad-top: 7.75rem;
        --container-px: 2rem;
      }
    }
    @media (min-width: 1024px) {
      :root {
        --section-y: 5.5rem;
        --page-end: 10.5rem;
        --footer-pad-top: 7.5rem;
      }
    }

    /* Unified spacing helpers */
    .section-y {
      padding-top: var(--section-y);
      padding-bottom: var(--section-y);
    }
    .section-y-lg {
      padding-top: var(--section-y-lg);
      padding-bottom: var(--section-y-lg);
    }
    .page-before-footer {
      padding-bottom: var(--page-end) !important;
    }
    .container-site {
      width: 100%;
      max-width: var(--container-max);
      margin-inline: auto;
      padding-inline: var(--container-px);
    }

    body { font-family: 'IBM Plex Sans Arabic', 'Montserrat Arabic', Tahoma, sans-serif; color: #2A2928; background: #FAF9F8; }
    .font-en { font-family: 'MRK Argument', Montserrat, sans-serif; letter-spacing: 0.04em; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    /* Cars horizontal slider */
    .cars-track {
      display: flex;
      gap: 1.25rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      padding: 0.35rem 0.15rem 1rem;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .cars-track::-webkit-scrollbar { display: none; }
    .cars-track > article {
      flex: 0 0 min(86vw, 300px);
      scroll-snap-align: start;
      min-height: 100%;
    }
    @media (min-width: 640px) {
      .cars-track { gap: 1.35rem; }
      .cars-track > article { flex-basis: 320px; }
    }
    @media (min-width: 1024px) {
      .cars-track > article { flex-basis: 360px; }
    }
    @media (min-width: 1280px) {
      .cars-track > article { flex-basis: 380px; }
    }

    /* Car slider pagination dots — brand colors */
    .slider-dots {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.45rem;
    }
    .slider-dots button {
      width: 9px;
      height: 9px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: #B8B4B3;
      cursor: pointer;
      transition: width .35s cubic-bezier(0.4, 0, 0.2, 1),
                  background .35s ease,
                  box-shadow .35s ease;
    }
    .slider-dots button:hover {
      background: #736F6E;
    }
    .slider-dots button.active {
      width: 26px;
      background: #EC9912;
      box-shadow: 0 0 0 3px rgba(236, 153, 18, 0.22);
    }

    .bg-pattern {
      background-color: #2F2D2C;
      background-image: url('../bg-pattern.svg');
      background-position: center top;
      background-repeat: no-repeat;
      background-size: 83% auto;
      min-height: 645px;
    }
    .partners-bg {
      position: relative;
      background-color: #FAF9F8;
    }
    .partners-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('../wave-vector.webp');
      background-position: center;
      background-repeat: no-repeat;
      background-size: 100% auto;
      opacity: 0.25;
      /* Tinting the pattern to the brand Navy color */
      filter: sepia(1) hue-rotate(185deg) saturate(400%) brightness(0.7);
      mix-blend-mode: multiply;
      pointer-events: none;
      z-index: 0;
    }
    .partners-section > div {
      position: relative;
      z-index: 10;
    }
    .partners-section {
      padding-top: var(--section-y);
      padding-bottom: var(--page-end);
    }
    @media (min-width: 768px) {
      .partners-section {
        padding-top: var(--section-y-lg);
        padding-bottom: var(--page-end);
      }
    }
    .partner-slider {
      position: relative;
    }
    .partner-track {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      padding: 0.75rem 0.25rem 1.25rem;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .partner-track::-webkit-scrollbar { display: none; }
    .partner-card {
      flex: 0 0 auto;
      width: 140px;
      height: 96px;
      scroll-snap-align: start;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      border: 1px solid #EEF0F4;
      border-radius: 16px;
      padding: 0.85rem 1rem;
      box-shadow: 0 4px 16px rgba(47, 45, 44, 0.06);
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    @media (min-width: 640px) {
      .partner-card {
        width: 160px;
        height: 104px;
      }
      .partner-track { gap: 1.25rem; }
    }
    @media (min-width: 1024px) {
      .partner-card {
        width: 172px;
        height: 112px;
      }
    }
    .partner-card:hover {
      transform: translateY(-4px);
      border-color: #D1D1E3;
      box-shadow: 0 10px 28px rgba(47, 45, 44, 0.12);
    }
    .partner-card img {
      width: 100%;
      height: 100%;
      max-height: 64px;
      object-fit: contain;
      filter: grayscale(0.15);
      opacity: 0.92;
      transition: filter .25s, opacity .25s;
    }
    @media (min-width: 640px) {
      .partner-card img { max-height: 72px; }
    }
    .partner-card:hover img {
      filter: none;
      opacity: 1;
    }
    .partner-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }

    /* Asymmetric radii — match original: large on top-left + bottom-right */
    .btn-asym { border-radius: 16px; }
    .btn-asym-prev { border-radius: 16px; border-top-right-radius: 4px; }
    .btn-asym-next { border-radius: 16px; border-top-left-radius: 4px; }
    .tab-pill { border-radius: 8px; border-top-left-radius: 24px; border-bottom-right-radius: 24px; }
    .form-card { border-radius: 8px; border-top-left-radius: 48px; border-bottom-right-radius: 48px; }
    .card-mega { border-radius: 60px; }
    .card-mega-start { border-radius: 60px; border-top-right-radius: 24px; }
    .card-mega-end { border-radius: 60px; border-top-left-radius: 24px; }
    .panel-asym { border-radius: 8px; border-top-left-radius: 32px; border-bottom-right-radius: 32px; }
    .panel-asym-lg { border-radius: 8px; border-top-left-radius: 40px; border-bottom-right-radius: 40px; }

    .field {
      border: 1.5px solid #DFE4EA;
      border-radius: 8px;
      border-top-left-radius: 24px;
      border-bottom-right-radius: 24px;
      min-height: 52px;
      width: 100%;
      padding: 0.7rem 1rem;
      background: #fff;
      color: #111928;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      appearance: none;
      -webkit-appearance: none;
    }
    select.field {
      background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23637381' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: left 1rem center;
      padding-left: 2.5rem;
    }
    .field:hover { border-color: #C5CAD3; }
    .field:focus {
      border-color: #2F2D2C;
      box-shadow: 0 0 0 3px rgba(47, 45, 44, 0.08);
    }

    .nav-link { 
      position: relative; 
      color: rgba(47, 45, 44, 0.7); 
      padding: 8px 16px;
      border-radius: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-link:hover {
      color: #2F2D2C;
      background: #F3F4F6;
    }
    .nav-link.active {
      color: #2F2D2C;
      font-weight: 700;
    }
    /* ========== Mobile side drawer ========== */
    .menu-toggle {
      position: relative;
      z-index: 1;
    }
    .menu-toggle-bars {
      display: flex;
      width: 18px;
      height: 14px;
      flex-direction: column;
      justify-content: space-between;
    }
    .menu-toggle-bars span {
      display: block;
      height: 2px;
      width: 100%;
      border-radius: 999px;
      background: currentColor;
      transform-origin: center;
      transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity .25s ease,
                  width .35s ease;
    }
    .menu-toggle-bars span:nth-child(2) { width: 70%; margin-inline-start: auto; }
    .menu-toggle.is-open .menu-toggle-bars span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }
    .menu-toggle.is-open .menu-toggle-bars span:nth-child(2) {
      opacity: 0;
      width: 0;
    }
    .menu-toggle.is-open .menu-toggle-bars span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-drawer-backdrop {
      position: fixed;
      inset: 0;
      z-index: 1100;
      background: rgba(47, 45, 44, 0.48);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .35s ease, visibility .35s ease;
    }
    .mobile-drawer-backdrop.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .mobile-drawer {
      --drawer-pad-x: 1.15rem;
      position: fixed;
      top: 0;
      bottom: 0;
      inset-inline-end: 0;
      z-index: 1110;
      display: flex;
      flex-direction: column;
      width: min(100vw - 3.25rem, 328px);
      max-width: 100vw;
      height: 100%;
      height: 100dvh;
      padding:
        max(0.75rem, env(safe-area-inset-top))
        max(var(--drawer-pad-x), env(safe-area-inset-right))
        max(0.85rem, env(safe-area-inset-bottom))
        max(var(--drawer-pad-x), env(safe-area-inset-left));
      background:
        linear-gradient(165deg, rgba(236, 153, 18, 0.09) 0%, transparent 38%),
        #FFFCFA;
      color: #2F2D2C;
      box-shadow: -12px 0 40px rgba(47, 45, 44, 0.18);
      /* Anchored to inline-end: hide off that edge */
      transform: translate3d(104%, 0, 0);
      transition: transform .42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear .42s;
      overflow: hidden;
      will-change: transform;
      pointer-events: none;
      visibility: hidden;
    }
    html[dir="rtl"] .mobile-drawer {
      box-shadow: 12px 0 40px rgba(47, 45, 44, 0.18);
      transform: translate3d(-104%, 0, 0);
    }
    html[dir="ltr"] .mobile-drawer {
      transform: translate3d(104%, 0, 0);
    }
    .mobile-drawer::before {
      content: '';
      position: absolute;
      top: 0;
      inset-inline-end: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, #EC9912 0%, #EC9912 42%, #736F6E 100%);
      pointer-events: none;
    }
    .mobile-drawer.open {
      transform: translate3d(0, 0, 0) !important;
      pointer-events: auto;
      visibility: visible;
      transition: transform .42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
    }

    .mobile-drawer-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      border-radius: 22px;
      border: 1px solid rgba(47, 45, 44, 0.08);
      background: rgba(255, 255, 255, 0.88);
      box-shadow: 0 10px 30px rgba(47, 45, 44, 0.06);
      overflow: hidden;
    }

    .mobile-drawer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 1rem 1rem 0.95rem;
      border-bottom: 1px solid rgba(47, 45, 44, 0.07);
    }
    .mobile-drawer-brand {
      display: flex;
      align-items: center;
      min-width: 0;
      text-decoration: none;
    }
    .mobile-drawer-brand img {
      height: 52px;
      width: auto;
      max-width: 148px;
      object-fit: contain;
    }
    .mobile-drawer-close {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: 1px solid rgba(47, 45, 44, 0.1);
      background: #F7F5F3;
      color: #2F2D2C;
      transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    }
    .mobile-drawer-close:hover,
    .mobile-drawer-close:focus-visible {
      background: #EC9912;
      border-color: #EC9912;
      color: #2F2D2C;
      outline: none;
    }
    .mobile-drawer-close:active {
      transform: scale(0.96);
    }

    .mobile-drawer-nav {
      flex: 1;
      overflow-y: auto;
      padding: 0.85rem 0.75rem;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
    .mobile-drawer-link {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.8rem;
      min-height: 52px;
      padding: 0.65rem 0.75rem;
      margin-bottom: 0.3rem;
      border-radius: 14px;
      color: #2F2D2C;
      text-decoration: none;
      opacity: 0;
      transform: translateY(10px);
      transition:
        background .22s ease,
        color .22s ease,
        transform .32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity .32s ease,
        box-shadow .22s ease;
    }
    .mobile-drawer.open .mobile-drawer-link {
      opacity: 1;
      transform: translateY(0);
    }
    .mobile-drawer.open .mobile-drawer-link:nth-child(1) { transition-delay: .04s; }
    .mobile-drawer.open .mobile-drawer-link:nth-child(2) { transition-delay: .07s; }
    .mobile-drawer.open .mobile-drawer-link:nth-child(3) { transition-delay: .1s; }
    .mobile-drawer.open .mobile-drawer-link:nth-child(4) { transition-delay: .13s; }
    .mobile-drawer.open .mobile-drawer-link:nth-child(5) { transition-delay: .16s; }
    .mobile-drawer.open .mobile-drawer-link:nth-child(6) { transition-delay: .19s; }
    .mobile-drawer.open .mobile-drawer-link:nth-child(7) { transition-delay: .22s; }
    .mobile-drawer-link:hover {
      background: rgba(47, 45, 44, 0.04);
    }
    .mobile-drawer-link.active {
      background: rgba(236, 153, 18, 0.14);
      color: #2F2D2C;
      box-shadow: inset 3px 0 0 #EC9912;
    }
    html[dir="rtl"] .mobile-drawer-link.active {
      box-shadow: inset -3px 0 0 #EC9912;
    }
    .mobile-drawer-link .md-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      border-radius: 11px;
      background: #F7F5F3;
      color: #736F6E;
      transition: background .2s ease, color .2s ease;
    }
    .mobile-drawer-link .md-icon svg {
      width: 18px;
      height: 18px;
    }
    .mobile-drawer-link:hover .md-icon,
    .mobile-drawer-link.active .md-icon {
      background: #EC9912;
      color: #2F2D2C;
    }
    .mobile-drawer-link .md-label {
      flex: 1;
      font-size: 0.98rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      line-height: 1.25;
    }
    .mobile-drawer-link .md-chevron {
      width: 16px;
      height: 16px;
      color: #736F6E;
      opacity: 0.45;
      transition: opacity .2s ease, transform .2s ease, color .2s ease;
    }
    html[dir="ltr"] .mobile-drawer-link .md-chevron {
      transform: scaleX(-1);
    }
    .mobile-drawer-link:hover .md-chevron,
    .mobile-drawer-link.active .md-chevron {
      opacity: 1;
      color: #EC9912;
    }

    .mobile-drawer-foot {
      padding: 0.85rem 0.9rem 1rem;
      border-top: 1px solid rgba(47, 45, 44, 0.07);
      background: linear-gradient(180deg, rgba(247, 245, 243, 0.55), #F7F5F3);
    }
    .mobile-drawer-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      width: 100%;
      min-height: 48px;
      margin-bottom: 0.85rem;
      padding: 0.75rem 1rem;
      border-radius: 14px;
      border-start-start-radius: 8px;
      border-end-end-radius: 8px;
      background: #EC9912;
      color: #2F2D2C;
      font-weight: 700;
      font-size: 0.92rem;
      text-decoration: none;
      box-shadow: 0 8px 22px rgba(236, 153, 18, 0.28);
      transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    }
    .mobile-drawer-cta:hover {
      background: #2F2D2C;
      color: #fff;
      box-shadow: 0 8px 22px rgba(47, 45, 44, 0.2);
    }
    .mobile-drawer-cta:active {
      transform: scale(0.985);
    }
    .mobile-drawer-phone {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      margin-bottom: 0.75rem;
      color: #2F2D2C;
      font-family: Montserrat, 'MRK Argument', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-decoration: none;
      direction: ltr;
    }
    .mobile-drawer-phone:hover { color: #EC9912; }
    .mobile-drawer-social {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }
    .mobile-drawer-social a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 11px;
      border: 1px solid rgba(47, 45, 44, 0.1);
      background: #fff;
      color: #736F6E;
      transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    }
    .mobile-drawer-social a:hover {
      background: #EC9912;
      border-color: #EC9912;
      color: #2F2D2C;
      transform: translateY(-1px);
    }

    body.drawer-open { overflow: hidden; }

    @media (min-width: 1024px) {
      .mobile-drawer,
      .mobile-drawer-backdrop,
      .menu-toggle { display: none !important; }
    }

    .nav-link.active::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #EC9912;
      box-shadow: 0 0 8px rgba(236, 153, 18, 0.6);
    }

    .hero-slide {
      position: absolute; inset: 0;
      opacity: 0;
      transition: opacity 1.2s ease, transform 10s ease-out;
      pointer-events: none;
      transform: scale(1);
    }
    .hero-slide.active { 
      opacity: 1; 
      transform: scale(1.05); 
    }

    /* Horizontal Dots for Mobile */
    .hero-dots.horizontal button {
      width: 10px; height: 10px; border-radius: 999px;
      background: rgba(255,255,255,.4);
      transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 6px rgba(0,0,0,.3);
    }
    .hero-dots.horizontal button.active {
      background: #EC9912;
      width: 32px;
    }
    
    /* Vertical Dots for Desktop */
    .hero-dots.vertical button {
      width: 4px; height: 24px; border-radius: 999px;
      background: rgba(255,255,255,.25);
      transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .hero-dots.vertical button.active {
      background: #EC9912;
      height: 48px;
      box-shadow: 0 0 12px rgba(236,153,18,0.6);
    }

    /* New Hero Animations */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .animate-fade-in-up {
      animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      opacity: 0;
    }
    .animation-delay-200 { animation-delay: 200ms; }
    .animation-delay-400 { animation-delay: 400ms; }
    .animation-delay-600 { animation-delay: 600ms; }

    .feature-card {
      transition: transform .35s ease, box-shadow .35s ease;
    }
    .feature-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 50px rgba(0,0,0,.18);
    }

    .brand-card {
      transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    }
    .brand-card:hover {
      transform: translateY(-4px);
      border-color: #D1D1E3;
      box-shadow: 0 12px 28px rgba(47, 45, 44, 0.12);
    }

    .car-card {
      display: flex;
      flex-direction: column;
      background: #fff;
      border: 1px solid #EEF0F4;
      border-radius: 24px; border-top-right-radius: 6px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(47, 45, 44, 0.04);
      transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .car-card:hover {
      transform: translateY(-6px);
      border-color: #EC9912;
      box-shadow: 0 20px 40px rgba(47, 45, 44, 0.08);
    }
    .car-media {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 250px;
      padding: 1rem;
      background: #fff;
      overflow: hidden;
    }
    .car-card .car-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .55s ease;
}
    .car-card:hover .car-img { transform: scale(1.07) translateY(-4px); }
    .car-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 2;
      border-radius: 999px;
      background: #2F2D2C;
      color: #fff;
      padding: 0.35rem 0.85rem;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.01em;
      box-shadow: 0 4px 12px rgba(47, 45, 44, 0.25);
    }
    .car-badge.offer { background: #EC9912; color: #2F2D2C; }
    .car-fav {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: 999px;
      background: rgba(255,255,255,.92);
      color: #637381;
      box-shadow: 0 4px 14px rgba(0,0,0,.08);
      transition: color .2s, background .2s, transform .2s;
    }
    .car-fav:hover { color: #ef4444; transform: scale(1.06); }
    .car-body {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 1rem 1.25rem 1.25rem;
    }
    .car-meta {
      font-size: 12px;
      font-weight: 500;
      color: #637381;
      margin-bottom: 0.35rem;
    }
    .car-title {
      font-size: 1rem;
      font-weight: 600;
      color: #111928;
      line-height: 1.45;
      min-height: 2.9em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .car-price {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .car-price img {
      height: 22px;
      width: auto;
      object-fit: contain;
    }
    .car-actions {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 0.5rem;
      margin-top: auto;
      padding-top: 1rem;
    }

    .spec-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .35rem;
      flex: 1;
      border-radius: 10px;
      background: #F3F4F6;
      border: 1px solid #EEF0F4;
      padding: .55rem .4rem;
      font-size: 11px;
      font-weight: 500;
      color: #637381;
    }

    .btn-primary-soft {
      background: #2F2D2C;
      color: #fff;
      border-radius: 12px;
      transition: background .2s, transform .2s, box-shadow .2s;
    }
    .btn-primary-soft:hover {
      background: #242221;
      box-shadow: 0 6px 16px rgba(47, 45, 44, 0.28);
    }
    .btn-ghost {
      background: #EEF0F8;
      color: #2F2D2C;
      border-radius: 12px;
      transition: background .2s, color .2s;
    }
    .btn-ghost:hover { background: #2F2D2C; color: #fff; }

    /* Header search overlay */
    .search-overlay {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 5.5rem 1rem 2rem;
      background: rgba(12, 14, 48, 0.55);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .28s ease, visibility .28s ease;
    }
    .search-overlay.open {
      opacity: 1;
      visibility: visible;
    }
    .search-modal {
      width: 100%;
      max-width: 640px;
      background: #fff;
      border-radius: 8px;
      border-top-left-radius: 32px;
      border-bottom-right-radius: 32px;
      box-shadow: 0 24px 64px rgba(0,0,0,.28);
      transform: translateY(-16px) scale(.98);
      transition: transform .3s ease;
      overflow: hidden;
    }
    .search-overlay.open .search-modal {
      transform: translateY(0) scale(1);
    }
    .search-modal-input {
      width: 100%;
      border: none;
      outline: none;
      background: transparent;
      font-size: 1.05rem;
      color: #111928;
      padding: 0.35rem 0;
    }
    .search-modal-input::placeholder { color: #9CA3AF; }
    .search-chip {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid #E5E7EB;
      padding: 0.4rem 0.9rem;
      font-size: 12px;
      color: #2F2D2C;
      background: #F8F9FC;
      transition: background .2s, border-color .2s;
    }
    .search-chip:hover {
      background: #2F2D2C;
      border-color: #2F2D2C;
      color: #fff;
    }
    body.search-open { overflow: hidden; }

    /* Newsletter + Footer (reference layout, brand colors) */
    .newsletter-card {
      position: absolute;
      top: 0;
      left: 50%;
      z-index: 10;
      width: calc(100% - 2rem);
      max-width: 770px;
      transform: translate(-50%, -50%);
      background: #fff;
      border-radius: 8px;
      border-top-left-radius: 40px;
      border-bottom-right-radius: 40px;
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
      padding: 1.1rem 1.1rem 1.2rem;
    }
    @media (min-width: 640px) {
      .newsletter-card { padding: 1.25rem 1.35rem 1.35rem; }
    }
    @media (min-width: 768px) {
      .newsletter-card { padding: 1.35rem 1.75rem 1.5rem; }
    }
    .newsletter-card h2 {
      margin-bottom: 0.95rem;
      text-align: center;
      font-size: 1.05rem;
      font-weight: 500;
      color: #2A2928;
      line-height: 1.55;
      padding-inline: 0.25rem;
    }
    @media (min-width: 640px) {
      .newsletter-card h2 { font-size: 1.15rem; margin-bottom: 1.15rem; }
    }
    @media (min-width: 768px) {
      .newsletter-card h2 { font-size: 1.25rem; margin-bottom: 1.35rem; }
    }
    .newsletter-form {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      max-width: 640px;
      margin: 0 auto;
    }
    @media (min-width: 640px) {
      .newsletter-form {
        flex-direction: row;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1.5rem;
      }
    }
    .newsletter-form .field {
      min-height: 48px;
      flex: 1;
    }
    @media (min-width: 640px) {
      .newsletter-form .field { min-height: 52px; }
    }
    .site-footer {
      background: #2F2D2C;
      padding-top: var(--footer-pad-top);
    }
    .site-footer > .footer-inner,
    .site-footer > .mx-auto {
      padding-top: 1.75rem;
      padding-bottom: 2.5rem;
    }
    @media (min-width: 768px) {
      .site-footer > .footer-inner,
      .site-footer > .mx-auto {
        padding-top: 2rem;
        padding-bottom: 3rem;
      }
    }
    .footer-main {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    @media (min-width: 640px) {
      .footer-main { gap: 2.5rem; }
    }
    @media (min-width: 768px) {
      .footer-main {
        grid-template-columns: 1.1fr 1fr 1.15fr;
        gap: 0;
      }
      .footer-col {
        padding: 0 1.75rem;
      }
      .footer-col + .footer-col {
        border-right: 1px solid rgba(255,255,255,.14);
      }
      .footer-col:first-child { padding-right: 0; }
      .footer-col:last-child { padding-left: 0; }
    }
    @media (min-width: 1024px) {
      .footer-col { padding: 0 2.5rem; }
    }
    .footer-heading {
      margin-bottom: 1.15rem;
      font-size: 1.1rem;
      font-weight: 500;
      color: #EC9912;
    }
    @media (min-width: 768px) {
      .footer-heading {
        margin-bottom: 1.35rem;
        font-size: 1.2rem;
      }
    }
    .footer-link {
      color: rgba(255,255,255,.88);
      transition: color .2s;
      font-size: 0.9rem;
    }
    .footer-link:hover { color: #EC9912; }
    .footer-social {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.4rem;
      height: 2.4rem;
      border-radius: 999px;
      color: #fff;
      border: 1.5px solid rgba(255,255,255,.85);
      background: transparent;
      transition: background .2s, color .2s, border-color .2s, transform .2s;
    }
    .footer-social:hover {
      background: #EC9912;
      border-color: #EC9912;
      color: #2F2D2C;
      transform: translateY(-2px);
    }
    .footer-contact-row {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      font-size: 0.9rem;
      color: rgba(255,255,255,.88);
      line-height: 1.55;
    }
    .footer-contact-row svg {
      flex-shrink: 0;
      margin-top: 0.15rem;
      color: #EC9912;
    }
    .footer-contact-row a:hover { color: #EC9912; }
    .footer-bottom {
      background: #fff;
      color: #736F6E;
      padding-block: 1rem;
    }
    @media (min-width: 768px) {
      .footer-bottom { padding-block: 1.15rem; }
    }

    /* Car detail last section clearance before newsletter */
    .similar-cars-section {
      padding-top: var(--section-y);
      padding-bottom: var(--page-end);
    }

    .search-panel {
      box-shadow: 0 16px 48px rgba(47, 45, 44, 0.16);
    }

    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .7s ease, transform .7s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .fab-dock {
      position: fixed;
      bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
      left: max(1.25rem, env(safe-area-inset-left, 0px));
      z-index: 50;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }
    @media (min-width: 640px) {
      .fab-dock {
        bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
        left: max(1.5rem, env(safe-area-inset-left, 0px));
        gap: 0.875rem;
      }
    }

    .fab-btn {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 3rem;
      height: 3rem;
      border-radius: 9999px;
      transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    }
    @media (min-width: 640px) {
      .fab-btn { width: 3.25rem; height: 3.25rem; }
    }

    .fab-top {
      background: #fff;
      color: #2F2D2C;
      box-shadow: 0 8px 24px rgba(47, 45, 44, 0.18);
    }
    .fab-top:hover {
      background: #EC9912;
      color: #2F2D2C;
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(47, 45, 44, 0.22);
    }

    .fab-wa {
      background: linear-gradient(145deg, #2FE36B 0%, #25D366 45%, #1EBE57 100%);
      color: #fff;
      box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    .fab-wa:hover {
      transform: translateY(-3px) scale(1.04);
      box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
    }
    .fab-wa:active { transform: translateY(0) scale(0.98); }

    .fab-wa-ping {
      position: absolute;
      inset: 0;
      border-radius: 9999px;
      background: #25D366;
      animation: wa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
      pointer-events: none;
      z-index: -1;
    }
    .fab-wa-ring {
      position: absolute;
      inset: -3px;
      border-radius: 9999px;
      border: 2px solid rgba(37, 211, 102, 0.45);
      animation: wa-ring 2s ease-out infinite;
      pointer-events: none;
    }
    @keyframes wa-ping {
      0% { transform: scale(1); opacity: 0.55; }
      70% { transform: scale(1.55); opacity: 0; }
      100% { transform: scale(1.55); opacity: 0; }
    }
    @keyframes wa-ring {
      0% { transform: scale(1); opacity: 0.7; }
      100% { transform: scale(1.35); opacity: 0; }
    }

    .fab-tip {
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      white-space: nowrap;
      background: #2F2D2C;
      color: #fff;
      font-size: 11px;
      font-weight: 500;
      padding: 0.35rem 0.65rem;
      border-radius: 8px;
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s, transform .2s, visibility .2s;
      pointer-events: none;
    }
    .fab-tip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: #2F2D2C;
    }
    .fab-btn:hover .fab-tip {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }
    @media (max-width: 639px) {
      .fab-tip { display: none; }
    }

    .step-card {
      position: relative;
      transition: transform .35s ease, box-shadow .35s ease;
    }
    .step-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 22px 50px rgba(0,0,0,.2);
    }
    .step-card .step-icon {
      transition: transform .4s ease;
      width: 72px;
      height: 72px;
    }
    @media (min-width: 768px) {
      .step-card .step-icon {
        width: 80px;
        height: 80px;
      }
    }
    .step-card .step-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    /* بعض الـ GIF تملأ الإطار أكتر — تصغير بصري موحّد */
    .step-card .step-icon img.icon-tight {
      transform: scale(0.82);
      transform-origin: center;
    }
    .step-card:hover .step-icon {
      transform: scale(1.06);
    }
    .step-card:hover .step-icon img.icon-tight {
      transform: scale(0.87);
    }
    .steps-rail {
      position: relative;
    }
    @media (min-width: 1280px) {
      .steps-rail::before {
        content: '';
        position: absolute;
        top: 4.25rem;
        right: 12%;
        left: 12%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(236,153,18,.55), rgba(236,153,18,.55), transparent);
        z-index: 0;
        pointer-events: none;
      }
    }
    .step-num {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 9999px;
      background: linear-gradient(145deg, #EC9912, #D8890E);
      color: #2F2D2C;
      font-size: 0.8rem;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(236, 153, 18, 0.4);
    }

    header.scrolled {
      box-shadow: 0 8px 30px rgba(47, 45, 44, 0.08);
    }
    .panel-asym { border-radius: 32px; border-top-right-radius: 8px; }
    .panel-asym-lg { border-radius: 40px; border-top-right-radius: 12px; }
    .panel-asym-sm { border-radius: 16px; border-top-right-radius: 6px; }

/* --- Custom Modern Swiper Pagination --- */
.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background-color: rgba(30, 42, 79, 0.4) !important; /* Navy with opacity */
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  border-radius: 20px !important;
}

.swiper-pagination-bullet-active {
  width: 32px !important;
  background-color: #ec9912 !important; /* Gold */
  box-shadow: 0 0 10px rgba(236, 153, 18, 0.4);
}

/* ========== Bilingual RTL / LTR compatibility ========== */
html[dir="ltr"] body {
  font-family: Montserrat, 'IBM Plex Sans Arabic', Tahoma, sans-serif;
}
.btn-cta-asym {
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
html[dir="ltr"] .btn-cta-asym {
  border-top-left-radius: 12px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 16px;
}
html[dir="ltr"] .panel-asym {
  border-radius: 32px;
  border-top-left-radius: 8px;
  border-top-right-radius: 32px;
}
html[dir="ltr"] .panel-asym-sm {
  border-radius: 16px;
  border-top-left-radius: 6px;
  border-top-right-radius: 16px;
}
html[dir="ltr"] .newsletter-card {
  border-top-left-radius: 8px;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 40px;
}
html[dir="ltr"] .footer-col + .footer-col {
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,.14);
}
html[dir="ltr"] .footer-col:first-child { padding-left: 0; padding-right: 1.75rem; }
html[dir="ltr"] .footer-col:last-child { padding-right: 0; padding-left: 1.75rem; }
html[dir="ltr"] select.field {
  background-position: right 1rem center;
  padding-right: 2.5rem;
  padding-left: 1rem;
}
.phone-ltr,
.mobile-drawer-phone { direction: ltr; unicode-bidi: plaintext; }

/* Badge / control positions that follow text direction */
html[dir="ltr"] .absolute.top-4.right-4 { right: auto; left: 1rem; }
html[dir="ltr"] .absolute.top-4.left-4 { left: auto; right: 1rem; }
html[dir="ltr"] .pointer-events-none.absolute.inset-y-0.left-0 {
  left: auto;
  right: 0;
}

/* ========== About page — bilingual layout ========== */
.about-hero-sub {
  border-inline-start: 4px solid #EC9912;
  padding-inline-start: 1.5rem;
}

.about-stats > div {
  position: relative;
}
@media (min-width: 768px) {
  .about-stats > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    inset-inline-end: 0;
    width: 1px;
    background: #E4E2E1;
  }
}

.about-story-watermark {
  inset-inline-end: 1rem;
}

.about-collage-main {
  inset-inline-end: 0;
}
.about-collage-sub {
  inset-inline-start: 0;
}

.about-quality-badge {
  inset-inline-start: 0;
  transform: translate(-25%, -50%);
}
html[dir="rtl"] .about-quality-badge {
  transform: translate(25%, -50%);
}
.about-quality-badge:hover {
  transform: translate(-25%, -50%) scale(1.1);
}
html[dir="rtl"] .about-quality-badge:hover {
  transform: translate(25%, -50%) scale(1.1);
}

.about-offer-badge {
  inset-inline-end: 2rem;
}

.about-goals-col {
  padding-inline-end: 0;
}
@media (min-width: 1024px) {
  .about-goals-col {
    padding-inline-end: 3rem;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  }
}

html[dir="ltr"] #aboutContent {
  font-family: Montserrat, 'IBM Plex Sans Arabic', Tahoma, sans-serif;
}

@media (max-width: 640px) {
  #aboutContent .about-quality-badge {
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.75rem;
  }
  #aboutContent .about-quality-badge .text-3xl {
    font-size: 1.35rem;
  }
  #aboutContent .about-offer-badge {
    inset-inline-end: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    padding: 1rem;
  }
}


