

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

/* ── 1. Variables & Colors ── */
.ebhero_wnsh {
  /* Background */
  --ebhero_wnsh-bg:            #FBFCFD;
  --ebhero_wnsh-bg-overlay:    rgba(251, 252, 253, 0.82);

  /* Text */
  --ebhero_wnsh-title:         #0D1B2A;
  --ebhero_wnsh-title-accent:  #3F8D32;
  --ebhero_wnsh-subtitle:      #3D5166;
  --ebhero_wnsh-text:          #4A6278;

  /* Brand */
  --ebhero_wnsh-brand:         #3F8D32;
  --ebhero_wnsh-brand-dark:    #3F8D32;
  --ebhero_wnsh-brand-light:   #E8F3FB;
  --ebhero_wnsh-brand-glow:    rgba(0, 95, 153, 0.35);

  /* Roads / Routes */
  --ebhero_wnsh-road:          rgba(0, 95, 153, 0.07);
  --ebhero_wnsh-route:         #408d32b9;
  --ebhero_wnsh-route-glow:    rgba(0, 95, 153, 0.18);
  --ebhero_wnsh-tracker-fill:  #3F8D32;
  --ebhero_wnsh-tracker-ring:  rgba(0, 95, 153, 0.25);

  /* Buildings */
  --ebhero_wnsh-bld-body:      rgba(13, 27, 42, 0.08);
  --ebhero_wnsh-bld-stroke:    rgba(0, 95, 153, 0.25);
  --ebhero_wnsh-bld-win:       rgba(0, 95, 153, 0.15);
  --ebhero_wnsh-bld-win-lit:   rgba(255, 190, 50, 0.75);
  --ebhero_wnsh-bld-win-dest:  rgba(255, 190, 50, 0.0);
  --ebhero_wnsh-bld-door:      rgba(13, 27, 42, 0.15);
  --ebhero_wnsh-pin:            #3F8D32;
  --ebhero_wnsh-pin-dest:       #E05200;

  /* City silhouette */
  --ebhero_wnsh-city:          rgba(13, 27, 42, 0.04);
  --ebhero_wnsh-city-win:      rgba(0, 95, 153, 0.12);
  --ebhero_wnsh-city-win-lit:  rgba(255, 190, 50, 0.55);
  --ebhero_wnsh-city-win-arrive: rgba(255, 190, 50, 0.0);

  /* Buttons */
  --ebhero_wnsh-btn-bg:        #3F8D32;
  --ebhero_wnsh-btn-text:      #FFFFFF;
  --ebhero_wnsh-btn-sec-bg:    transparent;
  --ebhero_wnsh-btn-sec-border:#3F8D32;
  --ebhero_wnsh-btn-sec-text:  #3F8D32;

  /* Badge */
  --ebhero_wnsh-badge-bg:      rgba(0, 95, 153, 0.08);
  --ebhero_wnsh-badge-border:  rgba(0, 95, 153, 0.2);
  --ebhero_wnsh-badge-text:    #3F8D32;
  --ebhero_wnsh-badge-dot:     #22C55E;

  /* Stats */
  --ebhero_wnsh-stat-num:      #0D1B2A;
  --ebhero_wnsh-stat-label:    #4A6278;
  --ebhero_wnsh-stat-divider:  rgba(13, 27, 42, 0.12);

  /* GPS Nodes */
  --ebhero_wnsh-gps-fill:      rgba(0, 95, 153, 0.6);
  --ebhero_wnsh-gps-ring:      rgba(0, 95, 153, 0.15);

  /* Spacing */
  --ebhero_wnsh-padding-top:    2rem;
  --ebhero_wnsh-padding-bottom: 2rem;
}

/* ── 2. Reset inside namespace ── */
.ebhero_wnsh *,
.ebhero_wnsh *::before,
.ebhero_wnsh *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── 3. Base Styles — Mobile ── */
.ebhero_wnsh {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: var(--ebhero_wnsh-bg);
  font-family: "El Messiri", sans-serif;
  direction: rtl;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--ebhero_wnsh-padding-top);
  padding-bottom: var(--ebhero_wnsh-padding-bottom);
}

/* ──────────────────────────────────────────
   BACKGROUND LAYERS
────────────────────────────────────────── */

/* City Layer */
.ebhero_wnsh__city-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ebhero_wnsh__city-svg {
  width: 100%;
  height: 100%;
}
.ebhero_wnsh__city-far rect,
.ebhero_wnsh__city-far path {
  fill: var(--ebhero_wnsh-city);
}
.ebhero_wnsh__windows rect {
  fill: var(--ebhero_wnsh-city-win);
}
.ebhero_wnsh__window-lit {
  fill: var(--ebhero_wnsh-city-win-lit) !important;
}
.ebhero_wnsh__window-arrive {
  fill: var(--ebhero_wnsh-city-win-arrive);
  transition: fill 0.6s ease;
}
.ebhero_wnsh__window-arrive--on {
  fill: var(--ebhero_wnsh-city-win-lit) !important;
}

