/* ── Cars Promo Section ────────────────────────────────────────── */
.cars-promo-section {
  padding: 0 0 60px;
}

.cars-promo-card {
  background: linear-gradient(145deg, #dce9f8 0%, #f0f6ff 55%, #dce9f8 100%);
  border-radius: 28px;
  padding: 32px 56px 0;
  display: flex;
  flex-direction: row; /* RTL: first child → right, second child → left */
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
  position: relative;
  min-height: 360px;
}

.cars-promo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 32px;
  opacity: 0;
  animation: cpSlideIn 0.7s ease-out 0.15s forwards;
}

.cars-promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  background: #1a5e38;
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cars-promo-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #112d4e;
  line-height: 1.25;
  margin: 0;
}

.cars-promo-title-green {
  color: #112d4e;
}

.cars-promo-desc {
  font-size: 1.05rem;
  color: #112d4e;
  line-height: 1.75;
  margin: 0;
}

.cars-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #112d4e;
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(17, 45, 78, 0.25);
}

.cars-promo-cta:hover {
  background: #0d2240;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17, 45, 78, 0.3);
}

.cars-promo-cta svg {
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.cars-promo-cta:hover svg {
  transform: rotate(180deg) translateX(3px);
}

.cars-promo-secondary-link {
  font-size: 0.95rem;
  color: #374151;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.cars-promo-secondary-link:hover {
  color: #112d4e;
}

/* ── Visual side (right in RTL layout) ──────────────────────── */
.cars-promo-visual {
  flex: 1.15;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(40px);
  animation: cpSlideInR 0.7s ease-out 0.25s forwards;
}

.cars-promo-mockup-frame {
  background: #dce9f8;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 10px;
  width: 92%;
  margin-bottom: -2px;
}

.cars-promo-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.cars-promo-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
}

.cars-promo-mockup-dot:first-child { background: #fca5a5; }
.cars-promo-mockup-dot:nth-child(2) { background: #fde68a; }
.cars-promo-mockup-dot:nth-child(3) { background: #6ee7b7; }


.cars-promo-mockup-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Car images strip */
.cars-promo-cars-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 105%;
  position: relative;
  margin-top: -5rem;
}

.cars-promo-car {
  width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
  position: relative;
  flex-shrink: 0;
}

.cars-promo-car--front {
  z-index: 2;
  margin-left: -10%;
  transform: translateX(8%);
}

.cars-promo-car--back {
  z-index: 1;
  opacity: 0.88;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes cpSlideIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cpSlideInR {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cars-promo-card {
    padding: 44px 40px 0;
  }

  .cars-promo-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .cars-promo-section {
    padding: 0 0 40px;
  }

  .cars-promo-card {
    flex-direction: column-reverse;
    padding: 36px 28px 0;
    border-radius: 20px;
    min-height: unset;
    align-items: center;
    text-align: center;
  }

  .cars-promo-text {
    align-items: center;
    padding-bottom: 36px;
    transform: translateY(20px);
    animation: cpFadeUp 0.6s ease-out 0.1s forwards;
  }

  .cars-promo-visual {
    width: 100%;
    transform: translateY(20px);
    animation: cpFadeUp 0.6s ease-out 0.2s forwards;
  }

  .cars-promo-title {
    font-size: 1.9rem;
  }

  .cars-promo-mockup-frame {
    width: 100%;
  }

  .cars-promo-cars-row {
    width: 100%;
  }

  @keyframes cpFadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 480px) {
  .cars-promo-card {
    padding: 28px 20px 0;
  }

  .cars-promo-title {
    font-size: 1.6rem;
  }

  .cars-promo-desc {
    font-size: 0.95rem;
  }

  .cars-promo-cta {
    font-size: 0.95rem;
    padding: 11px 22px;
  }
}


/* ══════════════════════════════════════════════════════════════
   section idea2 — Light feature section (phone mockup + bullets)
   ══════════════════════════════════════════════════════════════ */
.cf-section {
  padding: 0 0 60px;
}

.cf-inner {
  position: relative;
  display: flex;
  flex-direction: row; /* RTL: text (first) → right, mockup (second) → left */
  align-items: center;
  gap: 0;
  min-height: 460px;
  overflow: hidden;
}

/* Soft gradient blob */
.cf-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(74, 99, 246, 0.13) 0%, rgba(147, 197, 253, 0.08) 50%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Text side ─────────────────────────────────────────────── */
.cf-text {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0 20px 40px;
  opacity: 0;
  transform: translateX(-30px);
  animation: cpSlideIn 0.7s ease-out 0.1s forwards;
}

.cf-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a63f6;
}

.cf-label svg {
  color: #4a63f6;
  flex-shrink: 0;
}

.cf-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #112d4e;
  line-height: 1.25;
  margin: 0;
}

.cf-title-accent {
  color: #4a63f6;
}

.cf-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.cf-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #112d4e;
}

