:root {
  --riwaq-shadow: 0 28px 80px rgba(6, 28, 28, 0.14);
  --riwaq-soft-shadow: 0 18px 50px rgba(6, 28, 28, 0.09);
}

body {
  background:
    radial-gradient(circle at 8% 22%, rgba(12, 118, 112, 0.06), transparent 24rem),
    var(--paper);
}

.pro-header {
  border-bottom-color: rgba(13, 50, 49, 0.12);
  box-shadow: 0 10px 35px rgba(5, 32, 31, 0.07);
}

.pro-nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), var(--teal), transparent);
  opacity: 0.42;
}

.hero {
  min-height: min(790px, calc(100vh - 76px));
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 72%, #000);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 520px;
  height: 520px;
  inset-inline-end: -230px;
  top: -220px;
  border: 1px solid rgba(240, 147, 91, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(240, 147, 91, 0.035), 0 0 0 140px rgba(240, 147, 91, 0.02);
  pointer-events: none;
}

.hero-image {
  background: url("/hero-interior.png") center / cover no-repeat;
  filter: saturate(0.9) contrast(1.05);
  transform-origin: center;
  animation: none;
}

.hero-image::before,
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  will-change: opacity, transform;
}

.hero-image::before {
  background-image: url("/services/renovation.jpg");
  animation: heroRenovation 18s ease-in-out infinite;
}

.hero-image::after {
  background-image: url("/services/maintenance.jpg");
  animation: heroMaintenance 18s ease-in-out infinite;
}

.hero-slide {
  display: none;
}

@keyframes heroRenovation {
  0%, 28% {
    opacity: 0;
    transform: scale(1.08);
  }
  34%, 61% {
    opacity: 1;
    transform: scale(1.01);
  }
  67%, 100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes heroMaintenance {
  0%, 61% {
    opacity: 0;
    transform: scale(1.08);
  }
  67%, 94% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 25, 25, 0.2) 0%, rgba(8, 25, 25, 0.82) 51%, rgba(6, 23, 23, 0.98) 100%),
    linear-gradient(0deg, rgba(4, 20, 20, 0.34), transparent 45%);
}

.hero-content {
  z-index: 2;
}

.hero-copy {
  position: relative;
  padding-inline-start: clamp(24px, 3vw, 48px);
  border-inline-start: 1px solid rgba(255, 255, 255, 0.17);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset-inline-start: -2px;
  top: 12%;
  width: 3px;
  height: 27%;
  background: linear-gradient(var(--copper), var(--teal));
  box-shadow: 0 0 24px rgba(240, 147, 91, 0.5);
}

.hero h1 {
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.32);
}

.hero-lead {
  max-width: 620px;
  border-inline-start: 3px solid rgba(240, 147, 91, 0.72);
  padding-inline-start: 18px;
}

.hero-note {
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(7, 25, 25, 0.92), rgba(12, 80, 76, 0.68));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
}

.hero-actions .button {
  min-height: 56px;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.service-ribbon {
  box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.16);
}

.services.section {
  position: relative;
  overflow: hidden;
  padding-block: 92px 106px;
  background:
    radial-gradient(circle at 92% 12%, rgba(12, 118, 112, 0.12), transparent 25rem),
    linear-gradient(180deg, #fffdf9 0%, #f4f1ea 100%);
}

.services.section::before {
  content: "الخدمات";
  position: absolute;
  inset-inline-start: -22px;
  top: 44%;
  color: rgba(9, 48, 47, 0.035);
  font-size: clamp(6rem, 13vw, 14rem);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-90deg) translateX(-25%);
  pointer-events: none;
}

.services .section-head {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-bottom: 44px;
}

.services .section-head::after {
  content: "";
  display: block;
  width: min(220px, 38vw);
  height: 5px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--copper) 0 34%, var(--teal) 34% 70%, rgba(13, 50, 49, 0.14) 70%);
}

.services-grid {
  position: relative;
  z-index: 2;
  gap: 14px;
  border: 0;
}

.service-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: #fff;
  box-shadow: var(--riwaq-soft-shadow);
  transform: translateZ(0);
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.service-card::before {
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) contrast(1.04);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.service-card::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 24, 24, 0.18), rgba(5, 24, 24, 0.92)),
    linear-gradient(90deg, rgba(5, 24, 24, 0.72), transparent 72%);
}

.service-card:nth-child(1)::before { background-image: url("/services/electrical.jpg"); }
.service-card:nth-child(2)::before { background-image: url("/services/plumbing.jpg"); }
.service-card:nth-child(3)::before { background-image: url("/services/painting.jpg"); }
.service-card:nth-child(4)::before { background-image: url("/services/gypsum.jpg"); }
.service-card:nth-child(5)::before { background-image: url("/services/renovation.jpg"); }
.service-card:nth-child(6)::before { background-image: url("/services/maintenance.jpg"); }

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card .service-number {
  color: rgba(255, 255, 255, 0.68);
}

.service-card .service-icon {
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 118, 112, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.service-card h3 {
  margin-top: auto;
  font-size: 1.35rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.76);
}

.service-card .service-arrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-10px);
  box-shadow: 0 30px 75px rgba(5, 30, 29, 0.24);
}

.service-card:hover::before {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.08);
}

.service-card:hover p,
.service-card:hover .service-number {
  color: rgba(255, 255, 255, 0.82);
}

.statement {
  background:
    radial-gradient(circle at 12% 50%, rgba(12, 118, 112, 0.4), transparent 34rem),
    linear-gradient(120deg, #071d1c, #0b2928 58%, #061817);
}

.promise {
  margin-block: 10px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.promise:hover {
  transform: translateX(-8px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(240, 147, 91, 0.42);
}

.process {
  background:
    linear-gradient(90deg, rgba(240, 147, 91, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(12, 118, 112, 0.05) 1px, transparent 1px),
    var(--cream);
  background-size: 54px 54px;
}

.step {
  min-height: 250px;
  border: 1px solid rgba(9, 56, 54, 0.12);
  border-top: 0;
  border-radius: 14px;
  box-shadow: var(--riwaq-soft-shadow);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), transparent 48%);
  pointer-events: none;
}

.step > span {
  color: rgba(12, 118, 112, 0.34);
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 42px;
}

.request-section {
  background:
    radial-gradient(circle at 8% 16%, rgba(240, 147, 91, 0.22), transparent 27rem),
    radial-gradient(circle at 92% 84%, rgba(12, 118, 112, 0.34), transparent 30rem),
    #071c1b;
}

.request-form {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.request-form input,
.request-form select,
.request-form textarea {
  border-radius: 8px;
  background: #fffefa;
}

.button,
.pro-cta {
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.button:hover,
.pro-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(7, 42, 41, 0.2);
}

@media (max-width: 900px) {
  .hero {
    min-height: 650px;
  }

  .hero::before {
    background-size: 48px 48px;
  }

  .hero-copy {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .hero-copy::before,
  .services.section::before {
    display: none;
  }

  .service-card {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .services.section {
    padding-block: 70px 78px;
  }

  .services-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 285px;
    border-radius: 12px;
  }

  .promise {
    padding: 20px 16px;
  }

  .step {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card::before,
  .service-card,
  .promise,
  .button,
  .pro-cta {
    transition: none !important;
  }

  .hero-image::before,
  .hero-image::after {
    display: none;
    animation: none !important;
  }
}
