/* ===== Projects / Wholesale landing (hero + steps + form with side card) ===== */
.sl-landing { padding-bottom: 56px; }


/* ---------- Hero ---------- */
.sl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: linear-gradient(135deg, #0b1f3a 0%, #0f3b63 55%, #0b6e8f 100%);
  color: #fff;
}

.sl-hero__glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.45), transparent 65%);
  pointer-events: none;
}

.sl-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.sl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
}

.sl-hero__title {
  margin: 16px 0 12px;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.sl-hero__accent {
  display: block;
  background: linear-gradient(90deg, #5eead4, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sl-hero__subtitle {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.sl-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.sl-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
  font-weight: 800;
}

.sl-hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
}

.sl-hero__stats strong { display: block; font-size: 1.4rem; }
.sl-hero__stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

.sl-hero__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* every card the same height */
  gap: 14px;
}

.sl-hero__tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.sl-hero__tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.11); }

.sl-hero__tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  font-size: 1.2rem;
}

.sl-hero__tile--1 .sl-hero__tile-icon { background: linear-gradient(135deg, #34d399, #059669); }
.sl-hero__tile--2 .sl-hero__tile-icon { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.sl-hero__tile--3 .sl-hero__tile-icon { background: linear-gradient(135deg, #fbbf24, #d97706); }

.sl-hero__tile-text { font-weight: 700; line-height: 1.4; }

/* ---------- Form + side card ---------- */
.sl-form-section { padding-top: 8px; scroll-margin-top: 120px; }

.sl-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.sl-form-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 24px;
  background: var(--bg-card, #fff);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.sl-form-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.sl-form-card__icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--accent, #00b4d8);
  font-size: 1.35rem;
}

.sl-form-card__title { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--text-primary, #0f172a); }
.sl-form-card__subtitle { margin: 4px 0 0; color: var(--text-secondary, #64748b); }

.sl-form-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--border, #e2e8f0);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.sl-form-step:first-of-type { margin-top: 4px; padding-top: 0; border-top: none; }

.sl-form-step__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent, #00b4d8);
  color: #fff;
  font-size: 0.85rem;
}

.sl-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 800;
}

.sl-aside { position: sticky; top: 120px; display: grid; gap: 16px; }

.sl-aside__card {
  padding: 22px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  background: var(--bg-card, #fff);
}

.sl-aside__card--accent {
  border: none;
  background: linear-gradient(160deg, #0f3b63, #0b6e8f);
  color: #fff;
}

.sl-aside__title { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; }
.sl-aside__card--accent .sl-aside__title { color: #fff; }

.sl-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.sl-aside__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; font-size: 0.92rem; }

.sl-aside__list i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.sl-aside__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: var(--text-primary, #0f172a);
  text-decoration: none;
  transition: background 0.2s ease;
}

.sl-aside__contact + .sl-aside__contact { margin-top: 6px; }
.sl-aside__contact:hover { background: var(--bg-secondary, #f1f5f9); }

.sl-aside__contact > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--accent, #00b4d8);
  font-size: 1.1rem;
}

.sl-aside__contact--wa > i { background: rgba(37, 211, 102, 0.14); color: #16a34a; }
.sl-aside__contact strong { display: block; }
.sl-aside__contact small { color: var(--text-secondary, #64748b); }

/* ---------- Location picker ---------- */
.sl-location__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }

.sl-location__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--accent, #00b4d8);
  border-radius: 12px;
  background: var(--accent, #00b4d8);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.sl-location__btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sl-location__btn:disabled { opacity: 0.6; cursor: progress; }
.sl-location__btn--ghost { background: transparent; color: var(--accent, #00b4d8); }

.sl-location__map-wrap { margin-bottom: 12px; }

.sl-location__map {
  height: 320px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  z-index: 0;
}

.sl-location__map-hint { margin: 6px 2px 0; font-size: 0.82rem; color: var(--text-secondary, #64748b); }

.sl-location__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 0.88rem;
  font-weight: 600;
}

.sl-location__status.is-error { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.sl-location__status a { color: inherit; text-decoration: underline; }

/* ---------- Wholesale product rows with images ---------- */
.sales-lead-row { position: relative; }

.sales-lead-row__thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  color: var(--text-secondary, #94a3b8);
}

.sales-lead-row__thumb img { width: 100%; height: 100%; object-fit: contain; }

.sales-lead-suggestions button {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.sales-lead-suggestion__img {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  border: 1px solid var(--border, #e2e8f0);
}

.sales-lead-suggestion__img--empty { display: grid; place-items: center; color: var(--text-secondary, #94a3b8); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .sl-hero__grid, .sl-form-grid { grid-template-columns: 1fr; }
  .sl-aside { position: static; }
}

@media (max-width: 560px) {
  .sl-hero__tiles { gap: 10px; }
  .sl-hero__tile { min-height: 110px; padding: 14px; }
  .sl-location__btn { flex: 1 1 100%; justify-content: center; }
  .sl-location__map { height: 260px; }
}

/* ---------- Dark ---------- */
[data-theme="dark"] .sl-location__status { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
[data-theme="dark"] .sl-location__status.is-error { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
[data-theme="dark"] .sales-lead-row__thumb,
[data-theme="dark"] .sales-lead-suggestion__img { background: #fff; }

/* Keep the thumbnail, input and remove button on one line on phones too. */
.sl-landing .sales-lead-row { flex-direction: row; align-items: center; }
.sl-landing .sales-lead-suggestions { inset-inline-start: 54px; }
.sl-landing .sales-lead-add { margin-top: 4px; }

/* Phone icon faces the reading direction in Arabic. */
[dir="rtl"] .sl-aside__contact > .fa-phone { transform: scaleX(-1); }

/* The status line stays hidden until there is something to say (display:flex above would show an empty bar). */
.sl-location__status[hidden],
.sl-location__map-wrap[hidden] { display: none !important; }

/* Projects side card: maintenance contracts note + short line under "contact us directly". */
.sl-aside__extra {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sl-aside__extra:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.sl-aside__extra i { margin-top: 4px; }

.sl-aside__lead {
  margin: -6px 0 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary, #64748b);
}

/* Wholesale: quantity next to each requested product. */
.sales-lead-qty {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
}

.sales-lead-qty__input.feedback-control {
  width: 86px;
  flex: 0 0 auto;
  text-align: center;
  padding-inline: 8px;
}

@media (max-width: 560px) {
  .sl-landing .sales-lead-row { flex-wrap: wrap; }
  .sl-landing .sales-lead-row .sales-lead-product { flex: 1 1 calc(100% - 110px); }
  .sales-lead-qty { margin-inline-start: 54px; }
}
.sl-landing .feedback-form .sales-lead-qty { display: flex; flex-direction: row; align-items: center; margin: 0; }
.sl-landing .feedback-form .sales-lead-qty__label { display: inline; margin: 0; white-space: nowrap; }

/* Products hint: a little space under "add another product", no extra gap before the next step. */
.sl-landing .sales-lead-add + .sales-lead-hint {
  margin-top: 10px;
  margin-bottom: 0;
}
