/* ==========================================
   1. SERVICES PAGE HERO SECTION
   ========================================== */
#services-hero {
  position: relative;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  /* CMS dynamic background color fallback */
  background-color: var(--hero-bg, #080808);
}

#services-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark gradient overlay for text readability */
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.7) 0%, rgba(8, 8, 8, 0.95) 100%);
  z-index: 1;
}

#services-hero .hero-content {
  position: relative;
  z-index: 2;
}

/* ==========================================
   2. DETAILED SERVICES GRID (CMS LOOP)
   ========================================== */
#services-list {
  background-color: #080808;
}

.service-card-detailed {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-detailed:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  /* Accent color border on hover controlled by CMS token */
  border-color: var(--bs-primary, #f14141);
}

/* Enforce strict image proportions to prevent CMS upload layout breaks */
.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-detailed:hover .service-img {
  transform: scale(1.06);
}

/* Text limits to ensure uniform card heights regardless of database text length */
.service-title {
  color: #ffffff;
  transition: color 0.3s ease;
}

.service-card-detailed:hover .service-title {
  color: var(--bs-primary, #f14141);
}

.service-excerpt {
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1.5rem;
}

/* Dynamic booking button inside card */
.btn-service-book {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50rem;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-top: auto; /* Pushes button to bottom of flex card */
}

.service-card-detailed:hover .btn-service-book {
  background-color: var(--bs-primary, #f14141);
  border-color: var(--bs-primary, #f14141);
  color: #ffffff;
}

/* ==========================================
   3. OUR PROCESS / WORKFLOW SECTION
   ========================================== */
#workflow-section {
  background-color: #000000;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.process-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.4s ease;
}

.process-icon {
  font-size: 2rem;
  color: var(--bs-primary, #f14141);
  transition: transform 0.4s ease;
}

.process-step:hover .process-icon-wrapper {
  background: var(--bs-primary, #f14141);
  border-color: var(--bs-primary, #f14141);
}

.process-step:hover .process-icon {
  color: #ffffff;
  transform: scale(1.1);
}