/* Roads Layer */
.ebhero_wnsh__roads-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ebhero_wnsh__roads-svg {
  width: 100%;
  height: 100%;
}
.ebhero_wnsh__roads-svg line,
.ebhero_wnsh__roads-svg path {
  stroke: var(--ebhero_wnsh-road);
  stroke-width: 1;
  fill: none;
}

/* Route Layer */
.ebhero_wnsh__route-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ebhero_wnsh__route-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ebhero_wnsh__route-path {
  stroke: var(--ebhero_wnsh-route);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 8 6;
}
.ebhero_wnsh__route-glow {
  stroke: var(--ebhero_wnsh-route-glow);
  stroke-width: 12;
  fill: none;
  filter: blur(0.6rem);
}

/* Tracker Dot */
.ebhero_wnsh__tracker {
  fill: var(--ebhero_wnsh-tracker-fill);
  filter: drop-shadow(0 0 0.5rem var(--ebhero_wnsh-brand-glow));
}
.ebhero_wnsh__tracker-glow {
  fill: var(--ebhero_wnsh-tracker-ring);
  filter: blur(0.4rem);
}

/* Route Icons (furniture emojis) */
.ebhero_wnsh__route-icon {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: center;
  dominant-baseline: middle;
  text-anchor: middle;
}

/* Buildings on SVG */
.ebhero_wnsh__building { opacity: 0.9; }
.ebhero_wnsh__bld-body {
  fill: var(--ebhero_wnsh-bld-body);
  stroke: var(--ebhero_wnsh-bld-stroke);
  stroke-width: 1;
}
.ebhero_wnsh__bld-win { fill: var(--ebhero_wnsh-bld-win); }
.ebhero_wnsh__bld-win--dest {
  fill: var(--ebhero_wnsh-bld-win-dest);
  transition: fill 0.5s ease;
}
.ebhero_wnsh__bld-win--dest-lit {
  fill: var(--ebhero_wnsh-bld-win-lit) !important;
}
.ebhero_wnsh__bld-door { fill: var(--ebhero_wnsh-bld-door); }
.ebhero_wnsh__pin { fill: var(--ebhero_wnsh-pin); }
.ebhero_wnsh__pin--dest { fill: var(--ebhero_wnsh-pin-dest); }
.ebhero_wnsh__pin-dot { fill: #fff; }
.ebhero_wnsh__pin-dot--dest { fill: #fff; }
.ebhero_wnsh__pin-line {
  stroke: var(--ebhero_wnsh-bld-stroke);
  stroke-width: 1;
}

/* GPS Nodes */
.ebhero_wnsh__gps-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.ebhero_wnsh__gps-node {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ebhero_wnsh-gps-fill);
  box-shadow: 0 0 0 0.5rem var(--ebhero_wnsh-gps-ring);
  animation: ebhero_wnsh-pulse 3s ease-in-out infinite;
}
.ebhero_wnsh__gps-node:nth-child(2) { animation-delay: 0.5s; }
.ebhero_wnsh__gps-node:nth-child(3) { animation-delay: 1s; }
.ebhero_wnsh__gps-node:nth-child(4) { animation-delay: 1.5s; }
.ebhero_wnsh__gps-node:nth-child(5) { animation-delay: 2s; }
.ebhero_wnsh__gps-node:nth-child(6) { animation-delay: 2.5s; }

@keyframes ebhero_wnsh-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.5); }
}

/* Content overlay gradient */
.ebhero_wnsh::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    105deg,
    rgba(251,252,253,0.95) 0%,
    rgba(251,252,253,0.88) 45%,
    rgba(251,252,253,0.15) 100%
  );
  pointer-events: none;
}

/* ──────────────────────────────────────────
   CONTENT
────────────────────────────────────────── */
.ebhero_wnsh__container {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Badge */
.ebhero_wnsh__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ebhero_wnsh-badge-bg);
  border: 0.0625rem solid var(--ebhero_wnsh-badge-border);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
}
.ebhero_wnsh__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ebhero_wnsh-badge-dot);
  flex-shrink: 0;
  animation: ebhero_wnsh-blink 1.5s ease-in-out infinite;
}
@keyframes ebhero_wnsh-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.ebhero_wnsh__badge-text {
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  font-weight: 500;
  color: var(--ebhero_wnsh-badge-text);
  white-space: nowrap;
}

