/* Services Page Layout */
.services-hero {
  padding-top: 150px;
  padding-bottom: var(--space-lg);
  background: linear-gradient(rgba(9, 9, 9, 0.8), rgba(9, 9, 9, 1));
}

.services-nav-sticky {
  position: sticky;
  top: 70px;
  background: rgba(9, 9, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-sm) 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.services-nav-sticky::-webkit-scrollbar {
  display: none;
}

.services-nav-list {
  display: inline-flex;
  gap: var(--space-sm);
}

.services-nav-item {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--steel-gray-dark);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.services-nav-item:hover,
.services-nav-item.active {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(245, 124, 0, 0.05);
}

/* Service Detail Sections */
.service-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 992px) {
  .service-section {
    grid-template-columns: 1.2fr 1fr;
  }

  .service-section.reverse {
    grid-template-columns: 1fr 1.2fr;
  }

  .service-section.reverse .service-diagram-container {
    order: -1;
  }
}

.service-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-tag {
  font-family: var(--font-headings);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.service-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.service-checklist {
  list-style: none;
  margin-bottom: var(--space-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 576px) {
  .service-checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-checklist li {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-checklist li::before {
  content: "→";
  color: var(--accent-orange);
  font-weight: 900;
}

/* TECHNICAL DIAGRAMS (INSTEAD OF ICONS) */
.service-diagram-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px var(--glass-shadow);
}

.service-blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(245, 124, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 124, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.diagram-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. RCC Column Diagram */
.diagram-rcc {
  width: 140px;
  height: 240px;
  border: 2px dashed var(--steel-gray);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.rcc-main-bars {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(100% - 20px);
  left: 10px;
  display: flex;
  justify-content: space-between;
}

.rcc-bar {
  width: 6px;
  height: 100%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 5px var(--accent-orange-glow);
}

.rcc-ties {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
}

.rcc-tie {
  height: 2px;
  width: 100%;
  background-color: var(--steel-gray-light);
}

.diagram-label {
  position: absolute;
  font-family: monospace;
  font-size: 9px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 2px 4px;
  border: 1px solid var(--steel-gray-dark);
}

/* 2. Road Cross-section */
.diagram-road {
  width: 240px;
  height: 160px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--steel-gray-dark);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.road-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.road-wear {
  height: 20px;
  background-color: #232323;
  color: var(--text-primary);
  border-bottom: 1.5px dashed var(--accent-orange);
}

.road-binder {
  height: 30px;
  background-color: #383838;
  color: var(--text-secondary);
}

.road-base {
  height: 45px;
  background-color: #555555;
  color: var(--text-muted);
}

.road-subgrade {
  height: 65px;
  background: repeating-linear-gradient(
    45deg,
    #2a2a2a,
    #2a2a2a 10px,
    #333333 10px,
    #333333 20px
  );
  color: var(--text-muted);
}

/* 3. Drainage Cross-section */
.diagram-drainage {
  position: relative;
  width: 200px;
  height: 200px;
}

.drainage-trench {
  position: absolute;
  bottom: 0;
  left: 30px;
  width: 140px;
  height: 170px;
  border: 2px solid var(--steel-gray-dark);
  border-top: none;
  background: rgba(255, 255, 255, 0.02);
}

.drainage-pipe {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 5px solid var(--steel-gray);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drainage-water {
  width: 60px;
  height: 30px;
  background-color: rgba(245, 124, 0, 0.2);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: absolute;
  bottom: 0;
}

.drainage-gravel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 20%, transparent 20%) 0 0,
    radial-gradient(rgba(255, 255, 255, 0.08) 20%, transparent 20%) 8px 8px;
  background-size: 16px 16px;
  z-index: -1;
}

/* 4. Renovation Split View */
.diagram-renovation {
  width: 240px;
  height: 160px;
  position: relative;
  border: 1px solid var(--steel-gray-dark);
}

.renovation-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.01) 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
  border-right: 1px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-headings);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.renovation-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-family: var(--font-headings);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.renovation-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent-orange);
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-orange);
}

.renovation-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  border: 2px solid var(--text-primary);
  z-index: 3;
}
