/* ================================================
   SERVICE DETAIL PAGE — Magazine / Editorial Style
   ================================================ */

/* ── NAVBAR transparent on hero ─────────────── */
body.sp-page #navbar:not(.scrolled) {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom-color: transparent !important;
}
body.sp-page #navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.9); }
body.sp-page #navbar:not(.scrolled) .lang-label  { color: rgba(255,255,255,0.85); }
body.sp-page #navbar:not(.scrolled) .menu-toggle span { background: #fff; }

/* ── HERO ────────────────────────────────────── */
.sp-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.sp-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.sp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.72) 100%);
}

/* Breadcrumb — absolute top-left */
.sp-breadcrumb {
  position: absolute;
  top: 82px; left: 2.5rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
  z-index: 2;
}
html[dir="rtl"] .sp-breadcrumb { left: auto; right: 2.5rem; }
.sp-breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.sp-breadcrumb a:hover { color: var(--primary); }

/* Hero center content — bottom-aligned */
.sp-hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 4rem;
  text-align: center; z-index: 2;
}
.sp-num {
  display: block;
  font-size: 0.72rem; font-weight: 900;
  color: var(--primary); letter-spacing: 0.16em;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.65rem;
}
.sp-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 1.1rem;
}
.sp-title-accent {
  width: 60px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto;
}

/* ── ALTERNATING SECTIONS ────────────────────── */
.sp-alt-section { padding: 80px 0; }
.sp-bg-white { background: #ffffff; }
.sp-bg-light { background: #F8F8F8; }

.sp-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sp-alt-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.10);
}
.sp-alt-img {
  width: 100%; height: 360px;
  object-fit: cover; display: block;
  transition: transform 0.65s ease;
}
.sp-alt-img-wrap:hover .sp-alt-img { transform: scale(1.02); }

.sp-alt-eyebrow {
  display: block;
  font-size: 0.7rem; font-weight: 900;
  color: var(--primary); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.sp-alt-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900; color: var(--dark);
  line-height: 1.2; margin-bottom: 0.9rem;
}
.sp-alt-divider {
  width: 40px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.3rem;
}
.sp-alt-text { font-size: 1rem; color: var(--text-main); line-height: 1.9; }
.sp-alt-text p { margin-bottom: 0.9rem; }
.sp-alt-text p:last-child { margin-bottom: 0; }

/* ── WHY US — dark ───────────────────────────── */
.sp-why-section {
  background: #111111;
  padding: 80px 0;
}
.sp-why-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900; color: #fff;
  text-align: center; margin-bottom: 0.6rem;
}
.sp-why-sub {
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 1rem; margin-bottom: 3.5rem;
}
.sp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  max-width: 780px;
  margin: 0 auto;
}
.sp-why-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
  font-weight: 600; padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sp-why-check { color: var(--primary); font-size: 1rem; font-weight: 900; flex-shrink: 0; }

/* ── CTA BANNER — orange ─────────────────────── */
.sp-cta-banner {
  background: var(--primary);
  padding: 72px 0;
  text-align: center;
}
.sp-cta-banner-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900; color: var(--dark);
  margin-bottom: 0.65rem;
}
.sp-cta-banner-sub {
  font-size: 1rem; color: rgba(0,0,0,0.55);
  margin-bottom: 2rem;
}
.sp-cta-banner-btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--dark); color: #fff;
  padding: 0.9rem 2.1rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transition: background 0.25s ease, transform 0.25s ease;
}
.sp-cta-banner-btn:hover { background: #2a2a2a; transform: translateY(-2px); }

/* ── RELATED SERVICES ────────────────────────── */
.sp-related-section { padding: 80px 0; background: #fff; }
.sp-related-header { text-align: center; margin-bottom: 3rem; }
.sp-related-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 900; color: var(--dark); margin-bottom: 0.4rem;
}
.sp-related-header p { font-size: 0.95rem; color: var(--text-light); }

.sp-related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.sp-rel-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sp-rel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(245,166,35,0.14); }
.sp-rel-img-wrap { height: 160px; overflow: hidden; }
.sp-rel-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sp-rel-card:hover .sp-rel-img { transform: scale(1.06); }
.sp-rel-body { padding: 1.1rem 1.2rem 1.4rem; }
.sp-rel-num {
  display: block; font-size: 0.68rem; font-weight: 900;
  color: var(--primary); letter-spacing: 0.12em;
  font-family: 'Playfair Display', serif; margin-bottom: 0.3rem;
}
.sp-rel-name { font-size: 0.97rem; font-weight: 800; color: var(--dark); margin-bottom: 0.45rem; }
.sp-rel-link { font-size: 0.8rem; font-weight: 700; color: var(--primary); }

.sp-back-wrap { text-align: center; }
.sp-back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 700; color: var(--dark);
  border: 1.5px solid rgba(0,0,0,0.15);
  padding: 0.65rem 1.4rem; border-radius: 50px;
  transition: border-color 0.25s, color 0.25s;
}
.sp-back-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── BEFORE / AFTER SLIDER ───────────────────── */
.sp-ba-section {
  padding: 80px 0;
  background: #111111;
}
.sp-ba-header {
  text-align: center;
  margin-bottom: 2.8rem;
}
.sp-ba-header-eyebrow {
  display: block;
  font-size: 0.7rem; font-weight: 900;
  color: var(--primary); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.sp-ba-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900; color: #fff; margin-bottom: 0.4rem;
}
.sp-ba-header p { font-size: 0.95rem; color: rgba(255,255,255,0.45); }

.sp-ba-slider {
  position: relative;
  width: 100%; max-width: 920px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 16 / 9;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}
.sp-ba-before, .sp-ba-after {
  position: absolute; inset: 0;
}
.sp-ba-before img, .sp-ba-after img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.sp-ba-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}
.sp-ba-label {
  position: absolute; bottom: 1rem;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}
.sp-ba-label-before { left: 1rem; }
.sp-ba-label-after  { right: 1rem; }
.sp-ba-handle {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}
.sp-ba-handle-line {
  flex: 1; width: 2.5px;
  background: rgba(255,255,255,0.9);
}
.sp-ba-handle-circle {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
  font-size: 1rem; color: #fff;
}
.sp-ba-hint {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .sp-alt-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sp-alt-grid .sp-alt-img-wrap { order: -1; }
  .sp-related-cards { grid-template-columns: 1fr 1fr; }
  .sp-why-grid { grid-template-columns: 1fr; gap: 0; }
  .sp-alt-section { padding: 56px 0; }
  .sp-hero { height: 360px; }
  .sp-ba-section { padding: 56px 0; }
  .sp-ba-slider { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .sp-hero { height: 300px; }
  .sp-title { font-size: 1.7rem; }
  .sp-related-cards { grid-template-columns: 1fr; }
  .sp-alt-section, .sp-why-section, .sp-cta-banner, .sp-related-section { padding: 48px 0; }
  .sp-alt-img { height: 240px; }
  .sp-ba-section { padding: 48px 0; }
  .sp-ba-slider { aspect-ratio: 1 / 1; border-radius: 12px; }
}