.cf-list-icon {
  width: 36px;
  height: 36px;
  background: #f0f4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4a63f6;
}

.cf-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #112d4e;
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(17, 45, 78, 0.25);
  width: fit-content;
}

.cf-cta:hover {
  background: #0d2240;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17, 45, 78, 0.3);
}

.cf-cta svg {
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.cf-cta:hover svg {
  transform: rotate(180deg) translateX(3px);
}

/* ── Mockup side ────────────────────────────────────────────── */
.cf-visual {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(30px);
  animation: cpSlideInR 0.7s ease-out 0.2s forwards;
}

.cf-mockup-frame {
  background: rgba(17, 45, 78, 0.06);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(17, 45, 78, 0.1);
  padding: 10px;
  width: 92%;
  position: relative;
  overflow: visible;
}

.cf-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.cf-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
}

.cf-mockup-dot:first-child  { background: #fca5a5; }
.cf-mockup-dot:nth-child(2) { background: #fde68a; }
.cf-mockup-dot:nth-child(3) { background: #6ee7b7; }

.cf-mockup-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.cf-cars-row {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 105%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.cf-car {
  width: 55%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
  flex-shrink: 0;
}

.cf-car--front {
  z-index: 2;
  margin-left: -10%;
  transform: translateX(8%);
}

.cf-car--back {
  z-index: 1;
  opacity: 0.88;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cf-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .cf-inner {
    flex-direction: column-reverse;
    min-height: unset;
    gap: 32px;
  }

  .cf-text {
    padding: 0 0 32px;
    align-items: center;
    text-align: center;
  }

  .cf-list-item {
    justify-content: center;
  }

  .cf-blob {
    width: 320px;
    height: 320px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cf-mockup {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .cf-title {
    font-size: 1.8rem;
  }

  .cf-list-item {
    font-size: 0.95rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   شفت الجديد — horizontal scroll promo section
   ══════════════════════════════════════════════════════════════ */

.promo-snap-section {
  /* height set by promo-scroll.js based on track overflow */
  padding-bottom: 0;
}

/* Sticky container that pins while parent scrolls */
.promo-snap__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  overflow: hidden;
  background: var(--sayer-page-bg, #f0f8ff);
  /* full-bleed: break out of any parent container */
  width: 100vw;
  max-width: 100vw;
  margin-inline-start: calc(-1 * (100vw - 100%) / 2);
}

/* Section header — mirrors FAQ header style */
.promo-snap__header {
  text-align: center;
  padding: 0;
  flex-shrink: 0;
}

.promo-snap__header .title-with-icon {
  margin-bottom: 0.3rem;
}

.promo-snap__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color, #112d4e);
  margin-bottom: 0;
  line-height: 1.2;
}

.promo-snap__desc {
  font-size: 1.1rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.6;
  margin: 0;
}

/* Footer CTA below cards */
.promo-snap__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 0;
}

.promo-snap__footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #112d4e;
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(17, 45, 78, 0.25);
  pointer-events: none;
}

.promo-snap__footer.is-visible .promo-snap__footer-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-snap__footer-cta:hover {
  background: #0d2240;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17, 45, 78, 0.3);
}

/* Overflow mask — full bleed, edge to edge */
.promo-snap__overflow {
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline-start: calc(-1 * (100vw - 100%) / 2);
}

/* Horizontally translating track */
.promo-snap__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 0;
  padding-inline-end: 40px; /* space after last card on the left */
  will-change: transform;
  /* Keep native RTL so card internals render correctly */
}

/* Each card slot — natural height like the catalog grid */
.promo-snap__card-wrap {
  flex-shrink: 0;
  width: 260px;
}

/* Disable content-visibility optimization — causes blank cards in translate context */
.promo-snap__track .car-card {
  content-visibility: visible;
  contain-intrinsic-size: unset;
}


/* Mobile: disable sticky scroll effect, show as normal horizontal scroll */
@media (max-width: 768px) {
  .promo-snap-section {
    height: auto !important;
    padding-bottom: 48px;
  }

  .promo-snap__sticky {
    position: relative;
    height: auto;
    overflow: visible;
    gap: 1.5rem;
  }

  .promo-snap__header {
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .promo-snap__title {
    font-size: 1.75rem;
  }

  .promo-snap__overflow {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .promo-snap__overflow::-webkit-scrollbar { display: none; }

  .promo-snap__track {
    transform: none !important;
    padding-bottom: 12px;
    padding-inline-start: 20px; /* right edge breathing room in RTL */
    height: auto;
  }

  .promo-snap__card-wrap {
    height: 360px;
  }

  .promo-snap__footer-cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
