/* =========================================
   SERVICES PAGE SPECIFIC STYLES
   ========================================= */

.detailed-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background-color: var(--bg-primary);
  min-height: 600px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.detailed-service.reversed {
  background-color: var(--bg-primary);
}

.detailed-service.reverse {
  direction: rtl; /* simple trick or we can flex-direction: row-reverse */
}

/* Fix text direction to LTR even in reverse row */
.detailed-service.reverse > * {
  direction: ltr;
}

.service-media {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.detailed-service:hover .service-media::after {
  opacity: 0.2;
}

.service-details {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-icon-large {
  width: 64px;
  height: 64px;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.service-icon-large i {
  color: var(--accent-orange);
  width: 32px;
  height: 32px;
}

.service-details h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
}

.service-details p {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 30px;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}

.feature-list i {
  color: var(--accent-orange);
  width: 20px;
  height: 20px;
}

/* Mini Stat Cards */
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.m-stat {
  background: transparent;
  padding: 24px;
  border-left: 2px solid var(--accent-orange);
  border-radius: 0;
}

/* Process Diagram (4 steps) */
.process-diagram {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-orange);
  transition: transform 0.3s, background 0.3s;
}

.process-step:hover {
  transform: translateX(10px);
  background: rgba(255,255,255,0.08);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.process-step span {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

/* Standards Badges */
.standards-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.standards-badges .badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
}

/* Safety Stats */
.safety-stats {
  display: flex;
  gap: 40px;
  margin-top: 10px;
}

.s-stat {
  display: flex;
  flex-direction: column;
}

.s-stat h4 {
  font-size: 40px;
  color: var(--safety-yellow);
  font-weight: 800;
  margin-bottom: 4px;
}

.s-stat span {
  font-size: 14px;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
  .detailed-service {
    grid-template-columns: 1fr;
  }
  
  .detailed-service.reverse {
    direction: ltr; /* Reset to natural column flow */
  }
  
  .service-media {
    min-height: 400px;
    grid-row: 1; /* Image always on top for mobile */
  }
  
  .service-details {
    padding: 60px 40px;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .service-details {
    padding: 40px 20px;
  }
  
  .process-diagram {
    grid-template-columns: 1fr;
  }
  
  .safety-stats {
    flex-direction: column;
    gap: 20px;
  }
}
