
.services-hero {
  position: relative;
  background-color: var(--primary-color);
  overflow: hidden;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 25% 60%,
      rgba(249, 183, 31, 0.13) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 45%
    );
  pointer-events: none;
}

.services-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-size: 30px 30px;
  background-image:
    linear-gradient(45deg, var(--cream) 25%, transparent 25%),
    linear-gradient(315deg, var(--cream) 25%, transparent 25%);
  background-position: 0 0;
}

.services-hero h1 {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.services-hero h1 span {
  color: var(--gold-light);
}

.services-hero p.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--cream);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ── Category Filter Tabs ──────────────────── */
.services-filter {
  background: var(--cream);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.85rem 0;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--text-light);
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: "Tajawal", sans-serif;
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(24, 41, 89, 0.04);
}

.filter-tab.active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(24, 41, 89, 0.2);
}

.filter-tab i {
  font-size: 0.78rem;
}

/* ── Services Grid ─────────────────────────── */
.services-grid-section {
  padding: 4.5rem 0 5rem;
  background-color: var(--cream);
}

.services-grid-section .section-header {
  margin-bottom: 2.75rem;
}

.services-grid-section .section-eyebrow {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.services-grid-section h2 {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.services-grid-section .section-sub {
  color: var(--text-light);
  max-width: 500px;
  line-height: 1.75;
  font-size: 1.125rem;
  font-weight: 500;
}

/* Service category groups */
.service-category {
  margin-bottom: 4rem;
}

.service-category:last-child {
  margin-bottom: 0;
}

.category-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.category-label-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.category-label h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.category-label .cat-divider {
  flex: 1;
  height: 1px;
  background: var(--border-color);
  margin-right: 0.5rem;
}

/* Service Card */
.service-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--section-color);
}

.roll-featured .card-img-wrap {
  width: 45%;
}
.service-card .card-img-wrap img {
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-card .card-img-wrap:hover img {
  transform: scale(1.05);
}

/* flash animation on hover (same as index) */
.service-card .card-img-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.18);
  width: 0;
  height: 0;
  opacity: 0;
  z-index: 2;
}

.service-card .card-img-wrap:hover::before {
  animation: flashing 0.7s;
}

/* badge on image */
.service-card .card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-card .card-badge.badge-new {
  background: var(--gold-light);
  color: var(--primary-color);
}

/* card body */
.service-card .svc-body {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
}

.service-card .svc-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.service-card .svc-body p {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* card features list */
.service-card .svc-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem 0;
  list-style: none;
  margin: 0;
}

.service-card .svc-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-light);
  font-weight: 500;
}
@media (min-width: 768px) {
  .service-card .svc-features li {
    font-size: 1rem;
  }
}
.service-card .svc-features li .svg-inline--fa {
  color: var(--primary-color);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: green;
}

/* card footer */
.service-card .svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding: 0.9rem 1.25rem;
  margin-top: 1rem;
}

.service-card .svc-link {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.25s;
}

.service-card .svc-link:hover {
  color: var(--secondary-color);
}

.service-card .svc-arrow {
  color: var(--primary-color);
  font-size: 0.9rem;
  animation: bouncing-arrow 1.5s infinite;
  transition: color 0.25s;
}

.service-card:hover .svc-arrow {
  color: var(--secondary-color);
}

/* ── Featured / Wide Card ──────────────────── */
.service-card.featured {
  border-radius: 20px;
}
.service-card.roll-featured {
  flex-direction: row;
}
.service-card.roll-featured .card-img-wrap {
  width: 45%;
}
@media (max-width: 767.98px) {
  .service-card.roll-featured {
    flex-direction: column;
  }
  
}
.service-card.featured .card-img-wrap {
  flex-shrink: 0;
  aspect-ratio: unset;
}

.service-card.featured .card-img-wrap img {
  height: 100%;
}

.service-card.featured .card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
}
@media (max-width: 767.98px) {
  .service-card.featured .card-right {
    padding: 1.25rem 1rem;
  }
}
.service-card.featured .card-right h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.service-card.featured .card-right p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  flex: 1;
  font-weight: 500;
}

.service-card.featured .svc-features {
  padding: 0 0 1rem;
}

.service-card.featured .svc-footer {
  margin-top: auto;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
  .service-card.featured {
    flex-direction: column;
  }
  .service-card.featured .card-img-wrap {
    width: 100%;
    min-height: 220px;
  }
}

/* ── Process Steps ─────────────────────────── */
.services-process {
  padding: 5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.services-process .section-eyebrow {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.services-process h2 {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.services-process .proc-sub {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 3rem;
  max-width: 440px;
  font-size: 1.125rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

/* connecting line between steps on desktop */
@media (min-width: 768px) {
  .process-steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    left: 2.5rem;
    height: 2px;
    background: linear-gradient(
      to left,
      transparent,
      var(--border-color) 15%,
      var(--border-color) 85%,
      transparent
    );
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cairo", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1.1rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(24, 41, 89, 0.22);
  border: 4px solid var(--cream);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.process-step:hover .step-num {
  transform: scale(1.1);
  background: var(--secondary-color);
  color: var(--primary-color);
}

.process-step h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.process-step p {
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  max-width: 300px;
  margin-inline: auto;
}

/* ── Why Choose Us (Services page version) ─── */
.services-wcu {
  padding: 5rem 0;
  background: var(--section-color);
  border-top: 1px solid var(--border-color);
}

.services-wcu .section-eyebrow {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.services-wcu h2 {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.services-wcu .wcu-sub {
  color: var(--text-light);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.wcu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
@media (min-width: 992px) {
  .wcu-list {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.25rem;
  }
}
.wcu-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}
@media (max-width: 767.98px) {
  .wcu-item {
    padding: 0.75rem;
  }
}
.wcu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
.wcu-item::after,
.wcu-item::before {
  content: "";
  position: absolute;
  height: 0px;
  background-color: var(--primary-color);
  transition: 1s;
}
.wcu-item::before {
  bottom: 50%;
  transform: translateY(50%);
  right: 0px;
}
.wcu-item::after {
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
}

.wcu-item:hover::after,
.wcu-item:hover::before {
  height: calc(100% - 16px);
  width: 2px;
}
.wcu-item .wcu-i-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wcu-item h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
@media (max-width: 767.98px) {
  .wcu-item h5 {
    margin: 0.5rem 0;
  }
}
.wcu-item p {
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ── CTA Banner ────────────────────────────── */
.services-cta {
  background: var(--primary-color);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.services-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 80%,
      rgba(249, 183, 31, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.services-cta h2 {
  font-family: "El Messiri", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.services-cta p {
  color: var(--cream);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 1.125rem;
  font-weight: 500;
}

.services-cta .cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.75rem;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 16px rgba(249, 183, 31, 0.35);
    background: linear-gradient(135deg, #C8704F 0%, #E8B873 100%);

}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #f1835b 0%, #fcc16e 100%);
  box-shadow: 0 8px 24px rgba(249, 183, 31, 0.5);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.75rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: 0.3s;
}

.btn-cta-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

/* ── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.45s;
}
.reveal-delay-5 {
  transition-delay: 0.55s;
}