/* Title */
.ebhero_wnsh__title {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  line-height: 1.15;
}
.ebhero_wnsh__title-line1 {
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 700;
  color: var(--ebhero_wnsh-title);
  letter-spacing: -0.02em;
}
.ebhero_wnsh__title-line2 {
  font-size: clamp(2.2rem, 10vw, 4.6rem);
  font-weight: 700;
  color: var(--ebhero_wnsh-title);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
}
.ebhero_wnsh__title-accent {
  font-style: normal;
  color: var(--ebhero_wnsh-title-accent);
  position: relative;
}
.ebhero_wnsh__title-accent::after {
  content: '';
  position: absolute;
  bottom: -0.05em;
  right: 0;
  left: 0;
  height: 0.12em;
  background: var(--ebhero_wnsh-brand);
  border-radius: 0.1em;
  opacity: 0.4;
}

/* Subtitle */
.ebhero_wnsh__subtitle {
  font-size: clamp(0.9rem, 3.2vw, 1.1rem);
  font-weight: 400;
  color: var(--ebhero_wnsh-subtitle);
  max-width: 36rem;
  line-height: 1.75;
}

/* CTA Row */
.ebhero_wnsh__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ebhero_wnsh__cta-primary,
.ebhero_wnsh__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-family: "El Messiri", sans-serif;
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.ebhero_wnsh__cta-primary {
  background: var(--ebhero_wnsh-btn-bg);
  color: var(--ebhero_wnsh-btn-text);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 0.25rem 1rem var(--ebhero_wnsh-brand-glow);
}
.ebhero_wnsh__cta-primary:hover {
  background: var(--ebhero_wnsh-brand-dark);
  transform: translateY(-0.15rem);
  box-shadow: 0 0.4rem 1.5rem var(--ebhero_wnsh-brand-glow);
}
.ebhero_wnsh__cta-secondary {
  background: var(--ebhero_wnsh-btn-sec-bg);
  color: var(--ebhero_wnsh-btn-sec-text);
  border: 0.1rem solid var(--ebhero_wnsh-btn-sec-border);
  padding: 0.75rem 1.5rem;
}
.ebhero_wnsh__cta-secondary:hover {
  background: var(--ebhero_wnsh-brand-light);
  transform: translateY(-0.15rem);
}

/* Stats */
.ebhero_wnsh__stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.ebhero_wnsh__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ebhero_wnsh__stat-num {
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--ebhero_wnsh-stat-num);
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}
.ebhero_wnsh__stat-label {
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  color: var(--ebhero_wnsh-stat-label);
  font-weight: 400;
}
.ebhero_wnsh__stat-divider {
  width: 0.0625rem;
  height: 2rem;
  background: var(--ebhero_wnsh-stat-divider);
  align-self: center;
}

/* ── 4. Breakpoints ── */

@media (min-width: 481px) {
  .ebhero_wnsh__container { padding: 0 2rem; }
  .ebhero_wnsh__stats { gap: 1.5rem; }
}

@media (min-width: 601px) {
  .ebhero_wnsh {
    --ebhero_wnsh-padding-top: 5rem;
    --ebhero_wnsh-padding-bottom: 5rem;
  }
}

@media (min-width: 769px) {
  .ebhero_wnsh {
    --ebhero_wnsh-padding-top: 6rem;
    --ebhero_wnsh-padding-bottom: 6rem;
    min-height: 70vh;
  }
  .ebhero_wnsh::after {
    background: linear-gradient(
      100deg,
      rgba(251,252,253,0.97) 0%,
      rgba(251,252,253,0.9) 40%,
      rgba(251,252,253,0.1) 100%
    );
  }
  .ebhero_wnsh__container { max-width: 55%; }
}

@media (min-width: 1025px) {
  .ebhero_wnsh {
    --ebhero_wnsh-padding-top: 3rem;
    --ebhero_wnsh-padding-bottom: 3rem;
    min-height: 75vh;
  }
  .ebhero_wnsh__container {
    padding: 0 4rem;
    gap: 1.5rem;
    max-width: 52%;
  }
}

@media (min-width: 1281px) {
  .ebhero_wnsh__container { padding: 0 2rem; max-width: 50%; }
}

@media (min-width: 1441px) {
  .ebhero_wnsh {
    --ebhero_wnsh-padding-top: 4rem;
    --ebhero_wnsh-padding-bottom: 4rem;
  }
  .ebhero_wnsh__container { padding: 0 6rem; }
}

@media (min-width: 1921px) {
  .ebhero_wnsh__container { padding: 0 5rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ebhero_wnsh__gps-node,
  .ebhero_wnsh__badge-dot {
    animation: none;
    opacity: 1;
  }
}