/* ---------- Servicii ---------- */

.service-buttons {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.service-button {
  flex: 1 1 280px;
  max-width: 350px;
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.service-button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.service-button.is-active {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 20px 50px rgba(16, 169, 194, 0.12);
}

.service-button strong {
  display: block;
  font-size: 1.02rem;
}

.service-button small {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: rgba(16, 169, 194, 0.12);
  color: var(--cyan);
  transition: background 0.2s ease, color 0.2s ease;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-button.is-active .service-icon {
  background: var(--cyan);
  color: var(--on-cyan);
}

/* ---------- Detaliu serviciu + comparator ---------- */

.service-detail-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.service-copy p:not(.section-kicker) {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.service-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.service-gallery {
  display: grid;
  grid-template-columns: 0.64fr 1fr;
  gap: 14px;
}

.detail-image,
.comparison {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.gallery-title {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-weight: 700;
}

.comparison-missing {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.comparison {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-primary);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.comparison-after-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  overflow: hidden;
}

.comparison-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.comparison-range:focus-visible ~ .comparison-handle {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8%;
  z-index: 3;
  width: 2px;
  background: var(--cyan);
  transform: translateX(-1px);
  box-shadow: 0 0 0 3px rgba(16, 169, 194, 0.14);
}

.comparison-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(241, 239, 233, 0.7);
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.comparison-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-left: 1.5px solid var(--on-cyan);
  border-right: 1.5px solid var(--on-cyan);
  opacity: 0.85;
}

