/* ── Service page hero: large project photo on the far side, fading into
      the text (same treatment as the homepage service panels) ── */
.hero.has-photo .hero-visual { display: none !important; }
.hero-photo {
  position: absolute; top: 0; bottom: 0; right: 0; left: auto;
  width: 60%; margin: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 12%, rgba(0,0,0,0.55) 55%, transparent 100%);
          mask-image: linear-gradient(to left, #000 0%, #000 12%, rgba(0,0,0,0.55) 55%, transparent 100%);
}
[dir="rtl"] .hero-photo {
  right: auto; left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 12%, rgba(0,0,0,0.55) 55%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 12%, rgba(0,0,0,0.55) 55%, transparent 100%);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,39,0.6) 0%, transparent 25%, transparent 70%, rgba(10,14,39,0.85) 100%),
    linear-gradient(135deg, rgba(0,174,239,0.10), transparent 60%);
}
.hero-photo .sp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-photo .sp-slide.is-active { opacity: 1; }
.hero-photo .sp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.6s ease; }
.hero-photo .sp-slide img.is-loaded { opacity: 1; }
.hero-photo .sp-slide.is-active img { animation: heroKenBurns 9s ease-out both; }
@keyframes heroKenBurns {
  from { transform: scale(1.14) translate3d(1.5%, 0, 0); }
  to   { transform: scale(1.02) translate3d(0, 0, 0); }
}
.hero-photo .sp-visual-tag {
  position: absolute; bottom: 40px; right: 44px; z-index: 2;
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: rgba(8,12,30,0.6);
  border: 1px solid rgba(0,174,239,0.35); backdrop-filter: blur(8px);
}
[dir="rtl"] .hero-photo .sp-visual-tag { right: auto; left: 44px; }
.hero.has-photo .hero-content { z-index: 2; }
/* service number sits above the eyebrow, at the start of the line (overrides
   the page's own rule that put it at the end of the headline) */
.hero-content .hero-num {
  left: auto; right: auto;
  inset-inline-start: -6px;
  top: auto; bottom: calc(100% - 4px);
  font-size: clamp(4rem, 8vw, 7rem);
}
/* room for the number under the fixed top bar */
@media (min-width: 1025px) { .hero { padding-top: 190px; } }

@media (max-width: 1024px) {
  /* phones/tablets: the photo sits behind the text, fading down into it */
  .hero-photo, [dir="rtl"] .hero-photo {
    left: 0; right: 0; width: 100%; bottom: auto; height: 62%;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%);
  }
  .hero-photo .sp-visual-tag { display: none !important; }
}

/* ── "Our Work" strip on the service pages (these pages don't load style.css) ── */
.works-section .works-rail,
.works-section .works-footer { max-width: 1100px; margin-inline: auto; }
.works-rail {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 8px 0 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.works-rail::-webkit-scrollbar { display: none; }
.work-card {
  flex: 0 0 280px; height: 190px; border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.work-card:hover img { transform: scale(1.06); }
.work-card-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  font-size: 0.8rem; font-weight: 700; color: #fff;
}
.work-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; opacity: 0.25; }
.works-loading, .works-empty { color: #94a3b8; font-size: 0.95rem; margin: 0; padding: 4px 0 8px; }

/* the "View all our work" button — clearly a button */
.works-footer { padding-top: 12px; }
.works-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  color: #00AEEF; background: rgba(0,174,239,0.08);
  border: 1.5px solid #00AEEF;
  box-shadow: 0 0 24px rgba(0,174,239,0.15);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.works-more:hover {
  background: #00AEEF; color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,174,239,0.4);
}

/* works image viewer */
#worksLightbox { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.93); align-items: center; justify-content: center; }
#worksLightbox.open { display: flex; }
.wlb-img { max-width: min(900px, 90vw); max-height: 85vh; border-radius: 12px; object-fit: contain; }
.wlb-close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.3rem; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wlb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.6rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wlb-close:hover, .wlb-nav:hover { background: rgba(255,255,255,0.22); }
.wlb-prev { left: 20px; } .wlb-next { right: 20px; }
/* Arabic: 'next' is on the left (reading direction). The ‹ › glyphs mirror
   by themselves in RTL, so each arrow keeps pointing toward its own side. */
[dir="rtl"] .wlb-prev { left: auto; right: 20px; }
[dir="rtl"] .wlb-next { right: auto; left: 20px; }
.wlb-nav:disabled { opacity: 0.18; cursor: default; }
.wlb-nav.has-more {
  color: #00AEEF; background: rgba(0,174,239,0.12);
  border: 1.5px solid rgba(0,174,239,0.65);
  animation: wlbPulse 1.6s ease-in-out infinite;
}
@keyframes wlbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,174,239,0.55); }
  50%      { box-shadow: 0 0 0 12px rgba(0,174,239,0); }
}
.wlb-img.wlb-in { animation: wlbIn 0.5s ease; }
@keyframes wlbIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.wlb-info { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.65); padding: 7px 18px; border-radius: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.75); white-space: nowrap; }

@media (max-width: 768px) {
  .work-card { flex: 0 0 220px; height: 155px; }
  .works-footer { text-align: center; }
}
